@copado/agentia-cli 0.84.0-alpha.0 → 0.85.0-alpha.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.
Files changed (81) hide show
  1. package/README.md +694 -161
  2. package/dist/commands/cicd/pipeline/connection/create.d.ts +19 -0
  3. package/dist/commands/cicd/pipeline/connection/create.js +67 -0
  4. package/dist/commands/cicd/pipeline/connection/create.js.map +1 -0
  5. package/dist/commands/cicd/pipeline/connection/delete.d.ts +15 -0
  6. package/dist/commands/cicd/pipeline/connection/delete.js +62 -0
  7. package/dist/commands/cicd/pipeline/connection/delete.js.map +1 -0
  8. package/dist/commands/cicd/pipeline/connection/open.d.ts +12 -0
  9. package/dist/commands/cicd/pipeline/connection/open.js +30 -0
  10. package/dist/commands/cicd/pipeline/connection/open.js.map +1 -0
  11. package/dist/commands/cicd/pipeline/connection/update.d.ts +19 -0
  12. package/dist/commands/cicd/pipeline/connection/update.js +55 -0
  13. package/dist/commands/cicd/pipeline/connection/update.js.map +1 -0
  14. package/dist/commands/cicd/pipeline/create.d.ts +19 -0
  15. package/dist/commands/cicd/pipeline/create.js +42 -0
  16. package/dist/commands/cicd/pipeline/create.js.map +1 -0
  17. package/dist/commands/cicd/pipeline/list.d.ts +3 -0
  18. package/dist/commands/cicd/pipeline/list.js +5 -3
  19. package/dist/commands/cicd/pipeline/list.js.map +1 -1
  20. package/dist/commands/cicd/pipeline/stage-connection/create.d.ts +12 -0
  21. package/dist/commands/cicd/pipeline/stage-connection/create.js +33 -0
  22. package/dist/commands/cicd/pipeline/stage-connection/create.js.map +1 -0
  23. package/dist/commands/cicd/pipeline/stage-connection/delete.d.ts +16 -0
  24. package/dist/commands/cicd/pipeline/stage-connection/delete.js +34 -0
  25. package/dist/commands/cicd/pipeline/stage-connection/delete.js.map +1 -0
  26. package/dist/commands/cicd/pipeline/stage-connection/list.d.ts +10 -0
  27. package/dist/commands/cicd/pipeline/stage-connection/list.js +37 -0
  28. package/dist/commands/cicd/pipeline/stage-connection/list.js.map +1 -0
  29. package/dist/commands/cicd/pipeline/stage-connection/open.d.ts +12 -0
  30. package/dist/commands/cicd/pipeline/stage-connection/open.js +16 -0
  31. package/dist/commands/cicd/pipeline/stage-connection/open.js.map +1 -0
  32. package/dist/commands/cicd/pipeline/stage-connection/update.d.ts +15 -0
  33. package/dist/commands/cicd/pipeline/stage-connection/update.js +38 -0
  34. package/dist/commands/cicd/pipeline/stage-connection/update.js.map +1 -0
  35. package/dist/commands/cicd/pipeline/update.d.ts +20 -0
  36. package/dist/commands/cicd/pipeline/update.js +52 -0
  37. package/dist/commands/cicd/pipeline/update.js.map +1 -0
  38. package/dist/commands/cicd/stage/create.d.ts +14 -0
  39. package/dist/commands/cicd/stage/create.js +28 -0
  40. package/dist/commands/cicd/stage/create.js.map +1 -0
  41. package/dist/commands/cicd/stage/delete.d.ts +14 -0
  42. package/dist/commands/cicd/stage/delete.js +28 -0
  43. package/dist/commands/cicd/stage/delete.js.map +1 -0
  44. package/dist/commands/cicd/stage/get.d.ts +10 -0
  45. package/dist/commands/cicd/stage/get.js +17 -0
  46. package/dist/commands/cicd/stage/get.js.map +1 -0
  47. package/dist/commands/cicd/stage/list.d.ts +12 -0
  48. package/dist/commands/cicd/stage/list.js +27 -0
  49. package/dist/commands/cicd/stage/list.js.map +1 -0
  50. package/dist/commands/cicd/stage/open.d.ts +12 -0
  51. package/dist/commands/cicd/stage/open.js +16 -0
  52. package/dist/commands/cicd/stage/open.js.map +1 -0
  53. package/dist/commands/cicd/stage/update.d.ts +14 -0
  54. package/dist/commands/cicd/stage/update.js +30 -0
  55. package/dist/commands/cicd/stage/update.js.map +1 -0
  56. package/dist/lib/mcp/tools.d.ts +134 -2
  57. package/dist/lib/mcp/tools.js +383 -5
  58. package/dist/lib/mcp/tools.js.map +1 -1
  59. package/dist/lib/navigation.d.ts +1 -1
  60. package/dist/lib/navigation.js +3 -0
  61. package/dist/lib/navigation.js.map +1 -1
  62. package/dist/lib/pipeline-connection-flags.d.ts +62 -0
  63. package/dist/lib/pipeline-connection-flags.js +309 -0
  64. package/dist/lib/pipeline-connection-flags.js.map +1 -0
  65. package/dist/lib/pipeline-flags.d.ts +74 -0
  66. package/dist/lib/pipeline-flags.js +154 -0
  67. package/dist/lib/pipeline-flags.js.map +1 -0
  68. package/dist/lib/pipeline-stage-connection-flags.d.ts +25 -0
  69. package/dist/lib/pipeline-stage-connection-flags.js +46 -0
  70. package/dist/lib/pipeline-stage-connection-flags.js.map +1 -0
  71. package/dist/lib/pipeline-types.d.ts +91 -2
  72. package/dist/lib/pipeline-types.js +51 -5
  73. package/dist/lib/pipeline-types.js.map +1 -1
  74. package/dist/lib/stage-flags.d.ts +19 -0
  75. package/dist/lib/stage-flags.js +29 -0
  76. package/dist/lib/stage-flags.js.map +1 -0
  77. package/dist/lib/stage-types.d.ts +67 -0
  78. package/dist/lib/stage-types.js +69 -0
  79. package/dist/lib/stage-types.js.map +1 -0
  80. package/oclif.manifest.json +1835 -716
  81. package/package.json +2 -2
