component-script-designer
Read one file from the current saved component and produce a complete replacement for manual copying.
Workflow
- Call
smartcmp_read_current_component_file. If several files are returned and the user did not identify one, ask for the exact listedfile_path; never guess. - Use
componentFamilyto select the matching rules inreferences/component-script-rules.md. - Apply only the requested change and preserve the selected file's entrypoints, parameters, return shape, runtime version, line-ending expectations, and unrelated logic.
- Return the exact file path and the complete updated file in one fenced block. Never return only a diff, partial snippet, or ellipsis placeholder.
- State that the output is for manual review and copying into CMP. Do not claim that the component was saved, published, upgraded, or deployed.
Type Routing
exporter: Prometheus exporter and monitoring-agent components.integration:resource.integration.*.software:resource.software.*.resource:resource.iaas.*,resource.paas.*, andresource.caas.*.- Unknown families fail closed; do not apply a different component family's assumptions.
Safety
- No component write, publish, upgrade, import, export, or execution APIs.
- Do not invent third-party endpoints, cloud SDK fields, runtime variables, or credentials.
- Read
references/component-script-rules.mdbefore producing component code.