@copado/agentia-cli 1.0.0 → 1.2.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 +57 -0
- package/README.md +2252 -1529
- package/dist/commands/ai/agent/ask.js +4 -4
- package/dist/commands/ai/agent/chat.js +4 -4
- package/dist/commands/cicd/cloud/commit.js +7 -2
- 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/list.js +13 -17
- package/dist/commands/cicd/credential/open.js +30 -0
- package/dist/commands/cicd/credential/update.js +9 -12
- package/dist/commands/cicd/environment/auth/status.js +34 -13
- package/dist/commands/cicd/environment/auth/web/login.js +20 -4
- package/dist/commands/cicd/environment/open.js +6 -22
- package/dist/commands/cicd/extension/create.js +53 -0
- package/dist/commands/cicd/extension/install.js +127 -0
- package/dist/commands/cicd/extension/package.js +35 -0
- package/dist/commands/cicd/extension/publish.js +61 -0
- package/dist/commands/cicd/extension/uninstall.js +99 -0
- package/dist/commands/cicd/extension/validate.js +47 -0
- 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/metadata/content/get.js +1 -1
- package/dist/commands/cicd/metadata/dependency/list.js +2 -2
- package/dist/commands/cicd/metadata/explore.js +81 -0
- package/dist/commands/cicd/metadata/list.js +3 -3
- package/dist/commands/cicd/metadata/refresh/deleted.js +1 -1
- package/dist/commands/cicd/metadata/refresh/run.js +2 -2
- package/dist/commands/cicd/metadata/refresh/status.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/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/work/create.js +1 -0
- package/dist/commands/cicd/work/environment-sync.js +8 -7
- package/dist/commands/cicd/work/get.js +18 -2
- package/dist/commands/cicd/work/set.js +6 -4
- package/dist/commands/cicd/work/submit.js +3 -2
- package/dist/commands/cicd/work/update.js +1 -0
- package/dist/commands/plugins/install.js +2 -5
- package/dist/commands/setup/skills/create.js +29 -3
- package/dist/commands/setup/skills/list.js +55 -0
- package/dist/commands/setup/skills/update.js +37 -4
- package/dist/commands/setup.js +3 -3
- 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/live/continue.js +5 -10
- package/dist/commands/testing/live/execute.js +3 -3
- package/dist/commands/testing/live/history.js +7 -2
- package/dist/commands/testing/live/inspect.js +5 -4
- package/dist/commands/testing/live/interrupt.js +5 -10
- package/dist/commands/testing/live/recorder.js +23 -115
- package/dist/commands/testing/live/reports.js +3 -3
- package/dist/commands/testing/live/screenshot.js +3 -3
- package/dist/commands/testing/live/set-options.js +11 -4
- package/dist/commands/testing/live/start.js +9 -4
- package/dist/commands/testing/live/status.js +2 -5
- package/dist/commands/testing/live/stop.js +3 -5
- package/dist/commands/testing/live/view.js +2 -2
- 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/lib/ai-types.js +2 -1
- package/dist/lib/claude-mcp-config.js +15 -0
- package/dist/lib/credential-sync.js +1 -2
- package/dist/lib/defaults-store.js +4 -1
- 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/assets.js +4 -0
- package/dist/lib/extension/create.js +3 -0
- package/dist/lib/extension/git.js +17 -0
- package/dist/lib/extension/index.js +27 -0
- package/dist/lib/extension/install.js +4 -0
- package/dist/lib/extension/manifest.js +21 -0
- package/dist/lib/extension/package.js +3 -0
- package/dist/lib/extension/paths.js +5 -0
- package/dist/lib/extension/publish.js +3 -0
- package/dist/lib/extension/sf-deploy.js +8 -0
- package/dist/lib/extension/source.js +7 -0
- package/dist/lib/extension/uninstall.js +3 -0
- 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/function-types.js +3 -1
- 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/server.js +70 -1
- package/dist/lib/mcp/testing-live-tools.js +24 -13
- package/dist/lib/mcp/testing-tools.js +239 -550
- package/dist/lib/mcp/tool-annotations.js +27 -18
- package/dist/lib/mcp/tools.js +117 -32
- package/dist/lib/mcp/work-tools.js +37 -10
- 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/project-setup.js +5 -4
- package/dist/lib/runtime.js +1 -1
- package/dist/lib/salesforce-tooling-check.js +6 -0
- package/dist/lib/setup-skills.js +4 -1
- package/dist/lib/setup-templates.js +1 -4
- package/dist/lib/skill-packs.js +7 -0
- package/dist/lib/template-types.js +3 -1
- package/dist/lib/testing-archive.js +9 -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 +4 -1
- package/dist/lib/testing-live-command.js +3 -1
- package/dist/lib/testing-live-operations.js +7 -1
- package/dist/lib/testing-live-recorder.js +3 -1
- package/dist/lib/testing-live-state.js +8 -1
- package/dist/lib/testing-operations.js +6 -21
- package/dist/lib/testing-sanitization.js +2 -1
- package/dist/lib/testing-secret-input.js +2 -1
- package/dist/lib/testing-types.js +24 -3
- package/dist/lib/work-committed-metadata.js +4 -0
- package/dist/lib/work-environment-sync.js +3 -1
- package/dist/lib/work-flags.js +6 -1
- package/dist/lib/work-get.js +2 -1
- package/dist/lib/work-local-development-flow.js +4 -0
- package/dist/lib/work-submit-wait.js +3 -1
- package/oclif.manifest.json +9771 -9650
- package/package.json +35 -2
- package/templates/rules/cursor/agentia.mdc +29 -0
- package/templates/skills/agentia/SKILL.md +29 -0
- package/templates/skills/agentia-ai/SKILL.md +3 -4
- package/templates/skills/agentia-ai/references/ai-agents.md +2 -2
- package/templates/skills/agentia-cicd/SKILL.md +9 -4
- package/templates/skills/agentia-cicd/references/environments-and-credentials.md +19 -13
- package/templates/skills/agentia-cicd/references/extensions.md +52 -0
- package/templates/skills/agentia-cicd/references/pipelines.md +36 -2
- package/templates/skills/agentia-cicd/references/work.md +25 -8
- package/templates/skills/agentia-metadata/SKILL.md +140 -0
- package/templates/skills/agentia-metadata/references/metadata-explore.md +142 -0
- package/templates/skills/agentia-testing/SKILL.md +3 -3
- package/templates/skills/agentia-testing/references/tests.md +14 -14
- 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/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/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-endpoints.js +0 -6
- package/dist/lib/testing-live-history.js +0 -7
- package/dist/lib/testing-run-command.js +0 -3
- package/dist/lib/testing-schedule.js +0 -5
- package/dist/lib/testing-session.js +0 -5
- package/dist/lib/testing-watch.js +0 -4
- package/templates/AGENTS.md +0 -24
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { Args } from '@oclif/core';
|
|
2
1
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
|
-
import { testingLiveCommonFlags } from '../../../lib/testing-live-command.js';
|
|
2
|
+
import { testingLiveCommonFlags, testingLiveOptionalJobArg } from '../../../lib/testing-live-command.js';
|
|
4
3
|
import { getTestingLiveStatus } from '../../../lib/testing-live-operations.js';
|
|
5
4
|
export default class TestingLiveStatus extends AgentiaCommand {
|
|
6
|
-
static args =
|
|
7
|
-
'job-id': Args.integer({ description: 'Optional CRT job/test ID guard.', required: false }),
|
|
8
|
-
};
|
|
5
|
+
static args = testingLiveOptionalJobArg;
|
|
9
6
|
static description = 'Inspect sanitized status for the active CRT live session';
|
|
10
7
|
static examples = ['<%= config.bin %> <%= command.id %> --project <project-id> --json'];
|
|
11
8
|
static flags = testingLiveCommonFlags;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
2
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
3
|
import { confirmTestingAction } from '../../../lib/testing-confirmation.js';
|
|
4
|
-
import { testingLiveCommonFlags } from '../../../lib/testing-live-command.js';
|
|
4
|
+
import { testingLiveCommonFlags, testingLiveOptionalJobArg } from '../../../lib/testing-live-command.js';
|
|
5
5
|
import { stopTestingLive } from '../../../lib/testing-live-operations.js';
|
|
6
6
|
export default class TestingLiveStop extends AgentiaCommand {
|
|
7
|
-
static args =
|
|
8
|
-
'job-id': Args.integer({ description: 'Optional CRT job/test ID guard.', required: false }),
|
|
9
|
-
};
|
|
7
|
+
static args = testingLiveOptionalJobArg;
|
|
10
8
|
static description = 'Stop the active Copado Robotic Testing live session';
|
|
11
9
|
static examples = [
|
|
12
10
|
'<%= config.bin %> <%= command.id %> --project <project-id>',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Flags } from '@oclif/core';
|
|
2
2
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
3
|
import { openUrl } from '../../../lib/open-browser.js';
|
|
4
|
+
import { testingLiveCommonFlags } from '../../../lib/testing-live-command.js';
|
|
4
5
|
import { testingLiveViewUrl } from '../../../lib/testing-live-operations.js';
|
|
5
6
|
export default class TestingLiveView extends AgentiaCommand {
|
|
6
7
|
static description = 'Open the authenticated CRT run/session page without putting viewer secrets in the URL';
|
|
@@ -9,10 +10,9 @@ export default class TestingLiveView extends AgentiaCommand {
|
|
|
9
10
|
'<%= config.bin %> <%= command.id %> --project <project-id> --no-open --json',
|
|
10
11
|
];
|
|
11
12
|
static flags = {
|
|
13
|
+
...testingLiveCommonFlags,
|
|
12
14
|
interactive: Flags.boolean({ default: false, description: 'Request interactive viewer controls when available.' }),
|
|
13
15
|
'no-open': Flags.boolean({ default: false, description: 'Return the nonsecret URL without opening a browser.' }),
|
|
14
|
-
project: Flags.integer({ char: 'p', description: 'CRT project ID.', required: true }),
|
|
15
|
-
'session-id': Flags.integer({ description: 'Guard that must match the active CRT live session.', min: 1 }),
|
|
16
16
|
};
|
|
17
17
|
async run() {
|
|
18
18
|
const { flags } = await this.parse(TestingLiveView);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Flags } from '@oclif/core';
|
|
2
2
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
3
|
import { createTestingProject } from '../../../lib/testing-operations.js';
|
|
4
|
-
import { formatTestingRecord
|
|
4
|
+
import { formatTestingRecord } from '../../../lib/testing-types.js';
|
|
5
5
|
export default class TestingProjectCreate extends AgentiaCommand {
|
|
6
6
|
static description = 'Create a Copado Robotic Testing project';
|
|
7
7
|
static examples = [
|
|
@@ -9,35 +9,19 @@ export default class TestingProjectCreate extends AgentiaCommand {
|
|
|
9
9
|
'<%= config.bin %> <%= command.id %> --name "QA Tests" --description "Smoke suite" --json',
|
|
10
10
|
];
|
|
11
11
|
static flags = {
|
|
12
|
-
'dashboard-id': Flags.integer({
|
|
13
|
-
description: 'Optional CRT dashboard ID.',
|
|
14
|
-
min: 1,
|
|
15
|
-
}),
|
|
16
12
|
description: Flags.string({
|
|
17
13
|
description: 'Project description.',
|
|
18
14
|
}),
|
|
19
|
-
executor: Flags.option({
|
|
20
|
-
description: 'Project execution backend.',
|
|
21
|
-
options: [...TESTING_PROJECT_EXECUTORS],
|
|
22
|
-
})(),
|
|
23
15
|
name: Flags.string({
|
|
24
16
|
description: 'Project name.',
|
|
25
17
|
required: true,
|
|
26
18
|
}),
|
|
27
|
-
type: Flags.option({
|
|
28
|
-
default: 'ta',
|
|
29
|
-
description: 'CRT project type.',
|
|
30
|
-
options: [...TESTING_PROJECT_TYPES],
|
|
31
|
-
})(),
|
|
32
19
|
};
|
|
33
20
|
async run() {
|
|
34
21
|
const { flags } = await this.parse(TestingProjectCreate);
|
|
35
22
|
const project = await this.withSpinner('Creating testing project', () => createTestingProject({
|
|
36
|
-
dashboardId: flags['dashboard-id'],
|
|
37
23
|
description: flags.description,
|
|
38
24
|
name: flags.name,
|
|
39
|
-
projectExecutor: flags.executor,
|
|
40
|
-
projectType: flags.type,
|
|
41
25
|
}));
|
|
42
26
|
this.display(() => {
|
|
43
27
|
this.log('Testing project created');
|
|
@@ -14,7 +14,6 @@ export default class TestingProjectGet extends AgentiaCommand {
|
|
|
14
14
|
'<%= config.bin %> <%= command.id %> <project-id>',
|
|
15
15
|
'<%= config.bin %> <%= command.id %> <project-id> --json',
|
|
16
16
|
];
|
|
17
|
-
static flags = {};
|
|
18
17
|
async run() {
|
|
19
18
|
const { args } = await this.parse(TestingProjectGet);
|
|
20
19
|
const project = await this.withSpinner('Fetching testing project', () => getTestingProject({ projectId: args.id }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Flags } from '@oclif/core';
|
|
2
2
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
3
|
import { listTestingProjects } from '../../../lib/testing-operations.js';
|
|
4
|
-
import {
|
|
4
|
+
import { formatTestingProjectTable } from '../../../lib/testing-types.js';
|
|
5
5
|
export default class TestingProjectList extends AgentiaCommand {
|
|
6
6
|
static description = 'List Copado Robotic Testing projects';
|
|
7
7
|
static examples = [
|
|
@@ -21,7 +21,7 @@ export default class TestingProjectList extends AgentiaCommand {
|
|
|
21
21
|
this.log('No testing projects found.');
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
-
this.log(
|
|
24
|
+
this.log(formatTestingProjectTable(projects));
|
|
25
25
|
});
|
|
26
26
|
return projects;
|
|
27
27
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Args
|
|
1
|
+
import { Args } from '@oclif/core';
|
|
2
2
|
import { AgentiaCommand } from '../../../../lib/agentia-command.js';
|
|
3
|
+
import { testingPermissionFlags } from '../../../../lib/testing-flags.js';
|
|
3
4
|
import { setTestingProjectPermission } from '../../../../lib/testing-operations.js';
|
|
4
5
|
import { formatTestingTable } from '../../../../lib/testing-types.js';
|
|
5
6
|
export default class TestingProjectPermissionSet extends AgentiaCommand {
|
|
@@ -11,12 +12,7 @@ export default class TestingProjectPermissionSet extends AgentiaCommand {
|
|
|
11
12
|
'<%= config.bin %> <%= command.id %> <project-id> --user <user-id> --view',
|
|
12
13
|
'<%= config.bin %> <%= command.id %> <project-id> --group <group-id> --view --edit --json',
|
|
13
14
|
];
|
|
14
|
-
static flags =
|
|
15
|
-
edit: Flags.boolean({ default: false, description: 'Grant edit access.' }),
|
|
16
|
-
group: Flags.integer({ description: 'Platform group ID.', exclusive: ['user'], min: 1 }),
|
|
17
|
-
user: Flags.integer({ description: 'Platform user ID.', exclusive: ['group'], min: 1 }),
|
|
18
|
-
view: Flags.boolean({ default: false, description: 'Grant view access.' }),
|
|
19
|
-
};
|
|
15
|
+
static flags = testingPermissionFlags;
|
|
20
16
|
async run() {
|
|
21
17
|
const { args, flags } = await this.parse(TestingProjectPermissionSet);
|
|
22
18
|
const result = await this.withSpinner('Setting testing project permission', () => setTestingProjectPermission({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Args, Flags } from '@oclif/core';
|
|
2
2
|
import { AgentiaCommand } from '../../../../lib/agentia-command.js';
|
|
3
|
+
import { testingPermissionFlags } from '../../../../lib/testing-flags.js';
|
|
3
4
|
import { setTestingProjectPermission } from '../../../../lib/testing-operations.js';
|
|
4
5
|
import { formatTestingTable } from '../../../../lib/testing-types.js';
|
|
5
6
|
export default class TestingProjectPermissionUpdate extends AgentiaCommand {
|
|
@@ -12,9 +13,8 @@ export default class TestingProjectPermissionUpdate extends AgentiaCommand {
|
|
|
12
13
|
'<%= config.bin %> <%= command.id %> <project-id> --group <group-id> --view --json',
|
|
13
14
|
];
|
|
14
15
|
static flags = {
|
|
16
|
+
...testingPermissionFlags,
|
|
15
17
|
edit: Flags.boolean({ default: false, description: 'Set edit access.' }),
|
|
16
|
-
group: Flags.integer({ description: 'Platform group ID.', exclusive: ['user'], min: 1 }),
|
|
17
|
-
user: Flags.integer({ description: 'Platform user ID.', exclusive: ['group'], min: 1 }),
|
|
18
18
|
view: Flags.boolean({ default: false, description: 'Set view access.' }),
|
|
19
19
|
};
|
|
20
20
|
async run() {
|
|
@@ -1,67 +1,64 @@
|
|
|
1
1
|
import { Flags } from '@oclif/core';
|
|
2
2
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
|
-
import { testingProjectFlag
|
|
3
|
+
import { testingProjectFlag } from '../../../lib/testing-flags.js';
|
|
4
4
|
import { createTestingRobot } from '../../../lib/testing-operations.js';
|
|
5
|
-
import { formatTestingRecord, TESTING_ROBOT_REPORTING, TESTING_ROBOT_RUN_ENVIRONMENTS, TESTING_ROBOT_TYPES, } from '../../../lib/testing-types.js';
|
|
5
|
+
import { formatTestingRecord, TESTING_ROBOT_REPORTING, TESTING_ROBOT_REPORTING_DESCRIPTION, TESTING_ROBOT_RUN_ENVIRONMENT_DESCRIPTION, TESTING_ROBOT_RUN_ENVIRONMENTS, TESTING_ROBOT_TYPE_DESCRIPTION, TESTING_ROBOT_TYPES, } from '../../../lib/testing-types.js';
|
|
6
6
|
export default class TestingRobotCreate extends AgentiaCommand {
|
|
7
7
|
static description = 'Create a Copado Robotic Testing robot';
|
|
8
8
|
static examples = [
|
|
9
9
|
'<%= config.bin %> <%= command.id %> --project <project-id> --name "Cloud Robot"',
|
|
10
|
-
'<%= config.bin %> <%= command.id %> --project <project-id> --name "QConnect Robot" --
|
|
10
|
+
'<%= config.bin %> <%= command.id %> --project <project-id> --name "QConnect Robot" --run-environment QConnect --json',
|
|
11
11
|
];
|
|
12
12
|
static flags = {
|
|
13
13
|
...testingProjectFlag,
|
|
14
14
|
description: Flags.string({
|
|
15
15
|
default: '',
|
|
16
|
-
description: '
|
|
16
|
+
description: 'Description for the robot (defaults to empty if omitted).',
|
|
17
17
|
}),
|
|
18
18
|
'fw-version': Flags.string({
|
|
19
19
|
default: 'stable',
|
|
20
|
-
description: '
|
|
20
|
+
description: 'Test framework release channel (for example stable).',
|
|
21
21
|
}),
|
|
22
|
-
kind: Flags.option({
|
|
23
|
-
description: 'Backward-compatible robot run environment alias.',
|
|
24
|
-
exclusive: ['run-environment'],
|
|
25
|
-
options: [...TESTING_ROBOT_RUN_ENVIRONMENTS],
|
|
26
|
-
})(),
|
|
27
22
|
label: Flags.string({
|
|
28
|
-
description: 'Optional robot
|
|
23
|
+
description: 'Optional label for the robot.',
|
|
29
24
|
}),
|
|
30
25
|
name: Flags.string({
|
|
31
|
-
description: '
|
|
26
|
+
description: 'Name for the new robot.',
|
|
32
27
|
required: true,
|
|
33
28
|
}),
|
|
34
|
-
os: Flags.string({
|
|
35
|
-
default: 'linux',
|
|
36
|
-
description: 'Robot operating system.',
|
|
37
|
-
}),
|
|
38
29
|
reporting: Flags.option({
|
|
39
|
-
description:
|
|
30
|
+
description: TESTING_ROBOT_REPORTING_DESCRIPTION,
|
|
40
31
|
options: [...TESTING_ROBOT_REPORTING],
|
|
41
32
|
})(),
|
|
42
|
-
'robot-type': Flags.
|
|
33
|
+
'robot-type': Flags.option({
|
|
43
34
|
default: 'default',
|
|
44
|
-
description:
|
|
35
|
+
description: TESTING_ROBOT_TYPE_DESCRIPTION,
|
|
45
36
|
options: [...TESTING_ROBOT_TYPES],
|
|
46
|
-
}),
|
|
37
|
+
})(),
|
|
47
38
|
'run-environment': Flags.option({
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
default: 'cloud',
|
|
40
|
+
description: TESTING_ROBOT_RUN_ENVIRONMENT_DESCRIPTION,
|
|
50
41
|
options: [...TESTING_ROBOT_RUN_ENVIRONMENTS],
|
|
51
42
|
})(),
|
|
52
43
|
};
|
|
53
44
|
async run() {
|
|
54
|
-
const
|
|
45
|
+
const argv = this.argv.map((arg, index) => {
|
|
46
|
+
if (arg === '--run-environment=paceconnect')
|
|
47
|
+
return '--run-environment=QConnect';
|
|
48
|
+
if (arg === 'paceconnect' && this.argv[index - 1] === '--run-environment')
|
|
49
|
+
return 'QConnect';
|
|
50
|
+
return arg;
|
|
51
|
+
});
|
|
52
|
+
const { flags } = await this.parse(TestingRobotCreate, argv);
|
|
55
53
|
const robot = await this.withSpinner('Creating testing robot', () => createTestingRobot({
|
|
56
54
|
description: flags.description,
|
|
57
55
|
fwVersion: flags['fw-version'],
|
|
58
|
-
kind: (flags['run-environment'] ?? flags.kind ?? 'cloud'),
|
|
59
56
|
label: flags.label,
|
|
60
57
|
name: flags.name,
|
|
61
|
-
os: flags.os,
|
|
62
58
|
projectId: flags.project,
|
|
63
59
|
reporting: flags.reporting,
|
|
64
60
|
robotType: flags['robot-type'],
|
|
61
|
+
runEnvironment: flags['run-environment'],
|
|
65
62
|
}));
|
|
66
63
|
this.display(() => {
|
|
67
64
|
this.log('Testing robot created');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Args } from '@oclif/core';
|
|
2
2
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
|
-
import { testingProjectFlag
|
|
3
|
+
import { testingProjectFlag } from '../../../lib/testing-flags.js';
|
|
4
4
|
import { getTestingRobot } from '../../../lib/testing-operations.js';
|
|
5
5
|
import { formatTestingRecord } from '../../../lib/testing-types.js';
|
|
6
6
|
export default class TestingRobotGet extends AgentiaCommand {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
2
|
-
import { testingProjectFlag
|
|
2
|
+
import { testingProjectFlag } from '../../../lib/testing-flags.js';
|
|
3
3
|
import { listTestingRobots } from '../../../lib/testing-operations.js';
|
|
4
|
-
import {
|
|
4
|
+
import { formatTestingRobotTable } from '../../../lib/testing-types.js';
|
|
5
5
|
export default class TestingRobotList extends AgentiaCommand {
|
|
6
6
|
static description = 'List Copado Robotic Testing robots in a project';
|
|
7
7
|
static examples = [
|
|
@@ -19,7 +19,7 @@ export default class TestingRobotList extends AgentiaCommand {
|
|
|
19
19
|
this.log('No testing robots found.');
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
this.log(
|
|
22
|
+
this.log(formatTestingRobotTable(robots));
|
|
23
23
|
});
|
|
24
24
|
return robots;
|
|
25
25
|
}
|
|
@@ -2,7 +2,7 @@ import { Args, Flags } from '@oclif/core';
|
|
|
2
2
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
3
|
import { testingProjectFlag } from '../../../lib/testing-flags.js';
|
|
4
4
|
import { updateTestingRobot } from '../../../lib/testing-operations.js';
|
|
5
|
-
import { formatTestingRecord, TESTING_ROBOT_REPORTING, TESTING_ROBOT_TYPES, } from '../../../lib/testing-types.js';
|
|
5
|
+
import { formatTestingRecord, TESTING_ROBOT_REPORTING, TESTING_ROBOT_REPORTING_DESCRIPTION, TESTING_ROBOT_TYPE_DESCRIPTION, TESTING_ROBOT_TYPES, } from '../../../lib/testing-types.js';
|
|
6
6
|
export default class TestingRobotUpdate extends AgentiaCommand {
|
|
7
7
|
static args = {
|
|
8
8
|
id: Args.string({ description: 'CRT robot ID.', required: true }),
|
|
@@ -19,11 +19,11 @@ export default class TestingRobotUpdate extends AgentiaCommand {
|
|
|
19
19
|
label: Flags.string({ description: 'New robot label.' }),
|
|
20
20
|
name: Flags.string({ description: 'New robot name.' }),
|
|
21
21
|
reporting: Flags.option({
|
|
22
|
-
description:
|
|
22
|
+
description: TESTING_ROBOT_REPORTING_DESCRIPTION,
|
|
23
23
|
options: [...TESTING_ROBOT_REPORTING],
|
|
24
24
|
})(),
|
|
25
25
|
'robot-type': Flags.option({
|
|
26
|
-
description:
|
|
26
|
+
description: TESTING_ROBOT_TYPE_DESCRIPTION,
|
|
27
27
|
options: [...TESTING_ROBOT_TYPES],
|
|
28
28
|
})(),
|
|
29
29
|
};
|
|
@@ -13,27 +13,21 @@ export default class TestingUserParameterCreate extends AgentiaCommand {
|
|
|
13
13
|
static flags = {
|
|
14
14
|
description: Flags.string({ description: 'Parameter description.' }),
|
|
15
15
|
key: Flags.string({ description: 'Parameter key.', required: true }),
|
|
16
|
-
sensitive: Flags.boolean({ default: false, description: 'Mark the parameter as sensitive.' }),
|
|
16
|
+
sensitive: Flags.boolean({ allowNo: true, default: false, description: 'Mark the parameter as sensitive.' }),
|
|
17
17
|
type: Flags.option({ default: 'parameter', description: 'CRT user-parameter type.', options: ['parameter'] })(),
|
|
18
18
|
unique: Flags.boolean({ default: false, description: 'Reject an existing parameter with the same key.' }),
|
|
19
19
|
...testingSecretInputFlags,
|
|
20
20
|
};
|
|
21
21
|
async run() {
|
|
22
22
|
const { flags } = await this.parse(TestingUserParameterCreate);
|
|
23
|
-
const value = await resolveTestingSecretInput({
|
|
24
|
-
noTrim: flags['no-trim'],
|
|
25
|
-
trim: flags.trim,
|
|
26
|
-
value: flags.value,
|
|
27
|
-
valueFile: flags['value-file'],
|
|
28
|
-
valueStdin: flags['value-stdin'],
|
|
29
|
-
}, { label: 'CRT user-parameter value', required: true });
|
|
23
|
+
const value = await resolveTestingSecretInput(flags, { label: 'CRT user-parameter value', required: true });
|
|
30
24
|
const result = await this.withSpinner('Creating testing user parameter', () => createTestingUserParameter({
|
|
31
25
|
description: flags.description,
|
|
32
26
|
key: flags.key,
|
|
33
27
|
sensitive: flags.sensitive,
|
|
34
28
|
type: 'parameter',
|
|
35
29
|
unique: flags.unique,
|
|
36
|
-
value
|
|
30
|
+
value,
|
|
37
31
|
}));
|
|
38
32
|
this.display(() => {
|
|
39
33
|
this.log('Testing user parameter created');
|
|
@@ -21,13 +21,7 @@ export default class TestingUserParameterUpdate extends AgentiaCommand {
|
|
|
21
21
|
};
|
|
22
22
|
async run() {
|
|
23
23
|
const { args, flags } = await this.parse(TestingUserParameterUpdate);
|
|
24
|
-
const value = await resolveTestingSecretInput({
|
|
25
|
-
noTrim: flags['no-trim'],
|
|
26
|
-
trim: flags.trim,
|
|
27
|
-
value: flags.value,
|
|
28
|
-
valueFile: flags['value-file'],
|
|
29
|
-
valueStdin: flags['value-stdin'],
|
|
30
|
-
}, { label: 'CRT user-parameter value', required: false });
|
|
24
|
+
const value = await resolveTestingSecretInput(flags, { label: 'CRT user-parameter value', required: false });
|
|
31
25
|
const result = await this.withSpinner('Updating testing user parameter', () => updateTestingUserParameter({
|
|
32
26
|
description: flags.description,
|
|
33
27
|
key: flags.key,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { 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 { createTestingVariable } 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';
|
|
@@ -16,7 +16,7 @@ export default class TestingVariableCreate extends AgentiaCommand {
|
|
|
16
16
|
description: 'Variable description.',
|
|
17
17
|
}),
|
|
18
18
|
job: Flags.integer({
|
|
19
|
-
description: 'Scope the variable to a CRT job
|
|
19
|
+
description: 'Scope the variable to a CRT job ID.',
|
|
20
20
|
exclusive: ['robot'],
|
|
21
21
|
}),
|
|
22
22
|
key: Flags.string({
|
|
@@ -28,6 +28,7 @@ export default class TestingVariableCreate extends AgentiaCommand {
|
|
|
28
28
|
exclusive: ['job'],
|
|
29
29
|
}),
|
|
30
30
|
sensitive: Flags.boolean({
|
|
31
|
+
allowNo: true,
|
|
31
32
|
default: false,
|
|
32
33
|
description: 'Mark the variable as sensitive.',
|
|
33
34
|
}),
|
|
@@ -44,13 +45,7 @@ export default class TestingVariableCreate extends AgentiaCommand {
|
|
|
44
45
|
};
|
|
45
46
|
async run() {
|
|
46
47
|
const { flags } = await this.parse(TestingVariableCreate);
|
|
47
|
-
const value = await resolveTestingSecretInput({
|
|
48
|
-
noTrim: flags['no-trim'],
|
|
49
|
-
trim: flags.trim,
|
|
50
|
-
value: flags.value,
|
|
51
|
-
valueFile: flags['value-file'],
|
|
52
|
-
valueStdin: flags['value-stdin'],
|
|
53
|
-
}, { label: 'CRT variable value', required: true });
|
|
48
|
+
const value = await resolveTestingSecretInput(flags, { label: 'CRT variable value', required: true });
|
|
54
49
|
const result = await this.withSpinner('Creating testing variable', () => createTestingVariable({
|
|
55
50
|
description: flags.description,
|
|
56
51
|
jobId: flags.job,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Flags } from '@oclif/core';
|
|
2
2
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
|
-
import { testingProjectFlag
|
|
3
|
+
import { testingProjectFlag } from '../../../lib/testing-flags.js';
|
|
4
4
|
import { listTestingVariables } from '../../../lib/testing-operations.js';
|
|
5
|
-
import { formatTestingTable, TESTING_VARIABLE_TYPES
|
|
5
|
+
import { formatTestingTable, TESTING_VARIABLE_TYPES } from '../../../lib/testing-types.js';
|
|
6
6
|
export default class TestingVariableList extends AgentiaCommand {
|
|
7
7
|
static description = 'List Copado Robotic Testing variables/secrets';
|
|
8
8
|
static examples = [
|
|
@@ -12,7 +12,7 @@ export default class TestingVariableList extends AgentiaCommand {
|
|
|
12
12
|
static flags = {
|
|
13
13
|
...testingProjectFlag,
|
|
14
14
|
job: Flags.integer({
|
|
15
|
-
description: 'Filter for a CRT job
|
|
15
|
+
description: 'Filter for a CRT job ID.',
|
|
16
16
|
exclusive: ['robot'],
|
|
17
17
|
}),
|
|
18
18
|
key: Flags.string({
|
|
@@ -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
|
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,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};
|
|
@@ -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"]
|
|
@@ -12,6 +13,7 @@ const readEnableLocalPromote = modules["defaults-store.js"]["readEnableLocalProm
|
|
|
12
13
|
const readLastApexTestClassesSelected = modules["defaults-store.js"]["readLastApexTestClassesSelected"]
|
|
13
14
|
const readLastBaseBranch = modules["defaults-store.js"]["readLastBaseBranch"]
|
|
14
15
|
const readLastDevOrgBranch = modules["defaults-store.js"]["readLastDevOrgBranch"]
|
|
16
|
+
const readLastEnvironmentSyncName = modules["defaults-store.js"]["readLastEnvironmentSyncName"]
|
|
15
17
|
const readLastFullMetadataSelected = modules["defaults-store.js"]["readLastFullMetadataSelected"]
|
|
16
18
|
const readLastPermissionSelected = modules["defaults-store.js"]["readLastPermissionSelected"]
|
|
17
19
|
const readLastPullRequestBaseUrl = modules["defaults-store.js"]["readLastPullRequestBaseUrl"]
|
|
@@ -31,7 +33,8 @@ const unsetDefaults = modules["defaults-store.js"]["unsetDefaults"]
|
|
|
31
33
|
const writeCredentialSyncReceipt = modules["defaults-store.js"]["writeCredentialSyncReceipt"]
|
|
32
34
|
const writeDefaults = modules["defaults-store.js"]["writeDefaults"]
|
|
33
35
|
const writeLastCommitSelections = modules["defaults-store.js"]["writeLastCommitSelections"]
|
|
36
|
+
const writeLastEnvironmentSyncName = modules["defaults-store.js"]["writeLastEnvironmentSyncName"]
|
|
34
37
|
const writeLastWorkSelection = modules["defaults-store.js"]["writeLastWorkSelection"]
|
|
35
38
|
const writeUpdateChannel = modules["defaults-store.js"]["writeUpdateChannel"]
|
|
36
39
|
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};
|
|
40
|
+
export {DEFAULT_WORK_PUSH_RETRY_TIMEOUT_SECONDS, clearCredentialSyncReceipt, clearLastEnvironmentSyncName, clearLastKeysFromUserConfig, clearUserContext, getDefaultsStorePaths, isValidUserContext, migrateUserSettingsFromProjectConfig, readCredentialSyncReceipt, readDefaults, readEnableLocalPromote, readLastApexTestClassesSelected, readLastBaseBranch, readLastDevOrgBranch, readLastEnvironmentSyncName, readLastFullMetadataSelected, readLastPermissionSelected, readLastPullRequestBaseUrl, readLastWorkItem, readLastWorkItemId, readLastWorkItemTitle, readSkipNestedMetadataDetection, readSkipPullRequest, readUpdateChannel, readUserContext, readWorkPushRetryTimeoutSeconds, resetDefaultsStorePathsForTests, resolveDefaults, setDefaultsStorePathsForTests, setDefaultsStoreProjectRoot, unsetDefaults, writeCredentialSyncReceipt, writeDefaults, writeLastCommitSelections, writeLastEnvironmentSyncName, writeLastWorkSelection, writeUpdateChannel, writeUserContext};
|
|
@@ -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};
|