@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
@@ -1,53 +1,51 @@
1
1
  import { execFile } from 'node:child_process';
2
2
  import { promisify } from 'node:util';
3
+ import { resolveSalesforcePath } from './sdr-path-resolver.js';
3
4
  const execFileAsync = promisify(execFile);
4
- let gitChangedFilesFn = defaultGitChangedFiles;
5
- async function defaultGitChangedFiles(baseRef) {
6
- const { stdout } = await execFileAsync('git', ['diff', '--name-only', `${baseRef}...HEAD`]);
5
+ let gitCommittedNameStatusFn = defaultGitCommittedNameStatus;
6
+ let gitStagedNameStatusFn = defaultGitStagedNameStatus;
7
+ function parseChangedFilePaths(line) {
8
+ const trimmed = line.trim();
9
+ if (!trimmed) {
10
+ return [];
11
+ }
12
+ const statusMatch = trimmed.match(/^[A-Z]\d*(?:\t(.+))?$/);
13
+ if (!statusMatch) {
14
+ return [trimmed];
15
+ }
16
+ const pathPart = statusMatch[1];
17
+ if (!pathPart) {
18
+ return [];
19
+ }
20
+ return pathPart
21
+ .split('\t')
22
+ .map((entry) => entry.trim())
23
+ .filter(Boolean);
24
+ }
25
+ async function defaultGitCommittedNameStatus(baseRef) {
26
+ const { stdout } = await execFileAsync('git', ['diff', '--name-status', `${baseRef}...HEAD`]);
7
27
  return stdout
8
28
  .split(/\r?\n/)
9
29
  .map((line) => line.trim())
10
30
  .filter(Boolean);
11
31
  }
12
- function fileBaseName(path, suffix) {
13
- const name = path.split('/').pop() ?? path;
14
- return name.endsWith(suffix) ? name.slice(0, -suffix.length) : name;
15
- }
16
- function parentDirectory(path) {
17
- const parts = path.split('/');
18
- return parts.length > 1 ? (parts.at(-2) ?? '') : '';
32
+ async function defaultGitStagedNameStatus() {
33
+ const { stdout } = await execFileAsync('git', ['diff', '--cached', '--name-status']);
34
+ return stdout
35
+ .split(/\r?\n/)
36
+ .map((line) => line.trim())
37
+ .filter(Boolean);
19
38
  }
20
- function resolveSalesforceSelection(path) {
21
- if (path.endsWith('.cls') && path.includes('/classes/')) {
22
- return { name: fileBaseName(path, '.cls'), type: 'ApexClass' };
23
- }
24
- if (path.endsWith('.trigger') && path.includes('/triggers/')) {
25
- return { name: fileBaseName(path, '.trigger'), type: 'ApexTrigger' };
26
- }
27
- if (path.includes('/lwc/')) {
28
- return { name: parentDirectory(path), type: 'LightningComponentBundle' };
29
- }
30
- if (path.includes('/aura/')) {
31
- return { name: parentDirectory(path), type: 'AuraDefinitionBundle' };
32
- }
33
- if (path.endsWith('.flow-meta.xml') && path.includes('/flows/')) {
34
- return { name: fileBaseName(path, '.flow-meta.xml'), type: 'Flow' };
35
- }
36
- if (path.endsWith('.layout-meta.xml') && path.includes('/layouts/')) {
37
- return { name: fileBaseName(path, '.layout-meta.xml'), type: 'Layout' };
38
- }
39
- if (path.endsWith('.permissionset-meta.xml') && path.includes('/permissionsets/')) {
40
- return { name: fileBaseName(path, '.permissionset-meta.xml'), type: 'PermissionSet' };
41
- }
42
- const objectMatch = path.match(/\/objects\/([^/]+)\/\1\.object-meta\.xml$/);
43
- if (objectMatch) {
44
- return { name: objectMatch[1], type: 'CustomObject' };
45
- }
46
- const fieldMatch = path.match(/\/objects\/([^/]+)\/fields\/([^/]+)\.field-meta\.xml$/);
47
- if (fieldMatch) {
48
- return { name: `${fieldMatch[1]}.${fieldMatch[2]}`, type: 'CustomField' };
39
+ async function collectChangedFilePaths(baseRef) {
40
+ const committedLines = await gitCommittedNameStatusFn(baseRef);
41
+ const stagedLines = await gitStagedNameStatusFn();
42
+ const paths = new Set();
43
+ for (const line of [...committedLines, ...stagedLines]) {
44
+ for (const path of parseChangedFilePaths(line)) {
45
+ paths.add(path);
46
+ }
49
47
  }
50
- return undefined;
48
+ return [...paths];
51
49
  }
52
50
  function resolveVlocitySelection(path) {
53
51
  const parts = path.split('/').filter(Boolean);
@@ -60,19 +58,23 @@ function resolveVlocitySelection(path) {
60
58
  type: parts[vlocityIndex + 1],
61
59
  };
62
60
  }
63
- export function resolveChangedPath(path, moduleType) {
64
- if (path.endsWith('-meta.xml') && !path.includes('/objects/')) {
65
- return resolveSalesforceSelection(path);
61
+ function resolveSalesforceSelection(path) {
62
+ const resolved = resolveSalesforcePath(path);
63
+ if (!resolved) {
64
+ return undefined;
66
65
  }
66
+ return { name: resolved.name, type: resolved.type };
67
+ }
68
+ export function resolveChangedPath(path, moduleType) {
67
69
  if (moduleType === 'vlocity') {
68
70
  return resolveVlocitySelection(path) ?? resolveSalesforceSelection(path);
69
71
  }
70
72
  return resolveSalesforceSelection(path);
71
73
  }
72
74
  export async function selectionsFromChangedFiles(baseRef, moduleType) {
73
- const files = await gitChangedFilesFn(baseRef);
75
+ const files = await collectChangedFilePaths(baseRef);
74
76
  if (files.length === 0) {
75
- throw new Error(`No changed files were found against ${baseRef}.`);
77
+ throw new Error(`No changed files were found in committed branch changes against ${baseRef} or in the staged index.`);
76
78
  }
77
79
  const byKey = new Map();
78
80
  for (const file of files) {
@@ -87,11 +89,19 @@ export async function selectionsFromChangedFiles(baseRef, moduleType) {
87
89
  return [...byKey.values()];
88
90
  }
89
91
  // Test-only hook
90
- export function setGitChangedFilesForTests(fn) {
91
- gitChangedFilesFn = fn;
92
+ export function setGitChangedFilesForTests(committedLines, stagedLines) {
93
+ gitCommittedNameStatusFn =
94
+ typeof committedLines === 'function'
95
+ ? committedLines
96
+ : async () => committedLines;
97
+ gitStagedNameStatusFn =
98
+ typeof stagedLines === 'function'
99
+ ? stagedLines
100
+ : async () => stagedLines ?? [];
92
101
  }
93
102
  // Test-only hook
94
103
  export function resetGitChangedFilesForTests() {
95
- gitChangedFilesFn = defaultGitChangedFiles;
104
+ gitCommittedNameStatusFn = defaultGitCommittedNameStatus;
105
+ gitStagedNameStatusFn = defaultGitStagedNameStatus;
96
106
  }
97
107
  //# sourceMappingURL=dependency-from-changes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dependency-from-changes.js","sourceRoot":"","sources":["../../src/lib/dependency-from-changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAA;AAInC,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAA;AAIzC,IAAI,iBAAiB,GAAsB,sBAAsB,CAAA;AAEjE,KAAK,UAAU,sBAAsB,CAAC,OAAe;IACnD,MAAM,EAAC,MAAM,EAA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,MAAM,EAAE,CAAC,CAAA;AAC5B,CAAC;AAED,iBAAiB;AACjB,MAAM,UAAU,0BAA0B,CACxC,cAA+C,EAC/C,WAAmD;IAEnD,wBAAwB;QACtB,OAAO,cAAc,KAAK,UAAU;YAClC,CAAC,CAAC,cAAc;YAChB,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,cAAc,CAAA;IAChC,qBAAqB;QACnB,OAAO,WAAW,KAAK,UAAU;YAC/B,CAAC,CAAC,WAAW;YACb,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,WAAW,IAAI,EAAE,CAAA;AACrC,CAAC;AAED,iBAAiB;AACjB,MAAM,UAAU,4BAA4B;IAC1C,wBAAwB,GAAG,6BAA6B,CAAA;IACxD,qBAAqB,GAAG,0BAA0B,CAAA;AACpD,CAAC"}
@@ -7,13 +7,14 @@ import { type JobListFilters } from '../job-types.js';
7
7
  import { type ComparisonMode, type ContentSource, type DependencyResult, type IndexSearchResult, type IndexSource, type MetadataContentResult, type ModuleType, type OrderDirection, type PlatformExperience, type RetrieveMode } from '../metadata-common.js';
8
8
  import { type IndexRefreshResult, type RefreshDeletedMetadataIndexResult } from '../metadata-refresh.js';
9
9
  import { NAVIGATION_RESOURCE_TYPES } from '../navigation.js';
10
- import { type PipelineConnection, type PipelineDescribe, type PipelineListFilters } from '../pipeline-types.js';
10
+ import { type Pipeline, type PipelineConnection, type PipelineListFilters } from '../pipeline-types.js';
11
11
  import { type ProjectDefaultScope } from '../project-defaults.js';
12
12
  import { type Project, type ProjectListFilters } from '../project-types.js';
13
13
  import { type PromotionConflict, type PromotionConflictMode, type PromotionConflictResolutionResult, type PromotionConflictUndoResult } from '../promotion-conflicts.js';
14
14
  import { type PromotionOperation } from '../promotion-run.js';
15
15
  import { type PromotionDetail, type PromotionListFilters } from '../promotion-types.js';
16
16
  import { type GitRepository, type RepositoryListFilters, type RepositoryValidateResult } from '../repository-types.js';
17
+ import { type PipelineStageConnection, type Stage } from '../stage-types.js';
17
18
  import { type User } from '../user-types.js';
18
19
  import { type HeadlessWorkStatusResult } from '../work-types.js';
19
20
  type EnvironmentCreateArgs = {
@@ -111,6 +112,76 @@ type RepositoryCreateArgs = RepositoryMutationArgs & {
111
112
  type RepositoryUpdateArgs = RepositoryMutationArgs & {
112
113
  id: string;
113
114
  };
115
+ type PipelineMutationArgs = {
116
+ active?: boolean;
117
+ blockCommits?: boolean;
118
+ calculateBasedOn?: string;
119
+ enableSmartConflictResolution?: boolean;
120
+ gitRepositoryId?: string;
121
+ id?: string;
122
+ mainBranch?: string;
123
+ name?: string;
124
+ platform?: string;
125
+ };
126
+ type PipelineCreateArgs = PipelineMutationArgs & {
127
+ name: string;
128
+ };
129
+ type PipelineUpdateArgs = PipelineMutationArgs & {
130
+ id: string;
131
+ };
132
+ type StageMutationArgs = {
133
+ metaStage?: string;
134
+ name?: string;
135
+ };
136
+ type StageCreateArgs = StageMutationArgs & {
137
+ name: string;
138
+ };
139
+ type StageUpdateArgs = StageMutationArgs & {
140
+ id: string;
141
+ };
142
+ type StageDeleteArgs = {
143
+ id: string;
144
+ };
145
+ type PipelineStageConnectionCreateArgs = {
146
+ nextPipelineStageConnectionId?: string;
147
+ pipelineId: string;
148
+ stageId: string;
149
+ };
150
+ type PipelineStageConnectionListArgs = {
151
+ pipelineId: string;
152
+ };
153
+ type PipelineStageConnectionUpdateArgs = {
154
+ connectionId: string;
155
+ nextPipelineStageConnectionId?: string;
156
+ pipelineId: string;
157
+ stageId?: string;
158
+ };
159
+ type PipelineStageConnectionDeleteArgs = {
160
+ connectionId: string;
161
+ pipelineId: string;
162
+ };
163
+ type PipelineConnectionMutationArgs = {
164
+ branch?: string;
165
+ destinationBranch?: string;
166
+ destinationEnvironmentId?: string;
167
+ id?: string;
168
+ sourceEnvironmentId?: string;
169
+ stageConnectionId?: string;
170
+ syncMergeState?: string;
171
+ syncPullState?: string;
172
+ };
173
+ type PipelineConnectionCreateArgs = PipelineConnectionMutationArgs & {
174
+ connections?: PipelineConnectionMutationArgs[];
175
+ pipelineId: string;
176
+ };
177
+ type PipelineConnectionUpdateArgs = {
178
+ connections: PipelineConnectionMutationArgs[];
179
+ pipelineId: string;
180
+ };
181
+ type PipelineConnectionDeleteArgs = {
182
+ connectionIds: string[];
183
+ pipelineId: string;
184
+ };
114
185
  type MetadataListArgs = {
115
186
  avoidSourceTracking?: boolean;
116
187
  changeDateFrom?: string;
@@ -234,13 +305,60 @@ declare function pipelineList(args?: PipelineListFilters): Promise<Record<string
234
305
  declare function pipelineGet(args: {
235
306
  id: string;
236
307
  }): Promise<{
237
- pipeline: PipelineDescribe;
308
+ pipeline: import("../pipeline-types.js").PipelineDescribe;
238
309
  }>;
239
310
  declare function pipelineConnectionList(args: {
240
311
  pipelineId?: string;
241
312
  }): Promise<{
242
313
  connections: PipelineConnection[];
243
314
  }>;
315
+ declare function pipelineCreate(args: PipelineCreateArgs): Promise<{
316
+ pipeline: Pipeline;
317
+ }>;
318
+ declare function pipelineUpdate(args: PipelineUpdateArgs): Promise<{
319
+ pipeline: Pipeline;
320
+ }>;
321
+ declare function pipelineConnectionCreate(args: PipelineConnectionCreateArgs): Promise<{
322
+ connections: PipelineConnection[];
323
+ }>;
324
+ declare function pipelineConnectionUpdate(args: PipelineConnectionUpdateArgs): Promise<{
325
+ connections: PipelineConnection[];
326
+ }>;
327
+ declare function pipelineConnectionDelete(args: PipelineConnectionDeleteArgs): Promise<{
328
+ connectionIds: string[];
329
+ pipelineId: string;
330
+ }>;
331
+ declare function stageList(args?: {
332
+ cursor?: string;
333
+ pageSize?: number;
334
+ }): Promise<Record<string, unknown>>;
335
+ declare function stageGet(args: {
336
+ id: string;
337
+ }): Promise<{
338
+ stage: Stage;
339
+ }>;
340
+ declare function stageCreate(args: StageCreateArgs): Promise<{
341
+ stage: Stage;
342
+ }>;
343
+ declare function stageUpdate(args: StageUpdateArgs): Promise<{
344
+ stage: Stage;
345
+ }>;
346
+ declare function stageDelete(args: StageDeleteArgs): Promise<{
347
+ id: string;
348
+ }>;
349
+ declare function pipelineStageConnectionCreate(args: PipelineStageConnectionCreateArgs): Promise<{
350
+ connection: PipelineStageConnection;
351
+ }>;
352
+ declare function pipelineStageConnectionList(args: PipelineStageConnectionListArgs): Promise<{
353
+ connections: PipelineStageConnection[];
354
+ }>;
355
+ declare function pipelineStageConnectionUpdate(args: PipelineStageConnectionUpdateArgs): Promise<{
356
+ connection: PipelineStageConnection;
357
+ }>;
358
+ declare function pipelineStageConnectionDelete(args: PipelineStageConnectionDeleteArgs): Promise<{
359
+ connectionId: string;
360
+ pipelineId: string;
361
+ }>;
244
362
  declare function projectList(args?: ProjectListFilters): Promise<Record<string, unknown>>;
245
363
  declare function repositoryList(args?: RepositoryListFilters): Promise<Record<string, unknown>>;
246
364
  declare function repositoryGet(args: {
@@ -1085,9 +1203,18 @@ export declare const agentiaMcpToolHandlers: {
1085
1203
  metadataRefreshRun: typeof metadataRefreshRun;
1086
1204
  metadataRefreshStatus: typeof metadataRefreshStatus;
1087
1205
  navigationResolve: typeof navigationResolve;
1206
+ pipelineConnectionCreate: typeof pipelineConnectionCreate;
1207
+ pipelineConnectionDelete: typeof pipelineConnectionDelete;
1088
1208
  pipelineConnectionList: typeof pipelineConnectionList;
1209
+ pipelineConnectionUpdate: typeof pipelineConnectionUpdate;
1210
+ pipelineCreate: typeof pipelineCreate;
1089
1211
  pipelineGet: typeof pipelineGet;
1090
1212
  pipelineList: typeof pipelineList;
1213
+ pipelineStageConnectionCreate: typeof pipelineStageConnectionCreate;
1214
+ pipelineStageConnectionDelete: typeof pipelineStageConnectionDelete;
1215
+ pipelineStageConnectionList: typeof pipelineStageConnectionList;
1216
+ pipelineStageConnectionUpdate: typeof pipelineStageConnectionUpdate;
1217
+ pipelineUpdate: typeof pipelineUpdate;
1091
1218
  projectDefaultGet: typeof projectDefaultGet;
1092
1219
  projectDefaultSet: typeof projectDefaultSet;
1093
1220
  projectDefaultUnset: typeof projectDefaultUnset;
@@ -1107,6 +1234,11 @@ export declare const agentiaMcpToolHandlers: {
1107
1234
  repositoryReset: typeof repositoryReset;
1108
1235
  repositoryUpdate: typeof repositoryUpdate;
1109
1236
  repositoryValidate: typeof repositoryValidate;
1237
+ stageCreate: typeof stageCreate;
1238
+ stageDelete: typeof stageDelete;
1239
+ stageGet: typeof stageGet;
1240
+ stageList: typeof stageList;
1241
+ stageUpdate: typeof stageUpdate;
1110
1242
  userGet: typeof userGet;
1111
1243
  workStatus: typeof workStatus;
1112
1244
  deploymentStepCreate: (args: {