@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Args, Flags } from '@oclif/core';
|
|
2
2
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
|
-
import { testingProjectFlag, testingSecretInputFlags
|
|
3
|
+
import { testingProjectFlag, testingSecretInputFlags } from '../../../lib/testing-flags.js';
|
|
4
4
|
import { updateTestingVariable } from '../../../lib/testing-operations.js';
|
|
5
5
|
import { resolveTestingSecretInput } from '../../../lib/testing-secret-input.js';
|
|
6
6
|
import { formatTestingRecord, TESTING_VARIABLE_TYPES } from '../../../lib/testing-types.js';
|
|
@@ -28,6 +28,7 @@ export default class TestingVariableUpdate extends AgentiaCommand {
|
|
|
28
28
|
description: 'Mark the variable as not sensitive.',
|
|
29
29
|
}),
|
|
30
30
|
sensitive: Flags.boolean({
|
|
31
|
+
allowNo: true,
|
|
31
32
|
description: 'Mark the variable as sensitive.',
|
|
32
33
|
}),
|
|
33
34
|
type: Flags.option({
|
|
@@ -38,21 +39,13 @@ export default class TestingVariableUpdate extends AgentiaCommand {
|
|
|
38
39
|
};
|
|
39
40
|
async run() {
|
|
40
41
|
const { args, flags } = await this.parse(TestingVariableUpdate);
|
|
41
|
-
|
|
42
|
-
this.error('Use either --sensitive or --not-sensitive, not both.', { exit: 2 });
|
|
43
|
-
}
|
|
44
|
-
const value = await resolveTestingSecretInput({
|
|
45
|
-
noTrim: flags['no-trim'],
|
|
46
|
-
trim: flags.trim,
|
|
47
|
-
value: flags.value,
|
|
48
|
-
valueFile: flags['value-file'],
|
|
49
|
-
valueStdin: flags['value-stdin'],
|
|
50
|
-
}, { label: 'CRT variable value', required: false });
|
|
42
|
+
const value = await resolveTestingSecretInput(flags, { label: 'CRT variable value', required: false });
|
|
51
43
|
const result = await this.withSpinner('Updating testing variable', () => updateTestingVariable({
|
|
52
44
|
description: flags.description,
|
|
53
45
|
key: flags.key,
|
|
46
|
+
notSensitive: flags['not-sensitive'],
|
|
54
47
|
projectId: flags.project,
|
|
55
|
-
sensitive: flags.sensitive
|
|
48
|
+
sensitive: flags.sensitive,
|
|
56
49
|
type: flags.type,
|
|
57
50
|
value,
|
|
58
51
|
variableId: args.id,
|
package/dist/help.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Help } from '@oclif/core';
|
|
2
|
+
import { withLocalDevelopmentFlow } from './lib/work-local-development-flow.js';
|
|
3
|
+
const WORK_TOPIC = 'cicd:work';
|
|
4
|
+
/** Topic help for `cicd work` includes the shared local development flow under USAGE. */
|
|
5
|
+
export default class AgentiaHelp extends Help {
|
|
6
|
+
formatTopic(topic) {
|
|
7
|
+
if (topic.name !== WORK_TOPIC) {
|
|
8
|
+
return super.formatTopic(topic);
|
|
9
|
+
}
|
|
10
|
+
const summary = (topic.description ?? '').split('\n')[0] || 'Manage Copado user stories';
|
|
11
|
+
return super.formatTopic({
|
|
12
|
+
...topic,
|
|
13
|
+
description: withLocalDevelopmentFlow(summary),
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=help.js.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { confirm } from '@inquirer/prompts';
|
|
2
|
+
import { assertValidCicdConnectionName, CICD_ALLOW_PRODUCTION_ENV, clearProcessCicdConnectionOverride, formatCicdConnectionLabel, getCicdNamedConnection, parseCicdConnectionFromArgv, productionWritesAllowed, setProcessCicdConnectionOverride, setProcessProductionConnectionConfirmed, } from '../../lib/cicd-connection.js';
|
|
3
|
+
import { isJsonOutputRequested } from '../../lib/version-warning.js';
|
|
4
|
+
const hook = async function ({ argv, config, id }) {
|
|
5
|
+
clearProcessCicdConnectionOverride();
|
|
6
|
+
// Only CICD topic commands use named CICD connection overrides.
|
|
7
|
+
if (id === undefined || !id.startsWith('cicd')) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
let connectionName;
|
|
11
|
+
try {
|
|
12
|
+
connectionName = parseCicdConnectionFromArgv(argv);
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
this.error(error instanceof Error ? error.message : String(error), { exit: 2 });
|
|
16
|
+
}
|
|
17
|
+
if (connectionName === undefined) {
|
|
18
|
+
const fromEnv = process.env.AGENTIA_CICD_CONNECTION?.trim();
|
|
19
|
+
if (fromEnv !== undefined && fromEnv.length > 0) {
|
|
20
|
+
try {
|
|
21
|
+
connectionName = assertValidCicdConnectionName(fromEnv);
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
this.error(error instanceof Error ? error.message : String(error), { exit: 2 });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if (connectionName === undefined) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
setProcessCicdConnectionOverride(connectionName);
|
|
32
|
+
const connection = getCicdNamedConnection(connectionName);
|
|
33
|
+
if (connection === undefined) {
|
|
34
|
+
return this.error(`CICD connection "${connectionName}" is not configured. Run \`agentia auth set --cicd <key> --connection ${connectionName} [--region <region> | --custom-url <url>]\`.`, { exit: 2 });
|
|
35
|
+
}
|
|
36
|
+
const label = formatCicdConnectionLabel(connection);
|
|
37
|
+
if (!isJsonOutputRequested(argv, config.scopedEnvVar('CONTENT_TYPE'))) {
|
|
38
|
+
this.log(`CICD connection: ${label}`);
|
|
39
|
+
}
|
|
40
|
+
if (connection.kind !== 'production') {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (productionWritesAllowed(argv)) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (isJsonOutputRequested(argv, config.scopedEnvVar('CONTENT_TYPE')) || !process.stdin.isTTY) {
|
|
47
|
+
return this.error(`CICD connection "${connection.name}" is tagged production. Re-run with --yes, or set ${CICD_ALLOW_PRODUCTION_ENV}=true.`, { exit: 2 });
|
|
48
|
+
}
|
|
49
|
+
const accepted = await confirm({
|
|
50
|
+
default: false,
|
|
51
|
+
message: `Target CICD connection is production (${connection.name} @ ${connection.baseUrl}). Continue?`,
|
|
52
|
+
});
|
|
53
|
+
if (!accepted) {
|
|
54
|
+
return this.error('Cancelled. No CICD gateway requests were made.', { exit: 1 });
|
|
55
|
+
}
|
|
56
|
+
setProcessProductionConnectionConfirmed(true);
|
|
57
|
+
};
|
|
58
|
+
export default hook;
|
|
59
|
+
//# sourceMappingURL=cicd-connection.js.map
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Command, Errors, ux } from '@oclif/core';
|
|
2
2
|
import { format } from 'node:util';
|
|
3
|
-
import { createTransactionId, runWithGatewayTransactionContext } from './cicd-gateway.js';
|
|
3
|
+
import { createTransactionId, getGatewayClientOrigin, getGatewayTransactionOrigin, runWithGatewayTransactionContext, } from './cicd-gateway.js';
|
|
4
4
|
import { colorizeCliSeverityError, colorizeCliSeverityText } from './cli-severity-color.js';
|
|
5
|
-
import {
|
|
5
|
+
import { COMMAND_HISTORY_TEXT_MAX_BYTES } from './command-history-sanitization.js';
|
|
6
|
+
import { recordCommandHistory } from './command-history.js';
|
|
7
|
+
import { isCommandOutputCaptureActive, runWithCommandOutputCapture, runWithoutCommandOutputCapture, } from './command-output-buffer.js';
|
|
6
8
|
import { rememberIdeCommandError } from './ide-command-events.js';
|
|
7
9
|
import { redactErrorMessage, redactSecrets } from './secret-redaction.js';
|
|
8
10
|
const TRANSACTION_ID_REPORTED = Symbol('agentiaTransactionIdReported');
|
|
@@ -49,13 +51,40 @@ export function formatElapsedSecondsMessage(seconds) {
|
|
|
49
51
|
export class AgentiaCommand extends Command {
|
|
50
52
|
static enableJsonFlag = true;
|
|
51
53
|
static experimental = false;
|
|
54
|
+
commandClientOrigin;
|
|
55
|
+
commandExecutionId;
|
|
56
|
+
commandHistoryCapture;
|
|
57
|
+
commandHistoryError;
|
|
58
|
+
commandHistoryResult;
|
|
59
|
+
commandHistoryStartedAtMs;
|
|
60
|
+
commandHistoryWritten = false;
|
|
52
61
|
commandTransactionId;
|
|
53
62
|
async _run() {
|
|
54
63
|
const transactionId = createTransactionId();
|
|
64
|
+
this.commandClientOrigin = getGatewayTransactionOrigin() ?? getGatewayClientOrigin();
|
|
65
|
+
this.commandExecutionId = createTransactionId();
|
|
66
|
+
this.commandHistoryStartedAtMs = Date.now();
|
|
55
67
|
this.commandTransactionId = transactionId;
|
|
56
|
-
return runWithGatewayTransactionContext({ origin:
|
|
68
|
+
return runWithGatewayTransactionContext({ origin: this.commandClientOrigin, referer: this.id, transactionId }, async () => {
|
|
69
|
+
let caught;
|
|
70
|
+
try {
|
|
71
|
+
const result = await this.runWithHistoryCapture(() => super._run());
|
|
72
|
+
if (this.commandHistoryError === undefined)
|
|
73
|
+
this.commandHistoryResult = result;
|
|
74
|
+
return result;
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
caught = error instanceof Error ? error : new Error(String(error));
|
|
78
|
+
this.commandHistoryError ??= caught;
|
|
79
|
+
throw error;
|
|
80
|
+
}
|
|
81
|
+
finally {
|
|
82
|
+
await this.recordCommandHistoryOnce(this.commandHistoryError ?? caught);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
57
85
|
}
|
|
58
86
|
async catch(error) {
|
|
87
|
+
this.commandHistoryError = error;
|
|
59
88
|
this.reportHumanErrorTransactionId(error);
|
|
60
89
|
if (!this.jsonEnabled()) {
|
|
61
90
|
colorizeCliSeverityError(error, 'error');
|
|
@@ -116,6 +145,7 @@ export class AgentiaCommand extends Command {
|
|
|
116
145
|
};
|
|
117
146
|
}
|
|
118
147
|
toSuccessJson(result) {
|
|
148
|
+
this.commandHistoryResult = result;
|
|
119
149
|
const warnings = this.jsonWarnings(result);
|
|
120
150
|
return {
|
|
121
151
|
result,
|
|
@@ -141,14 +171,14 @@ export class AgentiaCommand extends Command {
|
|
|
141
171
|
}
|
|
142
172
|
return action();
|
|
143
173
|
}
|
|
144
|
-
ux.action.start(message);
|
|
174
|
+
runWithoutCommandOutputCapture(() => ux.action.start(message));
|
|
145
175
|
try {
|
|
146
176
|
const result = await action();
|
|
147
|
-
ux.action.stop();
|
|
177
|
+
runWithoutCommandOutputCapture(() => ux.action.stop());
|
|
148
178
|
return result;
|
|
149
179
|
}
|
|
150
180
|
catch (error) {
|
|
151
|
-
ux.action.stop(ux.colorize('red', 'failed'));
|
|
181
|
+
runWithoutCommandOutputCapture(() => ux.action.stop(ux.colorize('red', 'failed')));
|
|
152
182
|
throw error;
|
|
153
183
|
}
|
|
154
184
|
}
|
|
@@ -162,6 +192,25 @@ export class AgentiaCommand extends Command {
|
|
|
162
192
|
];
|
|
163
193
|
return [...new Set(warnings)];
|
|
164
194
|
}
|
|
195
|
+
async recordCommandHistoryOnce(error) {
|
|
196
|
+
if (this.commandHistoryWritten)
|
|
197
|
+
return;
|
|
198
|
+
this.commandHistoryWritten = true;
|
|
199
|
+
const capture = this.commandHistoryCapture;
|
|
200
|
+
await recordCommandHistory({
|
|
201
|
+
argv: this.argv,
|
|
202
|
+
clientOrigin: this.commandClientOrigin,
|
|
203
|
+
cliVersion: this.config.version,
|
|
204
|
+
commandId: this.id ?? '',
|
|
205
|
+
error,
|
|
206
|
+
executionId: this.commandExecutionId,
|
|
207
|
+
logs: capture?.events,
|
|
208
|
+
result: this.commandHistoryResult,
|
|
209
|
+
startedAtMs: this.commandHistoryStartedAtMs,
|
|
210
|
+
transactionId: this.commandTransactionId,
|
|
211
|
+
truncatedStreams: capture?.truncatedStreams,
|
|
212
|
+
});
|
|
213
|
+
}
|
|
165
214
|
reportHumanErrorTransactionId(error) {
|
|
166
215
|
if (this.jsonEnabled() || this.commandTransactionId === undefined) {
|
|
167
216
|
return;
|
|
@@ -180,5 +229,19 @@ export class AgentiaCommand extends Command {
|
|
|
180
229
|
const { warnings } = result;
|
|
181
230
|
return Array.isArray(warnings) ? warnings.filter((warning) => typeof warning === 'string') : [];
|
|
182
231
|
}
|
|
232
|
+
async runWithHistoryCapture(action) {
|
|
233
|
+
const capture = await runWithCommandOutputCapture(action, {
|
|
234
|
+
captureVisibleToCommand: false,
|
|
235
|
+
forwardStderr: true,
|
|
236
|
+
forwardStdout: true,
|
|
237
|
+
maxBytes: COMMAND_HISTORY_TEXT_MAX_BYTES,
|
|
238
|
+
onCapture: (captured) => {
|
|
239
|
+
this.commandHistoryCapture = captured;
|
|
240
|
+
},
|
|
241
|
+
tail: true,
|
|
242
|
+
trackEvents: true,
|
|
243
|
+
});
|
|
244
|
+
return capture.result;
|
|
245
|
+
}
|
|
183
246
|
}
|
|
184
247
|
//# sourceMappingURL=agentia-command.js.map
|
package/dist/lib/ai-types.js
CHANGED
|
@@ -2,6 +2,7 @@ import {modules} from './runtime.js';
|
|
|
2
2
|
const AI_ASK_AGENTS = modules["ai-types.js"]["AI_ASK_AGENTS"]
|
|
3
3
|
const AI_CHAT_AGENTS = modules["ai-types.js"]["AI_CHAT_AGENTS"]
|
|
4
4
|
const AI_CICD_SYNC_AGENTS = modules["ai-types.js"]["AI_CICD_SYNC_AGENTS"]
|
|
5
|
+
const AI_DEFAULT_AGENT = modules["ai-types.js"]["AI_DEFAULT_AGENT"]
|
|
5
6
|
const AI_WORKSPACE_CAPABILITIES = modules["ai-types.js"]["AI_WORKSPACE_CAPABILITIES"]
|
|
6
7
|
const AI_WORKSPACE_MEMBER_PERMISSIONS = modules["ai-types.js"]["AI_WORKSPACE_MEMBER_PERMISSIONS"]
|
|
7
8
|
const agentUsesCicdIntegration = modules["ai-types.js"]["agentUsesCicdIntegration"]
|
|
@@ -28,4 +29,4 @@ const validateAiContext = modules["ai-types.js"]["validateAiContext"]
|
|
|
28
29
|
const workspaceEndpoint = modules["ai-types.js"]["workspaceEndpoint"]
|
|
29
30
|
const workspaceMembersEndpoint = modules["ai-types.js"]["workspaceMembersEndpoint"]
|
|
30
31
|
const workspacesEndpoint = modules["ai-types.js"]["workspacesEndpoint"]
|
|
31
|
-
export {AI_ASK_AGENTS, AI_CHAT_AGENTS, AI_CICD_SYNC_AGENTS, AI_WORKSPACE_CAPABILITIES, AI_WORKSPACE_MEMBER_PERMISSIONS, agentUsesCicdIntegration, assistantIdForAgent, buildDialogueName, dialogueEndpoint, dialogueMessagesEndpoint, dialogueWorkspaceId, dialoguesEndpoint, enrichAiPrompt, integrationEndpoint, integrationsEndpoint, normalizeAiDatasetId, normalizeAiDialogue, normalizeAiIntegration, normalizeAiIntegrationList, normalizeAiOrganizationQuota, normalizeAiWorkspace, normalizeAiWorkspaceList, normalizeAiWorkspaceMember, normalizeAiWorkspaceSummary, quotaEndpoint, validateAiContext, workspaceEndpoint, workspaceMembersEndpoint, workspacesEndpoint};
|
|
32
|
+
export {AI_ASK_AGENTS, AI_CHAT_AGENTS, AI_CICD_SYNC_AGENTS, AI_DEFAULT_AGENT, AI_WORKSPACE_CAPABILITIES, AI_WORKSPACE_MEMBER_PERMISSIONS, agentUsesCicdIntegration, assistantIdForAgent, buildDialogueName, dialogueEndpoint, dialogueMessagesEndpoint, dialogueWorkspaceId, dialoguesEndpoint, enrichAiPrompt, integrationEndpoint, integrationsEndpoint, normalizeAiDatasetId, normalizeAiDialogue, normalizeAiIntegration, normalizeAiIntegrationList, normalizeAiOrganizationQuota, normalizeAiWorkspace, normalizeAiWorkspaceList, normalizeAiWorkspaceMember, normalizeAiWorkspaceSummary, quotaEndpoint, validateAiContext, workspaceEndpoint, workspaceMembersEndpoint, workspacesEndpoint};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const CICD_ALLOW_PRODUCTION_ENV = modules["cicd-connection.js"]["CICD_ALLOW_PRODUCTION_ENV"]
|
|
3
|
+
const CICD_CONNECTION_ENV = modules["cicd-connection.js"]["CICD_CONNECTION_ENV"]
|
|
4
|
+
const CICD_CONNECTION_NAME_REGEX = modules["cicd-connection.js"]["CICD_CONNECTION_NAME_REGEX"]
|
|
5
|
+
const activeCicdConnectionOverrideName = modules["cicd-connection.js"]["activeCicdConnectionOverrideName"]
|
|
6
|
+
const assertProductionConnectionAllowed = modules["cicd-connection.js"]["assertProductionConnectionAllowed"]
|
|
7
|
+
const assertValidCicdConnectionKind = modules["cicd-connection.js"]["assertValidCicdConnectionKind"]
|
|
8
|
+
const assertValidCicdConnectionName = modules["cicd-connection.js"]["assertValidCicdConnectionName"]
|
|
9
|
+
const clearProcessCicdConnectionOverride = modules["cicd-connection.js"]["clearProcessCicdConnectionOverride"]
|
|
10
|
+
const deleteCicdNamedConnection = modules["cicd-connection.js"]["deleteCicdNamedConnection"]
|
|
11
|
+
const formatCicdConnectionLabel = modules["cicd-connection.js"]["formatCicdConnectionLabel"]
|
|
12
|
+
const getCicdNamedConnection = modules["cicd-connection.js"]["getCicdNamedConnection"]
|
|
13
|
+
const listCicdNamedConnections = modules["cicd-connection.js"]["listCicdNamedConnections"]
|
|
14
|
+
const parseCicdConnectionFromArgv = modules["cicd-connection.js"]["parseCicdConnectionFromArgv"]
|
|
15
|
+
const productionWritesAllowed = modules["cicd-connection.js"]["productionWritesAllowed"]
|
|
16
|
+
const resolveNamedCicdConnectionCredentials = modules["cicd-connection.js"]["resolveNamedCicdConnectionCredentials"]
|
|
17
|
+
const runWithCicdConnectionOverride = modules["cicd-connection.js"]["runWithCicdConnectionOverride"]
|
|
18
|
+
const setProcessCicdConnectionOverride = modules["cicd-connection.js"]["setProcessCicdConnectionOverride"]
|
|
19
|
+
const setProcessProductionConnectionConfirmed = modules["cicd-connection.js"]["setProcessProductionConnectionConfirmed"]
|
|
20
|
+
const summarizeCicdNamedConnection = modules["cicd-connection.js"]["summarizeCicdNamedConnection"]
|
|
21
|
+
const upsertCicdNamedConnection = modules["cicd-connection.js"]["upsertCicdNamedConnection"]
|
|
22
|
+
export {CICD_ALLOW_PRODUCTION_ENV, CICD_CONNECTION_ENV, CICD_CONNECTION_NAME_REGEX, activeCicdConnectionOverrideName, assertProductionConnectionAllowed, assertValidCicdConnectionKind, assertValidCicdConnectionName, clearProcessCicdConnectionOverride, deleteCicdNamedConnection, formatCicdConnectionLabel, getCicdNamedConnection, listCicdNamedConnections, parseCicdConnectionFromArgv, productionWritesAllowed, resolveNamedCicdConnectionCredentials, runWithCicdConnectionOverride, setProcessCicdConnectionOverride, setProcessProductionConnectionConfirmed, summarizeCicdNamedConnection, upsertCicdNamedConnection};
|
package/dist/lib/cicd-gateway.js
CHANGED
|
@@ -25,6 +25,7 @@ const getActiveHttpRequestOptionsForTests = modules["cicd-gateway.js"]["getActiv
|
|
|
25
25
|
const getGatewayClientOrigin = modules["cicd-gateway.js"]["getGatewayClientOrigin"]
|
|
26
26
|
const getGatewayReferer = modules["cicd-gateway.js"]["getGatewayReferer"]
|
|
27
27
|
const getGatewayTransactionId = modules["cicd-gateway.js"]["getGatewayTransactionId"]
|
|
28
|
+
const getGatewayTransactionOrigin = modules["cicd-gateway.js"]["getGatewayTransactionOrigin"]
|
|
28
29
|
const isCicdWarningResponseBody = modules["cicd-gateway.js"]["isCicdWarningResponseBody"]
|
|
29
30
|
const isCicdWarningStatus = modules["cicd-gateway.js"]["isCicdWarningStatus"]
|
|
30
31
|
const maskUrlSecrets = modules["cicd-gateway.js"]["maskUrlSecrets"]
|
|
@@ -42,4 +43,4 @@ const scheduleGatewayEventLog = modules["cicd-gateway.js"]["scheduleGatewayEvent
|
|
|
42
43
|
const setGatewayEventLogSenderForTests = modules["cicd-gateway.js"]["setGatewayEventLogSenderForTests"]
|
|
43
44
|
const setHttpRequestForTests = modules["cicd-gateway.js"]["setHttpRequestForTests"]
|
|
44
45
|
const tryResolveCicdCredentials = modules["cicd-gateway.js"]["tryResolveCicdCredentials"]
|
|
45
|
-
export {ADV_GATEWAY_EVENT_SERVICE, AGENTIA_CLIENT_ORIGIN_ENV, AGENTIA_IDE_VERSION_ENV, AI_GATEWAY_EVENT_SERVICE, CICD_ENV, CRT_GATEWAY_EVENT_SERVICE, CicdGateway, CicdGatewayError, GATEWAY_EVENT_API_CALL, GATEWAY_EVENT_UNKNOWN, MCP_CICD_DEFAULT_REQUEST_TIMEOUT_MS, PLUGIN_GATEWAY_EVENT_SERVICE, buildGatewayEventLogPayload, cicdApiUrl, createTransactionId, discoverCicdBaseUrl, flushGatewayEventLogsForTests, formatCicdGatewayError, formatGatewayEventTimestamp, gatewayEventSource, gatewayRefererHeaders, gatewayUserAgent, getActiveHttpRequestOptionsForTests, getGatewayClientOrigin, getGatewayReferer, getGatewayTransactionId, isCicdWarningResponseBody, isCicdWarningStatus, maskUrlSecrets, maskedCicdApiUrl, normalizeCicdBaseUrl, parseRetryAfterHeader, resetGatewayEventLogSenderForTests, resetHttpRequestForTests, resolveAndValidateCicdEndpoint, resolveCicdCredentials, resolveCicdRequestTimeoutMs, resolveConfiguredCicdBaseUrl, runWithGatewayTransactionContext, scheduleGatewayEventLog, setGatewayEventLogSenderForTests, setHttpRequestForTests, tryResolveCicdCredentials};
|
|
46
|
+
export {ADV_GATEWAY_EVENT_SERVICE, AGENTIA_CLIENT_ORIGIN_ENV, AGENTIA_IDE_VERSION_ENV, AI_GATEWAY_EVENT_SERVICE, CICD_ENV, CRT_GATEWAY_EVENT_SERVICE, CicdGateway, CicdGatewayError, GATEWAY_EVENT_API_CALL, GATEWAY_EVENT_UNKNOWN, MCP_CICD_DEFAULT_REQUEST_TIMEOUT_MS, PLUGIN_GATEWAY_EVENT_SERVICE, buildGatewayEventLogPayload, cicdApiUrl, createTransactionId, discoverCicdBaseUrl, flushGatewayEventLogsForTests, formatCicdGatewayError, formatGatewayEventTimestamp, gatewayEventSource, gatewayRefererHeaders, gatewayUserAgent, getActiveHttpRequestOptionsForTests, getGatewayClientOrigin, getGatewayReferer, getGatewayTransactionId, getGatewayTransactionOrigin, isCicdWarningResponseBody, isCicdWarningStatus, maskUrlSecrets, maskedCicdApiUrl, normalizeCicdBaseUrl, parseRetryAfterHeader, resetGatewayEventLogSenderForTests, resetHttpRequestForTests, resolveAndValidateCicdEndpoint, resolveCicdCredentials, resolveCicdRequestTimeoutMs, resolveConfiguredCicdBaseUrl, runWithGatewayTransactionContext, scheduleGatewayEventLog, setGatewayEventLogSenderForTests, setHttpRequestForTests, tryResolveCicdCredentials};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const CLAUDE_AGENTIA_MCP_ENTRY = modules["claude-mcp-config.js"]["CLAUDE_AGENTIA_MCP_ENTRY"]
|
|
3
|
+
const enableClaudeProjectServer = modules["claude-mcp-config.js"]["enableClaudeProjectServer"]
|
|
4
|
+
const findCurrentClaudeAgentiaMcpServer = modules["claude-mcp-config.js"]["findCurrentClaudeAgentiaMcpServer"]
|
|
5
|
+
const getClaudeMcpStatus = modules["claude-mcp-config.js"]["getClaudeMcpStatus"]
|
|
6
|
+
const inspectClaudeMcpStatus = modules["claude-mcp-config.js"]["inspectClaudeMcpStatus"]
|
|
7
|
+
const isCurrentClaudeAgentiaMcpEntry = modules["claude-mcp-config.js"]["isCurrentClaudeAgentiaMcpEntry"]
|
|
8
|
+
const localClaudeMcpPath = modules["claude-mcp-config.js"]["localClaudeMcpPath"]
|
|
9
|
+
const localClaudeSettingsPath = modules["claude-mcp-config.js"]["localClaudeSettingsPath"]
|
|
10
|
+
const readClaudeMcpDocument = modules["claude-mcp-config.js"]["readClaudeMcpDocument"]
|
|
11
|
+
const readClaudeSettingsDocument = modules["claude-mcp-config.js"]["readClaudeSettingsDocument"]
|
|
12
|
+
const resetClaudeMcpDepsForTests = modules["claude-mcp-config.js"]["resetClaudeMcpDepsForTests"]
|
|
13
|
+
const setClaudeMcpDepsForTests = modules["claude-mcp-config.js"]["setClaudeMcpDepsForTests"]
|
|
14
|
+
const upsertAgentiaClaudeMcp = modules["claude-mcp-config.js"]["upsertAgentiaClaudeMcp"]
|
|
15
|
+
export {CLAUDE_AGENTIA_MCP_ENTRY, enableClaudeProjectServer, findCurrentClaudeAgentiaMcpServer, getClaudeMcpStatus, inspectClaudeMcpStatus, isCurrentClaudeAgentiaMcpEntry, localClaudeMcpPath, localClaudeSettingsPath, readClaudeMcpDocument, readClaudeSettingsDocument, resetClaudeMcpDepsForTests, setClaudeMcpDepsForTests, upsertAgentiaClaudeMcp};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const COMMAND_HISTORY_RESULT_MAX_BYTES = modules["command-history-sanitization.js"]["COMMAND_HISTORY_RESULT_MAX_BYTES"]
|
|
3
|
+
const COMMAND_HISTORY_TEXT_MAX_BYTES = modules["command-history-sanitization.js"]["COMMAND_HISTORY_TEXT_MAX_BYTES"]
|
|
4
|
+
const commandHistoryLogsText = modules["command-history-sanitization.js"]["commandHistoryLogsText"]
|
|
5
|
+
const sanitizeCommandHistoryLogs = modules["command-history-sanitization.js"]["sanitizeCommandHistoryLogs"]
|
|
6
|
+
const sanitizeCommandHistoryParameters = modules["command-history-sanitization.js"]["sanitizeCommandHistoryParameters"]
|
|
7
|
+
const sanitizeCommandHistoryResult = modules["command-history-sanitization.js"]["sanitizeCommandHistoryResult"]
|
|
8
|
+
const sanitizeCommandHistoryText = modules["command-history-sanitization.js"]["sanitizeCommandHistoryText"]
|
|
9
|
+
export {COMMAND_HISTORY_RESULT_MAX_BYTES, COMMAND_HISTORY_TEXT_MAX_BYTES, commandHistoryLogsText, sanitizeCommandHistoryLogs, sanitizeCommandHistoryParameters, sanitizeCommandHistoryResult, sanitizeCommandHistoryText};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const COMMAND_HISTORY_DEFAULT_LIST_LIMIT = modules["command-history.js"]["COMMAND_HISTORY_DEFAULT_LIST_LIMIT"]
|
|
3
|
+
const COMMAND_HISTORY_LIMIT = modules["command-history.js"]["COMMAND_HISTORY_LIMIT"]
|
|
4
|
+
const clearCommandHistory = modules["command-history.js"]["clearCommandHistory"]
|
|
5
|
+
const commandHistoryPath = modules["command-history.js"]["commandHistoryPath"]
|
|
6
|
+
const readCommandHistory = modules["command-history.js"]["readCommandHistory"]
|
|
7
|
+
const recordCommandHistory = modules["command-history.js"]["recordCommandHistory"]
|
|
8
|
+
const recordMcpToolHistory = modules["command-history.js"]["recordMcpToolHistory"]
|
|
9
|
+
const setCommandHistoryRootForTests = modules["command-history.js"]["setCommandHistoryRootForTests"]
|
|
10
|
+
const shouldRecordCommandHistory = modules["command-history.js"]["shouldRecordCommandHistory"]
|
|
11
|
+
export {COMMAND_HISTORY_DEFAULT_LIST_LIMIT, COMMAND_HISTORY_LIMIT, clearCommandHistory, commandHistoryPath, readCommandHistory, recordCommandHistory, recordMcpToolHistory, setCommandHistoryRootForTests, shouldRecordCommandHistory};
|
|
@@ -6,10 +6,15 @@ const appendCommandOutputLine = modules["command-output-buffer.js"]["appendComma
|
|
|
6
6
|
const attachCapturedLogs = modules["command-output-buffer.js"]["attachCapturedLogs"]
|
|
7
7
|
const attachCapturedOutputLogs = modules["command-output-buffer.js"]["attachCapturedOutputLogs"]
|
|
8
8
|
const commandStdioCaptureOptions = modules["command-output-buffer.js"]["commandStdioCaptureOptions"]
|
|
9
|
+
const isAnyCommandOutputCaptureActive = modules["command-output-buffer.js"]["isAnyCommandOutputCaptureActive"]
|
|
9
10
|
const isCommandOutputCaptureActive = modules["command-output-buffer.js"]["isCommandOutputCaptureActive"]
|
|
11
|
+
const readCapturedCommandOutputSnapshot = modules["command-output-buffer.js"]["readCapturedCommandOutputSnapshot"]
|
|
10
12
|
const readCapturedCommandOutputText = modules["command-output-buffer.js"]["readCapturedCommandOutputText"]
|
|
11
13
|
const redactCommandOutput = modules["command-output-buffer.js"]["redactCommandOutput"]
|
|
12
14
|
const runWithCommandOutputCapture = modules["command-output-buffer.js"]["runWithCommandOutputCapture"]
|
|
15
|
+
const runWithoutCommandOutputCapture = modules["command-output-buffer.js"]["runWithoutCommandOutputCapture"]
|
|
13
16
|
const splitCommandOutputLines = modules["command-output-buffer.js"]["splitCommandOutputLines"]
|
|
17
|
+
const tailUtf8 = modules["command-output-buffer.js"]["tailUtf8"]
|
|
18
|
+
const truncateUtf8 = modules["command-output-buffer.js"]["truncateUtf8"]
|
|
14
19
|
const withCapturedCommandOutput = modules["command-output-buffer.js"]["withCapturedCommandOutput"]
|
|
15
|
-
export {COMMAND_OUTPUT_MAX_BYTES, MCP_STDIO_CAPTURE_OPTIONS, appendCommandOutput, appendCommandOutputLine, attachCapturedLogs, attachCapturedOutputLogs, commandStdioCaptureOptions, isCommandOutputCaptureActive, readCapturedCommandOutputText, redactCommandOutput, runWithCommandOutputCapture, splitCommandOutputLines, withCapturedCommandOutput};
|
|
20
|
+
export {COMMAND_OUTPUT_MAX_BYTES, MCP_STDIO_CAPTURE_OPTIONS, appendCommandOutput, appendCommandOutputLine, attachCapturedLogs, attachCapturedOutputLogs, commandStdioCaptureOptions, isAnyCommandOutputCaptureActive, isCommandOutputCaptureActive, readCapturedCommandOutputSnapshot, readCapturedCommandOutputText, redactCommandOutput, runWithCommandOutputCapture, runWithoutCommandOutputCapture, splitCommandOutputLines, tailUtf8, truncateUtf8, withCapturedCommandOutput};
|
|
@@ -4,9 +4,8 @@ const differingStoryCredentialWarning = modules["credential-sync.js"]["differing
|
|
|
4
4
|
const ensureAgentCicdIntegration = modules["credential-sync.js"]["ensureAgentCicdIntegration"]
|
|
5
5
|
const formatWorkSetEnvironmentLabel = modules["credential-sync.js"]["formatWorkSetEnvironmentLabel"]
|
|
6
6
|
const missingProjectDefaultCredentialWarning = modules["credential-sync.js"]["missingProjectDefaultCredentialWarning"]
|
|
7
|
-
const missingProjectDefaultWorkSetWarning = modules["credential-sync.js"]["missingProjectDefaultWorkSetWarning"]
|
|
8
7
|
const missingStoryCredentialWarning = modules["credential-sync.js"]["missingStoryCredentialWarning"]
|
|
9
8
|
const readProjectDefaultCredentialContext = modules["credential-sync.js"]["readProjectDefaultCredentialContext"]
|
|
10
9
|
const reconcileWorkSetCredential = modules["credential-sync.js"]["reconcileWorkSetCredential"]
|
|
11
10
|
const sanitizeWorkSetUserStory = modules["credential-sync.js"]["sanitizeWorkSetUserStory"]
|
|
12
|
-
export {clearCredentialSyncsForTests, differingStoryCredentialWarning, ensureAgentCicdIntegration, formatWorkSetEnvironmentLabel, missingProjectDefaultCredentialWarning,
|
|
11
|
+
export {clearCredentialSyncsForTests, differingStoryCredentialWarning, ensureAgentCicdIntegration, formatWorkSetEnvironmentLabel, missingProjectDefaultCredentialWarning, missingStoryCredentialWarning, readProjectDefaultCredentialContext, reconcileWorkSetCredential, sanitizeWorkSetUserStory};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {modules} from './runtime.js';
|
|
2
2
|
const DEFAULT_WORK_PUSH_RETRY_TIMEOUT_SECONDS = modules["defaults-store.js"]["DEFAULT_WORK_PUSH_RETRY_TIMEOUT_SECONDS"]
|
|
3
3
|
const clearCredentialSyncReceipt = modules["defaults-store.js"]["clearCredentialSyncReceipt"]
|
|
4
|
+
const clearLastEnvironmentSyncName = modules["defaults-store.js"]["clearLastEnvironmentSyncName"]
|
|
4
5
|
const clearLastKeysFromUserConfig = modules["defaults-store.js"]["clearLastKeysFromUserConfig"]
|
|
5
6
|
const clearUserContext = modules["defaults-store.js"]["clearUserContext"]
|
|
6
7
|
const getDefaultsStorePaths = modules["defaults-store.js"]["getDefaultsStorePaths"]
|
|
@@ -9,9 +10,11 @@ const migrateUserSettingsFromProjectConfig = modules["defaults-store.js"]["migra
|
|
|
9
10
|
const readCredentialSyncReceipt = modules["defaults-store.js"]["readCredentialSyncReceipt"]
|
|
10
11
|
const readDefaults = modules["defaults-store.js"]["readDefaults"]
|
|
11
12
|
const readEnableLocalPromote = modules["defaults-store.js"]["readEnableLocalPromote"]
|
|
13
|
+
const readGlobalConfigDocument = modules["defaults-store.js"]["readGlobalConfigDocument"]
|
|
12
14
|
const readLastApexTestClassesSelected = modules["defaults-store.js"]["readLastApexTestClassesSelected"]
|
|
13
15
|
const readLastBaseBranch = modules["defaults-store.js"]["readLastBaseBranch"]
|
|
14
16
|
const readLastDevOrgBranch = modules["defaults-store.js"]["readLastDevOrgBranch"]
|
|
17
|
+
const readLastEnvironmentSyncName = modules["defaults-store.js"]["readLastEnvironmentSyncName"]
|
|
15
18
|
const readLastFullMetadataSelected = modules["defaults-store.js"]["readLastFullMetadataSelected"]
|
|
16
19
|
const readLastPermissionSelected = modules["defaults-store.js"]["readLastPermissionSelected"]
|
|
17
20
|
const readLastPullRequestBaseUrl = modules["defaults-store.js"]["readLastPullRequestBaseUrl"]
|
|
@@ -28,10 +31,12 @@ const resolveDefaults = modules["defaults-store.js"]["resolveDefaults"]
|
|
|
28
31
|
const setDefaultsStorePathsForTests = modules["defaults-store.js"]["setDefaultsStorePathsForTests"]
|
|
29
32
|
const setDefaultsStoreProjectRoot = modules["defaults-store.js"]["setDefaultsStoreProjectRoot"]
|
|
30
33
|
const unsetDefaults = modules["defaults-store.js"]["unsetDefaults"]
|
|
34
|
+
const updateGlobalConfigDocument = modules["defaults-store.js"]["updateGlobalConfigDocument"]
|
|
31
35
|
const writeCredentialSyncReceipt = modules["defaults-store.js"]["writeCredentialSyncReceipt"]
|
|
32
36
|
const writeDefaults = modules["defaults-store.js"]["writeDefaults"]
|
|
33
37
|
const writeLastCommitSelections = modules["defaults-store.js"]["writeLastCommitSelections"]
|
|
38
|
+
const writeLastEnvironmentSyncName = modules["defaults-store.js"]["writeLastEnvironmentSyncName"]
|
|
34
39
|
const writeLastWorkSelection = modules["defaults-store.js"]["writeLastWorkSelection"]
|
|
35
40
|
const writeUpdateChannel = modules["defaults-store.js"]["writeUpdateChannel"]
|
|
36
41
|
const writeUserContext = modules["defaults-store.js"]["writeUserContext"]
|
|
37
|
-
export {DEFAULT_WORK_PUSH_RETRY_TIMEOUT_SECONDS, clearCredentialSyncReceipt, clearLastKeysFromUserConfig, clearUserContext, getDefaultsStorePaths, isValidUserContext, migrateUserSettingsFromProjectConfig, readCredentialSyncReceipt, readDefaults, readEnableLocalPromote, readLastApexTestClassesSelected, readLastBaseBranch, readLastDevOrgBranch, readLastFullMetadataSelected, readLastPermissionSelected, readLastPullRequestBaseUrl, readLastWorkItem, readLastWorkItemId, readLastWorkItemTitle, readSkipNestedMetadataDetection, readSkipPullRequest, readUpdateChannel, readUserContext, readWorkPushRetryTimeoutSeconds, resetDefaultsStorePathsForTests, resolveDefaults, setDefaultsStorePathsForTests, setDefaultsStoreProjectRoot, unsetDefaults, writeCredentialSyncReceipt, writeDefaults, writeLastCommitSelections, writeLastWorkSelection, writeUpdateChannel, writeUserContext};
|
|
42
|
+
export {DEFAULT_WORK_PUSH_RETRY_TIMEOUT_SECONDS, clearCredentialSyncReceipt, clearLastEnvironmentSyncName, clearLastKeysFromUserConfig, clearUserContext, getDefaultsStorePaths, isValidUserContext, migrateUserSettingsFromProjectConfig, readCredentialSyncReceipt, readDefaults, readEnableLocalPromote, readGlobalConfigDocument, readLastApexTestClassesSelected, readLastBaseBranch, readLastDevOrgBranch, readLastEnvironmentSyncName, readLastFullMetadataSelected, readLastPermissionSelected, readLastPullRequestBaseUrl, readLastWorkItem, readLastWorkItemId, readLastWorkItemTitle, readSkipNestedMetadataDetection, readSkipPullRequest, readUpdateChannel, readUserContext, readWorkPushRetryTimeoutSeconds, resetDefaultsStorePathsForTests, resolveDefaults, setDefaultsStorePathsForTests, setDefaultsStoreProjectRoot, unsetDefaults, updateGlobalConfigDocument, writeCredentialSyncReceipt, writeDefaults, writeLastCommitSelections, writeLastEnvironmentSyncName, writeLastWorkSelection, writeUpdateChannel, writeUserContext};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {modules} from './runtime.js';
|
|
2
|
+
const normalizeDependencyInputPath = modules["dependency-from-changes.js"]["normalizeDependencyInputPath"]
|
|
2
3
|
const resetGitChangedFilesForTests = modules["dependency-from-changes.js"]["resetGitChangedFilesForTests"]
|
|
3
4
|
const resolveChangedPath = modules["dependency-from-changes.js"]["resolveChangedPath"]
|
|
4
5
|
const resolvedSelectionsFromChangedFiles = modules["dependency-from-changes.js"]["resolvedSelectionsFromChangedFiles"]
|
|
6
|
+
const resolvedSelectionsFromPaths = modules["dependency-from-changes.js"]["resolvedSelectionsFromPaths"]
|
|
5
7
|
const selectionsFromChangedFiles = modules["dependency-from-changes.js"]["selectionsFromChangedFiles"]
|
|
6
8
|
const setGitChangedFilesForTests = modules["dependency-from-changes.js"]["setGitChangedFilesForTests"]
|
|
7
|
-
export {resetGitChangedFilesForTests, resolveChangedPath, resolvedSelectionsFromChangedFiles, selectionsFromChangedFiles, setGitChangedFilesForTests};
|
|
9
|
+
export {normalizeDependencyInputPath, resetGitChangedFilesForTests, resolveChangedPath, resolvedSelectionsFromChangedFiles, resolvedSelectionsFromPaths, selectionsFromChangedFiles, setGitChangedFilesForTests};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {modules} from './runtime.js';
|
|
2
2
|
const resetEnvironmentAuthStatusDepsForTests = modules["environment-auth-status.js"]["resetEnvironmentAuthStatusDepsForTests"]
|
|
3
|
+
const runCredentialAuthStatus = modules["environment-auth-status.js"]["runCredentialAuthStatus"]
|
|
3
4
|
const runEnvironmentAuthStatus = modules["environment-auth-status.js"]["runEnvironmentAuthStatus"]
|
|
4
5
|
const setEnvironmentAuthStatusDepsForTests = modules["environment-auth-status.js"]["setEnvironmentAuthStatusDepsForTests"]
|
|
5
|
-
export {resetEnvironmentAuthStatusDepsForTests, runEnvironmentAuthStatus, setEnvironmentAuthStatusDepsForTests};
|
|
6
|
+
export {resetEnvironmentAuthStatusDepsForTests, runCredentialAuthStatus, runEnvironmentAuthStatus, setEnvironmentAuthStatusDepsForTests};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {modules} from './runtime.js';
|
|
2
2
|
const DEFAULT_AUTH_TIMEOUT_SECONDS = modules["environment-auth.js"]["DEFAULT_AUTH_TIMEOUT_SECONDS"]
|
|
3
3
|
const resetEnvironmentWebLoginDepsForTests = modules["environment-auth.js"]["resetEnvironmentWebLoginDepsForTests"]
|
|
4
|
+
const runCredentialWebLogin = modules["environment-auth.js"]["runCredentialWebLogin"]
|
|
4
5
|
const runEnvironmentWebLogin = modules["environment-auth.js"]["runEnvironmentWebLogin"]
|
|
5
6
|
const setEnvironmentWebLoginDepsForTests = modules["environment-auth.js"]["setEnvironmentWebLoginDepsForTests"]
|
|
6
|
-
export {DEFAULT_AUTH_TIMEOUT_SECONDS, resetEnvironmentWebLoginDepsForTests, runEnvironmentWebLogin, setEnvironmentWebLoginDepsForTests};
|
|
7
|
+
export {DEFAULT_AUTH_TIMEOUT_SECONDS, resetEnvironmentWebLoginDepsForTests, runCredentialWebLogin, runEnvironmentWebLogin, setEnvironmentWebLoginDepsForTests};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {modules} from './runtime.js';
|
|
2
|
+
const CREDENTIAL_ENVIRONMENT_REQUIRED_MESSAGE = modules["environment-credential-flags.js"]["CREDENTIAL_ENVIRONMENT_REQUIRED_MESSAGE"]
|
|
2
3
|
const CUSTOM_DOMAIN_CREDENTIALS_UNSUPPORTED_MESSAGE = modules["environment-credential-flags.js"]["CUSTOM_DOMAIN_CREDENTIALS_UNSUPPORTED_MESSAGE"]
|
|
3
4
|
const ENVIRONMENT_TYPE_REQUIRED_MESSAGE = modules["environment-credential-flags.js"]["ENVIRONMENT_TYPE_REQUIRED_MESSAGE"]
|
|
4
5
|
const EnvironmentCredentialInputError = modules["environment-credential-flags.js"]["EnvironmentCredentialInputError"]
|
|
5
6
|
const buildCredentialCreatePayload = modules["environment-credential-flags.js"]["buildCredentialCreatePayload"]
|
|
7
|
+
const buildCredentialListFilters = modules["environment-credential-flags.js"]["buildCredentialListFilters"]
|
|
6
8
|
const buildCredentialUpdatePayload = modules["environment-credential-flags.js"]["buildCredentialUpdatePayload"]
|
|
7
9
|
const collectCredentialUpdateFlagKeys = modules["environment-credential-flags.js"]["collectCredentialUpdateFlagKeys"]
|
|
8
10
|
const credentialCreateFlags = modules["environment-credential-flags.js"]["credentialCreateFlags"]
|
|
@@ -10,4 +12,4 @@ const credentialEnvironmentIdFlag = modules["environment-credential-flags.js"]["
|
|
|
10
12
|
const credentialListFlags = modules["environment-credential-flags.js"]["credentialListFlags"]
|
|
11
13
|
const credentialUpdateFlags = modules["environment-credential-flags.js"]["credentialUpdateFlags"]
|
|
12
14
|
const validateCredentialName = modules["environment-credential-flags.js"]["validateCredentialName"]
|
|
13
|
-
export {CUSTOM_DOMAIN_CREDENTIALS_UNSUPPORTED_MESSAGE, ENVIRONMENT_TYPE_REQUIRED_MESSAGE, EnvironmentCredentialInputError, buildCredentialCreatePayload, buildCredentialUpdatePayload, collectCredentialUpdateFlagKeys, credentialCreateFlags, credentialEnvironmentIdFlag, credentialListFlags, credentialUpdateFlags, validateCredentialName};
|
|
15
|
+
export {CREDENTIAL_ENVIRONMENT_REQUIRED_MESSAGE, CUSTOM_DOMAIN_CREDENTIALS_UNSUPPORTED_MESSAGE, ENVIRONMENT_TYPE_REQUIRED_MESSAGE, EnvironmentCredentialInputError, buildCredentialCreatePayload, buildCredentialListFilters, buildCredentialUpdatePayload, collectCredentialUpdateFlagKeys, credentialCreateFlags, credentialEnvironmentIdFlag, credentialListFlags, credentialUpdateFlags, validateCredentialName};
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import {modules} from './runtime.js';
|
|
2
|
+
const CREDENTIAL_ENVIRONMENT_REQUIRED_MESSAGE = modules["environment-credential-operations.js"]["CREDENTIAL_ENVIRONMENT_REQUIRED_MESSAGE"]
|
|
2
3
|
const createEnvironmentCredential = modules["environment-credential-operations.js"]["createEnvironmentCredential"]
|
|
3
|
-
const
|
|
4
|
+
const fetchCredential = modules["environment-credential-operations.js"]["fetchCredential"]
|
|
5
|
+
const listCredentials = modules["environment-credential-operations.js"]["listCredentials"]
|
|
6
|
+
const normalizeCredentialsListPage = modules["environment-credential-operations.js"]["normalizeCredentialsListPage"]
|
|
4
7
|
const normalizeEnvironmentCredentials = modules["environment-credential-operations.js"]["normalizeEnvironmentCredentials"]
|
|
8
|
+
const resolveCredentialEnvironmentId = modules["environment-credential-operations.js"]["resolveCredentialEnvironmentId"]
|
|
9
|
+
const resolveCredentialOrgType = modules["environment-credential-operations.js"]["resolveCredentialOrgType"]
|
|
5
10
|
const resolveEnvironmentOrgType = modules["environment-credential-operations.js"]["resolveEnvironmentOrgType"]
|
|
6
11
|
const sanitizeCredentialListItem = modules["environment-credential-operations.js"]["sanitizeCredentialListItem"]
|
|
7
12
|
const sanitizeEnvironment = modules["environment-credential-operations.js"]["sanitizeEnvironment"]
|
|
13
|
+
const updateCredentialById = modules["environment-credential-operations.js"]["updateCredentialById"]
|
|
8
14
|
const updateEnvironmentCredential = modules["environment-credential-operations.js"]["updateEnvironmentCredential"]
|
|
9
|
-
export {createEnvironmentCredential,
|
|
15
|
+
export {CREDENTIAL_ENVIRONMENT_REQUIRED_MESSAGE, createEnvironmentCredential, fetchCredential, listCredentials, normalizeCredentialsListPage, normalizeEnvironmentCredentials, resolveCredentialEnvironmentId, resolveCredentialOrgType, resolveEnvironmentOrgType, sanitizeCredentialListItem, sanitizeEnvironment, updateCredentialById, updateEnvironmentCredential};
|
|
@@ -3,6 +3,8 @@ const DEFAULT_ENVIRONMENT_PLATFORM = modules["environment-types.js"]["DEFAULT_EN
|
|
|
3
3
|
const DEFAULT_ENVIRONMENT_TYPE = modules["environment-types.js"]["DEFAULT_ENVIRONMENT_TYPE"]
|
|
4
4
|
const ENVIRONMENT_LIST_FILTER_KEYS = modules["environment-types.js"]["ENVIRONMENT_LIST_FILTER_KEYS"]
|
|
5
5
|
const ENVIRONMENT_TYPES = modules["environment-types.js"]["ENVIRONMENT_TYPES"]
|
|
6
|
+
const credentialEndpoint = modules["environment-types.js"]["credentialEndpoint"]
|
|
7
|
+
const credentialsListEndpoint = modules["environment-types.js"]["credentialsListEndpoint"]
|
|
6
8
|
const environmentCredentialAuthUrlEndpoint = modules["environment-types.js"]["environmentCredentialAuthUrlEndpoint"]
|
|
7
9
|
const environmentCredentialEndpoint = modules["environment-types.js"]["environmentCredentialEndpoint"]
|
|
8
10
|
const environmentCredentialValidateEndpoint = modules["environment-types.js"]["environmentCredentialValidateEndpoint"]
|
|
@@ -11,4 +13,4 @@ const environmentEndpoint = modules["environment-types.js"]["environmentEndpoint
|
|
|
11
13
|
const environmentsListEndpoint = modules["environment-types.js"]["environmentsListEndpoint"]
|
|
12
14
|
const formatEnvironmentAuthStatus = modules["environment-types.js"]["formatEnvironmentAuthStatus"]
|
|
13
15
|
const formatEnvironmentDetail = modules["environment-types.js"]["formatEnvironmentDetail"]
|
|
14
|
-
export {DEFAULT_ENVIRONMENT_PLATFORM, DEFAULT_ENVIRONMENT_TYPE, ENVIRONMENT_LIST_FILTER_KEYS, ENVIRONMENT_TYPES, environmentCredentialAuthUrlEndpoint, environmentCredentialEndpoint, environmentCredentialValidateEndpoint, environmentCredentialsEndpoint, environmentEndpoint, environmentsListEndpoint, formatEnvironmentAuthStatus, formatEnvironmentDetail};
|
|
16
|
+
export {DEFAULT_ENVIRONMENT_PLATFORM, DEFAULT_ENVIRONMENT_TYPE, ENVIRONMENT_LIST_FILTER_KEYS, ENVIRONMENT_TYPES, credentialEndpoint, credentialsListEndpoint, environmentCredentialAuthUrlEndpoint, environmentCredentialEndpoint, environmentCredentialValidateEndpoint, environmentCredentialsEndpoint, environmentEndpoint, environmentsListEndpoint, formatEnvironmentAuthStatus, formatEnvironmentDetail};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const fetchExtensionConfiguration = modules["extension-configuration-ops.js"]["fetchExtensionConfiguration"]
|
|
3
|
+
const fetchExtensionConfigurations = modules["extension-configuration-ops.js"]["fetchExtensionConfigurations"]
|
|
4
|
+
export {fetchExtensionConfiguration, fetchExtensionConfigurations};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const sanitizeExtensionConfiguration = modules["extension-configuration-sanitize.js"]["sanitizeExtensionConfiguration"]
|
|
3
|
+
const sanitizeExtensionConfigurations = modules["extension-configuration-sanitize.js"]["sanitizeExtensionConfigurations"]
|
|
4
|
+
const sanitizePipelineQualityGate = modules["extension-configuration-sanitize.js"]["sanitizePipelineQualityGate"]
|
|
5
|
+
const sanitizePipelineQualityGateCondition = modules["extension-configuration-sanitize.js"]["sanitizePipelineQualityGateCondition"]
|
|
6
|
+
const sanitizePipelineQualityGates = modules["extension-configuration-sanitize.js"]["sanitizePipelineQualityGates"]
|
|
7
|
+
export {sanitizeExtensionConfiguration, sanitizeExtensionConfigurations, sanitizePipelineQualityGate, sanitizePipelineQualityGateCondition, sanitizePipelineQualityGates};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const extensionConfigurationEndpoint = modules["extension-configuration-types.js"]["extensionConfigurationEndpoint"]
|
|
3
|
+
const extensionConfigurationsEndpoint = modules["extension-configuration-types.js"]["extensionConfigurationsEndpoint"]
|
|
4
|
+
const formatExtensionConfigurationDetail = modules["extension-configuration-types.js"]["formatExtensionConfigurationDetail"]
|
|
5
|
+
const formatExtensionConfigurationTable = modules["extension-configuration-types.js"]["formatExtensionConfigurationTable"]
|
|
6
|
+
const normalizeExtensionConfiguration = modules["extension-configuration-types.js"]["normalizeExtensionConfiguration"]
|
|
7
|
+
const normalizeExtensionConfigurationsListPage = modules["extension-configuration-types.js"]["normalizeExtensionConfigurationsListPage"]
|
|
8
|
+
export {extensionConfigurationEndpoint, extensionConfigurationsEndpoint, formatExtensionConfigurationDetail, formatExtensionConfigurationTable, normalizeExtensionConfiguration, normalizeExtensionConfigurationsListPage};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const HELP_AGENT_INTERACTION_LIMIT = modules["help-agent-interaction-history.js"]["HELP_AGENT_INTERACTION_LIMIT"]
|
|
3
|
+
const HELP_AGENT_INTERACTION_TEXT_MAX_BYTES = modules["help-agent-interaction-history.js"]["HELP_AGENT_INTERACTION_TEXT_MAX_BYTES"]
|
|
4
|
+
const HELP_AGENT_INTERACTION_TTL_MS = modules["help-agent-interaction-history.js"]["HELP_AGENT_INTERACTION_TTL_MS"]
|
|
5
|
+
const clearHelpAgentInteractions = modules["help-agent-interaction-history.js"]["clearHelpAgentInteractions"]
|
|
6
|
+
const helpAgentInteractionHistoryPath = modules["help-agent-interaction-history.js"]["helpAgentInteractionHistoryPath"]
|
|
7
|
+
const readHelpAgentInteractions = modules["help-agent-interaction-history.js"]["readHelpAgentInteractions"]
|
|
8
|
+
const recordHelpAgentInteraction = modules["help-agent-interaction-history.js"]["recordHelpAgentInteraction"]
|
|
9
|
+
const setHelpAgentInteractionHistoryRootForTests = modules["help-agent-interaction-history.js"]["setHelpAgentInteractionHistoryRootForTests"]
|
|
10
|
+
export {HELP_AGENT_INTERACTION_LIMIT, HELP_AGENT_INTERACTION_TEXT_MAX_BYTES, HELP_AGENT_INTERACTION_TTL_MS, clearHelpAgentInteractions, helpAgentInteractionHistoryPath, readHelpAgentInteractions, recordHelpAgentInteraction, setHelpAgentInteractionHistoryRootForTests};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const getProxyAgent = modules["http-proxy.js"]["getProxyAgent"]
|
|
3
|
+
const isLoopbackHost = modules["http-proxy.js"]["isLoopbackHost"]
|
|
4
|
+
const isProxyConfigured = modules["http-proxy.js"]["isProxyConfigured"]
|
|
5
|
+
const logProxyVerboseOnce = modules["http-proxy.js"]["logProxyVerboseOnce"]
|
|
6
|
+
const maskProxyUrl = modules["http-proxy.js"]["maskProxyUrl"]
|
|
7
|
+
const proxyEndpointLabelForUrl = modules["http-proxy.js"]["proxyEndpointLabelForUrl"]
|
|
8
|
+
const resetProxyAgentsForTests = modules["http-proxy.js"]["resetProxyAgentsForTests"]
|
|
9
|
+
const resetProxyEnvForTests = modules["http-proxy.js"]["resetProxyEnvForTests"]
|
|
10
|
+
const resolveOutboundAgent = modules["http-proxy.js"]["resolveOutboundAgent"]
|
|
11
|
+
const resolveProxyForUrl = modules["http-proxy.js"]["resolveProxyForUrl"]
|
|
12
|
+
const setProxyEnvForTests = modules["http-proxy.js"]["setProxyEnvForTests"]
|
|
13
|
+
export {getProxyAgent, isLoopbackHost, isProxyConfigured, logProxyVerboseOnce, maskProxyUrl, proxyEndpointLabelForUrl, resetProxyAgentsForTests, resetProxyEnvForTests, resolveOutboundAgent, resolveProxyForUrl, setProxyEnvForTests};
|
package/dist/lib/mcp/ai-tools.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { runAiAsk } from '../ai-operations.js';
|
|
3
|
-
import { AI_ASK_AGENTS } from '../ai-types.js';
|
|
3
|
+
import { AI_ASK_AGENTS, AI_DEFAULT_AGENT } from '../ai-types.js';
|
|
4
4
|
import { safelyHandleTool } from './result.js';
|
|
5
5
|
async function aiAsk(args) {
|
|
6
6
|
const result = await runAiAsk({
|
|
7
|
-
agent: args.agent,
|
|
7
|
+
agent: args.agent ?? AI_DEFAULT_AGENT,
|
|
8
8
|
component: args.component,
|
|
9
9
|
credentialId: args.credentialId,
|
|
10
10
|
dialogue: args.dialogue,
|
|
@@ -25,7 +25,7 @@ export function registerAgentiaMcpAiTools(server) {
|
|
|
25
25
|
server.registerTool('agentia_ai_ask', {
|
|
26
26
|
description: 'Send a single-turn prompt to a Copado AI agent and return the buffered response.',
|
|
27
27
|
inputSchema: {
|
|
28
|
-
agent: z.enum(AI_ASK_AGENTS).describe('Target AI agent.'),
|
|
28
|
+
agent: z.enum(AI_ASK_AGENTS).optional().describe('Target AI agent. Defaults to orchestrate, which routes to the right specialist.'),
|
|
29
29
|
component: z.string().optional().describe('Metadata component name to include in prompt context.'),
|
|
30
30
|
credentialId: z.string().optional().describe('Copado credential ID that overrides the project default for workspace synchronization.'),
|
|
31
31
|
dialogue: z.string().optional().describe('Copado AI dialogue UUID to reuse.'),
|