@copado/agentia-cli 0.122.0-alpha.1 → 1.0.0-beta.1
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 +29 -0
- package/README.md +423 -269
- package/dist/commands/auth/get.js +45 -136
- package/dist/commands/auth/set.js +3 -3
- package/dist/commands/cicd/project/create.js +33 -0
- package/dist/commands/cicd/project/default/set.js +2 -0
- package/dist/commands/cicd/project/delete.js +33 -0
- package/dist/commands/cicd/project/list.js +5 -1
- package/dist/commands/cicd/project/update.js +35 -0
- package/dist/commands/cicd/promotion/job-step/update.js +58 -0
- package/dist/commands/cicd/repository/create.js +1 -1
- package/dist/commands/cicd/repository/update.js +1 -1
- package/dist/commands/cicd/work/submit.js +3 -0
- package/dist/commands/update.js +1 -1
- package/dist/lib/agentia-oauth-error-codes.js +5 -30
- package/dist/lib/ai-chat-session.js +3 -157
- package/dist/lib/ai-config.js +14 -140
- package/dist/lib/ai-flags.js +4 -12
- package/dist/lib/ai-gateway.js +6 -382
- package/dist/lib/ai-operations.js +4 -203
- package/dist/lib/ai-stream-parser.js +4 -59
- package/dist/lib/ai-terminal-renderer.js +7 -83
- package/dist/lib/ai-types.js +31 -162
- package/dist/lib/assert.js +3 -7
- package/dist/lib/auth-config.js +20 -516
- package/dist/lib/auth-profile.js +8 -112
- package/dist/lib/auth-status-format.js +6 -0
- package/dist/lib/cicd-gateway.js +43 -834
- package/dist/lib/cicd-region.js +5 -8
- package/dist/lib/cli-update.js +11 -84
- package/dist/lib/cli-version.js +17 -142
- package/dist/lib/command-output-buffer.js +15 -124
- package/dist/lib/credential-store.js +39 -160
- package/dist/lib/credential-sync.js +12 -256
- package/dist/lib/cursor-mcp-config.js +16 -174
- package/dist/lib/data-flags.js +8 -61
- package/dist/lib/data-types.js +30 -182
- package/dist/lib/debug.js +5 -25
- package/dist/lib/defaults-store.js +34 -587
- package/dist/lib/dependency-from-changes.js +7 -121
- package/dist/lib/deployment-step-config.js +7 -110
- package/dist/lib/deployment-step-types.js +26 -223
- package/dist/lib/deployment-step-wizard.js +5 -155
- package/dist/lib/env-file.js +5 -41
- package/dist/lib/environment-auth-status.js +5 -72
- package/dist/lib/environment-auth.js +6 -147
- package/dist/lib/environment-credential-flags.js +13 -73
- package/dist/lib/environment-credential-operations.js +9 -67
- package/dist/lib/environment-credential-selection.js +4 -60
- package/dist/lib/environment-flags.js +18 -165
- package/dist/lib/environment-types.js +14 -79
- package/dist/lib/format.js +4 -108
- package/dist/lib/function-flags.js +8 -199
- package/dist/lib/function-local-run.js +14 -148
- package/dist/lib/function-types.js +22 -179
- package/dist/lib/git-worktree.js +36 -306
- package/dist/lib/ide-command-events.js +25 -248
- package/dist/lib/job-types.js +26 -211
- package/dist/lib/list-pagination.js +16 -106
- package/dist/lib/local-gateway-config.js +8 -53
- package/dist/lib/local-metadata-paths.js +3 -77
- package/dist/lib/local-quality-gates.js +13 -133
- package/dist/lib/loopback-callback-server.js +9 -169
- package/dist/lib/mcp/command-id.js +1 -0
- package/dist/lib/mcp/tools.js +126 -0
- package/dist/lib/mcp/work-tools.js +12 -2
- package/dist/lib/metadata-common.js +27 -237
- package/dist/lib/metadata-refresh.js +8 -104
- package/dist/lib/navigation-open.js +3 -20
- package/dist/lib/navigation.js +7 -63
- package/dist/lib/nested-metadata-changes.js +9 -260
- package/dist/lib/nested-metadata-registry.js +12 -257
- package/dist/lib/notifications-configure.js +13 -101
- package/dist/lib/open-browser.js +6 -52
- package/dist/lib/pipeline-connection-flags.js +17 -309
- package/dist/lib/pipeline-flags.js +16 -154
- package/dist/lib/pipeline-stage-connection-flags.js +8 -46
- package/dist/lib/pipeline-types.js +18 -118
- package/dist/lib/project-default-flags.js +10 -88
- package/dist/lib/project-default-id.js +4 -29
- package/dist/lib/project-default-validation.js +7 -0
- package/dist/lib/project-defaults.js +8 -54
- package/dist/lib/project-flags.js +10 -22
- package/dist/lib/project-root.js +7 -65
- package/dist/lib/project-setup.js +13 -406
- package/dist/lib/project-types.js +9 -54
- package/dist/lib/promotion-conflicts.js +12 -83
- package/dist/lib/promotion-flags.js +4 -76
- package/dist/lib/promotion-job-steps.js +5 -0
- package/dist/lib/promotion-run.js +27 -481
- package/dist/lib/promotion-types.js +12 -144
- package/dist/lib/repository-flags.js +16 -236
- package/dist/lib/repository-types.js +16 -123
- package/dist/lib/runtime.js +1 -0
- package/dist/lib/salesforce-id.js +5 -42
- package/dist/lib/sdr-metadata-registry.generated.js +7 -6330
- package/dist/lib/sdr-path-resolver.js +4 -116
- package/dist/lib/secret-redaction.js +4 -24
- package/dist/lib/setup-prompts.js +4 -14
- package/dist/lib/setup-skills.js +16 -263
- package/dist/lib/setup-templates.js +12 -215
- package/dist/lib/setup-wizard.js +5 -593
- package/dist/lib/sf-org-context.js +7 -151
- package/dist/lib/stage-flags.js +7 -29
- package/dist/lib/stage-types.js +14 -69
- package/dist/lib/stock-quality-gates.js +5 -67
- package/dist/lib/testing-config.js +17 -175
- package/dist/lib/testing-confirmation.js +5 -17
- package/dist/lib/testing-data-command.js +8 -49
- package/dist/lib/testing-data-core.js +20 -208
- package/dist/lib/testing-data-export.js +6 -2
- package/dist/lib/testing-data-import.js +6 -2
- package/dist/lib/testing-data-io.js +12 -236
- package/dist/lib/testing-data-operations.js +10 -91
- package/dist/lib/testing-data-types.js +4 -3
- package/dist/lib/testing-flags.js +14 -312
- package/dist/lib/testing-gateway.js +15 -363
- package/dist/lib/testing-live-command.js +6 -56
- package/dist/lib/testing-live-endpoints.js +6 -34
- package/dist/lib/testing-live-history.js +7 -96
- package/dist/lib/testing-live-operations.js +19 -676
- package/dist/lib/testing-live-recorder.js +9 -122
- package/dist/lib/testing-live-robot.js +9 -158
- package/dist/lib/testing-live-state.js +5 -90
- package/dist/lib/testing-live-types.js +3 -2
- package/dist/lib/testing-operations.js +60 -1309
- package/dist/lib/testing-run-command.js +3 -94
- package/dist/lib/testing-sanitization.js +9 -135
- package/dist/lib/testing-schedule.js +5 -48
- package/dist/lib/testing-secret-input.js +4 -56
- package/dist/lib/testing-session.js +5 -82
- package/dist/lib/testing-types.js +54 -401
- package/dist/lib/testing-watch.js +4 -45
- package/dist/lib/user-context-types.js +3 -2
- package/dist/lib/user-context.js +3 -34
- package/dist/lib/user-types.js +6 -21
- package/dist/lib/var-replacement.js +14 -153
- package/dist/lib/version-warning.js +2 -1
- package/dist/lib/work-active.js +4 -23
- package/dist/lib/work-apex-test.js +12 -265
- package/dist/lib/work-branch-metadata.js +4 -40
- package/dist/lib/work-commit.js +23 -387
- package/dist/lib/work-defaults.js +5 -50
- package/dist/lib/work-done.js +5 -136
- package/dist/lib/work-flags.js +16 -258
- package/dist/lib/work-local-commit.js +7 -138
- package/dist/lib/work-local-run-tests.js +5 -61
- package/dist/lib/work-publish-command.js +5 -88
- package/dist/lib/work-push.js +25 -627
- package/dist/lib/work-set-none.js +4 -58
- package/dist/lib/work-set-selection.js +5 -46
- package/dist/lib/work-submit-wait.js +11 -0
- package/dist/lib/work-types.js +28 -336
- package/dist/lib/yaml-replacement.js +13 -132
- package/oclif.manifest.json +356 -14
- package/package.json +21 -86
- package/templates/skills/agentia-cicd/references/work.md +35 -28
- package/theme.json +12 -0
- package/bin/dev.cmd +0 -3
- package/bin/dev.js +0 -10
- package/dist/commands/ai/agent/ask.d.ts +0 -21
- package/dist/commands/ai/agent/ask.js.map +0 -1
- package/dist/commands/ai/agent/chat.d.ts +0 -21
- package/dist/commands/ai/agent/chat.js.map +0 -1
- package/dist/commands/ai/quota/get.d.ts +0 -10
- package/dist/commands/ai/quota/get.js.map +0 -1
- package/dist/commands/ai/workspace/create.d.ts +0 -13
- package/dist/commands/ai/workspace/create.js.map +0 -1
- package/dist/commands/ai/workspace/get.d.ts +0 -13
- package/dist/commands/ai/workspace/get.js.map +0 -1
- package/dist/commands/ai/workspace/list.d.ts +0 -12
- package/dist/commands/ai/workspace/list.js.map +0 -1
- package/dist/commands/ai/workspace/member/invite.d.ts +0 -15
- package/dist/commands/ai/workspace/member/invite.js.map +0 -1
- package/dist/commands/ai/workspace/member/list.d.ts +0 -16
- package/dist/commands/ai/workspace/member/list.js.map +0 -1
- package/dist/commands/ai/workspace/update.d.ts +0 -18
- package/dist/commands/ai/workspace/update.js.map +0 -1
- package/dist/commands/auth/get.d.ts +0 -47
- package/dist/commands/auth/get.js.map +0 -1
- package/dist/commands/auth/set.d.ts +0 -22
- package/dist/commands/auth/set.js.map +0 -1
- package/dist/commands/auth/unset.d.ts +0 -18
- package/dist/commands/auth/unset.js.map +0 -1
- package/dist/commands/cicd/credential/create.d.ts +0 -12
- package/dist/commands/cicd/credential/create.js.map +0 -1
- package/dist/commands/cicd/credential/list.d.ts +0 -12
- package/dist/commands/cicd/credential/list.js.map +0 -1
- package/dist/commands/cicd/credential/update.d.ts +0 -15
- package/dist/commands/cicd/credential/update.js.map +0 -1
- package/dist/commands/cicd/data/commit/create.d.ts +0 -11
- package/dist/commands/cicd/data/commit/create.js.map +0 -1
- package/dist/commands/cicd/data/commit/list.d.ts +0 -10
- package/dist/commands/cicd/data/commit/list.js.map +0 -1
- package/dist/commands/cicd/data/dataset-file/content.d.ts +0 -10
- package/dist/commands/cicd/data/dataset-file/content.js.map +0 -1
- package/dist/commands/cicd/data/dataset-file/list.d.ts +0 -10
- package/dist/commands/cicd/data/dataset-file/list.js.map +0 -1
- package/dist/commands/cicd/data/filter/add.d.ts +0 -13
- package/dist/commands/cicd/data/filter/add.js.map +0 -1
- package/dist/commands/cicd/data/filter/delete.d.ts +0 -10
- package/dist/commands/cicd/data/filter/delete.js.map +0 -1
- package/dist/commands/cicd/data/filter/list.d.ts +0 -10
- package/dist/commands/cicd/data/filter/list.js.map +0 -1
- package/dist/commands/cicd/data/filter/update.d.ts +0 -14
- package/dist/commands/cicd/data/filter/update.js.map +0 -1
- package/dist/commands/cicd/data/formula/create.d.ts +0 -16
- package/dist/commands/cicd/data/formula/create.js.map +0 -1
- package/dist/commands/cicd/data/formula/list.d.ts +0 -10
- package/dist/commands/cicd/data/formula/list.js.map +0 -1
- package/dist/commands/cicd/data/formula/update.d.ts +0 -18
- package/dist/commands/cicd/data/formula/update.js.map +0 -1
- package/dist/commands/cicd/data/records/match.d.ts +0 -11
- package/dist/commands/cicd/data/records/match.js.map +0 -1
- package/dist/commands/cicd/data/records/search.d.ts +0 -14
- package/dist/commands/cicd/data/records/search.js.map +0 -1
- package/dist/commands/cicd/data/sobject/fields.d.ts +0 -13
- package/dist/commands/cicd/data/sobject/fields.js.map +0 -1
- package/dist/commands/cicd/data/sobject/relationships.d.ts +0 -13
- package/dist/commands/cicd/data/sobject/relationships.js.map +0 -1
- package/dist/commands/cicd/data/sync/apply.d.ts +0 -11
- package/dist/commands/cicd/data/sync/apply.js.map +0 -1
- package/dist/commands/cicd/data/sync/preview-updates.d.ts +0 -11
- package/dist/commands/cicd/data/sync/preview-updates.js.map +0 -1
- package/dist/commands/cicd/data/template/convert-old.d.ts +0 -9
- package/dist/commands/cicd/data/template/convert-old.js.map +0 -1
- package/dist/commands/cicd/data/template/create.d.ts +0 -13
- package/dist/commands/cicd/data/template/create.js.map +0 -1
- package/dist/commands/cicd/data/template/delete.d.ts +0 -9
- package/dist/commands/cicd/data/template/delete.js.map +0 -1
- package/dist/commands/cicd/data/template/get-detail.d.ts +0 -10
- package/dist/commands/cicd/data/template/get-detail.js.map +0 -1
- package/dist/commands/cicd/data/template/get.d.ts +0 -10
- package/dist/commands/cicd/data/template/get.js.map +0 -1
- package/dist/commands/cicd/data/template/list.d.ts +0 -13
- package/dist/commands/cicd/data/template/list.js.map +0 -1
- package/dist/commands/cicd/data/template/open.d.ts +0 -12
- package/dist/commands/cicd/data/template/open.js.map +0 -1
- package/dist/commands/cicd/data/template/save-detail.d.ts +0 -13
- package/dist/commands/cicd/data/template/save-detail.js.map +0 -1
- package/dist/commands/cicd/environment/auth/status.d.ts +0 -13
- package/dist/commands/cicd/environment/auth/status.js.map +0 -1
- package/dist/commands/cicd/environment/auth/web/login.d.ts +0 -15
- package/dist/commands/cicd/environment/auth/web/login.js.map +0 -1
- package/dist/commands/cicd/environment/create.d.ts +0 -22
- package/dist/commands/cicd/environment/create.js.map +0 -1
- package/dist/commands/cicd/environment/get.d.ts +0 -10
- package/dist/commands/cicd/environment/get.js.map +0 -1
- package/dist/commands/cicd/environment/list.d.ts +0 -27
- package/dist/commands/cicd/environment/list.js.map +0 -1
- package/dist/commands/cicd/environment/open.d.ts +0 -15
- package/dist/commands/cicd/environment/open.js.map +0 -1
- package/dist/commands/cicd/environment/update.d.ts +0 -23
- package/dist/commands/cicd/environment/update.js.map +0 -1
- package/dist/commands/cicd/function/defaults.d.ts +0 -12
- package/dist/commands/cicd/function/defaults.js.map +0 -1
- package/dist/commands/cicd/function/delete.d.ts +0 -11
- package/dist/commands/cicd/function/delete.js.map +0 -1
- package/dist/commands/cicd/function/get.d.ts +0 -10
- package/dist/commands/cicd/function/get.js.map +0 -1
- package/dist/commands/cicd/function/list.d.ts +0 -16
- package/dist/commands/cicd/function/list.js.map +0 -1
- package/dist/commands/cicd/function/open.d.ts +0 -12
- package/dist/commands/cicd/function/open.js.map +0 -1
- package/dist/commands/cicd/function/result/get.d.ts +0 -10
- package/dist/commands/cicd/function/result/get.js.map +0 -1
- package/dist/commands/cicd/function/result/log/get.d.ts +0 -17
- package/dist/commands/cicd/function/result/log/get.js.map +0 -1
- package/dist/commands/cicd/function/run-local.d.ts +0 -17
- package/dist/commands/cicd/function/run-local.js.map +0 -1
- package/dist/commands/cicd/function/run.d.ts +0 -16
- package/dist/commands/cicd/function/run.js.map +0 -1
- package/dist/commands/cicd/function/upsert.d.ts +0 -27
- package/dist/commands/cicd/function/upsert.js.map +0 -1
- package/dist/commands/cicd/job/get.d.ts +0 -10
- package/dist/commands/cicd/job/get.js.map +0 -1
- package/dist/commands/cicd/job/kill.d.ts +0 -10
- package/dist/commands/cicd/job/kill.js.map +0 -1
- package/dist/commands/cicd/job/list.d.ts +0 -19
- package/dist/commands/cicd/job/list.js.map +0 -1
- package/dist/commands/cicd/job/log/get.d.ts +0 -18
- package/dist/commands/cicd/job/log/get.js.map +0 -1
- package/dist/commands/cicd/job/open.d.ts +0 -12
- package/dist/commands/cicd/job/open.js.map +0 -1
- package/dist/commands/cicd/job/pause.d.ts +0 -10
- package/dist/commands/cicd/job/pause.js.map +0 -1
- package/dist/commands/cicd/job/result-file/get.d.ts +0 -14
- package/dist/commands/cicd/job/result-file/get.js.map +0 -1
- package/dist/commands/cicd/job/result-file/list.d.ts +0 -10
- package/dist/commands/cicd/job/result-file/list.js.map +0 -1
- package/dist/commands/cicd/job/resume.d.ts +0 -10
- package/dist/commands/cicd/job/resume.js.map +0 -1
- package/dist/commands/cicd/job/run.d.ts +0 -13
- package/dist/commands/cicd/job/run.js.map +0 -1
- package/dist/commands/cicd/metadata/content/compare.d.ts +0 -40
- package/dist/commands/cicd/metadata/content/compare.js.map +0 -1
- package/dist/commands/cicd/metadata/content/get.d.ts +0 -39
- package/dist/commands/cicd/metadata/content/get.js.map +0 -1
- package/dist/commands/cicd/metadata/dependency/list.d.ts +0 -50
- package/dist/commands/cicd/metadata/dependency/list.js.map +0 -1
- package/dist/commands/cicd/metadata/index/compare.d.ts +0 -34
- package/dist/commands/cicd/metadata/index/compare.js.map +0 -1
- package/dist/commands/cicd/metadata/list.d.ts +0 -62
- package/dist/commands/cicd/metadata/list.js.map +0 -1
- package/dist/commands/cicd/metadata/refresh/deleted.d.ts +0 -13
- package/dist/commands/cicd/metadata/refresh/deleted.js.map +0 -1
- package/dist/commands/cicd/metadata/refresh/run.d.ts +0 -21
- package/dist/commands/cicd/metadata/refresh/run.js.map +0 -1
- package/dist/commands/cicd/metadata/refresh/status.d.ts +0 -12
- package/dist/commands/cicd/metadata/refresh/status.js.map +0 -1
- package/dist/commands/cicd/notification/configure.d.ts +0 -14
- package/dist/commands/cicd/notification/configure.js.map +0 -1
- package/dist/commands/cicd/pipeline/connection/create.d.ts +0 -19
- package/dist/commands/cicd/pipeline/connection/create.js.map +0 -1
- package/dist/commands/cicd/pipeline/connection/delete.d.ts +0 -15
- package/dist/commands/cicd/pipeline/connection/delete.js.map +0 -1
- package/dist/commands/cicd/pipeline/connection/list.d.ts +0 -10
- package/dist/commands/cicd/pipeline/connection/list.js.map +0 -1
- package/dist/commands/cicd/pipeline/connection/open.d.ts +0 -12
- package/dist/commands/cicd/pipeline/connection/open.js.map +0 -1
- package/dist/commands/cicd/pipeline/connection/update.d.ts +0 -19
- package/dist/commands/cicd/pipeline/connection/update.js.map +0 -1
- package/dist/commands/cicd/pipeline/create.d.ts +0 -19
- package/dist/commands/cicd/pipeline/create.js.map +0 -1
- package/dist/commands/cicd/pipeline/get.d.ts +0 -10
- package/dist/commands/cicd/pipeline/get.js.map +0 -1
- package/dist/commands/cicd/pipeline/list.d.ts +0 -15
- package/dist/commands/cicd/pipeline/list.js.map +0 -1
- package/dist/commands/cicd/pipeline/open.d.ts +0 -12
- package/dist/commands/cicd/pipeline/open.js.map +0 -1
- package/dist/commands/cicd/pipeline/stage-connection/create.d.ts +0 -12
- package/dist/commands/cicd/pipeline/stage-connection/create.js.map +0 -1
- package/dist/commands/cicd/pipeline/stage-connection/delete.d.ts +0 -16
- package/dist/commands/cicd/pipeline/stage-connection/delete.js.map +0 -1
- package/dist/commands/cicd/pipeline/stage-connection/list.d.ts +0 -10
- package/dist/commands/cicd/pipeline/stage-connection/list.js.map +0 -1
- package/dist/commands/cicd/pipeline/stage-connection/open.d.ts +0 -12
- package/dist/commands/cicd/pipeline/stage-connection/open.js.map +0 -1
- package/dist/commands/cicd/pipeline/stage-connection/update.d.ts +0 -15
- package/dist/commands/cicd/pipeline/stage-connection/update.js.map +0 -1
- package/dist/commands/cicd/pipeline/update.d.ts +0 -20
- package/dist/commands/cicd/pipeline/update.js.map +0 -1
- package/dist/commands/cicd/project/default/get.d.ts +0 -22
- package/dist/commands/cicd/project/default/get.js.map +0 -1
- package/dist/commands/cicd/project/default/set.d.ts +0 -22
- package/dist/commands/cicd/project/default/set.js.map +0 -1
- package/dist/commands/cicd/project/default/unset.d.ts +0 -22
- package/dist/commands/cicd/project/default/unset.js.map +0 -1
- package/dist/commands/cicd/project/get.d.ts +0 -10
- package/dist/commands/cicd/project/get.js.map +0 -1
- package/dist/commands/cicd/project/list.d.ts +0 -14
- package/dist/commands/cicd/project/list.js.map +0 -1
- package/dist/commands/cicd/project/open.d.ts +0 -12
- package/dist/commands/cicd/project/open.js.map +0 -1
- package/dist/commands/cicd/promotion/conflict/get.d.ts +0 -19
- package/dist/commands/cicd/promotion/conflict/get.js.map +0 -1
- package/dist/commands/cicd/promotion/conflict/list.d.ts +0 -10
- package/dist/commands/cicd/promotion/conflict/list.js.map +0 -1
- package/dist/commands/cicd/promotion/conflict/resolve.d.ts +0 -15
- package/dist/commands/cicd/promotion/conflict/resolve.js.map +0 -1
- package/dist/commands/cicd/promotion/conflict/unresolve.d.ts +0 -13
- package/dist/commands/cicd/promotion/conflict/unresolve.js.map +0 -1
- package/dist/commands/cicd/promotion/get.d.ts +0 -10
- package/dist/commands/cicd/promotion/get.js.map +0 -1
- package/dist/commands/cicd/promotion/list.d.ts +0 -33
- package/dist/commands/cicd/promotion/list.js.map +0 -1
- package/dist/commands/cicd/promotion/open.d.ts +0 -12
- package/dist/commands/cicd/promotion/open.js.map +0 -1
- package/dist/commands/cicd/promotion/run.d.ts +0 -23
- package/dist/commands/cicd/promotion/run.js.map +0 -1
- package/dist/commands/cicd/repository/create.d.ts +0 -25
- package/dist/commands/cicd/repository/create.js.map +0 -1
- package/dist/commands/cicd/repository/delete.d.ts +0 -11
- package/dist/commands/cicd/repository/delete.js.map +0 -1
- package/dist/commands/cicd/repository/get.d.ts +0 -10
- package/dist/commands/cicd/repository/get.js.map +0 -1
- package/dist/commands/cicd/repository/list.d.ts +0 -15
- package/dist/commands/cicd/repository/list.js.map +0 -1
- package/dist/commands/cicd/repository/open.d.ts +0 -12
- package/dist/commands/cicd/repository/open.js.map +0 -1
- package/dist/commands/cicd/repository/reset.d.ts +0 -12
- package/dist/commands/cicd/repository/reset.js.map +0 -1
- package/dist/commands/cicd/repository/update.d.ts +0 -34
- package/dist/commands/cicd/repository/update.js.map +0 -1
- package/dist/commands/cicd/repository/validate.d.ts +0 -10
- package/dist/commands/cicd/repository/validate.js.map +0 -1
- package/dist/commands/cicd/stage/create.d.ts +0 -14
- package/dist/commands/cicd/stage/create.js.map +0 -1
- package/dist/commands/cicd/stage/delete.d.ts +0 -14
- package/dist/commands/cicd/stage/delete.js.map +0 -1
- package/dist/commands/cicd/stage/get.d.ts +0 -10
- package/dist/commands/cicd/stage/get.js.map +0 -1
- package/dist/commands/cicd/stage/list.d.ts +0 -12
- package/dist/commands/cicd/stage/list.js.map +0 -1
- package/dist/commands/cicd/stage/open.d.ts +0 -12
- package/dist/commands/cicd/stage/open.js.map +0 -1
- package/dist/commands/cicd/stage/update.d.ts +0 -14
- package/dist/commands/cicd/stage/update.js.map +0 -1
- package/dist/commands/cicd/user/get.d.ts +0 -10
- package/dist/commands/cicd/user/get.js.map +0 -1
- package/dist/commands/cicd/work/commit.d.ts +0 -32
- package/dist/commands/cicd/work/commit.js.map +0 -1
- package/dist/commands/cicd/work/create.d.ts +0 -35
- package/dist/commands/cicd/work/create.js.map +0 -1
- package/dist/commands/cicd/work/delete.d.ts +0 -11
- package/dist/commands/cicd/work/delete.js.map +0 -1
- package/dist/commands/cicd/work/deployment-step/create.d.ts +0 -34
- package/dist/commands/cicd/work/deployment-step/create.js.map +0 -1
- package/dist/commands/cicd/work/deployment-step/delete.d.ts +0 -15
- package/dist/commands/cicd/work/deployment-step/delete.js.map +0 -1
- package/dist/commands/cicd/work/deployment-step/list.d.ts +0 -10
- package/dist/commands/cicd/work/deployment-step/list.js.map +0 -1
- package/dist/commands/cicd/work/deployment-step/reorder.d.ts +0 -12
- package/dist/commands/cicd/work/deployment-step/reorder.js.map +0 -1
- package/dist/commands/cicd/work/deployment-step/salesforce-flows.d.ts +0 -7
- package/dist/commands/cicd/work/deployment-step/salesforce-flows.js.map +0 -1
- package/dist/commands/cicd/work/deployment-step/types.d.ts +0 -7
- package/dist/commands/cicd/work/deployment-step/types.js.map +0 -1
- package/dist/commands/cicd/work/deployment-step/update.d.ts +0 -20
- package/dist/commands/cicd/work/deployment-step/update.js.map +0 -1
- package/dist/commands/cicd/work/done.d.ts +0 -14
- package/dist/commands/cicd/work/done.js.map +0 -1
- package/dist/commands/cicd/work/get.d.ts +0 -10
- package/dist/commands/cicd/work/get.js.map +0 -1
- package/dist/commands/cicd/work/list.d.ts +0 -23
- package/dist/commands/cicd/work/list.js.map +0 -1
- package/dist/commands/cicd/work/open.d.ts +0 -12
- package/dist/commands/cicd/work/open.js.map +0 -1
- package/dist/commands/cicd/work/promote.d.ts +0 -25
- package/dist/commands/cicd/work/promote.js.map +0 -1
- package/dist/commands/cicd/work/publish.d.ts +0 -12
- package/dist/commands/cicd/work/publish.js.map +0 -1
- package/dist/commands/cicd/work/push.d.ts +0 -16
- package/dist/commands/cicd/work/push.js.map +0 -1
- package/dist/commands/cicd/work/set.d.ts +0 -16
- package/dist/commands/cicd/work/set.js.map +0 -1
- package/dist/commands/cicd/work/status.d.ts +0 -14
- package/dist/commands/cicd/work/status.js.map +0 -1
- package/dist/commands/cicd/work/submit.d.ts +0 -17
- package/dist/commands/cicd/work/submit.js.map +0 -1
- package/dist/commands/cicd/work/test/apex.d.ts +0 -11
- package/dist/commands/cicd/work/test/apex.js.map +0 -1
- package/dist/commands/cicd/work/test.d.ts +0 -15
- package/dist/commands/cicd/work/test.js.map +0 -1
- package/dist/commands/cicd/work/update.d.ts +0 -38
- package/dist/commands/cicd/work/update.js.map +0 -1
- package/dist/commands/mcp/start.d.ts +0 -7
- package/dist/commands/mcp/start.js.map +0 -1
- package/dist/commands/setup/skills/create.d.ts +0 -15
- package/dist/commands/setup/skills/create.js.map +0 -1
- package/dist/commands/setup/skills/update.d.ts +0 -15
- package/dist/commands/setup/skills/update.js.map +0 -1
- package/dist/commands/setup.d.ts +0 -8
- package/dist/commands/setup.js.map +0 -1
- package/dist/commands/testing/build/abort.d.ts +0 -29
- package/dist/commands/testing/build/abort.js.map +0 -1
- package/dist/commands/testing/build/get.d.ts +0 -18
- package/dist/commands/testing/build/get.js.map +0 -1
- package/dist/commands/testing/build/latest.d.ts +0 -12
- package/dist/commands/testing/build/latest.js.map +0 -1
- package/dist/commands/testing/build/list.d.ts +0 -18
- package/dist/commands/testing/build/list.js.map +0 -1
- package/dist/commands/testing/build/logs.d.ts +0 -24
- package/dist/commands/testing/build/logs.js.map +0 -1
- package/dist/commands/testing/build/run.d.ts +0 -47
- package/dist/commands/testing/build/run.js.map +0 -1
- package/dist/commands/testing/build/search.d.ts +0 -21
- package/dist/commands/testing/build/search.js.map +0 -1
- package/dist/commands/testing/create.d.ts +0 -1
- package/dist/commands/testing/create.js.map +0 -1
- package/dist/commands/testing/data-table/create.d.ts +0 -30
- package/dist/commands/testing/data-table/create.js.map +0 -1
- package/dist/commands/testing/data-table/delete.d.ts +0 -25
- package/dist/commands/testing/data-table/delete.js.map +0 -1
- package/dist/commands/testing/data-table/export.d.ts +0 -33
- package/dist/commands/testing/data-table/export.js.map +0 -1
- package/dist/commands/testing/data-table/get.d.ts +0 -21
- package/dist/commands/testing/data-table/get.js.map +0 -1
- package/dist/commands/testing/data-table/list.d.ts +0 -16
- package/dist/commands/testing/data-table/list.js.map +0 -1
- package/dist/commands/testing/data-table/update.d.ts +0 -34
- package/dist/commands/testing/data-table/update.js.map +0 -1
- package/dist/commands/testing/job/create.d.ts +0 -40
- package/dist/commands/testing/job/create.js.map +0 -1
- package/dist/commands/testing/job/delete.d.ts +0 -26
- package/dist/commands/testing/job/delete.js.map +0 -1
- package/dist/commands/testing/job/download.d.ts +0 -19
- package/dist/commands/testing/job/download.js.map +0 -1
- package/dist/commands/testing/job/files.d.ts +0 -16
- package/dist/commands/testing/job/files.js.map +0 -1
- package/dist/commands/testing/job/get.d.ts +0 -13
- package/dist/commands/testing/job/get.js.map +0 -1
- package/dist/commands/testing/job/list.d.ts +0 -11
- package/dist/commands/testing/job/list.js.map +0 -1
- package/dist/commands/testing/job/refs.d.ts +0 -17
- package/dist/commands/testing/job/refs.js.map +0 -1
- package/dist/commands/testing/job/run.d.ts +0 -1
- package/dist/commands/testing/job/run.js.map +0 -1
- package/dist/commands/testing/job/schedule/get.d.ts +0 -23
- package/dist/commands/testing/job/schedule/get.js.map +0 -1
- package/dist/commands/testing/job/schedule/remove.d.ts +0 -24
- package/dist/commands/testing/job/schedule/remove.js.map +0 -1
- package/dist/commands/testing/job/schedule/set.d.ts +0 -23
- package/dist/commands/testing/job/schedule/set.js.map +0 -1
- package/dist/commands/testing/job/update.d.ts +0 -41
- package/dist/commands/testing/job/update.js.map +0 -1
- package/dist/commands/testing/job/upload.d.ts +0 -32
- package/dist/commands/testing/job/upload.js.map +0 -1
- package/dist/commands/testing/live/continue.d.ts +0 -20
- package/dist/commands/testing/live/continue.js.map +0 -1
- package/dist/commands/testing/live/execute.d.ts +0 -30
- package/dist/commands/testing/live/execute.js.map +0 -1
- package/dist/commands/testing/live/history.d.ts +0 -23
- package/dist/commands/testing/live/history.js.map +0 -1
- package/dist/commands/testing/live/inspect.d.ts +0 -18
- package/dist/commands/testing/live/inspect.js.map +0 -1
- package/dist/commands/testing/live/interrupt.d.ts +0 -20
- package/dist/commands/testing/live/interrupt.js.map +0 -1
- package/dist/commands/testing/live/recorder.d.ts +0 -23
- package/dist/commands/testing/live/recorder.js.map +0 -1
- package/dist/commands/testing/live/reports.d.ts +0 -20
- package/dist/commands/testing/live/reports.js.map +0 -1
- package/dist/commands/testing/live/screenshot.d.ts +0 -23
- package/dist/commands/testing/live/screenshot.js.map +0 -1
- package/dist/commands/testing/live/set-options.d.ts +0 -27
- package/dist/commands/testing/live/set-options.js.map +0 -1
- package/dist/commands/testing/live/start.d.ts +0 -29
- package/dist/commands/testing/live/start.js.map +0 -1
- package/dist/commands/testing/live/status.d.ts +0 -19
- package/dist/commands/testing/live/status.js.map +0 -1
- package/dist/commands/testing/live/stop.d.ts +0 -24
- package/dist/commands/testing/live/stop.js.map +0 -1
- package/dist/commands/testing/live/view.d.ts +0 -16
- package/dist/commands/testing/live/view.js.map +0 -1
- package/dist/commands/testing/logs.d.ts +0 -24
- package/dist/commands/testing/logs.js.map +0 -1
- package/dist/commands/testing/project/create.d.ts +0 -14
- package/dist/commands/testing/project/create.js.map +0 -1
- package/dist/commands/testing/project/delete.d.ts +0 -23
- package/dist/commands/testing/project/delete.js.map +0 -1
- package/dist/commands/testing/project/get.d.ts +0 -11
- package/dist/commands/testing/project/get.js.map +0 -1
- package/dist/commands/testing/project/list.d.ts +0 -10
- package/dist/commands/testing/project/list.js.map +0 -1
- package/dist/commands/testing/project/permission/get.d.ts +0 -13
- package/dist/commands/testing/project/permission/get.js.map +0 -1
- package/dist/commands/testing/project/permission/list.d.ts +0 -13
- package/dist/commands/testing/project/permission/list.js.map +0 -1
- package/dist/commands/testing/project/permission/set.d.ts +0 -19
- package/dist/commands/testing/project/permission/set.js.map +0 -1
- package/dist/commands/testing/project/permission/update.d.ts +0 -19
- package/dist/commands/testing/project/permission/update.js.map +0 -1
- package/dist/commands/testing/project/update.d.ts +0 -14
- package/dist/commands/testing/project/update.js.map +0 -1
- package/dist/commands/testing/robot/create.d.ts +0 -19
- package/dist/commands/testing/robot/create.js.map +0 -1
- package/dist/commands/testing/robot/delete.d.ts +0 -23
- package/dist/commands/testing/robot/delete.js.map +0 -1
- package/dist/commands/testing/robot/get.d.ts +0 -13
- package/dist/commands/testing/robot/get.js.map +0 -1
- package/dist/commands/testing/robot/list.d.ts +0 -10
- package/dist/commands/testing/robot/list.js.map +0 -1
- package/dist/commands/testing/robot/update.d.ts +0 -19
- package/dist/commands/testing/robot/update.js.map +0 -1
- package/dist/commands/testing/run.d.ts +0 -47
- package/dist/commands/testing/run.js.map +0 -1
- package/dist/commands/testing/status.d.ts +0 -13
- package/dist/commands/testing/status.js.map +0 -1
- package/dist/commands/testing/test/create.d.ts +0 -1
- package/dist/commands/testing/test/create.js.map +0 -1
- package/dist/commands/testing/test/logs.d.ts +0 -1
- package/dist/commands/testing/test/logs.js.map +0 -1
- package/dist/commands/testing/test/run.d.ts +0 -47
- package/dist/commands/testing/test/run.js.map +0 -1
- package/dist/commands/testing/test/status.d.ts +0 -1
- package/dist/commands/testing/test/status.js.map +0 -1
- package/dist/commands/testing/test/update.d.ts +0 -1
- package/dist/commands/testing/test/update.js.map +0 -1
- package/dist/commands/testing/update.d.ts +0 -32
- package/dist/commands/testing/update.js.map +0 -1
- package/dist/commands/testing/user-parameter/create.d.ts +0 -19
- package/dist/commands/testing/user-parameter/create.js.map +0 -1
- package/dist/commands/testing/user-parameter/delete.d.ts +0 -21
- package/dist/commands/testing/user-parameter/delete.js.map +0 -1
- package/dist/commands/testing/user-parameter/get.d.ts +0 -13
- package/dist/commands/testing/user-parameter/get.js.map +0 -1
- package/dist/commands/testing/user-parameter/list.d.ts +0 -12
- package/dist/commands/testing/user-parameter/list.js.map +0 -1
- package/dist/commands/testing/user-parameter/update.d.ts +0 -23
- package/dist/commands/testing/user-parameter/update.js.map +0 -1
- package/dist/commands/testing/variable/create.d.ts +0 -21
- package/dist/commands/testing/variable/create.js.map +0 -1
- package/dist/commands/testing/variable/delete.d.ts +0 -21
- package/dist/commands/testing/variable/delete.js.map +0 -1
- package/dist/commands/testing/variable/get.d.ts +0 -13
- package/dist/commands/testing/variable/get.js.map +0 -1
- package/dist/commands/testing/variable/list.d.ts +0 -16
- package/dist/commands/testing/variable/list.js.map +0 -1
- package/dist/commands/testing/variable/update.d.ts +0 -22
- package/dist/commands/testing/variable/update.js.map +0 -1
- package/dist/commands/update.d.ts +0 -10
- package/dist/commands/update.js.map +0 -1
- package/dist/hooks/finally/ide-command-event.d.ts +0 -3
- package/dist/hooks/finally/ide-command-event.js.map +0 -1
- package/dist/hooks/init/migrate-user-config.d.ts +0 -3
- package/dist/hooks/init/migrate-user-config.js.map +0 -1
- package/dist/hooks/init/version-warning.d.ts +0 -3
- package/dist/hooks/init/version-warning.js.map +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/agentia-command.d.ts +0 -15
- package/dist/lib/agentia-command.js.map +0 -1
- package/dist/lib/agentia-oauth-error-codes.d.ts +0 -17
- package/dist/lib/agentia-oauth-error-codes.js.map +0 -1
- package/dist/lib/ai-chat-session.d.ts +0 -18
- package/dist/lib/ai-chat-session.js.map +0 -1
- package/dist/lib/ai-config.d.ts +0 -29
- package/dist/lib/ai-config.js.map +0 -1
- package/dist/lib/ai-flags.d.ts +0 -8
- package/dist/lib/ai-flags.js.map +0 -1
- package/dist/lib/ai-gateway.d.ts +0 -56
- package/dist/lib/ai-gateway.js.map +0 -1
- package/dist/lib/ai-operations.d.ts +0 -28
- package/dist/lib/ai-operations.js.map +0 -1
- package/dist/lib/ai-stream-parser.d.ts +0 -12
- package/dist/lib/ai-stream-parser.js.map +0 -1
- package/dist/lib/ai-terminal-renderer.d.ts +0 -17
- package/dist/lib/ai-terminal-renderer.js.map +0 -1
- package/dist/lib/ai-types.d.ts +0 -157
- package/dist/lib/ai-types.js.map +0 -1
- package/dist/lib/assert.d.ts +0 -1
- package/dist/lib/assert.js.map +0 -1
- package/dist/lib/auth-config.d.ts +0 -94
- package/dist/lib/auth-config.js.map +0 -1
- package/dist/lib/auth-profile.d.ts +0 -25
- package/dist/lib/auth-profile.js.map +0 -1
- package/dist/lib/cicd-gateway.d.ts +0 -166
- package/dist/lib/cicd-gateway.js.map +0 -1
- package/dist/lib/cicd-region.d.ts +0 -4
- package/dist/lib/cicd-region.js.map +0 -1
- package/dist/lib/cli-update.d.ts +0 -29
- package/dist/lib/cli-update.js.map +0 -1
- package/dist/lib/cli-version.d.ts +0 -30
- package/dist/lib/cli-version.js.map +0 -1
- package/dist/lib/command-output-buffer.d.ts +0 -31
- package/dist/lib/command-output-buffer.js.map +0 -1
- package/dist/lib/credential-store.d.ts +0 -47
- package/dist/lib/credential-store.js.map +0 -1
- package/dist/lib/credential-sync.d.ts +0 -41
- package/dist/lib/credential-sync.js.map +0 -1
- package/dist/lib/cursor-mcp-config.d.ts +0 -66
- package/dist/lib/cursor-mcp-config.js.map +0 -1
- package/dist/lib/data-flags.d.ts +0 -14
- package/dist/lib/data-flags.js.map +0 -1
- package/dist/lib/data-types.d.ts +0 -325
- package/dist/lib/data-types.js.map +0 -1
- package/dist/lib/debug.d.ts +0 -3
- package/dist/lib/debug.js.map +0 -1
- package/dist/lib/defaults-store.d.ts +0 -97
- package/dist/lib/defaults-store.js.map +0 -1
- package/dist/lib/dependency-from-changes.d.ts +0 -12
- package/dist/lib/dependency-from-changes.js.map +0 -1
- package/dist/lib/deployment-step-config.d.ts +0 -27
- package/dist/lib/deployment-step-config.js.map +0 -1
- package/dist/lib/deployment-step-types.d.ts +0 -104
- package/dist/lib/deployment-step-types.js.map +0 -1
- package/dist/lib/deployment-step-wizard.d.ts +0 -28
- package/dist/lib/deployment-step-wizard.js.map +0 -1
- package/dist/lib/env-file.d.ts +0 -5
- package/dist/lib/env-file.js.map +0 -1
- package/dist/lib/environment-auth-status.d.ts +0 -18
- package/dist/lib/environment-auth-status.js.map +0 -1
- package/dist/lib/environment-auth.d.ts +0 -26
- package/dist/lib/environment-auth.js.map +0 -1
- package/dist/lib/environment-credential-flags.d.ts +0 -29
- package/dist/lib/environment-credential-flags.js.map +0 -1
- package/dist/lib/environment-credential-operations.d.ts +0 -19
- package/dist/lib/environment-credential-operations.js.map +0 -1
- package/dist/lib/environment-credential-selection.d.ts +0 -15
- package/dist/lib/environment-credential-selection.js.map +0 -1
- package/dist/lib/environment-flags.d.ts +0 -93
- package/dist/lib/environment-flags.js.map +0 -1
- package/dist/lib/environment-types.d.ts +0 -105
- package/dist/lib/environment-types.js.map +0 -1
- package/dist/lib/format.d.ts +0 -10
- package/dist/lib/format.js.map +0 -1
- package/dist/lib/function-flags.d.ts +0 -69
- package/dist/lib/function-flags.js.map +0 -1
- package/dist/lib/function-local-run.d.ts +0 -64
- package/dist/lib/function-local-run.js.map +0 -1
- package/dist/lib/function-types.d.ts +0 -120
- package/dist/lib/function-types.js.map +0 -1
- package/dist/lib/git-worktree.d.ts +0 -83
- package/dist/lib/git-worktree.js.map +0 -1
- package/dist/lib/ide-command-events.d.ts +0 -72
- package/dist/lib/ide-command-events.js.map +0 -1
- package/dist/lib/job-types.d.ts +0 -125
- package/dist/lib/job-types.js.map +0 -1
- package/dist/lib/list-pagination.d.ts +0 -46
- package/dist/lib/list-pagination.js.map +0 -1
- package/dist/lib/local-gateway-config.d.ts +0 -21
- package/dist/lib/local-gateway-config.js.map +0 -1
- package/dist/lib/local-metadata-paths.d.ts +0 -6
- package/dist/lib/local-metadata-paths.js.map +0 -1
- package/dist/lib/local-quality-gates.d.ts +0 -53
- package/dist/lib/local-quality-gates.js.map +0 -1
- package/dist/lib/loopback-callback-server.d.ts +0 -36
- package/dist/lib/loopback-callback-server.js.map +0 -1
- package/dist/lib/mcp/ai-tools.d.ts +0 -21
- package/dist/lib/mcp/ai-tools.js.map +0 -1
- package/dist/lib/mcp/command-id.d.ts +0 -4
- package/dist/lib/mcp/command-id.js.map +0 -1
- package/dist/lib/mcp/data-tools.d.ts +0 -156
- package/dist/lib/mcp/data-tools.js.map +0 -1
- package/dist/lib/mcp/deployment-step-tools.d.ts +0 -82
- package/dist/lib/mcp/deployment-step-tools.js.map +0 -1
- package/dist/lib/mcp/redaction.d.ts +0 -1
- package/dist/lib/mcp/redaction.js.map +0 -1
- package/dist/lib/mcp/request-context.d.ts +0 -2
- package/dist/lib/mcp/request-context.js.map +0 -1
- package/dist/lib/mcp/result.d.ts +0 -44
- package/dist/lib/mcp/result.js.map +0 -1
- package/dist/lib/mcp/server.d.ts +0 -5
- package/dist/lib/mcp/server.js.map +0 -1
- package/dist/lib/mcp/testing-live-tools.d.ts +0 -126
- package/dist/lib/mcp/testing-live-tools.js.map +0 -1
- package/dist/lib/mcp/testing-tools.d.ts +0 -699
- package/dist/lib/mcp/testing-tools.js.map +0 -1
- package/dist/lib/mcp/tools.d.ts +0 -1964
- package/dist/lib/mcp/tools.js.map +0 -1
- package/dist/lib/mcp/work-tools.d.ts +0 -182
- package/dist/lib/mcp/work-tools.js.map +0 -1
- package/dist/lib/metadata-common.d.ts +0 -175
- package/dist/lib/metadata-common.js.map +0 -1
- package/dist/lib/metadata-refresh.d.ts +0 -68
- package/dist/lib/metadata-refresh.js.map +0 -1
- package/dist/lib/navigation-open.d.ts +0 -7
- package/dist/lib/navigation-open.js.map +0 -1
- package/dist/lib/navigation.d.ts +0 -14
- package/dist/lib/navigation.js.map +0 -1
- package/dist/lib/nested-metadata-changes.d.ts +0 -88
- package/dist/lib/nested-metadata-changes.js.map +0 -1
- package/dist/lib/nested-metadata-registry.d.ts +0 -36
- package/dist/lib/nested-metadata-registry.js.map +0 -1
- package/dist/lib/notifications-configure.d.ts +0 -34
- package/dist/lib/notifications-configure.js.map +0 -1
- package/dist/lib/open-browser.d.ts +0 -11
- package/dist/lib/open-browser.js.map +0 -1
- package/dist/lib/pipeline-connection-flags.d.ts +0 -62
- package/dist/lib/pipeline-connection-flags.js.map +0 -1
- package/dist/lib/pipeline-flags.d.ts +0 -74
- package/dist/lib/pipeline-flags.js.map +0 -1
- package/dist/lib/pipeline-stage-connection-flags.d.ts +0 -25
- package/dist/lib/pipeline-stage-connection-flags.js.map +0 -1
- package/dist/lib/pipeline-types.d.ts +0 -178
- package/dist/lib/pipeline-types.js.map +0 -1
- package/dist/lib/project-default-flags.d.ts +0 -43
- package/dist/lib/project-default-flags.js.map +0 -1
- package/dist/lib/project-default-id.d.ts +0 -4
- package/dist/lib/project-default-id.js.map +0 -1
- package/dist/lib/project-defaults.d.ts +0 -24
- package/dist/lib/project-defaults.js.map +0 -1
- package/dist/lib/project-flags.d.ts +0 -11
- package/dist/lib/project-flags.js.map +0 -1
- package/dist/lib/project-root.d.ts +0 -13
- package/dist/lib/project-root.js.map +0 -1
- package/dist/lib/project-setup.d.ts +0 -90
- package/dist/lib/project-setup.js.map +0 -1
- package/dist/lib/project-types.d.ts +0 -39
- package/dist/lib/project-types.js.map +0 -1
- package/dist/lib/promotion-conflicts.d.ts +0 -40
- package/dist/lib/promotion-conflicts.js.map +0 -1
- package/dist/lib/promotion-flags.d.ts +0 -23
- package/dist/lib/promotion-flags.js.map +0 -1
- package/dist/lib/promotion-run.d.ts +0 -105
- package/dist/lib/promotion-run.js.map +0 -1
- package/dist/lib/promotion-types.d.ts +0 -192
- package/dist/lib/promotion-types.js.map +0 -1
- package/dist/lib/repository-flags.d.ts +0 -131
- package/dist/lib/repository-flags.js.map +0 -1
- package/dist/lib/repository-types.d.ts +0 -99
- package/dist/lib/repository-types.js.map +0 -1
- package/dist/lib/salesforce-id.d.ts +0 -11
- package/dist/lib/salesforce-id.js.map +0 -1
- package/dist/lib/sdr-metadata-registry.generated.d.ts +0 -18
- package/dist/lib/sdr-metadata-registry.generated.js.map +0 -1
- package/dist/lib/sdr-path-resolver.d.ts +0 -7
- package/dist/lib/sdr-path-resolver.js.map +0 -1
- package/dist/lib/secret-redaction.d.ts +0 -2
- package/dist/lib/secret-redaction.js.map +0 -1
- package/dist/lib/setup-prompts.d.ts +0 -38
- package/dist/lib/setup-prompts.js.map +0 -1
- package/dist/lib/setup-skills.d.ts +0 -83
- package/dist/lib/setup-skills.js.map +0 -1
- package/dist/lib/setup-templates.d.ts +0 -12
- package/dist/lib/setup-templates.js.map +0 -1
- package/dist/lib/setup-wizard.d.ts +0 -46
- package/dist/lib/setup-wizard.js.map +0 -1
- package/dist/lib/sf-org-context.d.ts +0 -13
- package/dist/lib/sf-org-context.js.map +0 -1
- package/dist/lib/stage-flags.d.ts +0 -19
- package/dist/lib/stage-flags.js.map +0 -1
- package/dist/lib/stage-types.d.ts +0 -67
- package/dist/lib/stage-types.js.map +0 -1
- package/dist/lib/stock-quality-gates.d.ts +0 -12
- package/dist/lib/stock-quality-gates.js.map +0 -1
- package/dist/lib/testing-config.d.ts +0 -44
- package/dist/lib/testing-config.js.map +0 -1
- package/dist/lib/testing-confirmation.d.ts +0 -14
- package/dist/lib/testing-confirmation.js.map +0 -1
- package/dist/lib/testing-data-command.d.ts +0 -21
- package/dist/lib/testing-data-command.js.map +0 -1
- package/dist/lib/testing-data-core.d.ts +0 -22
- package/dist/lib/testing-data-core.js.map +0 -1
- package/dist/lib/testing-data-export.d.ts +0 -1
- package/dist/lib/testing-data-export.js.map +0 -1
- package/dist/lib/testing-data-import.d.ts +0 -1
- package/dist/lib/testing-data-import.js.map +0 -1
- package/dist/lib/testing-data-io.d.ts +0 -21
- package/dist/lib/testing-data-io.js.map +0 -1
- package/dist/lib/testing-data-operations.d.ts +0 -36
- package/dist/lib/testing-data-operations.js.map +0 -1
- package/dist/lib/testing-data-types.d.ts +0 -41
- package/dist/lib/testing-data-types.js.map +0 -1
- package/dist/lib/testing-flags.d.ts +0 -117
- package/dist/lib/testing-flags.js.map +0 -1
- package/dist/lib/testing-gateway.d.ts +0 -60
- package/dist/lib/testing-gateway.js.map +0 -1
- package/dist/lib/testing-live-command.d.ts +0 -24
- package/dist/lib/testing-live-command.js.map +0 -1
- package/dist/lib/testing-live-endpoints.d.ts +0 -14
- package/dist/lib/testing-live-endpoints.js.map +0 -1
- package/dist/lib/testing-live-history.d.ts +0 -11
- package/dist/lib/testing-live-history.js.map +0 -1
- package/dist/lib/testing-live-operations.d.ts +0 -118
- package/dist/lib/testing-live-operations.js.map +0 -1
- package/dist/lib/testing-live-recorder.d.ts +0 -14
- package/dist/lib/testing-live-recorder.js.map +0 -1
- package/dist/lib/testing-live-robot.d.ts +0 -16
- package/dist/lib/testing-live-robot.js.map +0 -1
- package/dist/lib/testing-live-state.d.ts +0 -4
- package/dist/lib/testing-live-state.js.map +0 -1
- package/dist/lib/testing-live-types.d.ts +0 -92
- package/dist/lib/testing-live-types.js.map +0 -1
- package/dist/lib/testing-operations.d.ts +0 -354
- package/dist/lib/testing-operations.js.map +0 -1
- package/dist/lib/testing-run-command.d.ts +0 -25
- package/dist/lib/testing-run-command.js.map +0 -1
- package/dist/lib/testing-sanitization.d.ts +0 -11
- package/dist/lib/testing-sanitization.js.map +0 -1
- package/dist/lib/testing-schedule.d.ts +0 -23
- package/dist/lib/testing-schedule.js.map +0 -1
- package/dist/lib/testing-secret-input.d.ts +0 -12
- package/dist/lib/testing-secret-input.js.map +0 -1
- package/dist/lib/testing-session.d.ts +0 -8
- package/dist/lib/testing-session.js.map +0 -1
- package/dist/lib/testing-types.d.ts +0 -340
- package/dist/lib/testing-types.js.map +0 -1
- package/dist/lib/testing-watch.d.ts +0 -4
- package/dist/lib/testing-watch.js.map +0 -1
- package/dist/lib/user-context-types.d.ts +0 -12
- package/dist/lib/user-context-types.js.map +0 -1
- package/dist/lib/user-context.d.ts +0 -7
- package/dist/lib/user-context.js.map +0 -1
- package/dist/lib/user-types.d.ts +0 -9
- package/dist/lib/user-types.js.map +0 -1
- package/dist/lib/var-replacement.d.ts +0 -47
- package/dist/lib/var-replacement.js.map +0 -1
- package/dist/lib/version-refresh.d.ts +0 -1
- package/dist/lib/version-refresh.js.map +0 -1
- package/dist/lib/version-warning.d.ts +0 -29
- package/dist/lib/version-warning.js.map +0 -1
- package/dist/lib/work-active.d.ts +0 -4
- package/dist/lib/work-active.js.map +0 -1
- package/dist/lib/work-apex-test.d.ts +0 -56
- package/dist/lib/work-apex-test.js.map +0 -1
- package/dist/lib/work-branch-metadata.d.ts +0 -13
- package/dist/lib/work-branch-metadata.js.map +0 -1
- package/dist/lib/work-commit.d.ts +0 -123
- package/dist/lib/work-commit.js.map +0 -1
- package/dist/lib/work-defaults.d.ts +0 -10
- package/dist/lib/work-defaults.js.map +0 -1
- package/dist/lib/work-done.d.ts +0 -22
- package/dist/lib/work-done.js.map +0 -1
- package/dist/lib/work-flags.d.ts +0 -128
- package/dist/lib/work-flags.js.map +0 -1
- package/dist/lib/work-local-commit.d.ts +0 -42
- package/dist/lib/work-local-commit.js.map +0 -1
- package/dist/lib/work-local-run-tests.d.ts +0 -25
- package/dist/lib/work-local-run-tests.js.map +0 -1
- package/dist/lib/work-publish-command.d.ts +0 -26
- package/dist/lib/work-publish-command.js.map +0 -1
- package/dist/lib/work-push.d.ts +0 -112
- package/dist/lib/work-push.js.map +0 -1
- package/dist/lib/work-set-none.d.ts +0 -14
- package/dist/lib/work-set-none.js.map +0 -1
- package/dist/lib/work-set-selection.d.ts +0 -15
- package/dist/lib/work-set-selection.js.map +0 -1
- package/dist/lib/work-types.d.ts +0 -344
- package/dist/lib/work-types.js.map +0 -1
- package/dist/lib/yaml-replacement.d.ts +0 -42
- package/dist/lib/yaml-replacement.js.map +0 -1
package/dist/lib/auth-config.js
CHANGED
|
@@ -1,516 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export function formatTerminalHyperlink(label, url) {
|
|
24
|
-
if (!process.stdout.isTTY) {
|
|
25
|
-
return `${label} (${url})`;
|
|
26
|
-
}
|
|
27
|
-
return `\u001B]8;;${url}\u0007${label}\u001B]8;;\u0007 (${url})`;
|
|
28
|
-
}
|
|
29
|
-
export function formatCicdApiKeyHelp() {
|
|
30
|
-
const accountSummary = formatTerminalHyperlink('Account Summary', COPADO_ACCOUNT_SUMMARY_LOGIN_URL);
|
|
31
|
-
return `Create a Copado API key on the API Key tab of the ${accountSummary} page.`;
|
|
32
|
-
}
|
|
33
|
-
export function formatPersonalAccessKeyHelp() {
|
|
34
|
-
const settings = formatTerminalHyperlink('Copado Robotic Testing user settings', COPADO_ROBOTIC_PERSONAL_ACCESS_KEY_URL);
|
|
35
|
-
return `Create a Personal Access Key in the ${settings} page.`;
|
|
36
|
-
}
|
|
37
|
-
export function getCicdAuthStatus() {
|
|
38
|
-
const local = readAuthProfile('local');
|
|
39
|
-
const profile = local?.cicd === undefined ? readAuthProfile('global')?.cicd : local.cicd;
|
|
40
|
-
const scopedCredential = local?.cicd === undefined ? getCredential('cicd') : getCredentialForKey('cicd', local.keychainId);
|
|
41
|
-
const localConfig = readLocalGatewayConfig();
|
|
42
|
-
if (localConfig.enabled) {
|
|
43
|
-
const apiKey = localConfig.apiKey || scopedCredential;
|
|
44
|
-
if (apiKey === null || apiKey.trim().length === 0) {
|
|
45
|
-
return {
|
|
46
|
-
baseUrl: normalizeLocalGatewayBaseUrl(localConfig.url),
|
|
47
|
-
local: true,
|
|
48
|
-
set: false,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
baseUrl: normalizeLocalGatewayBaseUrl(localConfig.url),
|
|
53
|
-
local: true,
|
|
54
|
-
masked: maskSecret(apiKey),
|
|
55
|
-
set: true,
|
|
56
|
-
source: local?.cicd === undefined ? 'global' : 'local',
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
const credential = scopedCredential;
|
|
60
|
-
if (credential === null) {
|
|
61
|
-
return { set: false };
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
baseUrl: profile?.baseUrl ?? getCicdBaseUrl(),
|
|
65
|
-
masked: maskSecret(credential),
|
|
66
|
-
set: true,
|
|
67
|
-
source: local?.cicd === undefined ? 'global' : 'local',
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
export function getCrtAuthStatus() {
|
|
71
|
-
const local = readAuthProfile('local');
|
|
72
|
-
const metadata = local?.crt ?? readAuthProfile('global')?.crt;
|
|
73
|
-
const source = local?.crt === undefined ? 'global' : 'local';
|
|
74
|
-
const credential = local?.crt === undefined
|
|
75
|
-
? getCredential('crt')
|
|
76
|
-
: local.keychainId === undefined
|
|
77
|
-
? null
|
|
78
|
-
: getCredentialForKey('crt', local.keychainId);
|
|
79
|
-
const domain = metadata?.domain ?? getCrtDomain();
|
|
80
|
-
const orgId = metadata?.orgId ?? getCrtOrgId();
|
|
81
|
-
const issues = collectTestingConfigurationIssues({ domain, org: orgId, pak: credential });
|
|
82
|
-
const missing = issues.filter((issue) => issue.kind === 'missing').map((issue) => issue.field);
|
|
83
|
-
const set = credential !== null && credential.trim().length > 0;
|
|
84
|
-
const status = {
|
|
85
|
-
domain,
|
|
86
|
-
issues,
|
|
87
|
-
missing,
|
|
88
|
-
orgId,
|
|
89
|
-
ready: issues.length === 0,
|
|
90
|
-
set,
|
|
91
|
-
source,
|
|
92
|
-
};
|
|
93
|
-
if (!set) {
|
|
94
|
-
return status;
|
|
95
|
-
}
|
|
96
|
-
return {
|
|
97
|
-
...status,
|
|
98
|
-
masked: maskSecret(credential),
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
export function getAiAuthStatus() {
|
|
102
|
-
const local = readAuthProfile('local');
|
|
103
|
-
const metadata = local?.ai ?? readAuthProfile('global')?.ai;
|
|
104
|
-
const credential = local?.ai === undefined ? getCredential('ai') : getCredentialForKey('ai', local.keychainId);
|
|
105
|
-
if (credential === null) {
|
|
106
|
-
return {
|
|
107
|
-
domain: metadata?.domain ?? getAiDomain(),
|
|
108
|
-
gatewayUrl: metadata?.gatewayUrl ?? getAiGatewayUrl(),
|
|
109
|
-
orgId: metadata?.orgId ?? getAiOrgId(),
|
|
110
|
-
set: false,
|
|
111
|
-
workspaceId: metadata?.workspaceId ?? getAiWorkspaceId(),
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
return {
|
|
115
|
-
domain: metadata?.domain ?? getAiDomain(),
|
|
116
|
-
gatewayUrl: metadata?.gatewayUrl ?? getAiGatewayUrl(),
|
|
117
|
-
masked: maskSecret(credential),
|
|
118
|
-
orgId: metadata?.orgId ?? getAiOrgId(),
|
|
119
|
-
set: true,
|
|
120
|
-
source: local?.ai === undefined ? 'global' : 'local',
|
|
121
|
-
workspaceId: metadata?.workspaceId ?? getAiWorkspaceId(),
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
export function isCicdConfigured() {
|
|
125
|
-
return getCicdAuthStatus().set;
|
|
126
|
-
}
|
|
127
|
-
export function resolveAuthUnsetTypes(options) {
|
|
128
|
-
const types = [];
|
|
129
|
-
if (options.cicd) {
|
|
130
|
-
types.push('cicd');
|
|
131
|
-
}
|
|
132
|
-
if (options.crt) {
|
|
133
|
-
types.push('crt');
|
|
134
|
-
}
|
|
135
|
-
if (options.ai) {
|
|
136
|
-
types.push('ai');
|
|
137
|
-
}
|
|
138
|
-
return types.length > 0 ? types : [...ALL_CREDENTIAL_TYPES];
|
|
139
|
-
}
|
|
140
|
-
export function formatAuthUnsetConfirmation(types) {
|
|
141
|
-
if (types.length === ALL_CREDENTIAL_TYPES.length) {
|
|
142
|
-
return 'Remove stored CICD, CRT, and AI authentication credentials?';
|
|
143
|
-
}
|
|
144
|
-
if (types.length === 1 && types[0] === 'cicd') {
|
|
145
|
-
return 'Remove stored CICD authentication credentials?';
|
|
146
|
-
}
|
|
147
|
-
if (types.length === 1 && types[0] === 'crt') {
|
|
148
|
-
return 'Remove stored CRT authentication credentials?';
|
|
149
|
-
}
|
|
150
|
-
if (types.length === 1 && types[0] === 'ai') {
|
|
151
|
-
return 'Remove stored AI authentication credentials?';
|
|
152
|
-
}
|
|
153
|
-
return 'Remove selected authentication credentials?';
|
|
154
|
-
}
|
|
155
|
-
let testConfirmFn;
|
|
156
|
-
export function setAuthUnsetConfirmForTests(fn) {
|
|
157
|
-
testConfirmFn = fn;
|
|
158
|
-
}
|
|
159
|
-
export function resetAuthUnsetConfirmForTests() {
|
|
160
|
-
testConfirmFn = undefined;
|
|
161
|
-
}
|
|
162
|
-
export function hasAuthUnsetTestConfirm() {
|
|
163
|
-
return testConfirmFn !== undefined;
|
|
164
|
-
}
|
|
165
|
-
export async function confirmAuthUnset(types) {
|
|
166
|
-
const message = formatAuthUnsetConfirmation(types);
|
|
167
|
-
if (testConfirmFn !== undefined) {
|
|
168
|
-
return testConfirmFn(message);
|
|
169
|
-
}
|
|
170
|
-
return confirm({
|
|
171
|
-
default: false,
|
|
172
|
-
message,
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
function hasStoredCicdConfig() {
|
|
176
|
-
return getCredential('cicd') !== null || getCicdBaseUrl() !== null;
|
|
177
|
-
}
|
|
178
|
-
function hasStoredCrtConfig() {
|
|
179
|
-
return getCredential('crt') !== null || getCrtDomain() !== null || getCrtOrgId() !== null;
|
|
180
|
-
}
|
|
181
|
-
function hasStoredAiConfig() {
|
|
182
|
-
return (getCredential('ai') !== null ||
|
|
183
|
-
getAiDomain() !== null ||
|
|
184
|
-
getAiGatewayUrl() !== null ||
|
|
185
|
-
getAiOrgId() !== null ||
|
|
186
|
-
getAiWorkspaceId() !== null);
|
|
187
|
-
}
|
|
188
|
-
async function unsetCicdAuth(scope) {
|
|
189
|
-
const local = scope === 'local' ? readAuthProfile('local') : undefined;
|
|
190
|
-
const hadConfig = scope === 'local' ? local?.cicd !== undefined : hasStoredCicdConfig();
|
|
191
|
-
if (scope === 'local') {
|
|
192
|
-
const keychainId = localProfileKeychainId('cicd');
|
|
193
|
-
if (keychainId === undefined)
|
|
194
|
-
return false;
|
|
195
|
-
deleteCredentialForKey('cicd', keychainId);
|
|
196
|
-
await deleteAuthProfile('local', 'cicd');
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
deleteCredential('cicd');
|
|
200
|
-
deleteCicdBaseUrl();
|
|
201
|
-
await deleteAuthProfile('global', 'cicd');
|
|
202
|
-
}
|
|
203
|
-
if (hadConfig && scope === 'global') {
|
|
204
|
-
await clearUserContext();
|
|
205
|
-
}
|
|
206
|
-
return hadConfig;
|
|
207
|
-
}
|
|
208
|
-
async function unsetCrtAuth(scope) {
|
|
209
|
-
const local = scope === 'local' ? readAuthProfile('local') : undefined;
|
|
210
|
-
const hadConfig = scope === 'local' ? local?.crt !== undefined : hasStoredCrtConfig();
|
|
211
|
-
if (scope === 'local') {
|
|
212
|
-
const keychainId = localProfileKeychainId('crt');
|
|
213
|
-
if (keychainId === undefined)
|
|
214
|
-
return false;
|
|
215
|
-
deleteCredentialForKey('crt', keychainId);
|
|
216
|
-
await deleteAuthProfile('local', 'crt');
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
deleteCredential('crt');
|
|
220
|
-
deleteCrtDomain();
|
|
221
|
-
deleteCrtOrgId();
|
|
222
|
-
await deleteAuthProfile('global', 'crt');
|
|
223
|
-
}
|
|
224
|
-
return hadConfig;
|
|
225
|
-
}
|
|
226
|
-
async function unsetAiAuth(scope) {
|
|
227
|
-
const local = scope === 'local' ? readAuthProfile('local') : undefined;
|
|
228
|
-
const hadConfig = scope === 'local' ? local?.ai !== undefined : hasStoredAiConfig();
|
|
229
|
-
if (scope === 'local') {
|
|
230
|
-
const keychainId = localProfileKeychainId('ai');
|
|
231
|
-
if (keychainId === undefined)
|
|
232
|
-
return false;
|
|
233
|
-
deleteCredentialForKey('ai', keychainId);
|
|
234
|
-
await deleteAuthProfile('local', 'ai');
|
|
235
|
-
}
|
|
236
|
-
else {
|
|
237
|
-
deleteCredential('ai');
|
|
238
|
-
deleteAiDomain();
|
|
239
|
-
deleteAiGatewayUrl();
|
|
240
|
-
deleteAiOrgId();
|
|
241
|
-
deleteAiWorkspaceId();
|
|
242
|
-
await deleteAuthProfile('global', 'ai');
|
|
243
|
-
}
|
|
244
|
-
return hadConfig;
|
|
245
|
-
}
|
|
246
|
-
export async function applyAuthUnset(types, scope = 'global') {
|
|
247
|
-
const removed = await Promise.all(types.map(async (type) => ({
|
|
248
|
-
label: credentialLabel(type),
|
|
249
|
-
removed: type === 'cicd'
|
|
250
|
-
? await unsetCicdAuth(scope)
|
|
251
|
-
: type === 'crt'
|
|
252
|
-
? await unsetCrtAuth(scope)
|
|
253
|
-
: await unsetAiAuth(scope),
|
|
254
|
-
type,
|
|
255
|
-
})));
|
|
256
|
-
return { removed };
|
|
257
|
-
}
|
|
258
|
-
// Flag parsing, endpoint validation, and keychain writes are intentionally colocated.
|
|
259
|
-
// eslint-disable-next-line complexity
|
|
260
|
-
export async function applyAuthSet(input) {
|
|
261
|
-
const credentials = [];
|
|
262
|
-
const aiPak = input.ai;
|
|
263
|
-
const crtPak = input.crt;
|
|
264
|
-
if (aiPak !== undefined) {
|
|
265
|
-
credentials.push({ type: 'ai', value: aiPak });
|
|
266
|
-
}
|
|
267
|
-
if (input.cicd !== undefined) {
|
|
268
|
-
credentials.push({ type: 'cicd', value: input.cicd });
|
|
269
|
-
}
|
|
270
|
-
if (crtPak !== undefined) {
|
|
271
|
-
credentials.push({ type: 'crt', value: crtPak });
|
|
272
|
-
}
|
|
273
|
-
if ((input.region !== undefined || input.customUrl !== undefined) && input.cicd === undefined) {
|
|
274
|
-
throw new AuthSetError('--region and --custom-url can only be used together with --cicd');
|
|
275
|
-
}
|
|
276
|
-
if (credentials.length === 0 &&
|
|
277
|
-
input.crtDomain === undefined &&
|
|
278
|
-
input.crtOrg === undefined &&
|
|
279
|
-
input.aiDomain === undefined &&
|
|
280
|
-
input.aiGatewayUrl === undefined &&
|
|
281
|
-
input.aiOrg === undefined &&
|
|
282
|
-
input.aiWorkspace === undefined) {
|
|
283
|
-
throw new AuthSetError('Must provide at least one of --cicd, --crt, --crt-domain, --crt-org, --ai, --ai-domain, --ai-org, --ai-gateway-url, or --ai-workspace');
|
|
284
|
-
}
|
|
285
|
-
if (input.region !== undefined && !isCicdRegion(input.region)) {
|
|
286
|
-
throw new AuthSetError(`Invalid region "${input.region}"`);
|
|
287
|
-
}
|
|
288
|
-
if (input.customUrl !== undefined) {
|
|
289
|
-
try {
|
|
290
|
-
normalizeCicdBaseUrl(input.customUrl);
|
|
291
|
-
}
|
|
292
|
-
catch (error) {
|
|
293
|
-
throw new AuthSetError(error.message);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
for (const { type, value } of credentials) {
|
|
297
|
-
if (value.trim().length === 0) {
|
|
298
|
-
throw new AuthSetError(`--${type} value cannot be empty`);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
let resolvedBaseUrl;
|
|
302
|
-
let aiDomain;
|
|
303
|
-
let aiGatewayUrl;
|
|
304
|
-
let aiOrgId;
|
|
305
|
-
let aiWorkspaceId;
|
|
306
|
-
let crtDomain;
|
|
307
|
-
let crtOrgId;
|
|
308
|
-
if (input.cicd !== undefined) {
|
|
309
|
-
resolvedBaseUrl = await resolveCicdEndpoint(input.cicd, input.region, input.customUrl);
|
|
310
|
-
}
|
|
311
|
-
if (input.crtDomain !== undefined) {
|
|
312
|
-
try {
|
|
313
|
-
crtDomain = normalizeCrtDomain(input.crtDomain);
|
|
314
|
-
}
|
|
315
|
-
catch (error) {
|
|
316
|
-
throw new AuthSetError(error.message);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
if (input.crtOrg !== undefined) {
|
|
320
|
-
try {
|
|
321
|
-
crtOrgId = normalizeCrtOrgId(input.crtOrg);
|
|
322
|
-
}
|
|
323
|
-
catch (error) {
|
|
324
|
-
throw new AuthSetError(error.message);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
if (input.aiDomain !== undefined) {
|
|
328
|
-
try {
|
|
329
|
-
aiDomain = normalizeAiDomain(input.aiDomain);
|
|
330
|
-
}
|
|
331
|
-
catch (error) {
|
|
332
|
-
throw new AuthSetError(error.message);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
if (input.aiGatewayUrl !== undefined) {
|
|
336
|
-
try {
|
|
337
|
-
aiGatewayUrl = normalizeAiGatewayUrl(input.aiGatewayUrl);
|
|
338
|
-
}
|
|
339
|
-
catch (error) {
|
|
340
|
-
throw new AuthSetError(error.message);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
if (input.aiOrg !== undefined) {
|
|
344
|
-
try {
|
|
345
|
-
aiOrgId = normalizeAiOrgId(input.aiOrg);
|
|
346
|
-
}
|
|
347
|
-
catch (error) {
|
|
348
|
-
throw new AuthSetError(error.message);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
if (input.aiWorkspace !== undefined) {
|
|
352
|
-
try {
|
|
353
|
-
aiWorkspaceId = normalizeAiWorkspaceId(input.aiWorkspace);
|
|
354
|
-
}
|
|
355
|
-
catch (error) {
|
|
356
|
-
throw new AuthSetError(error.message);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
const crtPat = crtPak?.trim();
|
|
360
|
-
if (crtPat !== undefined && crtPat.length > 0 && crtOrgId !== undefined) {
|
|
361
|
-
try {
|
|
362
|
-
crtDomain = await TestingGateway.resolveAndValidateDomain(crtPat, crtOrgId, crtDomain);
|
|
363
|
-
}
|
|
364
|
-
catch {
|
|
365
|
-
throw new AuthSetError('CRT credentials could not be validated for the selected domain.', 1);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
const stored = credentials.map(({ type }) => ({
|
|
369
|
-
label: credentialLabel(type),
|
|
370
|
-
type,
|
|
371
|
-
}));
|
|
372
|
-
const scope = input.scope ?? 'global';
|
|
373
|
-
try {
|
|
374
|
-
if (scope === 'local' && credentials.length > 0) {
|
|
375
|
-
const currentProfile = readAuthProfile('local') ?? {};
|
|
376
|
-
if (currentProfile.keychainId === undefined) {
|
|
377
|
-
await writeAuthProfile('local', { ...currentProfile, keychainId: ensureLocalKeychainId() });
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
if (resolvedBaseUrl !== undefined) {
|
|
381
|
-
await updateAuthProfile(scope, 'cicd', { baseUrl: resolvedBaseUrl });
|
|
382
|
-
}
|
|
383
|
-
if (aiDomain !== undefined) {
|
|
384
|
-
await updateAuthProfile(scope, 'ai', {
|
|
385
|
-
domain: aiDomain,
|
|
386
|
-
gatewayUrl: aiGatewayUrl,
|
|
387
|
-
orgId: aiOrgId?.toString(),
|
|
388
|
-
workspaceId: aiWorkspaceId,
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
if (aiGatewayUrl !== undefined) {
|
|
392
|
-
await updateAuthProfile(scope, 'ai', {
|
|
393
|
-
domain: aiDomain,
|
|
394
|
-
gatewayUrl: aiGatewayUrl,
|
|
395
|
-
orgId: aiOrgId?.toString(),
|
|
396
|
-
workspaceId: aiWorkspaceId,
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
if (aiOrgId !== undefined) {
|
|
400
|
-
await updateAuthProfile(scope, 'ai', {
|
|
401
|
-
domain: aiDomain,
|
|
402
|
-
gatewayUrl: aiGatewayUrl,
|
|
403
|
-
orgId: aiOrgId.toString(),
|
|
404
|
-
workspaceId: aiWorkspaceId,
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
if (crtDomain !== undefined) {
|
|
408
|
-
await updateAuthProfile(scope, 'crt', { domain: crtDomain, orgId: crtOrgId?.toString() });
|
|
409
|
-
}
|
|
410
|
-
if (crtOrgId !== undefined) {
|
|
411
|
-
await updateAuthProfile(scope, 'crt', { domain: crtDomain, orgId: crtOrgId.toString() });
|
|
412
|
-
}
|
|
413
|
-
for (const { type, value } of credentials) {
|
|
414
|
-
if (scope === 'local') {
|
|
415
|
-
// Sequential writes preserve the shared local keychain identifier.
|
|
416
|
-
// eslint-disable-next-line no-await-in-loop
|
|
417
|
-
await updateAuthProfile(scope, type);
|
|
418
|
-
}
|
|
419
|
-
const keychainId = scope === 'local' ? readAuthProfile('local')?.keychainId : undefined;
|
|
420
|
-
setCredentialForKey(type, value, keychainId);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
catch (error) {
|
|
424
|
-
if (error instanceof CredentialStoreError) {
|
|
425
|
-
throw new AuthSetError(`${error.message} Use AGENTIA_CICD_API_KEY for CICD, AGENTIA_AI_PAK for AI, or AGENTIA_CRT_PAK for CRT in CI/CD.`, 1);
|
|
426
|
-
}
|
|
427
|
-
throw error;
|
|
428
|
-
}
|
|
429
|
-
aiWorkspaceId = await resolveAiWorkspaceForAuthSet(input, {
|
|
430
|
-
domain: aiDomain,
|
|
431
|
-
gatewayUrl: aiGatewayUrl,
|
|
432
|
-
org: aiOrgId,
|
|
433
|
-
pak: aiPak?.trim(),
|
|
434
|
-
pat: aiPak?.trim(),
|
|
435
|
-
workspace: aiWorkspaceId,
|
|
436
|
-
});
|
|
437
|
-
if (aiWorkspaceId !== undefined) {
|
|
438
|
-
try {
|
|
439
|
-
await updateAuthProfile(scope, 'ai', {
|
|
440
|
-
domain: aiDomain,
|
|
441
|
-
gatewayUrl: aiGatewayUrl,
|
|
442
|
-
orgId: aiOrgId?.toString(),
|
|
443
|
-
workspaceId: aiWorkspaceId,
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
catch (error) {
|
|
447
|
-
if (error instanceof CredentialStoreError) {
|
|
448
|
-
throw new AuthSetError(`${error.message} Use AGENTIA_AI_PAK and AGENTIA_AI_WORKSPACE in CI/CD.`, 1);
|
|
449
|
-
}
|
|
450
|
-
throw error;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
if (input.cicd !== undefined) {
|
|
454
|
-
await getUserContext({
|
|
455
|
-
forceRefresh: true,
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
return {
|
|
459
|
-
ai: aiDomain !== undefined || aiGatewayUrl !== undefined || aiOrgId !== undefined || aiWorkspaceId !== undefined
|
|
460
|
-
? { domain: aiDomain, gatewayUrl: aiGatewayUrl, orgId: aiOrgId, workspaceId: aiWorkspaceId }
|
|
461
|
-
: undefined,
|
|
462
|
-
baseUrl: resolvedBaseUrl,
|
|
463
|
-
crt: crtDomain !== undefined || crtOrgId !== undefined ? { domain: crtDomain, orgId: crtOrgId } : undefined,
|
|
464
|
-
stored,
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
async function resolveCicdEndpoint(apiKey, region, customUrl) {
|
|
468
|
-
try {
|
|
469
|
-
return await CicdGateway.resolveAndValidateEndpoint(apiKey, {
|
|
470
|
-
customUrl,
|
|
471
|
-
region,
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
catch {
|
|
475
|
-
throw new AuthSetError('CICD API key could not be validated for the selected endpoint.', 1);
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
async function resolveAiWorkspaceForAuthSet(input, overrides) {
|
|
479
|
-
const aiTouched = input.ai !== undefined ||
|
|
480
|
-
input.aiDomain !== undefined ||
|
|
481
|
-
input.aiGatewayUrl !== undefined ||
|
|
482
|
-
input.aiOrg !== undefined ||
|
|
483
|
-
input.aiWorkspace !== undefined;
|
|
484
|
-
if (!aiTouched)
|
|
485
|
-
return undefined;
|
|
486
|
-
let credentials;
|
|
487
|
-
try {
|
|
488
|
-
credentials = resolveAiCredentials(overrides);
|
|
489
|
-
}
|
|
490
|
-
catch (error) {
|
|
491
|
-
if (input.ai !== undefined || input.aiWorkspace !== undefined) {
|
|
492
|
-
throw new AuthSetError(error.message, 1);
|
|
493
|
-
}
|
|
494
|
-
return overrides.workspace;
|
|
495
|
-
}
|
|
496
|
-
const candidateWorkspace = overrides.workspace ?? credentials.workspaceId;
|
|
497
|
-
const explicitWorkspace = overrides.workspace !== undefined;
|
|
498
|
-
if (candidateWorkspace !== undefined) {
|
|
499
|
-
try {
|
|
500
|
-
await AiGateway.getWorkspace(candidateWorkspace, { ...overrides, workspace: candidateWorkspace });
|
|
501
|
-
return candidateWorkspace;
|
|
502
|
-
}
|
|
503
|
-
catch (error) {
|
|
504
|
-
if (explicitWorkspace)
|
|
505
|
-
throw new AuthSetError(error.message, 1);
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
try {
|
|
509
|
-
const workspace = await AiGateway.createWorkspace(undefined, { ...overrides, workspace: undefined });
|
|
510
|
-
return workspace.id;
|
|
511
|
-
}
|
|
512
|
-
catch (error) {
|
|
513
|
-
throw new AuthSetError(error.message, 1);
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
//# sourceMappingURL=auth-config.js.map
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const AuthSetError = modules["auth-config.js"]["AuthSetError"]
|
|
3
|
+
const COPADO_ACCOUNT_SUMMARY_LOGIN_URL = modules["auth-config.js"]["COPADO_ACCOUNT_SUMMARY_LOGIN_URL"]
|
|
4
|
+
const COPADO_ROBOTIC_PERSONAL_ACCESS_KEY_URL = modules["auth-config.js"]["COPADO_ROBOTIC_PERSONAL_ACCESS_KEY_URL"]
|
|
5
|
+
const applyAuthSet = modules["auth-config.js"]["applyAuthSet"]
|
|
6
|
+
const applyAuthUnset = modules["auth-config.js"]["applyAuthUnset"]
|
|
7
|
+
const confirmAuthUnset = modules["auth-config.js"]["confirmAuthUnset"]
|
|
8
|
+
const formatAuthUnsetConfirmation = modules["auth-config.js"]["formatAuthUnsetConfirmation"]
|
|
9
|
+
const formatCicdApiKeyHelp = modules["auth-config.js"]["formatCicdApiKeyHelp"]
|
|
10
|
+
const formatPersonalAccessKeyHelp = modules["auth-config.js"]["formatPersonalAccessKeyHelp"]
|
|
11
|
+
const formatTerminalHyperlink = modules["auth-config.js"]["formatTerminalHyperlink"]
|
|
12
|
+
const getAiAuthStatus = modules["auth-config.js"]["getAiAuthStatus"]
|
|
13
|
+
const getCicdAuthStatus = modules["auth-config.js"]["getCicdAuthStatus"]
|
|
14
|
+
const getCrtAuthStatus = modules["auth-config.js"]["getCrtAuthStatus"]
|
|
15
|
+
const hasAuthUnsetTestConfirm = modules["auth-config.js"]["hasAuthUnsetTestConfirm"]
|
|
16
|
+
const isCicdConfigured = modules["auth-config.js"]["isCicdConfigured"]
|
|
17
|
+
const resetAuthUnsetConfirmForTests = modules["auth-config.js"]["resetAuthUnsetConfirmForTests"]
|
|
18
|
+
const resolveAuthUnsetTypes = modules["auth-config.js"]["resolveAuthUnsetTypes"]
|
|
19
|
+
const setAuthUnsetConfirmForTests = modules["auth-config.js"]["setAuthUnsetConfirmForTests"]
|
|
20
|
+
export {AuthSetError, COPADO_ACCOUNT_SUMMARY_LOGIN_URL, COPADO_ROBOTIC_PERSONAL_ACCESS_KEY_URL, applyAuthSet, applyAuthUnset, confirmAuthUnset, formatAuthUnsetConfirmation, formatCicdApiKeyHelp, formatPersonalAccessKeyHelp, formatTerminalHyperlink, getAiAuthStatus, getCicdAuthStatus, getCrtAuthStatus, hasAuthUnsetTestConfirm, isCicdConfigured, resetAuthUnsetConfirmForTests, resolveAuthUnsetTypes, setAuthUnsetConfirmForTests};
|
package/dist/lib/auth-profile.js
CHANGED
|
@@ -1,112 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
function readDocument(filePath) {
|
|
11
|
-
try {
|
|
12
|
-
const parsed = JSON.parse(readFileSync(filePath, 'utf8'));
|
|
13
|
-
return typeof parsed === 'object' && parsed !== null && !Array.isArray(parsed) ? parsed : {};
|
|
14
|
-
}
|
|
15
|
-
catch {
|
|
16
|
-
return {};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function validString(value) {
|
|
20
|
-
return typeof value === 'string' && value.trim().length > 0 ? value : undefined;
|
|
21
|
-
}
|
|
22
|
-
function parseProfile(value) {
|
|
23
|
-
if (typeof value !== 'object' || value === null || Array.isArray(value))
|
|
24
|
-
return undefined;
|
|
25
|
-
const source = value;
|
|
26
|
-
if (source.version !== 1)
|
|
27
|
-
return undefined;
|
|
28
|
-
const profile = { version: 1 };
|
|
29
|
-
const keychainId = validString(source.keychainId);
|
|
30
|
-
if (keychainId !== undefined)
|
|
31
|
-
profile.keychainId = keychainId;
|
|
32
|
-
for (const type of ['cicd', 'crt', 'ai']) {
|
|
33
|
-
const section = source[type];
|
|
34
|
-
if (typeof section !== 'object' || section === null || Array.isArray(section))
|
|
35
|
-
continue;
|
|
36
|
-
const values = section;
|
|
37
|
-
if (type === 'cicd') {
|
|
38
|
-
const baseUrl = validString(values.baseUrl);
|
|
39
|
-
profile.cicd = baseUrl === undefined ? {} : { baseUrl };
|
|
40
|
-
}
|
|
41
|
-
else if (type === 'crt') {
|
|
42
|
-
const domain = validString(values.domain);
|
|
43
|
-
const orgId = validString(values.orgId);
|
|
44
|
-
profile.crt = { domain, orgId };
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
const domain = validString(values.domain);
|
|
48
|
-
const gatewayUrl = validString(values.gatewayUrl);
|
|
49
|
-
const orgId = validString(values.orgId);
|
|
50
|
-
const workspaceId = validString(values.workspaceId);
|
|
51
|
-
profile.ai = { domain, gatewayUrl, orgId, workspaceId };
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return profile;
|
|
55
|
-
}
|
|
56
|
-
export function readAuthProfile(scope) {
|
|
57
|
-
return parseProfile(readDocument(configPath(scope)).auth);
|
|
58
|
-
}
|
|
59
|
-
export function localProfileKeychainId(type) {
|
|
60
|
-
const profile = readAuthProfile('local');
|
|
61
|
-
return profile?.[type] === undefined ? undefined : profile.keychainId;
|
|
62
|
-
}
|
|
63
|
-
export function ensureLocalKeychainId() {
|
|
64
|
-
const current = readAuthProfile('local');
|
|
65
|
-
if (current?.keychainId !== undefined)
|
|
66
|
-
return current.keychainId;
|
|
67
|
-
return randomUUID();
|
|
68
|
-
}
|
|
69
|
-
export async function writeAuthProfile(scope, profile) {
|
|
70
|
-
const filePath = configPath(scope);
|
|
71
|
-
const document = readDocument(filePath);
|
|
72
|
-
document.auth = { ...profile, version: 1 };
|
|
73
|
-
await writeDocument(filePath, document);
|
|
74
|
-
return profile;
|
|
75
|
-
}
|
|
76
|
-
export async function updateAuthProfile(scope, type, metadata = undefined) {
|
|
77
|
-
const current = readAuthProfile(scope) ?? {};
|
|
78
|
-
const next = {
|
|
79
|
-
...current,
|
|
80
|
-
[type]: metadata === undefined
|
|
81
|
-
? (current[type] ?? {})
|
|
82
|
-
: {
|
|
83
|
-
...current[type],
|
|
84
|
-
...Object.fromEntries(Object.entries(metadata).filter(([, value]) => value !== undefined)),
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
if (scope === 'local')
|
|
88
|
-
next.keychainId = current.keychainId ?? ensureLocalKeychainId();
|
|
89
|
-
return writeAuthProfile(scope, next);
|
|
90
|
-
}
|
|
91
|
-
export async function deleteAuthProfile(scope, type) {
|
|
92
|
-
const current = readAuthProfile(scope);
|
|
93
|
-
if (current === undefined || current[type] === undefined)
|
|
94
|
-
return false;
|
|
95
|
-
const next = { ...current };
|
|
96
|
-
delete next[type];
|
|
97
|
-
await writeAuthProfile(scope, next);
|
|
98
|
-
return true;
|
|
99
|
-
}
|
|
100
|
-
async function writeDocument(filePath, document) {
|
|
101
|
-
await mkdir(path.dirname(filePath), { recursive: true });
|
|
102
|
-
const tempPath = `${filePath}.${process.pid}.tmp`;
|
|
103
|
-
try {
|
|
104
|
-
await writeFile(tempPath, `${JSON.stringify(document, null, 2)}\n`, 'utf8');
|
|
105
|
-
await rename(tempPath, filePath);
|
|
106
|
-
}
|
|
107
|
-
catch (error) {
|
|
108
|
-
await unlink(tempPath).catch(() => { });
|
|
109
|
-
throw error;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
//# sourceMappingURL=auth-profile.js.map
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const deleteAuthProfile = modules["auth-profile.js"]["deleteAuthProfile"]
|
|
3
|
+
const ensureLocalKeychainId = modules["auth-profile.js"]["ensureLocalKeychainId"]
|
|
4
|
+
const localProfileKeychainId = modules["auth-profile.js"]["localProfileKeychainId"]
|
|
5
|
+
const readAuthProfile = modules["auth-profile.js"]["readAuthProfile"]
|
|
6
|
+
const updateAuthProfile = modules["auth-profile.js"]["updateAuthProfile"]
|
|
7
|
+
const writeAuthProfile = modules["auth-profile.js"]["writeAuthProfile"]
|
|
8
|
+
export {deleteAuthProfile, ensureLocalKeychainId, localProfileKeychainId, readAuthProfile, updateAuthProfile, writeAuthProfile};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import {modules} from './runtime.js';
|
|
2
|
+
const formatAiStatusLine = modules["auth-status-format.js"]["formatAiStatusLine"]
|
|
3
|
+
const formatAuthScope = modules["auth-status-format.js"]["formatAuthScope"]
|
|
4
|
+
const formatCicdStatusLine = modules["auth-status-format.js"]["formatCicdStatusLine"]
|
|
5
|
+
const formatCrtStatusLine = modules["auth-status-format.js"]["formatCrtStatusLine"]
|
|
6
|
+
export {formatAiStatusLine, formatAuthScope, formatCicdStatusLine, formatCrtStatusLine};
|