@@ -0,0 +1,19 @@
1
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
2
+ import { type PipelineConnection } from '../../../../lib/pipeline-types.js';
3
+ export default class PipelineConnectionCreate extends AgentiaCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ readonly file: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ readonly 'pipeline-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
9
+ readonly branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ readonly 'connection-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ readonly 'destination-branch': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
+ readonly 'destination-environment-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ readonly 'source-environment-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ readonly 'stage-connection-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ readonly 'sync-merge-state': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ readonly 'sync-pull-state': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ };
18
+ run(): Promise<PipelineConnection[]>;
19
+ }
@@ -0,0 +1,67 @@
1
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
2
+ import { assertRequired } from '../../../../lib/assert.js';
3
+ import { CicdGateway } from '../../../../lib/cicd-gateway.js';
4
+ import { buildPipelineConnectionCreatePayload, pipelineConnectionCreateFlags, readPipelineConnectionArrayFromFile, validatePipelineConnectionCreatePayload, } from '../../../../lib/pipeline-connection-flags.js';
5
+ import { normalizePipelineConnections, pipelineConnectionsEndpoint, } from '../../../../lib/pipeline-types.js';
6
+ export default class PipelineConnectionCreate extends AgentiaCommand {
7
+ static description = 'Create one or more Copado pipeline connections';
8
+ static examples = [
9
+ '<%= config.bin %> <%= command.id %> --pipeline-id pipeline-1 --source-environment-id env-1 --destination-environment-id env-2 --branch main',
10
+ '<%= config.bin %> <%= command.id %> --pipeline-id pipeline-1 --file connections.json',
11
+ '<%= config.bin %> <%= command.id %> --pipeline-id pipeline-1 --source-environment-id env-1 --destination-environment-id env-2 --branch main --json',
12
+ ];
13
+ static flags = pipelineConnectionCreateFlags;
14
+ async run() {
15
+ const { flags } = await this.parse(PipelineConnectionCreate);
16
+ const pipelineId = assertRequired(flags['pipeline-id'], '--pipeline-id');
17
+ let connections;
18
+ if (flags.file === undefined) {
19
+ try {
20
+ connections = [buildPipelineConnectionCreatePayload(flags)];
21
+ }
22
+ catch (error) {
23
+ this.error(error instanceof Error ? error.message : String(error), { exit: 2 });
24
+ }
25
+ }
26
+ else {
27
+ try {
28
+ connections = await readPipelineConnectionArrayFromFile(flags.file);
29
+ }
30
+ catch (error) {
31
+ this.error(error instanceof Error ? error.message : String(error), { exit: 2 });
32
+ }
33
+ }
34
+ for (const [index, connection] of connections.entries()) {
35
+ const validationError = validatePipelineConnectionCreatePayload(connection);
36
+ if (validationError !== undefined) {
37
+ this.error(flags.file === undefined ? validationError : `connections[${index}]: ${validationError}`, { exit: 2 });
38
+ }
39
+ }
40
+ const response = await this.withSpinner('Creating pipeline connections', () => CicdGateway.call({
41
+ body: connections,
42
+ endpoint: pipelineConnectionsEndpoint(pipelineId),
43
+ headers: {
44
+ 'Content-Type': 'application/json',
45
+ },
46
+ method: 'POST',
47
+ }));
48
+ const created = normalizePipelineConnections(response);
49
+ this.display(() => {
50
+ this.log(`Created ${created.length} pipeline connection${created.length === 1 ? '' : 's'}.`);
51
+ if (created.length > 0) {
52
+ this.log(formatPipelineConnectionSummary(created));
53
+ }
54
+ });
55
+ return created;
56
+ }
57
+ }
58
+ function formatPipelineConnectionSummary(connections) {
59
+ return connections
60
+ .map((connection) => {
61
+ const source = connection.sourceEnvironment?.id ?? connection.sourceEnvironmentId ?? 'unknown';
62
+ const destination = connection.destinationEnvironment?.id ?? connection.destinationEnvironmentId ?? 'unknown';
63
+ return `- ${connection.id ?? 'unknown id'}: ${source} -> ${destination} (${connection.branch ?? 'unknown branch'})`;
64
+ })
65
+ .join('\n');
66
+ }
67
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../src/commands/cicd/pipeline/connection/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAC,WAAW,EAAC,MAAM,iCAAiC,CAAA;AAC3D,OAAO,EACL,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AAC,WAAiC;IACxE,OAAO,WAAW;SACf,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;QAClB,MAAM,MAAM,GAAG,UAAU,CAAC,iBAAiB,EAAE,EAAE,IAAI,UAAU,CAAC,mBAAmB,IAAI,SAAS,CAAA;QAC9F,MAAM,WAAW,GAAG,UAAU,CAAC,sBAAsB,EAAE,EAAE,IAAI,UAAU,CAAC,wBAAwB,IAAI,SAAS,CAAA;QAC7G,OAAO,KAAK,UAAU,CAAC,EAAE,IAAI,YAAY,KAAK,MAAM,OAAO,WAAW,KAAK,UAAU,CAAC,MAAM,IAAI,gBAAgB,GAAG,CAAA;IACrH,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC,CAAA;AACf,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
2
+ export default class PipelineConnectionDelete extends AgentiaCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static flags: {
6
+ readonly 'connection-id': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
+ readonly file: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ readonly 'pipeline-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
9
+ readonly yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
10
+ };
11
+ run(): Promise<{
12
+ connectionIds: string[];
13
+ pipelineId: string;
14
+ }>;
15
+ }
@@ -0,0 +1,62 @@
1
+ import { confirm } from '@inquirer/prompts';
2
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
3
+ import { assertRequired } from '../../../../lib/assert.js';
4
+ import { CicdGateway } from '../../../../lib/cicd-gateway.js';
5
+ import { pipelineConnectionDeleteFlags, readPipelineConnectionIdsFromFile, } from '../../../../lib/pipeline-connection-flags.js';
6
+ import { pipelineConnectionsEndpoint } from '../../../../lib/pipeline-types.js';
7
+ export default class PipelineConnectionDelete extends AgentiaCommand {
8
+ static description = 'Delete one or more Copado pipeline connections';
9
+ static examples = [
10
+ '<%= config.bin %> <%= command.id %> --pipeline-id pipeline-1 --connection-id conn-1 --yes',
11
+ '<%= config.bin %> <%= command.id %> --pipeline-id pipeline-1 --connection-id conn-1 --connection-id conn-2 --yes',
12
+ '<%= config.bin %> <%= command.id %> --pipeline-id pipeline-1 --file connection-ids.json --yes --json',
13
+ ];
14
+ static flags = pipelineConnectionDeleteFlags;
15
+ async run() {
16
+ const { flags } = await this.parse(PipelineConnectionDelete);
17
+ const pipelineId = assertRequired(flags['pipeline-id'], '--pipeline-id');
18
+ let connectionIds;
19
+ if (flags.file === undefined) {
20
+ connectionIds = flags['connection-id'] ?? [];
21
+ if (connectionIds.length === 0) {
22
+ this.error('Provide at least one --connection-id or --file.', { exit: 2 });
23
+ }
24
+ }
25
+ else {
26
+ try {
27
+ connectionIds = await readPipelineConnectionIdsFromFile(flags.file);
28
+ }
29
+ catch (error) {
30
+ this.error(error instanceof Error ? error.message : String(error), { exit: 2 });
31
+ }
32
+ }
33
+ const uniqueConnectionIds = [...new Set(connectionIds)];
34
+ if (!flags.yes) {
35
+ if (this.jsonEnabled() || !process.stdin.isTTY) {
36
+ this.error('Pipeline connection deletion requires confirmation. Pass --yes for headless or JSON execution.', {
37
+ exit: 2,
38
+ });
39
+ }
40
+ const confirmed = await confirm({
41
+ default: false,
42
+ message: `Delete ${uniqueConnectionIds.length} pipeline connection${uniqueConnectionIds.length === 1 ? '' : 's'} from ${pipelineId}?`,
43
+ });
44
+ if (!confirmed) {
45
+ this.error('Pipeline connection deletion canceled.', { exit: 1 });
46
+ }
47
+ }
48
+ await this.withSpinner('Deleting pipeline connections', () => CicdGateway.call({
49
+ body: { connectionIds: uniqueConnectionIds },
50
+ endpoint: pipelineConnectionsEndpoint(pipelineId),
51
+ headers: {
52
+ 'Content-Type': 'application/json',
53
+ },
54
+ method: 'DELETE',
55
+ }));
56
+ this.display(() => {
57
+ this.log(`Deleted ${uniqueConnectionIds.length} pipeline connection${uniqueConnectionIds.length === 1 ? '' : 's'}.`);
58
+ });
59
+ return { connectionIds: uniqueConnectionIds, pipelineId };
60
+ }
61
+ }
62
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../src/commands/cicd/pipeline/connection/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAA;AAEzC,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAC,WAAW,EAAC,MAAM,iCAAiC,CAAA;AAC3D,OAAO,EACL,6BAA6B,EAC7B,iCAAiC,GAClC,MAAM,8CAA8C,CAAA;AACrD,OAAO,EAAC,2BAA2B,EAAC,MAAM,mCAAmC,CAAA;AAE7E,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,cAAc;IAClE,MAAM,CAAU,WAAW,GAAG,gDAAgD,CAAA;IAC9E,MAAM,CAAU,QAAQ,GAAG;QACzB,2FAA2F;QAC3F,kHAAkH;QAClH,sGAAsG;KACvG,CAAA;IACD,MAAM,CAAU,KAAK,GAAG,6BAA6B,CAAA;IAE9C,KAAK,CAAC,GAAG;QACd,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAA;QAC1D,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC,CAAA;QACxE,IAAI,aAAuB,CAAA;QAE3B,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC7B,aAAa,GAAG,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE,CAAA;YAE5C,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC/B,IAAI,CAAC,KA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AAI,EAAE,EAAC,aAAa,EAAE,mBAAmB,EAAC;YAC1C,QAAQ,EAAE,2BAA2B,CAAC,UAAU,CAAC;YACjD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,MAAM,EAAE,QAAQ;SACjB,CAAC,CACH,CAAA;QAED,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;YAChB,IAAI,CAAC,GAAG,CACN,WAAW,mBAAmB,CAAC,MAAM,uBAAuB,mBAAmB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAC3G,CAAA;QACH,CAAC,CAAC,CAAA;QAEF,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAE,UAAU,EAAC,CAAA;IACzD,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
2
+ export default class PipelineConnectionOpen extends AgentiaCommand {
3
+ static args: {
4
+ id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
5
+ };
6
+ static description: string;
7
+ static examples: string[];
8
+ run(): Promise<{
9
+ provider: string;
10
+ url: string;
11
+ }>;
12
+ }
@@ -0,0 +1,30 @@
1
+ import { Args } from '@oclif/core';
2
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
3
+ import { openNavigationTarget } from '../../../../lib/navigation-open.js';
4
+ import { resolveNavigationTarget } from '../../../../lib/navigation.js';
5
+ export default class PipelineConnectionOpen extends AgentiaCommand {
6
+ static args = {
7
+ id: Args.string({
8
+ description: 'Pipeline connection ID',
9
+ required: true,
10
+ }),
11
+ };
12
+ static description = 'Open a Copado pipeline connection in the browser';
13
+ static examples = [
14
+ '<%= config.bin %> <%= command.id %> <connection-id>',
15
+ '<%= config.bin %> <%= command.id %> <connection-id> --json',
16
+ ];
17
+ async run() {
18
+ const { args } = await this.parse(PipelineConnectionOpen);
19
+ const target = await this.withSpinner('Resolving navigation URL', () => resolveNavigationTarget({
20
+ id: args.id,
21
+ resourceType: 'pipeline_connection',
22
+ }));
23
+ await openNavigationTarget(target, {
24
+ jsonEnabled: this.jsonEnabled(),
25
+ log: this.log.bind(this),
26
+ });
27
+ return target;
28
+ }
29
+ }
30
+ //# sourceMappingURL=open.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open.js","sourceRoot":"","sources":["../../../../../src/commands/cicd/pipeline/connection/open.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAA;AAEhC,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAA;AACvE,OAAO,EAAC,uBAAuB,EAAC,MAAM,+BAA+B,CAAA;AAErE,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,cAAc;IAChE,MAAM,CAAU,IAAI,GAAG;QACrB,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC;YACd,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAA;IACD,MAAM,CAAU,WAAW,GAAG,kDAAkD,CAAA;IAChF,MAAM,CAAU,QAAQ,GAAG;QACzB,qDAAqD;QACrD,4DAA4D;KAC7D,CAAA;IAEM,KAAK,CAAC,GAAG;QACd,MAAM,EAAC,IAAI,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAA;QAEvD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,0BAA0B,EAAE,GAAG,EAAE,CACrE,uBAAuB,CAAC;YACtB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,YAAY,EAAE,qBAAqB;SACpC,CAAC,CACH,CAAA;QAED,MAAM,oBAAoB,CAAC,MAAM,EAAE;YACjC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;YAC/B,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;SACzB,CAAC,CAAA;QAEF,OAAO,MAAM,CAAA;IACf,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
2
+ import { type PipelineConnection } from '../../../../lib/pipeline-types.js';
3
+ export default class PipelineConnectionUpdate extends AgentiaCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ readonly file: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ readonly 'pipeline-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
9
+ readonly branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ readonly 'connection-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ readonly 'destination-branch': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
+ readonly 'destination-environment-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ readonly 'source-environment-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ readonly 'stage-connection-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ readonly 'sync-merge-state': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ readonly 'sync-pull-state': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ };
18
+ run(): Promise<PipelineConnection[]>;
19
+ }
@@ -0,0 +1,55 @@
1
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
2
+ import { assertRequired } from '../../../../lib/assert.js';
3
+ import { CicdGateway } from '../../../../lib/cicd-gateway.js';
4
+ import { buildPipelineConnectionUpdatePayload, pipelineConnectionUpdateFlags, readPipelineConnectionUpdateArrayFromFile, validatePipelineConnectionUpdatePayload, } from '../../../../lib/pipeline-connection-flags.js';
5
+ import { normalizePipelineConnections, pipelineConnectionsEndpoint, } from '../../../../lib/pipeline-types.js';
6
+ export default class PipelineConnectionUpdate extends AgentiaCommand {
7
+ static description = 'Update one or more Copado pipeline connections';
8
+ static examples = [
9
+ '<%= config.bin %> <%= command.id %> --pipeline-id pipeline-1 --connection-id conn-1 --destination-branch develop',
10
+ '<%= config.bin %> <%= command.id %> --pipeline-id pipeline-1 --file connections.json',
11
+ '<%= config.bin %> <%= command.id %> --pipeline-id pipeline-1 --connection-id conn-1 --branch main --json',
12
+ ];
13
+ static flags = pipelineConnectionUpdateFlags;
14
+ async run() {
15
+ const { flags } = await this.parse(PipelineConnectionUpdate);
16
+ const pipelineId = assertRequired(flags['pipeline-id'], '--pipeline-id');
17
+ let connections;
18
+ if (flags.file === undefined) {
19
+ try {
20
+ connections = [buildPipelineConnectionUpdatePayload(flags)];
21
+ }
22
+ catch (error) {
23
+ this.error(error instanceof Error ? error.message : String(error), { exit: 2 });
24
+ }
25
+ }
26
+ else {
27
+ try {
28
+ connections = await readPipelineConnectionUpdateArrayFromFile(flags.file);
29
+ }
30
+ catch (error) {
31
+ this.error(error instanceof Error ? error.message : String(error), { exit: 2 });
32
+ }
33
+ }
34
+ for (const [index, connection] of connections.entries()) {
35
+ const validationError = validatePipelineConnectionUpdatePayload(connection);
36
+ if (validationError !== undefined) {
37
+ this.error(flags.file === undefined ? validationError : `connections[${index}]: ${validationError}`, { exit: 2 });
38
+ }
39
+ }
40
+ const response = await this.withSpinner('Updating pipeline connections', () => CicdGateway.call({
41
+ body: { connections },
42
+ endpoint: pipelineConnectionsEndpoint(pipelineId),
43
+ headers: {
44
+ 'Content-Type': 'application/json',
45
+ },
46
+ method: 'PATCH',
47
+ }));
48
+ const updated = normalizePipelineConnections(response);
49
+ this.display(() => {
50
+ this.log(`Updated ${updated.length} pipeline connection${updated.length === 1 ? '' : 's'}.`);
51
+ });
52
+ return updated;
53
+ }
54
+ }
55
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../src/commands/cicd/pipeline/connection/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAC,WAAW,EAAC,MAAM,iCAAiC,CAAA;AAC3D,OAAO,EACL,oCAAoC,EACpC,6BAA6B,EAC7B,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,8CAA8C,CAAA;AACrD,OAAO,EACL,4BAA4B,EAG5B,2BAA2B,GAE5B,MAAM,mCAAmC,CAAA;AAE1C,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,cAAc;IAClE,MAAM,CAAU,WAAW,GAAG,gDAAgD,CAAA;IAC9E,MAAM,CAAU,QAAQ,GAAG;QACzB,kHAAkH;QAClH,sFAAsF;QACtF,0GAA0G;KAC3G,CAAA;IACD,MAAM,CAAU,KAAK,GAAG,6BAA6B,CAAA;IAE9C,KAAK,CAAC,GAAG;QACd,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAA;QAC1D,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC,CAAA;QACxE,IAAI,WAA8C,CAAA;QAElD,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC7B,IAAI,CAAC;gBACH,WAAW,GAAG,CAAC,oCAAoC,CAAC,KAAK,CAAC,CAAC,CAAA;YAC7D,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,E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,CAAC,MAAM,uBAAuB,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAA;QAC9F,CAAC,CAAC,CAAA;QAEF,OAAO,OAAO,CAAA;IAChB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { AgentiaCommand } from '../../../lib/agentia-command.js';
2
+ import { type Pipeline } from '../../../lib/pipeline-types.js';
3
+ export default class PipelineCreate extends AgentiaCommand {
4
+ static args: {
5
+ name: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
6
+ };
7
+ static description: string;
8
+ static examples: string[];
9
+ static flags: {
10
+ readonly 'calculate-based-on': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ readonly 'git-repository-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
+ readonly 'main-branch': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ readonly platform: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ readonly active: import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
+ readonly 'block-commits': import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
+ readonly 'enable-smart-conflict-resolution': import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
+ };
18
+ run(): Promise<Pipeline>;
19
+ }
@@ -0,0 +1,42 @@
1
+ import { Args } from '@oclif/core';
2
+ import { AgentiaCommand } from '../../../lib/agentia-command.js';
3
+ import { CicdGateway } from '../../../lib/cicd-gateway.js';
4
+ import { buildPipelineCreatePayload, pipelineCreateFlags, validatePipelineMutationPayload, } from '../../../lib/pipeline-flags.js';
5
+ import { normalizePipeline, pipelineListEndpoint, } from '../../../lib/pipeline-types.js';
6
+ export default class PipelineCreate extends AgentiaCommand {
7
+ static args = {
8
+ name: Args.string({
9
+ description: 'Name of the Copado pipeline to create',
10
+ required: true,
11
+ }),
12
+ };
13
+ static description = 'Create a Copado pipeline';
14
+ static examples = [
15
+ '<%= config.bin %> <%= command.id %> "Dev Pipeline"',
16
+ '<%= config.bin %> <%= command.id %> "Dev Pipeline" --platform SFDX --main-branch main --active',
17
+ '<%= config.bin %> <%= command.id %> "Dev Pipeline" --json',
18
+ ];
19
+ static flags = pipelineCreateFlags;
20
+ async run() {
21
+ const { args, flags } = await this.parse(PipelineCreate);
22
+ const payload = buildPipelineCreatePayload(args.name, flags);
23
+ const validationError = validatePipelineMutationPayload(payload);
24
+ if (validationError !== undefined) {
25
+ this.error(validationError, { exit: 2 });
26
+ }
27
+ const response = await this.withSpinner('Creating pipeline', () => CicdGateway.call({
28
+ body: payload,
29
+ endpoint: pipelineListEndpoint(),
30
+ headers: {
31
+ 'Content-Type': 'application/json',
32
+ },
33
+ method: 'POST',
34
+ }));
35
+ const pipeline = normalizePipeline(response);
36
+ this.display(() => {
37
+ this.log(`Created pipeline ${pipeline.name ?? args.name} (ID: ${pipeline.id ?? 'unknown id'}).`);
38
+ });
39
+ return pipeline;
40
+ }
41
+ }
42
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/cicd/pipeline/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAA;AAEhC,OAAO,EAAC,cAAc,EAAC,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAA;AACxD,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EACnB,+BAA+B,GAChC,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,iBAAiB,EAEjB,oBAAoB,GAErB,MAAM,gCAAgC,CAAA;AAEvC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,cAAc;IACxD,MAAM,CAAU,IAAI,GAAG;QACrB,IAAI,EAAE,IAAI,C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 -5,6 +5,9 @@ export default class PipelineList extends AgentiaCommand {
5
5
  static description: string;
6
6
  static examples: string[];
7
7
  static flags: {
8
+ readonly active: import("@oclif/core/interfaces").BooleanFlag<boolean>;
9
+ readonly name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ readonly platform: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
11
  readonly cursor: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
12
  readonly 'page-size': import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
13
  };
@@ -1,18 +1,20 @@
1
1
  import { AgentiaCommand } from '../../../lib/agentia-command.js';
2
2
  import { CicdGateway } from '../../../lib/cicd-gateway.js';
3
- import { buildListPaginationQuery, displayListPagination, listPaginationFlags, } from '../../../lib/list-pagination.js';
3
+ import { displayListPagination, } from '../../../lib/list-pagination.js';
4
+ import { buildPipelineListFilters, pipelineListFlags } from '../../../lib/pipeline-flags.js';
4
5
  import { formatPipelineTable, normalizePipelinesListPage, pipelineListEndpoint, } from '../../../lib/pipeline-types.js';
5
6
  export default class PipelineList extends AgentiaCommand {
6
7
  static description = 'List Copado pipelines';
7
8
  static examples = [
8
9
  '<%= config.bin %> <%= command.id %>',
10
+ '<%= config.bin %> <%= command.id %> --name "Dev Pipeline" --active --platform SFDX',
9
11
  '<%= config.bin %> <%= command.id %> --json',
10
12
  ];
11
- static flags = listPaginationFlags;
13
+ static flags = pipelineListFlags;
12
14
  async run() {
13
15
  const { flags } = await this.parse(PipelineList);
14
16
  const response = await this.withSpinner('Fetching pipelines', () => CicdGateway.call({
15
- endpoint: pipelineListEndpoint(buildListPaginationQuery(flags)),
17
+ endpoint: pipelineListEndpoint(buildPipelineListFilters(flags)),
16
18
  method: 'GET',
17
19
  }));
18
20
  const page = normalizePipelinesListPage(response);
@@ -1 +1 @@
1
- {"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AAE,CAAC;gBAC3B,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;gBAC/B,OAAM;YACR,CAAC;YAED,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;YACxC,qBAAqB,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;QAClD,CAAC,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;IACb,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
2
+ import { type PipelineStageConnection } from '../../../../lib/stage-types.js';
3
+ export default class PipelineStageConnectionCreate extends AgentiaCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ readonly 'pipeline-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
8
+ readonly 'next-pipeline-stage-connection-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ readonly 'stage-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ };
11
+ run(): Promise<PipelineStageConnection>;
12
+ }
@@ -0,0 +1,33 @@
1
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
2
+ import { assertRequired } from '../../../../lib/assert.js';
3
+ import { CicdGateway } from '../../../../lib/cicd-gateway.js';
4
+ import { buildPipelineStageConnectionCreatePayload, pipelineStageConnectionCreateFlags, } from '../../../../lib/pipeline-stage-connection-flags.js';
5
+ import { normalizePipelineStageConnection, pipelineStageConnectionsEndpoint, } from '../../../../lib/stage-types.js';
6
+ export default class PipelineStageConnectionCreate extends AgentiaCommand {
7
+ static description = 'Create a pipeline stage connection';
8
+ static examples = [
9
+ '<%= config.bin %> <%= command.id %> --pipeline-id pipeline-1 --stage-id stage-1',
10
+ ];
11
+ static flags = pipelineStageConnectionCreateFlags;
12
+ async run() {
13
+ const { flags } = await this.parse(PipelineStageConnectionCreate);
14
+ const pipelineId = assertRequired(flags['pipeline-id'], '--pipeline-id');
15
+ let payload;
16
+ try {
17
+ payload = buildPipelineStageConnectionCreatePayload(flags);
18
+ }
19
+ catch (error) {
20
+ this.error(error instanceof Error ? error.message : String(error), { exit: 2 });
21
+ }
22
+ const response = await this.withSpinner('Creating pipeline stage connection', () => CicdGateway.call({
23
+ body: payload,
24
+ endpoint: pipelineStageConnectionsEndpoint(pipelineId),
25
+ headers: { 'Content-Type': 'application/json' },
26
+ method: 'POST',
27
+ }));
28
+ const connection = normalizePipelineStageConnection(response);
29
+ this.display(() => this.log(`Created pipeline stage connection (ID: ${connection.id ?? 'unknown id'}).`));
30
+ return connection;
31
+ }
32
+ }
33
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../src/commands/cicd/pipeline/stage-connection/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAC,WAAW,EAAC,MAAM,iCAAiC,CAAA;AAC3D,OAAO,EACL,yCAAyC,EACzC,kCAAkC,GACnC,MAAM,oDAAoD,CAAA;AAC3D,OAAO,EACL,gCAAgC,EAGhC,gCAAgC,GACjC,MAAM,gCAAgC,CAAA;AAEvC,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,cAAc;IACvE,MAAM,CAAU,WAAW,GAAG,oCAAoC,CAAA;IAClE,MAAM,CAAU,QAAQ,GAAG;QACzB,iFAAiF;KAClF,CAAA;IACD,MAAM,CAAU,KAAK,GAAG,kCAAkC,CAAA;IAEnD,KAAK,CAAC,GAAG;QACd,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAA;QAC/D,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC,CAAA;QACxE,IAAI,OAAO,CAAA;QACX,IAAI,CAAC;YACH,OAAO,GAAG,yCAAyC,CAAC,KAAK,CAAC,CAAA;QAC5D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAC,IAAI,EAAE,CAAC,EAAC,CAAC,CAAA;QAC/E,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,oCAAoC,EAAE,GAAG,EAAE,CACjF,WAAW,CAAC,IAAI,CAA4D;YAC1E,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,gCAAgC,CAAC,UAAU,CAAC;YACtD,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,EAAC;YAC7C,MAAM,EAAE,MAAM;SACf,CAAC,CACH,CAAA;QACD,MAAM,UAAU,GAAG,gCAAgC,CAAC,QAAQ,CAAC,CAAA;QAC7D,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,0CAA0C,UAAU,CAAC,EAAE,IAAI,YAAY,IAAI,CAAC,CAAC,CAAA;QACzG,OAAO,UAAU,CAAA;IACnB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
2
+ export default class PipelineStageConnectionDelete extends AgentiaCommand {
3
+ static args: {
4
+ id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
5
+ };
6
+ static description: string;
7
+ static examples: string[];
8
+ static flags: {
9
+ readonly 'pipeline-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
+ readonly yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
11
+ };
12
+ run(): Promise<{
13
+ id: string;
14
+ pipelineId: string;
15
+ }>;
16
+ }
@@ -0,0 +1,34 @@
1
+ import { confirm } from '@inquirer/prompts';
2
+ import { Args } from '@oclif/core';
3
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
4
+ import { assertRequired } from '../../../../lib/assert.js';
5
+ import { CicdGateway } from '../../../../lib/cicd-gateway.js';
6
+ import { pipelineStageConnectionDeleteFlags } from '../../../../lib/pipeline-stage-connection-flags.js';
7
+ import { pipelineStageConnectionEndpoint } from '../../../../lib/stage-types.js';
8
+ export default class PipelineStageConnectionDelete extends AgentiaCommand {
9
+ static args = { id: Args.string({ description: 'Pipeline stage connection ID', required: true }) };
10
+ static description = 'Delete a pipeline stage connection';
11
+ static examples = ['<%= config.bin %> <%= command.id %> connection-1 --pipeline-id pipeline-1 --yes'];
12
+ static flags = pipelineStageConnectionDeleteFlags;
13
+ async run() {
14
+ const { args, flags } = await this.parse(PipelineStageConnectionDelete);
15
+ const pipelineId = assertRequired(flags['pipeline-id'], '--pipeline-id');
16
+ if (!flags.yes) {
17
+ if (this.jsonEnabled() || !process.stdin.isTTY) {
18
+ this.error('Pipeline stage connection deletion requires confirmation. Pass --yes for headless or JSON execution.', {
19
+ exit: 2,
20
+ });
21
+ }
22
+ if (!(await confirm({ default: false, message: `Delete pipeline stage connection ${args.id}?` }))) {
23
+ this.error('Pipeline stage connection deletion canceled.', { exit: 1 });
24
+ }
25
+ }
26
+ await this.withSpinner('Deleting pipeline stage connection', () => CicdGateway.call({
27
+ endpoint: pipelineStageConnectionEndpoint(pipelineId, args.id),
28
+ method: 'DELETE',
29
+ }));
30
+ this.display(() => this.log(`Deleted pipeline stage connection (ID: ${args.id}).`));
31
+ return { id: args.id, pipelineId };
32
+ }
33
+ }
34
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../src/commands/cicd/pipeline/stage-connection/delete.ts"],"names":[],"mappings":"AAAA,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CAAoC,IAAI,CAAC,EAAE,GAAG,EAAC,CAAC,CAAC,EAAE,CAAC;gBAChG,IAAI,CAAC,KAAK,CAAC,8CAA8C,EAAE,EAAC,IAAI,EAAE,CAAC,EAAC,CAAC,CAAA;YACvE,CAAC;QACH,CAAC;QAED,MAAM,IAAI,CAAC,WAAW,CAAC,oCAAoC,EAAE,GAAG,EAAE,CAChE,WAAW,CAAC,IAAI,CAAO;YACrB,QAAQ,EAAE,+BAA+B,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC;YAC9D,MAAM,EAAE,QAAQ;SACjB,CAAC,CACH,CAAA;QACD,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,0CAA0C,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;QACnF,OAAO,EAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,UAAU,EAAC,CAAA;IAClC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
2
+ import { type PipelineStageConnection } from '../../../../lib/stage-types.js';
3
+ export default class PipelineStageConnectionList extends AgentiaCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ 'pipeline-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
8
+ };
9
+ run(): Promise<PipelineStageConnection[]>;
10
+ }
@@ -0,0 +1,37 @@
1
+ import { Flags } from '@oclif/core';
2
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
3
+ import { assertRequired } from '../../../../lib/assert.js';
4
+ import { CicdGateway } from '../../../../lib/cicd-gateway.js';
5
+ import { normalizePipelineDescribe, pipelineDescribeEndpoint, } from '../../../../lib/pipeline-types.js';
6
+ import { formatPipelineStageConnectionTable } from '../../../../lib/stage-types.js';
7
+ export default class PipelineStageConnectionList extends AgentiaCommand {
8
+ static description = 'List stage connections for a Copado pipeline';
9
+ static examples = [
10
+ '<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id>',
11
+ '<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id> --json',
12
+ ];
13
+ static flags = {
14
+ 'pipeline-id': Flags.string({
15
+ description: 'Pipeline ID whose stage connections should be listed',
16
+ required: true,
17
+ }),
18
+ };
19
+ async run() {
20
+ const { flags } = await this.parse(PipelineStageConnectionList);
21
+ const pipelineId = assertRequired(flags['pipeline-id'], '--pipeline-id');
22
+ const response = await this.withSpinner('Fetching pipeline stage connections', () => CicdGateway.call({
23
+ endpoint: pipelineDescribeEndpoint(pipelineId),
24
+ method: 'GET',
25
+ }));
26
+ const connections = normalizePipelineDescribe(response).stageConnections ?? [];
27
+ this.display(() => {
28
+ if (connections.length === 0) {
29
+ this.log('No pipeline stage connections found.');
30
+ return;
31
+ }
32
+ this.log(formatPipelineStageConnectionTable(connections));
33
+ });
34
+ return connections;
35
+ }
36
+ }
37
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/commands/cicd/pipeline/stage-connection/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AAEjC,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAC,WAAW,EAAC,MAAM,iCAAiC,CAAA;AAC3D,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GAEzB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAC,kCAAkC,EAA+B,MAAM,gCAAgC,CAAA;AAE/G,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,cAAc;IACrE,MAAM,CAAU,WAAW,GAAG,8CAA8C,CAAA;IAC5E,MAAM,CAAU,QAAQ,GAAG;QACzB,iEAAiE;QACjE,wEAAwE;KACzE,CAAA;IACD,MAAM,CAAU,KAAK,GAAG;QACtB,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC;YAC1B,WAAW,EAAE,sDAAsD;YACnE,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAA;IAEM,KAAK,CAAC,GAAG;QACd,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAA;QAC7D,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC,CAAA;QACxE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,qCAAqC,EAAE,GAAG,EAAE,CAClF,WAAW,CAAC,IAAI,CAA2B;YACzC,QAAQ,EAAE,wBAAwB,CAAC,UAAU,CAAC;YAC9C,MAAM,EAAE,KAAK;SACd,CAAC,CACH,CAAA;QACD,MAAM,WAAW,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC,gBAAgB,IAAI,EAAE,CAAA;QAE9E,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;YAChB,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC7B,IAAI,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAA;gBAChD,OAAM;YACR,CAAC;YAED,IAAI,CAAC,GAAG,CAAC,kCAAkC,CAAC,WAAW,CAAC,CAAC,CAAA;QAC3D,CAAC,CAAC,CAAA;QAEF,OAAO,WAAW,CAAA;IACpB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { AgentiaCommand } from '../../../../lib/agentia-command.js';
2
+ export default class PipelineStageConnectionOpen extends AgentiaCommand {
3
+ static args: {
4
+ id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
5
+ };
6
+ static description: string;
7
+ static examples: string[];
8
+ run(): Promise<{
9
+ provider: string;
10
+ url: string;
11
+ }>;
12
+ }