@copado/agentia-cli 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/README.md +3290 -2095
- package/dist/commands/ai/agent/ask.js +4 -4
- package/dist/commands/ai/agent/chat.js +4 -4
- package/dist/commands/auth/get.js +21 -1
- package/dist/commands/auth/set.js +13 -0
- package/dist/commands/auth/unset.js +37 -0
- package/dist/commands/cicd/cloud/commit.js +2 -2
- package/dist/commands/cicd/cloud/promote.js +19 -5
- package/dist/commands/cicd/credential/auth/status.js +38 -0
- package/dist/commands/cicd/credential/auth/web/login.js +54 -0
- package/dist/commands/cicd/credential/create.js +2 -2
- package/dist/commands/cicd/credential/list.js +15 -19
- package/dist/commands/cicd/credential/open.js +30 -0
- package/dist/commands/cicd/credential/update.js +11 -14
- package/dist/commands/cicd/data/commit/create.js +2 -2
- package/dist/commands/cicd/data/commit/list.js +2 -2
- package/dist/commands/cicd/data/dataset-file/content.js +2 -2
- package/dist/commands/cicd/data/dataset-file/list.js +2 -2
- package/dist/commands/cicd/data/filter/add.js +2 -2
- package/dist/commands/cicd/data/filter/delete.js +2 -2
- package/dist/commands/cicd/data/filter/list.js +2 -2
- package/dist/commands/cicd/data/filter/update.js +2 -2
- package/dist/commands/cicd/data/formula/create.js +2 -2
- package/dist/commands/cicd/data/formula/list.js +2 -2
- package/dist/commands/cicd/data/formula/update.js +2 -2
- package/dist/commands/cicd/data/records/match.js +2 -2
- package/dist/commands/cicd/data/records/search.js +2 -2
- package/dist/commands/cicd/data/sobject/fields.js +2 -2
- package/dist/commands/cicd/data/sobject/relationships.js +2 -2
- package/dist/commands/cicd/data/sync/apply.js +2 -2
- package/dist/commands/cicd/data/sync/preview-updates.js +2 -2
- package/dist/commands/cicd/data/template/convert-old.js +2 -2
- package/dist/commands/cicd/data/template/create.js +2 -2
- package/dist/commands/cicd/data/template/delete.js +2 -2
- package/dist/commands/cicd/data/template/get-detail.js +2 -2
- package/dist/commands/cicd/data/template/get.js +2 -2
- package/dist/commands/cicd/data/template/list.js +2 -2
- package/dist/commands/cicd/data/template/open.js +2 -2
- package/dist/commands/cicd/data/template/save-detail.js +2 -2
- package/dist/commands/cicd/environment/auth/status.js +36 -15
- package/dist/commands/cicd/environment/auth/web/login.js +22 -6
- package/dist/commands/cicd/environment/create.js +2 -2
- package/dist/commands/cicd/environment/get.js +2 -2
- package/dist/commands/cicd/environment/list.js +2 -2
- package/dist/commands/cicd/environment/open.js +8 -24
- package/dist/commands/cicd/environment/update.js +2 -2
- package/dist/commands/cicd/extension/create.js +2 -2
- package/dist/commands/cicd/extension/install.js +2 -2
- package/dist/commands/cicd/extension/package.js +2 -2
- package/dist/commands/cicd/extension/publish.js +2 -2
- package/dist/commands/cicd/extension/uninstall.js +2 -2
- package/dist/commands/cicd/extension/validate.js +2 -2
- package/dist/commands/cicd/extension-configuration/get.js +24 -0
- package/dist/commands/cicd/extension-configuration/list.js +49 -0
- package/dist/commands/cicd/extension-configuration/open.js +38 -0
- package/dist/commands/cicd/function/defaults.js +2 -2
- package/dist/commands/cicd/function/delete.js +2 -2
- package/dist/commands/cicd/function/get.js +2 -2
- package/dist/commands/cicd/function/list.js +2 -2
- package/dist/commands/cicd/function/open.js +2 -2
- package/dist/commands/cicd/function/result/get.js +2 -2
- package/dist/commands/cicd/function/result/log/get.js +2 -2
- package/dist/commands/cicd/function/run-local.js +2 -2
- package/dist/commands/cicd/function/run.js +2 -2
- package/dist/commands/cicd/function/upsert.js +2 -2
- package/dist/commands/cicd/health-check.js +2 -2
- package/dist/commands/cicd/job/get.js +2 -2
- package/dist/commands/cicd/job/kill.js +2 -2
- package/dist/commands/cicd/job/list.js +2 -2
- package/dist/commands/cicd/job/log/get.js +2 -2
- package/dist/commands/cicd/job/open.js +2 -2
- package/dist/commands/cicd/job/pause.js +2 -2
- package/dist/commands/cicd/job/result-file/get.js +2 -2
- package/dist/commands/cicd/job/result-file/list.js +2 -2
- package/dist/commands/cicd/job/resume.js +2 -2
- package/dist/commands/cicd/job/run.js +2 -2
- package/dist/commands/cicd/metadata/content/compare.js +2 -2
- package/dist/commands/cicd/metadata/content/get.js +3 -3
- package/dist/commands/cicd/metadata/dependency/list.js +45 -22
- package/dist/commands/cicd/metadata/explore.js +81 -0
- package/dist/commands/cicd/metadata/index/compare.js +2 -2
- package/dist/commands/cicd/metadata/list.js +5 -5
- package/dist/commands/cicd/metadata/refresh/deleted.js +3 -3
- package/dist/commands/cicd/metadata/refresh/run.js +4 -4
- package/dist/commands/cicd/metadata/refresh/status.js +4 -4
- package/dist/commands/cicd/notification/configure.js +2 -2
- package/dist/commands/cicd/notification/get.js +2 -2
- package/dist/commands/cicd/pipeline/automation/activate.js +39 -0
- package/dist/commands/cicd/pipeline/automation/create.js +33 -0
- package/dist/commands/cicd/pipeline/automation/deactivate.js +39 -0
- package/dist/commands/cicd/pipeline/automation/delete.js +45 -0
- package/dist/commands/cicd/pipeline/automation/get.js +32 -0
- package/dist/commands/cicd/pipeline/automation/list.js +38 -0
- package/dist/commands/cicd/pipeline/automation/open.js +38 -0
- package/dist/commands/cicd/pipeline/automation/update.js +38 -0
- package/dist/commands/cicd/pipeline/connection/create.js +2 -2
- package/dist/commands/cicd/pipeline/connection/delete.js +2 -2
- package/dist/commands/cicd/pipeline/connection/list.js +2 -2
- package/dist/commands/cicd/pipeline/connection/open.js +2 -2
- package/dist/commands/cicd/pipeline/connection/update.js +2 -2
- package/dist/commands/cicd/pipeline/create.js +2 -2
- package/dist/commands/cicd/pipeline/get.js +2 -2
- package/dist/commands/cicd/pipeline/list.js +2 -2
- package/dist/commands/cicd/pipeline/open.js +2 -2
- package/dist/commands/cicd/pipeline/quality-gate/activate.js +39 -0
- package/dist/commands/cicd/pipeline/quality-gate/create.js +34 -0
- package/dist/commands/cicd/pipeline/quality-gate/deactivate.js +39 -0
- package/dist/commands/cicd/pipeline/quality-gate/delete.js +45 -0
- package/dist/commands/cicd/pipeline/quality-gate/get.js +32 -0
- package/dist/commands/cicd/pipeline/quality-gate/list.js +34 -0
- package/dist/commands/cicd/pipeline/quality-gate/open.js +38 -0
- package/dist/commands/cicd/pipeline/quality-gate/update.js +38 -0
- package/dist/commands/cicd/pipeline/stage-connection/create.js +2 -2
- package/dist/commands/cicd/pipeline/stage-connection/delete.js +2 -2
- package/dist/commands/cicd/pipeline/stage-connection/list.js +2 -2
- package/dist/commands/cicd/pipeline/stage-connection/open.js +2 -2
- package/dist/commands/cicd/pipeline/stage-connection/update.js +2 -2
- package/dist/commands/cicd/pipeline/update.js +2 -2
- package/dist/commands/cicd/project/create.js +2 -2
- package/dist/commands/cicd/project/default/get.js +2 -2
- package/dist/commands/cicd/project/default/set.js +2 -2
- package/dist/commands/cicd/project/default/unset.js +2 -2
- package/dist/commands/cicd/project/delete.js +2 -2
- package/dist/commands/cicd/project/get.js +2 -2
- package/dist/commands/cicd/project/list.js +2 -2
- package/dist/commands/cicd/project/open.js +2 -2
- package/dist/commands/cicd/project/update.js +2 -2
- package/dist/commands/cicd/promotion/conflict/get.js +2 -2
- package/dist/commands/cicd/promotion/conflict/list.js +2 -2
- package/dist/commands/cicd/promotion/conflict/resolve.js +2 -2
- package/dist/commands/cicd/promotion/conflict/unresolve.js +2 -2
- package/dist/commands/cicd/promotion/get.js +2 -2
- package/dist/commands/cicd/promotion/job-step/update.js +2 -2
- package/dist/commands/cicd/promotion/list.js +2 -2
- package/dist/commands/cicd/promotion/open.js +2 -2
- package/dist/commands/cicd/promotion/queue/list.js +28 -0
- package/dist/commands/cicd/promotion/queue/remove.js +37 -0
- package/dist/commands/cicd/promotion/run.js +2 -2
- package/dist/commands/cicd/repository/auth/https/configure.js +2 -2
- package/dist/commands/cicd/repository/auth/oauth/login.js +2 -2
- package/dist/commands/cicd/repository/auth/setup.js +2 -2
- package/dist/commands/cicd/repository/auth/ssh/configure.js +2 -2
- package/dist/commands/cicd/repository/create.js +2 -2
- package/dist/commands/cicd/repository/delete.js +2 -2
- package/dist/commands/cicd/repository/get.js +2 -2
- package/dist/commands/cicd/repository/list.js +2 -2
- package/dist/commands/cicd/repository/open.js +2 -2
- package/dist/commands/cicd/repository/reset.js +2 -2
- package/dist/commands/cicd/repository/update.js +2 -2
- package/dist/commands/cicd/repository/validate.js +2 -2
- package/dist/commands/cicd/stage/create.js +2 -2
- package/dist/commands/cicd/stage/delete.js +2 -2
- package/dist/commands/cicd/stage/get.js +2 -2
- package/dist/commands/cicd/stage/list.js +2 -2
- package/dist/commands/cicd/stage/open.js +2 -2
- package/dist/commands/cicd/stage/update.js +2 -2
- package/dist/commands/cicd/template/defaults.js +2 -2
- package/dist/commands/cicd/template/delete.js +2 -2
- package/dist/commands/cicd/template/get.js +2 -2
- package/dist/commands/cicd/template/list.js +2 -2
- package/dist/commands/cicd/template/upsert.js +2 -2
- package/dist/commands/cicd/user/get.js +2 -2
- package/dist/commands/cicd/work/ahead-behind.js +2 -2
- package/dist/commands/cicd/work/create.js +3 -2
- package/dist/commands/cicd/work/delete.js +2 -2
- package/dist/commands/cicd/work/deployment-step/create.js +2 -2
- package/dist/commands/cicd/work/deployment-step/delete.js +2 -2
- package/dist/commands/cicd/work/deployment-step/list.js +2 -2
- package/dist/commands/cicd/work/deployment-step/reorder.js +2 -2
- package/dist/commands/cicd/work/deployment-step/salesforce-flows.js +2 -2
- package/dist/commands/cicd/work/deployment-step/types.js +2 -2
- package/dist/commands/cicd/work/deployment-step/update.js +2 -2
- package/dist/commands/cicd/work/done.js +2 -2
- package/dist/commands/cicd/work/environment-sync.js +10 -9
- package/dist/commands/cicd/work/get.js +2 -2
- package/dist/commands/cicd/work/list.js +2 -2
- package/dist/commands/cicd/work/open.js +2 -2
- package/dist/commands/cicd/work/promote.js +2 -2
- package/dist/commands/cicd/work/publish.js +2 -2
- package/dist/commands/cicd/work/push.js +2 -2
- package/dist/commands/cicd/work/set.js +8 -6
- package/dist/commands/cicd/work/status.js +2 -2
- package/dist/commands/cicd/work/submit.js +5 -4
- package/dist/commands/cicd/work/test/apex.js +2 -2
- package/dist/commands/cicd/work/test.js +2 -2
- package/dist/commands/cicd/work/update.js +3 -2
- package/dist/commands/help-agent.js +15 -0
- package/dist/commands/help.js +38 -0
- package/dist/commands/history/clear.js +42 -0
- package/dist/commands/history/list.js +50 -0
- package/dist/commands/plugins/install.js +2 -5
- package/dist/commands/setup/skills/create.js +28 -2
- package/dist/commands/setup/skills/list.js +55 -0
- package/dist/commands/setup/skills/update.js +36 -3
- package/dist/commands/setup.js +3 -3
- package/dist/commands/support.js +15 -0
- package/dist/commands/testing/browser/execute.js +49 -0
- package/dist/commands/testing/browser/history.js +49 -0
- package/dist/commands/testing/browser/inspect.js +35 -0
- package/dist/commands/testing/browser/recorder.js +52 -0
- package/dist/commands/testing/browser/reports.js +33 -0
- package/dist/commands/testing/browser/screenshot.js +27 -0
- package/dist/commands/testing/browser/set-options.js +35 -0
- package/dist/commands/testing/browser/start.js +51 -0
- package/dist/commands/testing/browser/status.js +26 -0
- package/dist/commands/testing/browser/stop.js +34 -0
- package/dist/commands/testing/browser/view.js +35 -0
- package/dist/commands/testing/data-table/create.js +1 -2
- package/dist/commands/testing/data-table/delete.js +1 -2
- package/dist/commands/testing/data-table/export.js +2 -6
- package/dist/commands/testing/data-table/get.js +2 -4
- package/dist/commands/testing/data-table/list.js +1 -2
- package/dist/commands/testing/data-table/update.js +3 -4
- package/dist/commands/testing/job/create.js +26 -22
- package/dist/commands/testing/job/delete.js +2 -2
- package/dist/commands/testing/job/files/download.js +73 -0
- package/dist/commands/testing/job/files/list.js +43 -0
- package/dist/commands/testing/job/{upload.js → files/upload.js} +13 -9
- package/dist/commands/testing/job/get.js +2 -2
- package/dist/commands/testing/job/list.js +1 -1
- package/dist/commands/testing/job/refs.js +4 -4
- package/dist/commands/testing/job/run.js +134 -1
- package/dist/commands/testing/{build → job/runs}/abort.js +10 -8
- package/dist/commands/testing/job/runs/get.js +42 -0
- package/dist/commands/testing/{build → job/runs}/list.js +19 -10
- package/dist/commands/testing/{logs.js → job/runs/logs.js} +9 -6
- package/dist/commands/testing/{build → job/runs}/search.js +9 -7
- package/dist/commands/testing/job/schedule/get.js +5 -11
- package/dist/commands/testing/job/schedule/remove.js +3 -3
- package/dist/commands/testing/job/schedule/set.js +3 -3
- package/dist/commands/testing/job/update.js +22 -65
- package/dist/commands/testing/project/create.js +1 -17
- package/dist/commands/testing/project/get.js +0 -1
- package/dist/commands/testing/project/list.js +2 -2
- package/dist/commands/testing/project/permission/set.js +3 -7
- package/dist/commands/testing/project/permission/update.js +2 -2
- package/dist/commands/testing/robot/create.js +22 -25
- package/dist/commands/testing/robot/get.js +1 -1
- package/dist/commands/testing/robot/list.js +3 -3
- package/dist/commands/testing/robot/update.js +3 -3
- package/dist/commands/testing/user-parameter/create.js +3 -9
- package/dist/commands/testing/user-parameter/update.js +1 -7
- package/dist/commands/testing/variable/create.js +4 -9
- package/dist/commands/testing/variable/list.js +3 -3
- package/dist/commands/testing/variable/update.js +5 -12
- package/dist/help.js +17 -0
- package/dist/hooks/init/cicd-connection.js +59 -0
- package/dist/lib/agentia-command.js +69 -6
- package/dist/lib/ai-types.js +2 -1
- package/dist/lib/cicd-command.js +3 -0
- package/dist/lib/cicd-connection.js +22 -0
- package/dist/lib/cicd-gateway.js +2 -1
- package/dist/lib/claude-mcp-config.js +15 -0
- package/dist/lib/command-history-sanitization.js +9 -0
- package/dist/lib/command-history.js +11 -0
- package/dist/lib/command-output-buffer.js +6 -1
- package/dist/lib/credential-sync.js +1 -2
- package/dist/lib/defaults-store.js +6 -1
- package/dist/lib/dependency-from-changes.js +3 -1
- package/dist/lib/dependency-source-context.js +3 -0
- package/dist/lib/environment-auth-status.js +2 -1
- package/dist/lib/environment-auth.js +2 -1
- package/dist/lib/environment-credential-flags.js +3 -1
- package/dist/lib/environment-credential-operations.js +8 -2
- package/dist/lib/environment-types.js +3 -1
- package/dist/lib/extension-configuration-ops.js +4 -0
- package/dist/lib/extension-configuration-sanitize.js +7 -0
- package/dist/lib/extension-configuration-types.js +8 -0
- package/dist/lib/help-agent-command.js +3 -0
- package/dist/lib/help-agent-interaction-history.js +10 -0
- package/dist/lib/help-agent-session.js +3 -0
- package/dist/lib/http-proxy.js +13 -0
- package/dist/lib/mcp/ai-tools.js +3 -3
- package/dist/lib/mcp/command-id.js +2 -0
- package/dist/lib/mcp/pipeline-automation-quality-tools.js +452 -0
- package/dist/lib/mcp/result.js +41 -3
- package/dist/lib/mcp/server.js +73 -3
- package/dist/lib/mcp/testing-browser-tools.js +194 -0
- package/dist/lib/mcp/testing-tools.js +242 -552
- package/dist/lib/mcp/tool-annotations.js +59 -30
- package/dist/lib/mcp/tools.js +202 -66
- package/dist/lib/mcp/work-tools.js +18 -4
- package/dist/lib/metadata-explore.js +8 -0
- package/dist/lib/network-error.js +8 -0
- package/dist/lib/pipeline-automation-flags.js +12 -0
- package/dist/lib/pipeline-automation-ops.js +9 -0
- package/dist/lib/pipeline-automation-types.js +18 -0
- package/dist/lib/pipeline-lifecycle-id.js +3 -0
- package/dist/lib/pipeline-quality-gate-flags.js +12 -0
- package/dist/lib/pipeline-quality-gate-ops.js +9 -0
- package/dist/lib/pipeline-quality-gate-types.js +17 -0
- package/dist/lib/plugin-host/ai.js +2 -1
- package/dist/lib/plugin-skills.js +22 -0
- package/dist/lib/plugin-trust/gate.js +1 -2
- package/dist/lib/project-root.js +3 -1
- package/dist/lib/promotion-queue.js +5 -0
- package/dist/lib/promotion-run.js +2 -1
- package/dist/lib/runtime.js +1 -1
- package/dist/lib/salesforce-tooling-check.js +6 -0
- package/dist/lib/skill-packs.js +7 -0
- package/dist/lib/support-ai-context.js +11 -0
- package/dist/lib/support-ai-stream-parser.js +4 -0
- package/dist/lib/support-ai.js +9 -0
- package/dist/lib/testing-archive.js +9 -0
- package/dist/lib/testing-browser-command.js +6 -0
- package/dist/lib/testing-browser-operations.js +17 -0
- package/dist/lib/testing-browser-requests.js +11 -0
- package/dist/lib/testing-browser-robot.js +9 -0
- package/dist/lib/testing-browser-session.js +14 -0
- package/dist/lib/testing-browser-state.js +17 -0
- package/dist/lib/testing-browser-stream.js +7 -0
- package/dist/lib/testing-browser-types.js +3 -0
- package/dist/lib/testing-browser-viewer-key.js +7 -0
- package/dist/lib/testing-data-table.js +39 -0
- package/dist/lib/testing-execution.js +22 -0
- package/dist/lib/testing-flags.js +6 -2
- package/dist/lib/testing-gateway.js +5 -1
- package/dist/lib/testing-operations.js +9 -4
- package/dist/lib/testing-sanitization.js +3 -1
- package/dist/lib/testing-secret-input.js +2 -1
- package/dist/lib/testing-types.js +24 -3
- package/dist/lib/work-environment-sync.js +3 -1
- package/dist/lib/work-flags.js +6 -1
- package/dist/lib/work-local-development-flow.js +4 -0
- package/dist/lib/work-promote.js +2 -1
- package/dist/lib/work-submit-wait.js +3 -1
- package/oclif.manifest.json +8841 -7469
- package/package.json +45 -5
- package/templates/skills/agentia-ai/SKILL.md +9 -6
- package/templates/skills/agentia-ai/references/ai-agents.md +21 -3
- package/templates/skills/agentia-cicd/SKILL.md +8 -5
- package/templates/skills/agentia-cicd/references/environments-and-credentials.md +35 -13
- package/templates/skills/agentia-cicd/references/extensions.md +3 -0
- package/templates/skills/agentia-cicd/references/pipelines.md +36 -2
- package/templates/skills/agentia-cicd/references/promotions.md +10 -1
- package/templates/skills/agentia-cicd/references/work.md +20 -5
- package/templates/skills/agentia-metadata/SKILL.md +146 -0
- package/templates/skills/agentia-metadata/references/metadata-dependency.md +70 -0
- package/templates/skills/agentia-metadata/references/metadata-explore.md +146 -0
- package/templates/skills/agentia-testing/SKILL.md +12 -7
- package/templates/skills/agentia-testing/references/browser-testing.md +93 -0
- package/templates/skills/agentia-testing/references/flow-automation.md +112 -0
- package/templates/skills/agentia-testing/references/qforce.md +88 -0
- package/templates/skills/agentia-testing/references/qweb.md +103 -0
- package/templates/skills/agentia-testing/references/tests.md +31 -23
- package/dist/commands/testing/build/get.js +0 -38
- package/dist/commands/testing/build/latest.js +0 -40
- package/dist/commands/testing/build/logs.js +0 -47
- package/dist/commands/testing/build/run.js +0 -26
- package/dist/commands/testing/create.js +0 -2
- package/dist/commands/testing/job/download.js +0 -54
- package/dist/commands/testing/job/files.js +0 -34
- package/dist/commands/testing/live/continue.js +0 -21
- package/dist/commands/testing/live/execute.js +0 -43
- package/dist/commands/testing/live/history.js +0 -35
- package/dist/commands/testing/live/inspect.js +0 -30
- package/dist/commands/testing/live/interrupt.js +0 -21
- package/dist/commands/testing/live/recorder.js +0 -134
- package/dist/commands/testing/live/reports.js +0 -31
- package/dist/commands/testing/live/screenshot.js +0 -25
- package/dist/commands/testing/live/set-options.js +0 -28
- package/dist/commands/testing/live/start.js +0 -53
- package/dist/commands/testing/live/status.js +0 -27
- package/dist/commands/testing/live/stop.js +0 -38
- package/dist/commands/testing/live/view.js +0 -36
- package/dist/commands/testing/run.js +0 -26
- package/dist/commands/testing/status.js +0 -45
- package/dist/commands/testing/test/create.js +0 -2
- package/dist/commands/testing/test/logs.js +0 -2
- package/dist/commands/testing/test/run.js +0 -26
- package/dist/commands/testing/test/status.js +0 -2
- package/dist/commands/testing/test/update.js +0 -2
- package/dist/commands/testing/update.js +0 -65
- package/dist/lib/mcp/testing-live-tools.js +0 -215
- package/dist/lib/testing-data-command.js +0 -8
- package/dist/lib/testing-data-core.js +0 -20
- package/dist/lib/testing-data-export.js +0 -6
- package/dist/lib/testing-data-import.js +0 -6
- package/dist/lib/testing-data-io.js +0 -12
- package/dist/lib/testing-data-operations.js +0 -10
- package/dist/lib/testing-data-types.js +0 -4
- package/dist/lib/testing-live-command.js +0 -6
- package/dist/lib/testing-live-endpoints.js +0 -6
- package/dist/lib/testing-live-history.js +0 -7
- package/dist/lib/testing-live-operations.js +0 -19
- package/dist/lib/testing-live-recorder.js +0 -9
- package/dist/lib/testing-live-robot.js +0 -9
- package/dist/lib/testing-live-state.js +0 -5
- package/dist/lib/testing-live-types.js +0 -3
- package/dist/lib/testing-run-command.js +0 -3
- package/dist/lib/testing-schedule.js +0 -5
- package/dist/lib/testing-session.js +0 -5
- package/dist/lib/testing-watch.js +0 -4
package/package.json
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"@oclif/plugin-plugins": "^5",
|
|
13
13
|
"@xmldom/xmldom": "^0.9.12",
|
|
14
14
|
"exceljs": "^4.4.0",
|
|
15
|
+
"proxy-agent": "^8.0.2",
|
|
16
|
+
"proxy-from-env": "^2.1.0",
|
|
15
17
|
"semver": "^7.8.5",
|
|
16
18
|
"tty-table": "^7.0.1",
|
|
17
19
|
"uuid": "^14.0.1",
|
|
@@ -59,6 +61,7 @@
|
|
|
59
61
|
"bin": "agentia",
|
|
60
62
|
"dirname": "agentia-cli",
|
|
61
63
|
"commands": "./dist/commands",
|
|
64
|
+
"helpClass": "./dist/help.js",
|
|
62
65
|
"hooks": {
|
|
63
66
|
"finally": [
|
|
64
67
|
"./dist/hooks/finally/ide-command-event"
|
|
@@ -66,7 +69,8 @@
|
|
|
66
69
|
"init": [
|
|
67
70
|
"./dist/hooks/init/version-warning",
|
|
68
71
|
"./dist/hooks/init/migrate-user-config",
|
|
69
|
-
"./dist/hooks/init/plugin-host"
|
|
72
|
+
"./dist/hooks/init/plugin-host",
|
|
73
|
+
"./dist/hooks/init/cicd-connection"
|
|
70
74
|
]
|
|
71
75
|
},
|
|
72
76
|
"plugins": [
|
|
@@ -94,6 +98,9 @@
|
|
|
94
98
|
"auth": {
|
|
95
99
|
"description": "Manage authentication credentials"
|
|
96
100
|
},
|
|
101
|
+
"history": {
|
|
102
|
+
"description": "Inspect temporary local command history"
|
|
103
|
+
},
|
|
97
104
|
"adv": {
|
|
98
105
|
"description": "Manage Copado Pipelines Advanced deployments"
|
|
99
106
|
},
|
|
@@ -214,6 +221,9 @@
|
|
|
214
221
|
"cicd:promotion:job-step": {
|
|
215
222
|
"description": "Manage Copado promotion job steps"
|
|
216
223
|
},
|
|
224
|
+
"cicd:promotion:queue": {
|
|
225
|
+
"description": "Inspect and clear the promotion job queue"
|
|
226
|
+
},
|
|
217
227
|
"cicd:notification": {
|
|
218
228
|
"description": "Configure Copado notification subscriptions"
|
|
219
229
|
},
|
|
@@ -227,15 +237,45 @@
|
|
|
227
237
|
"description": "Create and update Agentia Agent Skills"
|
|
228
238
|
},
|
|
229
239
|
"testing": {
|
|
230
|
-
"description": "Manage Copado Robotic Testing projects,
|
|
240
|
+
"description": "Manage Copado Robotic Testing projects, jobs, runs, logs, and variables"
|
|
241
|
+
},
|
|
242
|
+
"testing:data-table": {
|
|
243
|
+
"description": "Manage Copado Robotic Testing data tables"
|
|
244
|
+
},
|
|
245
|
+
"testing:job": {
|
|
246
|
+
"description": "Manage Copado Robotic Testing jobs and their runs"
|
|
247
|
+
},
|
|
248
|
+
"testing:job:files": {
|
|
249
|
+
"description": "Manage files stored in a Copado Robotic Testing job"
|
|
250
|
+
},
|
|
251
|
+
"testing:job:runs": {
|
|
252
|
+
"description": "Inspect and control Copado Robotic Testing job runs"
|
|
253
|
+
},
|
|
254
|
+
"testing:job:schedule": {
|
|
255
|
+
"description": "Manage the schedule for a Copado Robotic Testing job"
|
|
256
|
+
},
|
|
257
|
+
"testing:browser": {
|
|
258
|
+
"description": "Manage Copado Robotic Testing browser sessions"
|
|
259
|
+
},
|
|
260
|
+
"testing:project": {
|
|
261
|
+
"description": "Manage Copado Robotic Testing projects"
|
|
262
|
+
},
|
|
263
|
+
"testing:project:permission": {
|
|
264
|
+
"description": "Manage Copado Robotic Testing project permissions"
|
|
265
|
+
},
|
|
266
|
+
"testing:robot": {
|
|
267
|
+
"description": "Manage Copado Robotic Testing robots"
|
|
268
|
+
},
|
|
269
|
+
"testing:user-parameter": {
|
|
270
|
+
"description": "Manage account-scoped Copado Robotic Testing user parameters"
|
|
231
271
|
},
|
|
232
|
-
"testing:
|
|
233
|
-
"description": "Manage Copado Robotic Testing
|
|
272
|
+
"testing:variable": {
|
|
273
|
+
"description": "Manage Copado Robotic Testing variables and secrets"
|
|
234
274
|
}
|
|
235
275
|
}
|
|
236
276
|
},
|
|
237
277
|
"type": "module",
|
|
238
|
-
"version": "1.
|
|
278
|
+
"version": "1.3.0",
|
|
239
279
|
"x-agentia-protected-build": true,
|
|
240
280
|
"x-agentia-protected-files": [
|
|
241
281
|
"dist/lib/runtime.js"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agentia-ai
|
|
3
|
-
description: Use this skill when prompting Copado AI agents through the Agentia CLI or MCP, including `agentia ai agent ask`, `agentia ai agent chat`, Plan, Build, Test, Release, Operate, Knowledge, workspace, dialogue, user story, Salesforce org, and component context.
|
|
3
|
+
description: Use this skill when prompting Copado AI agents or using interactive in-app support through the Agentia CLI or MCP, including `agentia help-agent`, `agentia ai agent ask`, `agentia ai agent chat`, Plan, Build, Test, Release, Operate, Knowledge, workspace, dialogue, user story, Salesforce org, and component context.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- Agentia managed skill file: agentia setup skills -->
|
|
@@ -11,13 +11,14 @@ Use this skill to ask Copado AI agents through Agentia with the right agent sele
|
|
|
11
11
|
|
|
12
12
|
Prefer the `agentia_ai_ask` MCP tool when it is available for single-turn prompts. Use CLI examples as the fallback. Use `agentia ai agent chat` only for interactive terminal sessions.
|
|
13
13
|
|
|
14
|
+
Use `agentia help-agent` when a person wants interactive Copado product support. It opens without an eager CICD credential preflight, obtains fresh short-lived access per turn, and writes response deltas immediately. Each turn refreshes bounded local context, including dominant CLI/IDE/MCP usage; follow-ups include a bounded redacted digest of successful prior messages. Successful turn pairs are retained separately for at most 24 hours but never restored into a later chat. Use `agentia history list` to inspect sanitized command outcomes or `agentia history clear --yes` to remove command and Help Agent interaction history.
|
|
15
|
+
|
|
14
16
|
## Start Here
|
|
15
17
|
|
|
16
|
-
1.
|
|
17
|
-
2.
|
|
18
|
-
3.
|
|
19
|
-
4.
|
|
20
|
-
5. Use `--json` for automation. Use `--no-stream` when the caller needs a buffered response.
|
|
18
|
+
1. For `ai agent` and workspace commands, confirm AI auth with `agentia auth get --ai --json`. Configure missing credentials with `agentia auth set --ai ...` or the supported `AGENTIA_AI_*` environment variables. For `help-agent`, confirm CICD auth with `agentia auth get --cicd --json`.
|
|
19
|
+
2. Omit `--agent` by default: `ask` and `chat` use `orchestrate`, which routes work to the right specialist. Pass `--agent plan`, `build`, `test`, `release`, `operate`, or `knowledge` only to target a specialist explicitly.
|
|
20
|
+
3. Add useful context flags when available: `--workspace`, `--dialogue`, `--user-story`, `--sf-org`, and `--component`.
|
|
21
|
+
4. Use `--json` for automation. Use `--no-stream` when the caller needs a buffered response.
|
|
21
22
|
|
|
22
23
|
## Reference
|
|
23
24
|
|
|
@@ -29,6 +30,8 @@ Prefer the `agentia_ai_ask` MCP tool when it is available for single-turn prompt
|
|
|
29
30
|
- Use the Knowledge agent for Copado AI Knowledge grounding and product questions.
|
|
30
31
|
- Use the Plan, Build, Test, Release, and Operate agents according to the lifecycle intent.
|
|
31
32
|
- Do not paste PATs or secrets into prompts.
|
|
33
|
+
- Use `help-agent` only in an interactive terminal; it has no JSON or MCP mode.
|
|
34
|
+
- Treat history as temporary diagnostic context, not an audit log. CLI/IDE command rows can contain sanitized parameters, structured results, and bounded output tails; MCP rows contain metadata only. Successful Help Agent turn pairs are redacted, bounded, and retained separately for up to 24 hours. Raw User-Agent values, secrets, full paths, conversation IDs, and HMACs are excluded.
|
|
32
35
|
|
|
33
36
|
## Report Back
|
|
34
37
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# AI Agents Reference
|
|
4
4
|
|
|
5
|
-
Use this reference for `agentia ai agent ask`, `agentia ai agent chat`, and the matching `agentia_ai_ask` MCP tool.
|
|
5
|
+
Use this reference for `agentia help-agent`, `agentia ai agent ask`, `agentia ai agent chat`, and the matching `agentia_ai_ask` MCP tool.
|
|
6
6
|
|
|
7
7
|
## Authentication And Context
|
|
8
8
|
|
|
@@ -25,9 +25,9 @@ Operational options include `--workspace` and `--timeout`; authentication is res
|
|
|
25
25
|
| `release` | Release, promotion, packaging, and deployment questions. |
|
|
26
26
|
| `operate` | Operational diagnostics, monitoring, and runbook style questions. |
|
|
27
27
|
| `knowledge` | Copado AI Knowledge grounding, product documentation, personas, and troubleshooting. |
|
|
28
|
-
| `orchestrate` |
|
|
28
|
+
| `orchestrate` | Default. Routes the request to the right specialist automatically. |
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
`--agent` is optional and defaults to `orchestrate` for `ask`, `chat`, and the `agentia_ai_ask` MCP tool. Pass a specialist only to target it explicitly. `ask` requires a prompt with `-p` or `--prompt`; `chat` is TTY-only and prompts interactively.
|
|
31
31
|
|
|
32
32
|
## Single-Turn Ask
|
|
33
33
|
|
|
@@ -52,6 +52,22 @@ agentia ai agent chat --agent orchestrate --workspace <workspace-id>
|
|
|
52
52
|
|
|
53
53
|
Chat creates or reuses one dialogue for the session and supports session slash commands. It is not suitable for headless JSON workflows.
|
|
54
54
|
|
|
55
|
+
## Interactive Product Support
|
|
56
|
+
|
|
57
|
+
Use the experimental Help Agent for Copado product questions when a human is present:
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
agentia help-agent
|
|
61
|
+
agentia support
|
|
62
|
+
agentia help --agent
|
|
63
|
+
agentia history list --limit 10
|
|
64
|
+
agentia history clear --yes
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
All three Help Agent entry points share the same behavior. They open without a CICD user or credential preflight and do not use the separately configured AI PAT. Every request identifies the assistant as a concise Copado expert on Agentia Headless and Copado tools for developers working locally. The system prompt uses retained history to identify dominant CLI/IDE/MCP usage and asks one brief question when tooling or a local-versus-cloud operations flow is unclear. Each turn requests a fresh short-lived HMAC and refreshes CLI version, platform, architecture, workspace basename, normalized current origin, aggregate tool counts, and the three newest sanitized command summaries. Follow-up turns include a deterministic redacted digest of at most six successful prior messages. SSE response deltas render immediately. `/help`, `/clear`, and `/exit` are supported; `/clear` resets the conversation identifier and in-memory digest.
|
|
68
|
+
|
|
69
|
+
The `history` commands inspect up to 100 sanitized command summaries and clear all temporary history. CLI/IDE rows can contain sanitized parameters, a redacted structured result, and ordered 20 KiB stdout/stderr tails. MCP rows contain only command ID, timing, outcome, CLI version, workspace basename, and `mcp` origin—never arguments, output, results, or errors. Successful Help Agent turn pairs are separately redacted, capped at 4 KiB per message, and retained in private storage for at most 24 hours/100 pairs; they are not restored into later chats. `history clear --yes` deletes both stores. Help Agent has no JSON or MCP mode. Never paste credentials or tokens into prompts.
|
|
70
|
+
|
|
55
71
|
## Workspace And Quota Helpers
|
|
56
72
|
|
|
57
73
|
Use these adjacent commands when the prompt workflow needs context setup:
|
|
@@ -68,3 +84,5 @@ Use these adjacent commands when the prompt workflow needs context setup:
|
|
|
68
84
|
- `--user-story`, `--sf-org`, and `--component` enrich prompt context but do not replace a clear prompt.
|
|
69
85
|
- Streaming is human-friendly. For tools, CI, or follow-up parsing, use `--json` and consider `--no-stream`.
|
|
70
86
|
- `chat` has no MCP equivalent and should not be used in non-interactive shells.
|
|
87
|
+
- `help-agent` requires CICD authentication and a CICD environment where Support AI authentication is enabled.
|
|
88
|
+
- Temporary command history is diagnostic context, not a durable audit log; the operating system may remove it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agentia-cicd
|
|
3
|
-
description: Use this skill when managing Copado CICD work with the Agentia CLI or Agentia MCP tools
|
|
3
|
+
description: Use this skill when managing Copado CICD work with the Agentia CLI or Agentia MCP tools, including user stories (including current/active story context), cloud commit/promote, work publish/submit/done, promotion runs and conflicts, job executions, Copado Functions, Job Templates, git-hosted CICD extensions, environments, credentials, pipelines, stages, Slack pipeline notification subscriptions, and release data templates. Use it whenever the user asks an agent to operate Copado CICD from a terminal, IDE, or headless workflow.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- Agentia managed skill file: agentia setup skills -->
|
|
@@ -13,7 +13,7 @@ Prefer Agentia MCP tools when they are available and match the task. Use CLI exa
|
|
|
13
13
|
|
|
14
14
|
## Start Here
|
|
15
15
|
|
|
16
|
-
1. Confirm `agentia auth get --cicd --json` is configured, or that the current process supplies `AGENTIA_CICD_API_KEY` and `AGENTIA_CICD_BASE_URL`.
|
|
16
|
+
1. Confirm `agentia auth get --cicd --json` is configured, or that the current process supplies `AGENTIA_CICD_API_KEY` and `AGENTIA_CICD_BASE_URL`. For sandbox function/template/extension work against a different Copado org, use a named connection (`auth set --connection`) plus `--cicd-connection` / MCP `cicdConnection` instead of swapping the default key.
|
|
17
17
|
2. Identify the domain below and read only the matching reference file.
|
|
18
18
|
3. Before mutating data, read the target record first with the matching `get`, `list`, or `status` command.
|
|
19
19
|
4. Never print credentials, PATs, OAuth signatures, or unmasked environment variables.
|
|
@@ -27,13 +27,16 @@ Prefer Agentia MCP tools when they are available and match the task. Use CLI exa
|
|
|
27
27
|
- Git-hosted Copado CICD extensions (`cicd extension`, experimental): [references/extensions.md](references/extensions.md)
|
|
28
28
|
- Copado Job Templates (`cicd template`, not data templates): [references/templates.md](references/templates.md)
|
|
29
29
|
- Copado environments, environment credentials, and browser authentication: [references/environments-and-credentials.md](references/environments-and-credentials.md)
|
|
30
|
-
- Pipelines, environment connections, stages, and stage connections: [references/pipelines.md](references/pipelines.md)
|
|
30
|
+
- Pipelines, automations, quality gates, extension configurations, environment connections, stages, and stage connections: [references/pipelines.md](references/pipelines.md)
|
|
31
31
|
- Slack notification subscriptions on a pipeline (`agentia_notification_configure` / CLI): [references/notifications.md](references/notifications.md)
|
|
32
32
|
- Release data templates, records, matching, sync, dataset files, and data commits: [references/data.md](references/data.md)
|
|
33
33
|
|
|
34
|
+
For **Org Intelligence** (read Salesforce metadata against a sandbox/developer org credential; prefer local files first, then the org; metadata only—not data, not edits), use the separate skill `agentia-metadata/SKILL.md` (`cicd metadata explore` / MCP `agentia_metadata_explore`). For the **Copado dependency graph**—including local DX `--path` and story/project-default context—use the same skill’s [metadata-dependency](../agentia-metadata/references/metadata-dependency.md) reference (`cicd metadata dependency list` / MCP `agentia_metadata_dependency_list`).
|
|
35
|
+
|
|
34
36
|
## General Rules
|
|
35
37
|
|
|
36
|
-
- When the user means the **current story**, **current user story**, **active story**, **story context**, or similar without giving an ID, resolve context first with `agentia cicd work get --json` (no positional story ID). Use the returned user story (`result`) for follow-up work—any fields the task needs (for example `id`, `name`, `title`, `status`, specs, pipeline or environment IDs), not only identifiers. If the command fails (for example no active work item from `work set`), report the CLI error to the user and stop; do not guess, list stories, or pick a substitute unless the user asks you to.
|
|
38
|
+
- When the user means the **current story**, **current user story**, **active story**, **story context**, or similar without giving an ID, resolve context first with `agentia cicd work get --json` (no positional story ID). Use the returned user story (`result`) for follow-up work—any fields the task needs (for example `id`, `name`, `title`, `status`, specs, pipeline or environment IDs, subscriber `customFields`), not only identifiers. If the command fails (for example no active work item from `work set`), report the CLI error to the user and stop; do not guess, list stories, or pick a substitute unless the user asks you to.
|
|
39
|
+
- User Story subscriber custom fields: read `result.customFields` from `work get` / MCP `agentia_work_get`. Write with CLI `--custom-field ApiName=value` (repeatable) or MCP `customFields: [{ apiName, value }]` on create/update. See [references/work.md](references/work.md#subscriber-custom-fields).
|
|
37
40
|
- Use Salesforce record IDs or generated names read from Copado. Do not invent story names, promotion IDs, job IDs, credential IDs, or pipeline IDs.
|
|
38
41
|
- Keep human output off stdout in JSON workflows. Prefer `--json`, then parse the result object.
|
|
39
42
|
- For local project work, keep the tracked working tree clean before commands that require it: `work set`, `work publish`, and `work submit`. If `work set` returns `status: "warning"`, show the message and do not assume a feature branch was created; branch keys are cleared and the work item id/name/title are still recorded in config.user.json.
|
|
@@ -41,7 +44,7 @@ Prefer Agentia MCP tools when they are available and match the task. Use CLI exa
|
|
|
41
44
|
- Treat `cicd function` as Copado Function definitions and runs. It is different from JobExecution (`cicd job`) and Job Templates (`cicd template`).
|
|
42
45
|
- Treat `cicd extension` as experimental git-hosted packaging of Functions/Templates (plus optional `force-app`). It is different from per-asset `cicd function` / `cicd template` upserts.
|
|
43
46
|
- Treat `cicd template` as Copado Job Templates via `/release/jobs/templates`. It is different from Release Data Templates (`cicd data template`).
|
|
44
|
-
- Treat `cicd work test` as local quality gates (`--local` is the default). It is different from CRT `testing
|
|
47
|
+
- Treat `cicd work test` as local quality gates (`--local` is the default). It is different from CRT `testing job run`.
|
|
45
48
|
- Treat `cicd work test apex` as the Apex test runner that local quality gates (`.agentia_quality_gates.*`) usually call. An empty `--apex-test-classes` list skips Salesforce CLI. It can also be invoked directly. It is different from CRT.
|
|
46
49
|
- Treat `auth` credentials as keychain/API credentials and `cicd credential` records as Copado environment credentials.
|
|
47
50
|
|
|
@@ -4,7 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
Use this reference for `agentia cicd environment ...`, `agentia cicd environment auth ...`, and `agentia cicd credential ...`.
|
|
6
6
|
|
|
7
|
-
`auth set --cicd` stores the API key used by the CLI. `cicd credential` lists, creates, or
|
|
7
|
+
`auth set --cicd` stores the API key used by the CLI. `cicd credential` lists, creates, updates, opens, or authenticates Copado environment credential records. They are different credential types.
|
|
8
|
+
|
|
9
|
+
## Named CICD Connections
|
|
10
|
+
|
|
11
|
+
Use a named connection when story lifecycle should stay on the default/production Copado org while function, template, or extension work targets a sandbox.
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
agentia auth set --cicd "$SANDBOX_KEY" --custom-url https://test.api.copado.com --connection sandbox --kind sandbox
|
|
15
|
+
agentia cicd function upsert MyFn --file ./fn.json --cicd-connection sandbox
|
|
16
|
+
agentia auth get --cicd --json
|
|
17
|
+
agentia auth unset --connection sandbox --yes
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- `--cicd-connection <name>` is available only on `agentia cicd ...` commands (and MCP `cicdConnection` on CICD tools). It does not appear on `ai`, `adv`, `testing`, or `auth`.
|
|
21
|
+
- `AGENTIA_CICD_CONNECTION=<name>` sets a session default for `cicd` commands without changing keychain storage.
|
|
22
|
+
- Do not combine a named connection with `AGENTIA_CICD_API_KEY` / `AGENTIA_CICD_BASE_URL`; the CLI errors instead of silently picking one.
|
|
23
|
+
- Connections tagged `--kind production` require confirmation (CLI TTY), `--yes`, or `AGENTIA_CICD_ALLOW_PRODUCTION=true` (required for MCP).
|
|
8
24
|
|
|
9
25
|
## Environment Commands
|
|
10
26
|
|
|
@@ -14,9 +30,9 @@ Use this reference for `agentia cicd environment ...`, `agentia cicd environment
|
|
|
14
30
|
| `environment get ID` | Inspect one environment | Read before updates, credential changes, or auth checks. |
|
|
15
31
|
| `environment create NAME` | Create an environment | Set `--type`; platform defaults to SFDX. |
|
|
16
32
|
| `environment update ID` | Sparse environment changes | Use only the fields the user wants changed. |
|
|
17
|
-
| `environment open [ID]` | Open environment
|
|
18
|
-
| `environment auth status ID` | Validate
|
|
19
|
-
| `environment auth web login ID` | Complete browser OAuth
|
|
33
|
+
| `environment open [ID]` | Open an environment | Uses the project default environment when ID is omitted. CLI-only navigation helper. |
|
|
34
|
+
| `environment auth status ID` | Validate auth for an environment credential | Auto-selects when possible; use `--credentialid` to disambiguate. |
|
|
35
|
+
| `environment auth web login ID` | Complete browser OAuth for an environment credential | CLI-only interactive browser flow. Supports bounded port and timeout flags. |
|
|
20
36
|
|
|
21
37
|
Examples:
|
|
22
38
|
|
|
@@ -26,33 +42,39 @@ agentia cicd environment get <environment-id> --json
|
|
|
26
42
|
agentia cicd environment auth status <environment-id> --credentialid <credential-id> --json
|
|
27
43
|
```
|
|
28
44
|
|
|
29
|
-
##
|
|
45
|
+
## Credential Commands
|
|
30
46
|
|
|
31
47
|
| Command | Use For | Notes |
|
|
32
48
|
| --- | --- | --- |
|
|
33
|
-
| `credential list` | Find credentials
|
|
49
|
+
| `credential list` | Find credentials across environments | Optional `--name`, `--page-size`, and `--cursor`. OAuth signatures are never returned. |
|
|
34
50
|
| `credential create` | Create a Copado environment credential | Requires `--environmentid` and `--name`; `--default` marks it default. |
|
|
35
|
-
| `credential update ID` | Update a Copado
|
|
51
|
+
| `credential update ID` | Update a Copado credential by ID | No environment flag; resolves environment/orgType from the credential. |
|
|
52
|
+
| `credential open ID` | Open a credential in the browser | CLI-only navigation helper. |
|
|
53
|
+
| `credential auth status ID` | Validate a specific credential | Derives the environment from GET `/corpus/credentials/{id}`. |
|
|
54
|
+
| `credential auth web login ID` | Browser OAuth for a specific credential | CLI-only; derives the environment from the credential. |
|
|
36
55
|
|
|
37
56
|
Examples:
|
|
38
57
|
|
|
39
58
|
```sh
|
|
40
|
-
agentia cicd credential list --
|
|
59
|
+
agentia cicd credential list --name CI --json
|
|
41
60
|
agentia cicd credential create --environmentid <environment-id> --name "CI User" --default --json
|
|
42
|
-
agentia cicd credential update <credential-id> --
|
|
61
|
+
agentia cicd credential update <credential-id> --no-default --json
|
|
62
|
+
agentia cicd credential open <credential-id>
|
|
63
|
+
agentia cicd credential auth status <credential-id> --json
|
|
64
|
+
agentia cicd credential auth web login <credential-id>
|
|
43
65
|
```
|
|
44
66
|
|
|
45
67
|
## When To Use Which Credential
|
|
46
68
|
|
|
47
69
|
- Use `agentia auth set --cicd` when the CLI cannot authenticate to the Copado CICD API.
|
|
48
|
-
- Use `agentia cicd credential list` to
|
|
70
|
+
- Use `agentia cicd credential list` to discover credentials without first knowing an environment ID.
|
|
49
71
|
- Use `agentia cicd credential create/update` when a Copado environment needs a Salesforce org credential record.
|
|
50
|
-
- Use `agentia cicd
|
|
72
|
+
- Use `agentia cicd credential auth web login` when you already know the credential ID; use `agentia cicd environment auth web login` when you want automatic/default selection within an environment.
|
|
51
73
|
- Use `agentia auth get --cicd --json` to inspect local CLI auth status without exposing the raw API key.
|
|
52
74
|
|
|
53
75
|
## Gotchas
|
|
54
76
|
|
|
55
77
|
- Custom Domain environments are not supported by the credential create/update helpers.
|
|
56
|
-
-
|
|
78
|
+
- Create still reads the environment first and copies its org type into the credential payload; update and credential-targeted auth derive environment/orgType from the global credential record.
|
|
57
79
|
- Environment authentication can auto-select only when there is a single obvious credential. Pass `--credentialid` if multiple credentials exist.
|
|
58
|
-
- Browser login
|
|
80
|
+
- Browser login and open are intentionally CLI-only; MCP exposes `agentia_credential_auth_status` for non-interactive validation.
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
# CICD Pipelines Reference
|
|
4
4
|
|
|
5
|
-
Use this reference for `agentia cicd pipeline ...`, `agentia cicd pipeline connection ...`, `agentia cicd pipeline stage-connection ...`, and `agentia cicd
|
|
5
|
+
Use this reference for `agentia cicd pipeline ...`, `agentia cicd pipeline automation ...`, `agentia cicd pipeline quality-gate ...`, `agentia cicd pipeline connection ...`, `agentia cicd pipeline stage-connection ...`, `agentia cicd stage ...`, and `agentia cicd extension-configuration ...`.
|
|
6
6
|
|
|
7
|
-
Pipeline connections, stage connections, and
|
|
7
|
+
Pipeline connections, stage connections, stages, automation rules, quality gates, and extension configurations are related but distinct. Read the target object before mutating it. These pipeline quality gates are not local `cicd work test` quality gates.
|
|
8
8
|
|
|
9
9
|
## Pipeline Commands
|
|
10
10
|
|
|
@@ -23,6 +23,38 @@ agentia cicd pipeline list --platform SFDX --active --json
|
|
|
23
23
|
agentia cicd pipeline get <pipeline-id> --json
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
## Automation Rules
|
|
27
|
+
|
|
28
|
+
| Command | Use For | Notes |
|
|
29
|
+
| --- | --- | --- |
|
|
30
|
+
| `pipeline automation list --pipeline-id <id>` | List automation rules | Filters: `--active`, `--name`, `--source-action`, `--execution-time`, `--include-system-generated`. |
|
|
31
|
+
| `pipeline automation get ID --pipeline-id <id>` | Inspect one rule | Accepts Id or name. |
|
|
32
|
+
| `pipeline automation create --pipeline-id <id> ...` | Create an inactive rule | Scopes: `promotion`, `backPromotion`, `environmentSyncBackPromotion`, `advanced`. Requires stage/environment targets; Scheduled needs `--cron-expression`. Optional `--filter-criteria` is a user-story filter: builder `{mode,logic,conditions[]}` or custom `{mode:"custom",whereCondition}`. |
|
|
33
|
+
| `pipeline automation update ID --pipeline-id <id> ...` | Sparse update | Scope is immutable after create. |
|
|
34
|
+
| `pipeline automation activate\|deactivate ID --pipeline-id <id>` | Lifecycle | Salesforce Id only (not name). Requires Copado Deployer ≥ 27.46. |
|
|
35
|
+
| `pipeline automation delete ID --pipeline-id <id> --yes` | Delete | Confirmation required for headless/JSON. |
|
|
36
|
+
| `pipeline automation open ID` | Open in browser | Salesforce Id only. |
|
|
37
|
+
|
|
38
|
+
## Quality Gates
|
|
39
|
+
|
|
40
|
+
| Command | Use For | Notes |
|
|
41
|
+
| --- | --- | --- |
|
|
42
|
+
| `pipeline quality-gate list --pipeline-id <id>` | List quality gates | Filters: `--name`, `--tool`. |
|
|
43
|
+
| `pipeline quality-gate get ID --pipeline-id <id>` | Inspect one gate | Aggregate may include multiple conditions. |
|
|
44
|
+
| `pipeline quality-gate create --pipeline-id <id> ...` | Create inactive gates | Requires an active `--extension-configuration-id` and targeting (`--entire-pipeline` or stage/environment Ids). Optional `--filter-criteria` is a metadata-change filter (`Name`/`Type`/`Directory` conditions + numbered `logic`). Create may return an array. |
|
|
45
|
+
| `pipeline quality-gate update ID --pipeline-id <id> ...` | Sparse update | Gate must be inactive; update uses singular `--stage-id` / `--environment-id`. |
|
|
46
|
+
| `pipeline quality-gate activate\|deactivate ID --pipeline-id <id>` | Lifecycle | Salesforce Id only. |
|
|
47
|
+
| `pipeline quality-gate delete ID --pipeline-id <id> --yes` | Delete inactive gate | Confirmation required for headless/JSON. |
|
|
48
|
+
| `pipeline quality-gate open ID` | Open in browser | Salesforce Id only. |
|
|
49
|
+
|
|
50
|
+
## Extension Configurations
|
|
51
|
+
|
|
52
|
+
| Command | Use For | Notes |
|
|
53
|
+
| --- | --- | --- |
|
|
54
|
+
| `extension-configuration list` | Discover configs | Filters: `--name`, `--tool`, `--test-type`, `--active`. |
|
|
55
|
+
| `extension-configuration get ID` | Inspect one config | Accepts Id or name. |
|
|
56
|
+
| `extension-configuration open ID` | Open in browser | Salesforce Id only. Create/update/activate are not exposed (gateway lifecycle currently unavailable). |
|
|
57
|
+
|
|
26
58
|
## Environment Connections
|
|
27
59
|
|
|
28
60
|
Pipeline connections define source-to-destination environment promotion edges.
|
|
@@ -59,5 +91,7 @@ Stages are reusable stage records. Stage connections order those stages inside a
|
|
|
59
91
|
- `pipeline connection` is an environment promotion edge.
|
|
60
92
|
- `pipeline stage-connection` is the ordered stage chain inside a pipeline.
|
|
61
93
|
- `cicd stage` manages stage records that can be referenced by stage connections.
|
|
94
|
+
- Pipeline `quality-gate` commands manage Copado pipeline quality gates. Local script gates remain under `cicd work test`.
|
|
95
|
+
- Activate/deactivate and open require Salesforce Ids, not names.
|
|
62
96
|
- Delete commands prompt in interactive mode. Use `--yes` only when the user already confirmed the destructive action.
|
|
63
97
|
- Repository setup is a neighboring domain: pipelines can reference `--git-repository-id`, but repository lifecycle commands are under `agentia cicd repository`.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# CICD Promotions Reference
|
|
4
4
|
|
|
5
|
-
Use this reference for `agentia cicd promotion ...`, `agentia cicd promotion conflict ...`, and `agentia cicd cloud promote`.
|
|
5
|
+
Use this reference for `agentia cicd promotion ...`, `agentia cicd promotion conflict ...`, `agentia cicd promotion queue ...`, and `agentia cicd cloud promote`.
|
|
6
6
|
|
|
7
7
|
## Entry Points
|
|
8
8
|
|
|
@@ -50,6 +50,15 @@ Use `--resume <job-execution-id>` to resume the original execution after conflic
|
|
|
50
50
|
|
|
51
51
|
Read conflict content before manual resolution. Do not invent resolved content; use the user's reviewed file or ask for confirmation.
|
|
52
52
|
|
|
53
|
+
## Queue Commands
|
|
54
|
+
|
|
55
|
+
| Command | Use For |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| `promotion queue list <promotion-id>` | Show the job queue holding the promotion's destination (status, step, owner, whether the user can manage the queue). |
|
|
58
|
+
| `promotion queue remove <promotion-id> --item <queue-item-id> --yes` | Remove queued items; needs the Manage Queue permission. Repeat `--item` for several. |
|
|
59
|
+
|
|
60
|
+
List first and take item IDs from the output. Removal is destructive: confirm the item with the user. A conflict error means the queue changed since the read; list again. MCP: `agentia_promotion_queue_list`, `agentia_promotion_queue_remove` (`itemIds`).
|
|
61
|
+
|
|
53
62
|
## Gotchas
|
|
54
63
|
|
|
55
64
|
- Promotion IDs are not User Story IDs. Use `cloud promote` if you only have the story.
|
|
@@ -21,7 +21,7 @@ agentia cicd work get --json
|
|
|
21
21
|
|
|
22
22
|
Omit the positional story ID only; keep `--json` so agents parse the `result` object. With MCP, call `agentia_work_get` without an `id` when available.
|
|
23
23
|
|
|
24
|
-
**On success:** treat the JSON `result` user story as the story context for the rest of the task. Reuse any returned fields later commands or flags need (identifiers, names, status, acceptance criteria, functional or technical specs, pipeline or environment references, and similar)—not only `id` and `name`.
|
|
24
|
+
**On success:** treat the JSON `result` user story as the story context for the rest of the task. Reuse any returned fields later commands or flags need (identifiers, names, status, acceptance criteria, functional or technical specs, pipeline or environment references, subscriber `customFields`, and similar)—not only `id` and `name`.
|
|
25
25
|
|
|
26
26
|
**On failure:** the CLI exits when no active work item is recorded (typical message: no active work item; suggestion to run `agentia cicd work set <id>`). Tell the user that no current story is set, include the sanitized error text, and stop. Do not invent an ID, run `work list` to pick one, or continue the original request until the user sets context or provides an explicit story ID.
|
|
27
27
|
|
|
@@ -61,9 +61,9 @@ Cloud commit checks Story readiness and source credentials before submission. Av
|
|
|
61
61
|
| Command | Use For | Notes |
|
|
62
62
|
| ------------------ | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
63
63
|
| `work list` | Find candidate stories | Use `--assigned-to-me`, `--status`, `--project-name`, `--name`, pagination flags. |
|
|
64
|
-
| `work get [ID]` | Read story details | ID is optional after `work set`. Human output redacts OAuth signatures; JSON preserves structured fields. `--committed-metadata` also includes the Story committed metadata list as `committedMetadata` in the result.
|
|
65
|
-
| `work create` | Create a story | Use `--title`, project/team/assignee/theme fields, specs, and short acceptance criteria. `--source-credential` sends `sourceEnvironment` as null so Salesforce assigns the environment.
|
|
66
|
-
| `work update [ID]` | Mutate story fields or status | ID is optional after `work set`. Acceptance criteria must be fewer than 255 chars. `--source-credential` sends `sourceEnvironment` as null.
|
|
64
|
+
| `work get [ID]` | Read story details | ID is optional after `work set`. Human output redacts OAuth signatures; JSON preserves structured fields including subscriber `customFields` (`apiName`, `label`, `type`, `value`, `displayValue`, `updateable`, optional `options`). `--committed-metadata` also includes the Story committed metadata list as `committedMetadata` in the result. |
|
|
65
|
+
| `work create` | Create a story | Use `--title`, project/team/assignee/theme fields, specs, and short acceptance criteria. Write subscriber fields with repeatable `--custom-field ApiName=value` (MCP: `customFields: [{ apiName, value }]`). `--source-credential` sends `sourceEnvironment` as null so Salesforce assigns the environment. |
|
|
66
|
+
| `work update [ID]` | Mutate story fields or status | ID is optional after `work set`. Acceptance criteria must be fewer than 255 chars. Same `--custom-field` / MCP `customFields` write shape as create; update-only custom fields is allowed. `--source-credential` sends `sourceEnvironment` as null. |
|
|
67
67
|
| `work set ID` | Mark active and prepare branch | Fetches the base branch and, when present, the remote feature branch; creates/checks out `feature/<story-name>` from `origin/feature` when that ref exists, otherwise from the base; stores local context. A gateway warning prints the message, skips git, clears branch keys, and records work-item id/name/title. Warns without PATCHing when the Story credential differs from the project default; use `work update --source-credential` to change it. `--none` clears every `last*` key and checks out `lastBaseBranch`, else `main`, else `master`. |
|
|
68
68
|
| `cloud commit` | Copado cloud metadata commit | Prefer `agentia cicd cloud commit`. Requires `--metadata-category` (or `c`/`category` per `--file` change); use `SFDX` for Salesforce metadata. For local Git work, use `git commit` then `work publish`. `cicd work commit` remains a hidden compatibility alias. |
|
|
69
69
|
| `work publish` | Publish local commits and register with Copado | Requires active story context and clean tree. Accepts `--permissions` and `--full-metadata` when nested detection is not enough. `work push` is a compatibility alias. |
|
|
@@ -72,7 +72,7 @@ Cloud commit checks Story readiness and source credentials before submission. Av
|
|
|
72
72
|
| `work submit` | Submit for review/validation or promote | Runs local gates unless `--skip-local-tests`; can push ahead commits. Waits up to 5 minutes when the last pending related job template contains `Commit`. `--skip-pull-request` skips opening the MR URL. `--done` and `--deploy` match Copado UI Submit when promoting. |
|
|
73
73
|
| `work done` | Compatibility alias | Prefer `work submit --done`; both promote and deploy rather than validate-only. |
|
|
74
74
|
| `work promote` | Experimental local promotion | Skips Quality Gates. Requires `enableLocalPromote: true` in `.agentia/config.json`. Merges `feature/<name>` into `promotion/<promotionName>`. Use `--backpromote --destination-branch` for back promotions; `--continue` after conflict resolution. |
|
|
75
|
-
| `work environment-sync` | Sync next-env commits onto dest/dev | Back-promotes every story behind the destination environment. Use `--destination-environment` or `--dev-org-branch
|
|
75
|
+
| `work environment-sync` | Sync next-env commits onto dest/dev | Back-promotes every story behind the destination environment. Use `--destination-environment` or `--dev-org-branch`. On conflict, stores `lastEnvironmentSyncName` so `--continue` / `--abort` can omit `--promotion` (cleared on success, abort, and `work set`). |
|
|
76
76
|
| `cloud promote` | Story-centric cloud promotion run | Use `--deploy` for merge and deploy. Prefer this over local `work promote` unless you explicitly enabled local promote. |
|
|
77
77
|
| `work status [ID]` | Check story and related executions | Useful after submit, promote, or commit jobs. |
|
|
78
78
|
| `work open [ID]` | Open story in browser | CLI-only browser helper. |
|
|
@@ -118,6 +118,21 @@ agentia cicd cloud promote <story-id> --deploy --json
|
|
|
118
118
|
|
|
119
119
|
Cloud commit and promotion wait for Job Executions by default and return nonzero on failed or timed-out jobs while preserving diagnostic IDs. If a Promotion reaches Merge Conflict, resolve it and resume the original execution; do not start a replacement run.
|
|
120
120
|
|
|
121
|
+
## Subscriber Custom Fields
|
|
122
|
+
|
|
123
|
+
Org-defined User Story fields (API names ending in `__c`, excluding packaged `copado__*`) are exposed as `customFields` on `work get` / create / update responses.
|
|
124
|
+
|
|
125
|
+
- **Read:** prefer `agentia cicd work get [id] --json` (or MCP `agentia_work_get`) and use `result.customFields`. Prefer `displayValue` when presenting values; use `apiName` when writing. Human output lists them under `Custom Fields:` after `Components:`.
|
|
126
|
+
- **Write (CLI):** repeatable `--custom-field ApiName=value` (string values; first `=` splits key/value). Duplicate `apiName` values are rejected.
|
|
127
|
+
- **Write (MCP):** `customFields: [{ "apiName": "JIRA_Key__c", "value": "CICD-1" }]` on `agentia_work_create` / `agentia_work_update` (values may be string, number, boolean, or null).
|
|
128
|
+
- Omit custom-field flags/args for packaged-only mutations. Unknown or non-updateable names fail with gateway `PLA-US-009`.
|
|
129
|
+
|
|
130
|
+
```sh
|
|
131
|
+
agentia cicd work create --title "Story" --custom-field JIRA_Key__c=CICD-1 --json
|
|
132
|
+
agentia cicd work update --custom-field Priority_Pick__c=P1 --json
|
|
133
|
+
agentia cicd work get --json
|
|
134
|
+
```
|
|
135
|
+
|
|
121
136
|
## Deployment Steps
|
|
122
137
|
|
|
123
138
|
Deployment steps are attached to a user story and run during promotion.
|