@copado/agentia-cli 0.83.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 (92) hide show
  1. package/README.md +695 -162
  2. package/dist/commands/cicd/metadata/dependency/list.js +1 -1
  3. package/dist/commands/cicd/metadata/dependency/list.js.map +1 -1
  4. package/dist/commands/cicd/pipeline/connection/create.d.ts +19 -0
  5. package/dist/commands/cicd/pipeline/connection/create.js +67 -0
  6. package/dist/commands/cicd/pipeline/connection/create.js.map +1 -0
  7. package/dist/commands/cicd/pipeline/connection/delete.d.ts +15 -0
  8. package/dist/commands/cicd/pipeline/connection/delete.js +62 -0
  9. package/dist/commands/cicd/pipeline/connection/delete.js.map +1 -0
  10. package/dist/commands/cicd/pipeline/connection/open.d.ts +12 -0
  11. package/dist/commands/cicd/pipeline/connection/open.js +30 -0
  12. package/dist/commands/cicd/pipeline/connection/open.js.map +1 -0
  13. package/dist/commands/cicd/pipeline/connection/update.d.ts +19 -0
  14. package/dist/commands/cicd/pipeline/connection/update.js +55 -0
  15. package/dist/commands/cicd/pipeline/connection/update.js.map +1 -0
  16. package/dist/commands/cicd/pipeline/create.d.ts +19 -0
  17. package/dist/commands/cicd/pipeline/create.js +42 -0
  18. package/dist/commands/cicd/pipeline/create.js.map +1 -0
  19. package/dist/commands/cicd/pipeline/list.d.ts +3 -0
  20. package/dist/commands/cicd/pipeline/list.js +5 -3
  21. package/dist/commands/cicd/pipeline/list.js.map +1 -1
  22. package/dist/commands/cicd/pipeline/stage-connection/create.d.ts +12 -0
  23. package/dist/commands/cicd/pipeline/stage-connection/create.js +33 -0
  24. package/dist/commands/cicd/pipeline/stage-connection/create.js.map +1 -0
  25. package/dist/commands/cicd/pipeline/stage-connection/delete.d.ts +16 -0
  26. package/dist/commands/cicd/pipeline/stage-connection/delete.js +34 -0
  27. package/dist/commands/cicd/pipeline/stage-connection/delete.js.map +1 -0
  28. package/dist/commands/cicd/pipeline/stage-connection/list.d.ts +10 -0
  29. package/dist/commands/cicd/pipeline/stage-connection/list.js +37 -0
  30. package/dist/commands/cicd/pipeline/stage-connection/list.js.map +1 -0
  31. package/dist/commands/cicd/pipeline/stage-connection/open.d.ts +12 -0
  32. package/dist/commands/cicd/pipeline/stage-connection/open.js +16 -0
  33. package/dist/commands/cicd/pipeline/stage-connection/open.js.map +1 -0
  34. package/dist/commands/cicd/pipeline/stage-connection/update.d.ts +15 -0
  35. package/dist/commands/cicd/pipeline/stage-connection/update.js +38 -0
  36. package/dist/commands/cicd/pipeline/stage-connection/update.js.map +1 -0
  37. package/dist/commands/cicd/pipeline/update.d.ts +20 -0
  38. package/dist/commands/cicd/pipeline/update.js +52 -0
  39. package/dist/commands/cicd/pipeline/update.js.map +1 -0
  40. package/dist/commands/cicd/stage/create.d.ts +14 -0
  41. package/dist/commands/cicd/stage/create.js +28 -0
  42. package/dist/commands/cicd/stage/create.js.map +1 -0
  43. package/dist/commands/cicd/stage/delete.d.ts +14 -0
  44. package/dist/commands/cicd/stage/delete.js +28 -0
  45. package/dist/commands/cicd/stage/delete.js.map +1 -0
  46. package/dist/commands/cicd/stage/get.d.ts +10 -0
  47. package/dist/commands/cicd/stage/get.js +17 -0
  48. package/dist/commands/cicd/stage/get.js.map +1 -0
  49. package/dist/commands/cicd/stage/list.d.ts +12 -0
  50. package/dist/commands/cicd/stage/list.js +27 -0
  51. package/dist/commands/cicd/stage/list.js.map +1 -0
  52. package/dist/commands/cicd/stage/open.d.ts +12 -0
  53. package/dist/commands/cicd/stage/open.js +16 -0
  54. package/dist/commands/cicd/stage/open.js.map +1 -0
  55. package/dist/commands/cicd/stage/update.d.ts +14 -0
  56. package/dist/commands/cicd/stage/update.js +30 -0
  57. package/dist/commands/cicd/stage/update.js.map +1 -0
  58. package/dist/lib/dependency-from-changes.d.ts +3 -2
  59. package/dist/lib/dependency-from-changes.js +58 -48
  60. package/dist/lib/dependency-from-changes.js.map +1 -1
  61. package/dist/lib/mcp/tools.d.ts +134 -2
  62. package/dist/lib/mcp/tools.js +383 -5
  63. package/dist/lib/mcp/tools.js.map +1 -1
  64. package/dist/lib/navigation.d.ts +1 -1
  65. package/dist/lib/navigation.js +3 -0
  66. package/dist/lib/navigation.js.map +1 -1
  67. package/dist/lib/pipeline-connection-flags.d.ts +62 -0
  68. package/dist/lib/pipeline-connection-flags.js +309 -0
  69. package/dist/lib/pipeline-connection-flags.js.map +1 -0
  70. package/dist/lib/pipeline-flags.d.ts +74 -0
  71. package/dist/lib/pipeline-flags.js +154 -0
  72. package/dist/lib/pipeline-flags.js.map +1 -0
  73. package/dist/lib/pipeline-stage-connection-flags.d.ts +25 -0
  74. package/dist/lib/pipeline-stage-connection-flags.js +46 -0
  75. package/dist/lib/pipeline-stage-connection-flags.js.map +1 -0
  76. package/dist/lib/pipeline-types.d.ts +91 -2
  77. package/dist/lib/pipeline-types.js +51 -5
  78. package/dist/lib/pipeline-types.js.map +1 -1
  79. package/dist/lib/sdr-metadata-registry.generated.d.ts +18 -0
  80. package/dist/lib/sdr-metadata-registry.generated.js +6330 -0
  81. package/dist/lib/sdr-metadata-registry.generated.js.map +1 -0
  82. package/dist/lib/sdr-path-resolver.d.ts +7 -0
  83. package/dist/lib/sdr-path-resolver.js +116 -0
  84. package/dist/lib/sdr-path-resolver.js.map +1 -0
  85. package/dist/lib/stage-flags.d.ts +19 -0
  86. package/dist/lib/stage-flags.js +29 -0
  87. package/dist/lib/stage-flags.js.map +1 -0
  88. package/dist/lib/stage-types.d.ts +67 -0
  89. package/dist/lib/stage-types.js +69 -0
  90. package/dist/lib/stage-types.js.map +1 -0
  91. package/oclif.manifest.json +2977 -1858
  92. package/package.json +3 -2
@@ -0,0 +1,309 @@
1
+ import { Flags } from '@oclif/core';
2
+ import { assertJsonArray, parseJsonValue, readJsonBodyFromFileOrStdin } from './data-flags.js';
3
+ import { PIPELINE_CONNECTION_SYNC_STATE_NEEDS_RECALCULATING, } from './pipeline-types.js';
4
+ export const pipelineConnectionMutationStringFlags = {
5
+ branch: Flags.string({
6
+ description: 'Source branch for the connection',
7
+ }),
8
+ 'connection-id': Flags.string({
9
+ description: 'Pipeline connection ID (required for single-connection update or delete)',
10
+ }),
11
+ 'destination-branch': Flags.string({
12
+ description: 'Destination branch for the connection',
13
+ }),
14
+ 'destination-environment-id': Flags.string({
15
+ description: 'Destination environment ID',
16
+ }),
17
+ 'source-environment-id': Flags.string({
18
+ description: 'Source environment ID',
19
+ }),
20
+ 'stage-connection-id': Flags.string({
21
+ description: 'Stage connection ID',
22
+ }),
23
+ 'sync-merge-state': Flags.string({
24
+ description: 'Sync merge state',
25
+ }),
26
+ 'sync-pull-state': Flags.string({
27
+ description: 'Sync pull state',
28
+ }),
29
+ };
30
+ export const pipelineConnectionCreateFlags = {
31
+ ...pipelineConnectionMutationStringFlags,
32
+ file: Flags.string({
33
+ char: 'f',
34
+ description: 'Path to a JSON array of pipeline connections to create',
35
+ exclusive: [
36
+ 'branch',
37
+ 'destination-branch',
38
+ 'destination-environment-id',
39
+ 'source-environment-id',
40
+ 'stage-connection-id',
41
+ 'sync-merge-state',
42
+ 'sync-pull-state',
43
+ ],
44
+ }),
45
+ 'pipeline-id': Flags.string({
46
+ description: 'Pipeline ID or name',
47
+ required: true,
48
+ }),
49
+ };
50
+ export const pipelineConnectionUpdateFlags = {
51
+ ...pipelineConnectionMutationStringFlags,
52
+ file: Flags.string({
53
+ char: 'f',
54
+ description: 'Path to a JSON array of pipeline connections to update (each item requires id)',
55
+ exclusive: [
56
+ 'branch',
57
+ 'connection-id',
58
+ 'destination-branch',
59
+ 'destination-environment-id',
60
+ 'source-environment-id',
61
+ 'stage-connection-id',
62
+ 'sync-merge-state',
63
+ 'sync-pull-state',
64
+ ],
65
+ }),
66
+ 'pipeline-id': Flags.string({
67
+ description: 'Pipeline ID or name',
68
+ required: true,
69
+ }),
70
+ };
71
+ export const pipelineConnectionDeleteFlags = {
72
+ 'connection-id': Flags.string({
73
+ description: 'Pipeline connection ID to delete (repeatable)',
74
+ multiple: true,
75
+ }),
76
+ file: Flags.string({
77
+ char: 'f',
78
+ description: 'Path to a JSON array of connection IDs or an object with connectionIds',
79
+ exclusive: ['connection-id'],
80
+ }),
81
+ 'pipeline-id': Flags.string({
82
+ description: 'Pipeline ID or name',
83
+ required: true,
84
+ }),
85
+ yes: Flags.boolean({
86
+ char: 'y',
87
+ default: false,
88
+ description: 'Confirm deletion without prompting',
89
+ }),
90
+ };
91
+ export function buildPipelineConnectionCreatePayload(flags) {
92
+ const payload = buildPipelineConnectionCreateMutationPayload(flags);
93
+ if (payload.syncMergeState === undefined) {
94
+ payload.syncMergeState = PIPELINE_CONNECTION_SYNC_STATE_NEEDS_RECALCULATING;
95
+ }
96
+ if (payload.syncPullState === undefined) {
97
+ payload.syncPullState = PIPELINE_CONNECTION_SYNC_STATE_NEEDS_RECALCULATING;
98
+ }
99
+ return payload;
100
+ }
101
+ export function buildPipelineConnectionUpdatePayload(flags) {
102
+ const connectionId = flags['connection-id']?.trim();
103
+ if (connectionId === undefined || connectionId.length === 0) {
104
+ throw new Error('--connection-id is required when not using --file.');
105
+ }
106
+ const payload = { id: connectionId };
107
+ assignPipelineConnectionUpdateField(payload, 'branch', flags.branch);
108
+ assignPipelineConnectionUpdateField(payload, 'destinationBranch', flags['destination-branch']);
109
+ assignPipelineConnectionUpdateField(payload, 'destinationEnvironmentId', flags['destination-environment-id']);
110
+ assignPipelineConnectionUpdateField(payload, 'sourceEnvironmentId', flags['source-environment-id']);
111
+ assignPipelineConnectionUpdateField(payload, 'stageConnectionId', flags['stage-connection-id']);
112
+ assignPipelineConnectionUpdateField(payload, 'syncMergeState', flags['sync-merge-state']);
113
+ assignPipelineConnectionUpdateField(payload, 'syncPullState', flags['sync-pull-state']);
114
+ if (countPipelineConnectionUpdateFields(payload) === 0) {
115
+ throw new Error('Must provide at least one field to update.');
116
+ }
117
+ return payload;
118
+ }
119
+ function assignPipelineConnectionUpdateField(payload, key, value) {
120
+ if (value !== undefined) {
121
+ Object.assign(payload, { [key]: value });
122
+ }
123
+ }
124
+ function countPipelineConnectionUpdateFields(payload) {
125
+ return Object.keys(payload).filter((key) => key !== 'id').length;
126
+ }
127
+ export function buildPipelineConnectionCreateMutationPayload(flags) {
128
+ const sourceEnvironmentId = flags['source-environment-id'];
129
+ const destinationEnvironmentId = flags['destination-environment-id'];
130
+ const { branch } = flags;
131
+ if (sourceEnvironmentId === undefined ||
132
+ destinationEnvironmentId === undefined ||
133
+ branch === undefined) {
134
+ throw new Error('sourceEnvironmentId, destinationEnvironmentId, and branch are required.');
135
+ }
136
+ const payload = {
137
+ branch,
138
+ destinationEnvironmentId,
139
+ sourceEnvironmentId,
140
+ };
141
+ if (flags['destination-branch'] !== undefined) {
142
+ payload.destinationBranch = flags['destination-branch'];
143
+ }
144
+ if (flags['stage-connection-id'] !== undefined) {
145
+ payload.stageConnectionId = flags['stage-connection-id'];
146
+ }
147
+ if (flags['sync-merge-state'] !== undefined) {
148
+ payload.syncMergeState = flags['sync-merge-state'];
149
+ }
150
+ if (flags['sync-pull-state'] !== undefined) {
151
+ payload.syncPullState = flags['sync-pull-state'];
152
+ }
153
+ if (flags['connection-id'] !== undefined) {
154
+ payload.id = flags['connection-id'];
155
+ }
156
+ return payload;
157
+ }
158
+ export function validatePipelineConnectionCreatePayload(payload) {
159
+ for (const key of ['sourceEnvironmentId', 'destinationEnvironmentId', 'branch']) {
160
+ const value = payload[key];
161
+ if (typeof value !== 'string' || value.trim().length === 0) {
162
+ return `${key} is required.`;
163
+ }
164
+ }
165
+ return undefined;
166
+ }
167
+ export function validatePipelineConnectionUpdatePayload(payload) {
168
+ if (payload.id.trim().length === 0) {
169
+ return 'id is required for each connection update.';
170
+ }
171
+ if (countPipelineConnectionUpdateFields(payload) === 0) {
172
+ return 'Must provide at least one field to update.';
173
+ }
174
+ for (const key of [
175
+ 'branch',
176
+ 'destinationBranch',
177
+ 'destinationEnvironmentId',
178
+ 'sourceEnvironmentId',
179
+ 'stageConnectionId',
180
+ 'syncMergeState',
181
+ 'syncPullState',
182
+ ]) {
183
+ const value = payload[key];
184
+ if (value !== undefined && value.trim().length === 0) {
185
+ return `${key} value cannot be empty`;
186
+ }
187
+ }
188
+ return undefined;
189
+ }
190
+ export async function readPipelineConnectionArrayFromFile(filePath) {
191
+ const parsed = await readJsonBodyFromFileOrStdin({
192
+ file: filePath,
193
+ label: 'pipeline connections',
194
+ required: true,
195
+ });
196
+ const array = assertJsonArray(parsed, 'pipeline connections');
197
+ return array.map((item, index) => parsePipelineConnectionMutationObject(item, index));
198
+ }
199
+ export async function readPipelineConnectionUpdateArrayFromFile(filePath) {
200
+ const parsed = await readJsonBodyFromFileOrStdin({
201
+ file: filePath,
202
+ label: 'pipeline connections',
203
+ required: true,
204
+ });
205
+ const array = assertJsonArray(parsed, 'pipeline connections');
206
+ return array.map((item, index) => parsePipelineConnectionUpdateObject(item, index));
207
+ }
208
+ export function parsePipelineConnectionUpdateObject(value, index = 0) {
209
+ if (!value || typeof value !== 'object' || Array.isArray(value)) {
210
+ throw new TypeError(`pipeline connections[${index}] must be a JSON object.`);
211
+ }
212
+ const record = value;
213
+ const { id } = record;
214
+ if (id === undefined || id === null || String(id).trim().length === 0) {
215
+ throw new TypeError(`pipeline connections[${index}].id is required.`);
216
+ }
217
+ const payload = { id: String(id) };
218
+ assignPipelineConnectionUpdateFieldFromRecord(payload, 'branch', record.branch);
219
+ assignPipelineConnectionUpdateFieldFromRecord(payload, 'destinationBranch', record.destinationBranch);
220
+ assignPipelineConnectionUpdateFieldFromRecord(payload, 'destinationEnvironmentId', record.destinationEnvironmentId);
221
+ assignPipelineConnectionUpdateFieldFromRecord(payload, 'sourceEnvironmentId', record.sourceEnvironmentId);
222
+ assignPipelineConnectionUpdateFieldFromRecord(payload, 'stageConnectionId', record.stageConnectionId);
223
+ assignPipelineConnectionUpdateFieldFromRecord(payload, 'syncMergeState', record.syncMergeState);
224
+ assignPipelineConnectionUpdateFieldFromRecord(payload, 'syncPullState', record.syncPullState);
225
+ if (countPipelineConnectionUpdateFields(payload) === 0) {
226
+ throw new TypeError(`pipeline connections[${index}] must include at least one field to update.`);
227
+ }
228
+ return payload;
229
+ }
230
+ function assignPipelineConnectionUpdateFieldFromRecord(payload, key, value) {
231
+ if (value !== undefined && value !== null) {
232
+ Object.assign(payload, { [key]: String(value) });
233
+ }
234
+ }
235
+ export function parsePipelineConnectionMutationObject(value, index = 0) {
236
+ if (!value || typeof value !== 'object' || Array.isArray(value)) {
237
+ throw new TypeError(`pipeline connections[${index}] must be a JSON object.`);
238
+ }
239
+ const record = value;
240
+ const payload = {
241
+ branch: String(record.branch ?? ''),
242
+ destinationEnvironmentId: String(record.destinationEnvironmentId ?? ''),
243
+ sourceEnvironmentId: String(record.sourceEnvironmentId ?? ''),
244
+ };
245
+ if (record.destinationBranch !== undefined && record.destinationBranch !== null) {
246
+ payload.destinationBranch = String(record.destinationBranch);
247
+ }
248
+ if (record.stageConnectionId !== undefined && record.stageConnectionId !== null) {
249
+ payload.stageConnectionId = String(record.stageConnectionId);
250
+ }
251
+ if (record.syncMergeState !== undefined && record.syncMergeState !== null) {
252
+ payload.syncMergeState = String(record.syncMergeState);
253
+ }
254
+ if (record.syncPullState !== undefined && record.syncPullState !== null) {
255
+ payload.syncPullState = String(record.syncPullState);
256
+ }
257
+ if (record.id !== undefined && record.id !== null) {
258
+ payload.id = String(record.id);
259
+ }
260
+ return payload;
261
+ }
262
+ export async function readPipelineConnectionIdsFromFile(filePath) {
263
+ const parsed = await readJsonBodyFromFileOrStdin({
264
+ file: filePath,
265
+ label: 'pipeline connection IDs',
266
+ required: true,
267
+ });
268
+ if (Array.isArray(parsed)) {
269
+ return parsed.map((item, index) => {
270
+ if (typeof item !== 'string' || item.trim().length === 0) {
271
+ throw new TypeError(`pipeline connection IDs[${index}] must be a non-empty string.`);
272
+ }
273
+ return item;
274
+ });
275
+ }
276
+ if (!parsed || typeof parsed !== 'object') {
277
+ throw new TypeError('pipeline connection IDs must be a JSON array or an object with connectionIds.');
278
+ }
279
+ const { connectionIds } = parsed;
280
+ if (!Array.isArray(connectionIds)) {
281
+ throw new TypeError('pipeline connection IDs object must include a connectionIds array.');
282
+ }
283
+ return connectionIds.map((item, index) => {
284
+ if (typeof item !== 'string' || item.trim().length === 0) {
285
+ throw new TypeError(`connectionIds[${index}] must be a non-empty string.`);
286
+ }
287
+ return item;
288
+ });
289
+ }
290
+ export function parsePipelineConnectionIdsJson(raw) {
291
+ const parsed = parseJsonValue(raw, 'connection IDs');
292
+ if (Array.isArray(parsed)) {
293
+ return parsed.map((item, index) => {
294
+ if (typeof item !== 'string' || item.trim().length === 0) {
295
+ throw new TypeError(`connection IDs[${index}] must be a non-empty string.`);
296
+ }
297
+ return item;
298
+ });
299
+ }
300
+ if (!parsed || typeof parsed !== 'object') {
301
+ throw new TypeError('connection IDs must be a JSON array or an object with connectionIds.');
302
+ }
303
+ const { connectionIds } = parsed;
304
+ if (!Array.isArray(connectionIds)) {
305
+ throw new TypeError('connection IDs object must include a connectionIds array.');
306
+ }
307
+ return connectionIds;
308
+ }
309
+ //# sourceMappingURL=pipeline-connection-flags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline-connection-flags.js","sourceRoot":"","sources":["../../src/lib/pipeline-connection-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AAEjC,OAAO,EAAC,eAAe,EAAE,cAAc,EAAE,2BAA2B,EAAC,MAAM,iBAAiB,CAAA;AAC5F,OAAO,EACL,kDAAkD,GAGnD,MAAM,qBAAqB,CAAA;AAE5B,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACnD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,kCAAkC;KAChD,CAAC;IACF,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC;QAC5B,WAAW,EAAE,0EAA0E;KACxF,CAAC;IACF,oBAAoB,EAAE,KAAK,CAAC,MAAM,CAAC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CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAChC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACzD,MAAM,IAAI,SAAS,CAAC,kBAAkB,KAAK,+BAA+B,CAAC,CAAA;YAC7E,CAAC;YAED,OAAO,IAAI,CAAA;QACb,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC1C,MAAM,IAAI,SAAS,CAAC,sEAAsE,CAAC,CAAA;IAC7F,CAAC;IAED,MAAM,EAAC,aAAa,EAAC,GAAI,MAAoC,CAAA;IAC7D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CAAC,2DAA2D,CAAC,CAAA;IAClF,CAAC;IAED,OAAO,aAAyB,CAAA;AAClC,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { type ListPaginationFlagValues } from './list-pagination.js';
2
+ import { type PipelineListFilters, type PipelineMutationPayload } from './pipeline-types.js';
3
+ export declare const pipelineListFlags: {
4
+ readonly active: import("@oclif/core/interfaces").BooleanFlag<boolean>;
5
+ readonly name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
6
+ readonly platform: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
+ readonly cursor: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ readonly 'page-size': import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ };
10
+ export type PipelineListFlagValues = ListPaginationFlagValues & {
11
+ active?: boolean;
12
+ name?: string;
13
+ platform?: string;
14
+ };
15
+ export declare function buildPipelineListFilters(flags: PipelineListFlagValues): PipelineListFilters;
16
+ export declare const pipelineMutationBooleanFlags: {
17
+ readonly active: import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
+ readonly 'block-commits': import("@oclif/core/interfaces").BooleanFlag<boolean>;
19
+ readonly 'enable-smart-conflict-resolution': import("@oclif/core/interfaces").BooleanFlag<boolean>;
20
+ };
21
+ export declare const pipelineMutationStringFlags: {
22
+ readonly 'calculate-based-on': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
+ readonly 'git-repository-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
24
+ readonly 'main-branch': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
25
+ readonly platform: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
26
+ };
27
+ export declare const pipelineCreateFlags: {
28
+ readonly 'calculate-based-on': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
29
+ readonly 'git-repository-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
30
+ readonly 'main-branch': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
31
+ readonly platform: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
32
+ readonly active: import("@oclif/core/interfaces").BooleanFlag<boolean>;
33
+ readonly 'block-commits': import("@oclif/core/interfaces").BooleanFlag<boolean>;
34
+ readonly 'enable-smart-conflict-resolution': import("@oclif/core/interfaces").BooleanFlag<boolean>;
35
+ };
36
+ export declare const pipelineUpdateFlags: {
37
+ readonly name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
38
+ readonly 'calculate-based-on': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
39
+ readonly 'git-repository-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
40
+ readonly 'main-branch': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
41
+ readonly platform: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
42
+ readonly active: import("@oclif/core/interfaces").BooleanFlag<boolean>;
43
+ readonly 'block-commits': import("@oclif/core/interfaces").BooleanFlag<boolean>;
44
+ readonly 'enable-smart-conflict-resolution': import("@oclif/core/interfaces").BooleanFlag<boolean>;
45
+ };
46
+ type PipelineBooleanFlagValues = {
47
+ [K in keyof typeof pipelineMutationBooleanFlags]?: boolean;
48
+ };
49
+ type PipelineStringFlagValues = {
50
+ [K in keyof typeof pipelineMutationStringFlags]?: string;
51
+ } & {
52
+ name?: string;
53
+ };
54
+ export type PipelineMutationFlagValues = PipelineBooleanFlagValues & PipelineStringFlagValues;
55
+ declare const PIPELINE_FLAG_TO_PAYLOAD_KEY: {
56
+ readonly active: "active";
57
+ readonly 'block-commits': "blockCommits";
58
+ readonly 'calculate-based-on': "calculateBasedOn";
59
+ readonly 'enable-smart-conflict-resolution': "enableSmartConflictResolution";
60
+ readonly 'git-repository-id': "gitRepositoryId";
61
+ readonly 'main-branch': "mainBranch";
62
+ readonly name: "name";
63
+ readonly platform: "platform";
64
+ };
65
+ export type PipelineMutationFlagKey = keyof typeof PIPELINE_FLAG_TO_PAYLOAD_KEY;
66
+ export declare const PIPELINE_STRING_VALIDATION_KEYS: readonly ["calculateBasedOn", "gitRepositoryId", "mainBranch", "name", "platform"];
67
+ export declare function buildPipelineCreatePayload(name: string, flags: PipelineMutationFlagValues): PipelineMutationPayload;
68
+ export declare function buildPipelineMutationPayload(flags: PipelineMutationFlagValues): PipelineMutationPayload;
69
+ export declare function collectPipelineMutationFlagKeys(flags: PipelineMutationFlagValues): PipelineMutationFlagKey[];
70
+ export declare function validateNonEmptyStringFields(payload: PipelineMutationPayload, keys: readonly (keyof PipelineMutationPayload)[]): string | undefined;
71
+ export declare function validatePipelinePlatform(value: string | undefined): string | undefined;
72
+ export declare function validatePipelineCalculateBasedOn(value: string | undefined): string | undefined;
73
+ export declare function validatePipelineMutationPayload(payload: PipelineMutationPayload): string | undefined;
74
+ export {};
@@ -0,0 +1,154 @@
1
+ import { Flags } from '@oclif/core';
2
+ import { buildListPaginationQuery, listPaginationFlags, } from './list-pagination.js';
3
+ import { PIPELINE_CALCULATE_BASED_ON_VALUES, PIPELINE_PLATFORMS, } from './pipeline-types.js';
4
+ export const pipelineListFlags = {
5
+ ...listPaginationFlags,
6
+ active: Flags.boolean({
7
+ allowNo: true,
8
+ description: 'Filter by active status',
9
+ }),
10
+ name: Flags.string({
11
+ description: 'Filter by pipeline name',
12
+ }),
13
+ platform: Flags.string({
14
+ description: 'Filter by pipeline platform',
15
+ options: [...PIPELINE_PLATFORMS],
16
+ }),
17
+ };
18
+ export function buildPipelineListFilters(flags) {
19
+ const filters = {};
20
+ if (typeof flags.name === 'string') {
21
+ filters.name = flags.name;
22
+ }
23
+ if (flags.active !== undefined) {
24
+ filters.active = flags.active;
25
+ }
26
+ if (typeof flags.platform === 'string') {
27
+ filters.platform = flags.platform;
28
+ }
29
+ return { ...filters, ...buildListPaginationQuery(flags) };
30
+ }
31
+ export const pipelineMutationBooleanFlags = {
32
+ active: Flags.boolean({
33
+ allowNo: true,
34
+ description: 'Whether the pipeline is active',
35
+ }),
36
+ 'block-commits': Flags.boolean({
37
+ allowNo: true,
38
+ description: 'Block commits on the pipeline',
39
+ }),
40
+ 'enable-smart-conflict-resolution': Flags.boolean({
41
+ allowNo: true,
42
+ description: 'Enable smart conflict resolution',
43
+ }),
44
+ };
45
+ export const pipelineMutationStringFlags = {
46
+ 'calculate-based-on': Flags.string({
47
+ description: 'Promotion calculation basis',
48
+ options: [...PIPELINE_CALCULATE_BASED_ON_VALUES],
49
+ }),
50
+ 'git-repository-id': Flags.string({
51
+ description: 'Git repository ID',
52
+ }),
53
+ 'main-branch': Flags.string({
54
+ description: 'Main branch name',
55
+ }),
56
+ platform: Flags.string({
57
+ description: 'Pipeline platform',
58
+ options: [...PIPELINE_PLATFORMS],
59
+ }),
60
+ };
61
+ export const pipelineCreateFlags = {
62
+ ...pipelineMutationBooleanFlags,
63
+ ...pipelineMutationStringFlags,
64
+ };
65
+ export const pipelineUpdateFlags = {
66
+ ...pipelineMutationBooleanFlags,
67
+ ...pipelineMutationStringFlags,
68
+ name: Flags.string({
69
+ description: 'Pipeline name',
70
+ }),
71
+ };
72
+ const PIPELINE_FLAG_TO_PAYLOAD_KEY = {
73
+ active: 'active',
74
+ 'block-commits': 'blockCommits',
75
+ 'calculate-based-on': 'calculateBasedOn',
76
+ 'enable-smart-conflict-resolution': 'enableSmartConflictResolution',
77
+ 'git-repository-id': 'gitRepositoryId',
78
+ 'main-branch': 'mainBranch',
79
+ name: 'name',
80
+ platform: 'platform',
81
+ };
82
+ const mutationFlagKeys = Object.keys(PIPELINE_FLAG_TO_PAYLOAD_KEY);
83
+ export const PIPELINE_STRING_VALIDATION_KEYS = [
84
+ 'calculateBasedOn',
85
+ 'gitRepositoryId',
86
+ 'mainBranch',
87
+ 'name',
88
+ 'platform',
89
+ ];
90
+ export function buildPipelineCreatePayload(name, flags) {
91
+ return {
92
+ ...buildPipelineMutationPayload(flags),
93
+ name,
94
+ };
95
+ }
96
+ export function buildPipelineMutationPayload(flags) {
97
+ const payload = {};
98
+ for (const flagKey of mutationFlagKeys) {
99
+ const value = flags[flagKey];
100
+ if (value !== undefined) {
101
+ const payloadKey = PIPELINE_FLAG_TO_PAYLOAD_KEY[flagKey];
102
+ Object.assign(payload, { [payloadKey]: value });
103
+ }
104
+ }
105
+ return payload;
106
+ }
107
+ export function collectPipelineMutationFlagKeys(flags) {
108
+ const selected = [];
109
+ for (const key of mutationFlagKeys) {
110
+ if (flags[key] !== undefined) {
111
+ selected.push(key);
112
+ }
113
+ }
114
+ return selected;
115
+ }
116
+ export function validateNonEmptyStringFields(payload, keys) {
117
+ for (const key of keys) {
118
+ const value = payload[key];
119
+ if (typeof value === 'string' && value.trim().length === 0) {
120
+ return `${key} value cannot be empty`;
121
+ }
122
+ }
123
+ return undefined;
124
+ }
125
+ export function validatePipelinePlatform(value) {
126
+ if (value === undefined) {
127
+ return undefined;
128
+ }
129
+ if (!PIPELINE_PLATFORMS.includes(value)) {
130
+ return `platform must be one of: ${PIPELINE_PLATFORMS.join(', ')}`;
131
+ }
132
+ return undefined;
133
+ }
134
+ export function validatePipelineCalculateBasedOn(value) {
135
+ if (value === undefined) {
136
+ return undefined;
137
+ }
138
+ if (!PIPELINE_CALCULATE_BASED_ON_VALUES.includes(value)) {
139
+ return `calculateBasedOn must be one of: ${PIPELINE_CALCULATE_BASED_ON_VALUES.join(', ')}`;
140
+ }
141
+ return undefined;
142
+ }
143
+ export function validatePipelineMutationPayload(payload) {
144
+ const platformError = validatePipelinePlatform(payload.platform);
145
+ if (platformError !== undefined) {
146
+ return platformError;
147
+ }
148
+ const calculateBasedOnError = validatePipelineCalculateBasedOn(payload.calculateBasedOn);
149
+ if (calculateBasedOnError !== undefined) {
150
+ return calculateBasedOnError;
151
+ }
152
+ return validateNonEmptyStringFields(payload, PIPELINE_STRING_VALIDATION_KEYS);
153
+ }
154
+ //# sourceMappingURL=pipeline-flags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline-flags.js","sourceRoot":"","sources":["../../src/lib/pipeline-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AAEjC,OAAO,EACL,wBAAwB,EACxB,mBAAmB,GAEpB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,kCAAkC,EAClC,kBAAkB,GAInB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,mBAAmB;IACtB,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC;QACpB,OAAO,EAA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ED,IAAI,CAAE,kBAAwC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/D,OAAO,4BAA4B,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAA;IACpE,CAAC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,KAAyB;IACxE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,IAAI,CAAE,kCAAwD,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/E,OAAO,oCAAoC,kCAAkC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAA;IAC5F,CAAC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,OAAgC;IAC9E,MAAM,aAAa,GAAG,wBAAwB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAChE,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,aAAa,CAAA;IACtB,CAAC;IAED,MAAM,qBAAqB,GAAG,gCAAgC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;IACxF,IAAI,qBAAqB,KAAK,SAAS,EAAE,CAAC;QACxC,OAAO,qBAAqB,CAAA;IAC9B,CAAC;IAED,OAAO,4BAA4B,CAAC,OAAO,EAAE,+BAA+B,CAAC,CAAA;AAC/E,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { type PipelineStageConnectionMutationPayload, type PipelineStageConnectionUpdatePayload } from './stage-types.js';
2
+ export declare const pipelineStageConnectionMutationFlags: {
3
+ readonly 'next-pipeline-stage-connection-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
4
+ readonly 'stage-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
5
+ };
6
+ export declare const pipelineStageConnectionCreateFlags: {
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
+ export declare const pipelineStageConnectionUpdateFlags: {
12
+ readonly 'pipeline-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
13
+ readonly 'next-pipeline-stage-connection-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ readonly 'stage-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ };
16
+ export declare const pipelineStageConnectionDeleteFlags: {
17
+ readonly 'pipeline-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
18
+ readonly yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
19
+ };
20
+ export type PipelineStageConnectionMutationFlagValues = {
21
+ 'next-pipeline-stage-connection-id'?: string;
22
+ 'stage-id'?: string;
23
+ };
24
+ export declare function buildPipelineStageConnectionCreatePayload(flags: PipelineStageConnectionMutationFlagValues): PipelineStageConnectionMutationPayload;
25
+ export declare function buildPipelineStageConnectionUpdatePayload(flags: PipelineStageConnectionMutationFlagValues, connectionId: string): PipelineStageConnectionUpdatePayload;
@@ -0,0 +1,46 @@
1
+ import { Flags } from '@oclif/core';
2
+ export const pipelineStageConnectionMutationFlags = {
3
+ 'next-pipeline-stage-connection-id': Flags.string({
4
+ description: 'Next pipeline stage connection ID',
5
+ }),
6
+ 'stage-id': Flags.string({ description: 'Stage ID' }),
7
+ };
8
+ export const pipelineStageConnectionCreateFlags = {
9
+ ...pipelineStageConnectionMutationFlags,
10
+ 'pipeline-id': Flags.string({ description: 'Pipeline ID', required: true }),
11
+ };
12
+ export const pipelineStageConnectionUpdateFlags = {
13
+ ...pipelineStageConnectionMutationFlags,
14
+ 'pipeline-id': Flags.string({ description: 'Pipeline ID', required: true }),
15
+ };
16
+ export const pipelineStageConnectionDeleteFlags = {
17
+ 'pipeline-id': Flags.string({ description: 'Pipeline ID', required: true }),
18
+ yes: Flags.boolean({
19
+ char: 'y',
20
+ default: false,
21
+ description: 'Confirm deletion without prompting',
22
+ }),
23
+ };
24
+ export function buildPipelineStageConnectionCreatePayload(flags) {
25
+ const stageId = flags['stage-id'];
26
+ if (stageId === undefined || stageId.trim().length === 0) {
27
+ throw new Error('stageId is required.');
28
+ }
29
+ const payload = { stageId };
30
+ if (flags['next-pipeline-stage-connection-id'] !== undefined) {
31
+ payload.nextPipelineStageConnectionId = flags['next-pipeline-stage-connection-id'];
32
+ }
33
+ return payload;
34
+ }
35
+ export function buildPipelineStageConnectionUpdatePayload(flags, connectionId) {
36
+ const payload = { id: connectionId };
37
+ if (flags['stage-id'] !== undefined)
38
+ payload.stageId = flags['stage-id'];
39
+ if (flags['next-pipeline-stage-connection-id'] !== undefined) {
40
+ payload.nextPipelineStageConnectionId = flags['next-pipeline-stage-connection-id'];
41
+ }
42
+ if (Object.keys(payload).length === 1)
43
+ throw new Error('Must provide at least one field to update.');
44
+ return payload;
45
+ }
46
+ //# sourceMappingURL=pipeline-stage-connection-flags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline-stage-connection-flags.js","sourceRoot":"","sources":["../../src/lib/pipeline-stage-connection-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AAOjC,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,mCAAmC,EAAE,KAAK,CAAC,MAAM,CAAC;QAChD,WAAW,EAAE,mCAAmC;KACjD,CAAC;IACF,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,UAAU,EAAC,CAAC;CAC3C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