@copado/agentia-cli 0.27.0-alpha.0 → 0.29.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 (95) hide show
  1. package/README.md +170 -86
  2. package/dist/commands/environment/list.d.ts +5 -1
  3. package/dist/commands/environment/list.js +10 -8
  4. package/dist/commands/environment/list.js.map +1 -1
  5. package/dist/commands/job/list.d.ts +4 -2
  6. package/dist/commands/job/list.js +10 -12
  7. package/dist/commands/job/list.js.map +1 -1
  8. package/dist/commands/pipeline/list.d.ts +6 -1
  9. package/dist/commands/pipeline/list.js +10 -7
  10. package/dist/commands/pipeline/list.js.map +1 -1
  11. package/dist/commands/project/list.d.ts +4 -1
  12. package/dist/commands/project/list.js +7 -5
  13. package/dist/commands/project/list.js.map +1 -1
  14. package/dist/commands/promotion/list.d.ts +4 -2
  15. package/dist/commands/promotion/list.js +8 -6
  16. package/dist/commands/promotion/list.js.map +1 -1
  17. package/dist/commands/setup.d.ts +12 -0
  18. package/dist/commands/setup.js +52 -0
  19. package/dist/commands/setup.js.map +1 -0
  20. package/dist/commands/work/list.d.ts +4 -1
  21. package/dist/commands/work/list.js +7 -5
  22. package/dist/commands/work/list.js.map +1 -1
  23. package/dist/commands/work/set.js +8 -1
  24. package/dist/commands/work/set.js.map +1 -1
  25. package/dist/commands/work/submit.d.ts +5 -0
  26. package/dist/commands/work/submit.js +93 -5
  27. package/dist/commands/work/submit.js.map +1 -1
  28. package/dist/commands/work/test.d.ts +10 -0
  29. package/dist/commands/work/test.js +61 -0
  30. package/dist/commands/work/test.js.map +1 -0
  31. package/dist/lib/agentia-command.d.ts +3 -0
  32. package/dist/lib/agentia-command.js +12 -1
  33. package/dist/lib/agentia-command.js.map +1 -1
  34. package/dist/lib/cicd-gateway.d.ts +3 -0
  35. package/dist/lib/cicd-gateway.js +19 -2
  36. package/dist/lib/cicd-gateway.js.map +1 -1
  37. package/dist/lib/defaults-store.d.ts +3 -0
  38. package/dist/lib/defaults-store.js +24 -0
  39. package/dist/lib/defaults-store.js.map +1 -1
  40. package/dist/lib/environment-flags.d.ts +3 -1
  41. package/dist/lib/environment-flags.js +3 -1
  42. package/dist/lib/environment-flags.js.map +1 -1
  43. package/dist/lib/environment-types.d.ts +4 -1
  44. package/dist/lib/environment-types.js +2 -0
  45. package/dist/lib/environment-types.js.map +1 -1
  46. package/dist/lib/git-worktree.d.ts +4 -0
  47. package/dist/lib/git-worktree.js +46 -2
  48. package/dist/lib/git-worktree.js.map +1 -1
  49. package/dist/lib/job-types.d.ts +7 -4
  50. package/dist/lib/job-types.js +8 -15
  51. package/dist/lib/job-types.js.map +1 -1
  52. package/dist/lib/list-pagination.d.ts +46 -0
  53. package/dist/lib/list-pagination.js +106 -0
  54. package/dist/lib/list-pagination.js.map +1 -0
  55. package/dist/lib/local-quality-gates.d.ts +45 -0
  56. package/dist/lib/local-quality-gates.js +103 -0
  57. package/dist/lib/local-quality-gates.js.map +1 -0
  58. package/dist/lib/mcp/tools.d.ts +67 -75
  59. package/dist/lib/mcp/tools.js +28 -360
  60. package/dist/lib/mcp/tools.js.map +1 -1
  61. package/dist/lib/mcp/work-tools.d.ts +73 -0
  62. package/dist/lib/mcp/work-tools.js +475 -0
  63. package/dist/lib/mcp/work-tools.js.map +1 -0
  64. package/dist/lib/open-browser.d.ts +3 -0
  65. package/dist/lib/open-browser.js +13 -1
  66. package/dist/lib/open-browser.js.map +1 -1
  67. package/dist/lib/pipeline-types.d.ts +6 -1
  68. package/dist/lib/pipeline-types.js +10 -6
  69. package/dist/lib/pipeline-types.js.map +1 -1
  70. package/dist/lib/project-flags.d.ts +3 -2
  71. package/dist/lib/project-flags.js +3 -1
  72. package/dist/lib/project-flags.js.map +1 -1
  73. package/dist/lib/project-setup.d.ts +80 -0
  74. package/dist/lib/project-setup.js +383 -0
  75. package/dist/lib/project-setup.js.map +1 -0
  76. package/dist/lib/project-types.d.ts +5 -1
  77. package/dist/lib/project-types.js +6 -10
  78. package/dist/lib/project-types.js.map +1 -1
  79. package/dist/lib/promotion-flags.d.ts +4 -3
  80. package/dist/lib/promotion-flags.js +3 -8
  81. package/dist/lib/promotion-flags.js.map +1 -1
  82. package/dist/lib/promotion-types.d.ts +8 -5
  83. package/dist/lib/promotion-types.js +10 -14
  84. package/dist/lib/promotion-types.js.map +1 -1
  85. package/dist/lib/setup-templates.d.ts +11 -0
  86. package/dist/lib/setup-templates.js +181 -0
  87. package/dist/lib/setup-templates.js.map +1 -0
  88. package/dist/lib/work-flags.d.ts +3 -1
  89. package/dist/lib/work-flags.js +3 -1
  90. package/dist/lib/work-flags.js.map +1 -1
  91. package/dist/lib/work-types.d.ts +20 -1
  92. package/dist/lib/work-types.js +16 -3
  93. package/dist/lib/work-types.js.map +1 -1
  94. package/oclif.manifest.json +194 -18
  95. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import { type CicdRegion } from '../cicd-region.js';
3
3
  import { type CredentialType } from '../credential-store.js';
4
- import { type Environment } from '../environment-types.js';
4
+ import { type Environment, type EnvironmentListFilters } from '../environment-types.js';
5
5
  import { type JobListFilters } from '../job-types.js';
6
6
  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';
7
7
  import { type IndexRefreshResult, type RefreshDeletedMetadataIndexResult } from '../metadata-refresh.js';
8
- import { type PipelineConnection, type PipelineDescribe } from '../pipeline-types.js';
8
+ import { type PipelineConnection, type PipelineDescribe, type PipelineListFilters } from '../pipeline-types.js';
9
9
  import { type ProjectDefaultScope } from '../project-defaults.js';
10
- import { type Project } from '../project-types.js';
10
+ import { type Project, type ProjectListFilters } from '../project-types.js';
11
11
  import { type PromotionConflict, type PromotionConflictMode, type PromotionConflictResolutionResult, type PromotionConflictUndoResult } from '../promotion-conflicts.js';
12
12
  import { type PromotionDetail, type PromotionListFilters } from '../promotion-types.js';
13
13
  import { type User } from '../user-types.js';
14
- import { type HeadlessWorkStatusResult, type UserStory, type UserStoryMutationPayload, type WorkDoneResult, type WorkListFilters, type WorkPushResult, type WorkSetResult, type WorkSubmitResult } from '../work-types.js';
14
+ import { type HeadlessWorkStatusResult } from '../work-types.js';
15
15
  type EnvironmentCreateArgs = {
16
16
  apexTestLevel?: string;
17
17
  enableRollback?: boolean;
@@ -133,39 +133,14 @@ type MetadataDependencyArgs = {
133
133
  sourceOrgId: string;
134
134
  targetOrgId?: string;
135
135
  };
136
- type WorkMutationInput = Partial<UserStoryMutationPayload>;
137
- type WorkListArgs = WorkListFilters & {
138
- assignedToMe?: boolean;
139
- ownedByMe?: boolean;
140
- };
141
- type WorkCreateArgs = WorkMutationInput;
142
- type WorkUpdateArgs = WorkMutationInput & {
143
- id?: string;
144
- };
145
- type WorkGetArgs = {
146
- id?: string;
147
- };
148
- type WorkDeleteArgs = {
149
- id: string;
150
- };
151
- declare function environmentList(args?: {
152
- limit?: number;
153
- name?: string;
154
- orgId?: string;
155
- platform?: string;
156
- type?: string;
157
- }): Promise<{
158
- environments: Environment[];
159
- }>;
136
+ declare function environmentList(args?: EnvironmentListFilters): Promise<Record<string, unknown>>;
160
137
  declare function environmentGet(args: {
161
138
  id: string;
162
139
  }): Promise<{
163
140
  environment: Environment;
164
141
  }>;
165
142
  type PromotionListArgs = PromotionListFilters;
166
- declare function promotionList(args?: PromotionListArgs): Promise<{
167
- promotions: import("../promotion-types.js").Promotion[];
168
- }>;
143
+ declare function promotionList(args?: PromotionListArgs): Promise<Record<string, unknown>>;
169
144
  declare function promotionGet(args: {
170
145
  id: string;
171
146
  }): Promise<{
@@ -177,9 +152,7 @@ declare function environmentCreate(args: EnvironmentCreateArgs): Promise<{
177
152
  declare function environmentUpdate(args: EnvironmentUpdateArgs): Promise<{
178
153
  environment: Environment;
179
154
  }>;
180
- declare function jobList(args: JobListArgs): Promise<{
181
- jobs: import("../job-types.js").Job[];
182
- }>;
155
+ declare function jobList(args: JobListArgs): Promise<Record<string, unknown>>;
183
156
  declare function jobGet(args: JobIdArgs): Promise<{
184
157
  job: import("../job-types.js").Job;
185
158
  }>;
@@ -195,9 +168,7 @@ declare function jobKill(args: JobIdArgs): Promise<{
195
168
  declare function jobPause(args: JobIdArgs): Promise<{
196
169
  result: import("../job-types.js").JobOperationResult;
197
170
  }>;
198
- declare function pipelineList(): Promise<{
199
- pipelines: import("../pipeline-types.js").Pipeline[];
200
- }>;
171
+ declare function pipelineList(args?: PipelineListFilters): Promise<Record<string, unknown>>;
201
172
  declare function pipelineGet(args: {
202
173
  id: string;
203
174
  }): Promise<{
@@ -208,12 +179,7 @@ declare function pipelineConnectionList(args: {
208
179
  }): Promise<{
209
180
  connections: PipelineConnection[];
210
181
  }>;
211
- declare function projectList(args?: {
212
- mine?: boolean;
213
- name?: string;
214
- }): Promise<{
215
- projects: Project[];
216
- }>;
182
+ declare function projectList(args?: ProjectListFilters): Promise<Record<string, unknown>>;
217
183
  declare function userGet(args?: {
218
184
  id?: string;
219
185
  }): Promise<{
@@ -255,22 +221,6 @@ declare function metadataContentCompare(args: MetadataContentCompareArgs): Promi
255
221
  declare function metadataDependencyList(args: MetadataDependencyArgs): Promise<{
256
222
  result: DependencyResult;
257
223
  }>;
258
- declare function workList(args?: WorkListArgs): Promise<{
259
- userStories: UserStory[];
260
- }>;
261
- declare function workGet(args?: WorkGetArgs): Promise<{
262
- userStory: UserStory;
263
- }>;
264
- declare function workCreate(args?: WorkCreateArgs): Promise<{
265
- userStory: UserStory;
266
- }>;
267
- declare function workUpdate(args: WorkUpdateArgs): Promise<{
268
- userStory: UserStory;
269
- }>;
270
- declare function workDelete(args: WorkDeleteArgs): Promise<{
271
- deleted: boolean;
272
- id: string;
273
- }>;
274
224
  type AuthGetArgs = {
275
225
  cicd?: boolean;
276
226
  crt?: boolean;
@@ -387,19 +337,70 @@ declare function metadataRefreshDeleted(args: {
387
337
  }): Promise<{
388
338
  result: RefreshDeletedMetadataIndexResult;
389
339
  }>;
390
- declare function workSet(args: {
391
- baseBranch?: string;
392
- id: string;
393
- }): Promise<WorkSetResult>;
394
- declare function workPush(): Promise<WorkPushResult>;
395
340
  declare function workStatus(args?: {
396
341
  id?: string;
397
342
  }): Promise<{
398
343
  result: HeadlessWorkStatusResult;
399
344
  }>;
400
- declare function workSubmit(): Promise<WorkSubmitResult>;
401
- declare function workDone(): Promise<WorkDoneResult>;
402
345
  export declare const agentiaMcpToolHandlers: {
346
+ workCreate: (args?: Partial<import("../work-types.js").UserStoryMutationPayload>) => Promise<{
347
+ userStory: import("../work-types.js").UserStory;
348
+ }>;
349
+ workDelete: (args: {
350
+ id: string;
351
+ }) => Promise<{
352
+ deleted: boolean;
353
+ id: string;
354
+ }>;
355
+ workDone: () => Promise<{
356
+ branch: string;
357
+ done: import("../work-types.js").HeadlessCommandResult;
358
+ push: import("../work-types.js").WorkPushResult | undefined;
359
+ pushed: boolean;
360
+ workItem: string;
361
+ }>;
362
+ workGet: (args?: {
363
+ id?: string;
364
+ }) => Promise<{
365
+ userStory: import("../work-types.js").UserStory;
366
+ }>;
367
+ workList: (args?: import("../list-pagination.js").ListPaginationQuery & {
368
+ assigneeId?: string;
369
+ assigneeName?: string;
370
+ name?: string;
371
+ ownerId?: string;
372
+ ownerName?: string;
373
+ projectId?: string;
374
+ projectName?: string;
375
+ status?: string;
376
+ title?: string;
377
+ } & {
378
+ assignedToMe?: boolean;
379
+ ownedByMe?: boolean;
380
+ }) => Promise<Record<string, unknown>>;
381
+ workPush: () => Promise<import("../work-types.js").WorkPushResult>;
382
+ workSet: (args: {
383
+ baseBranch?: string;
384
+ id: string;
385
+ }) => Promise<import("../work-types.js").WorkSetResult>;
386
+ workSubmit: (args?: {
387
+ skipLocalTests?: boolean;
388
+ }) => Promise<{
389
+ branch: string;
390
+ push: import("../work-types.js").WorkPushResult | undefined;
391
+ pushed: boolean;
392
+ qualityGates: import("../local-quality-gates.js").LocalQualityGatesRunResult;
393
+ submit: import("../work-types.js").HeadlessCommandResult;
394
+ workItem: string;
395
+ }>;
396
+ workTest: (args?: {
397
+ local?: boolean;
398
+ }) => Promise<import("../work-types.js").WorkTestResult>;
399
+ workUpdate: (args: Partial<import("../work-types.js").UserStoryMutationPayload> & {
400
+ id?: string;
401
+ }) => Promise<{
402
+ userStory: import("../work-types.js").UserStory;
403
+ }>;
403
404
  authGet: typeof authGet;
404
405
  authSet: typeof authSet;
405
406
  environmentAuthStatus: typeof environmentAuthStatus;
@@ -437,16 +438,7 @@ export declare const agentiaMcpToolHandlers: {
437
438
  promotionGet: typeof promotionGet;
438
439
  promotionList: typeof promotionList;
439
440
  userGet: typeof userGet;
440
- workCreate: typeof workCreate;
441
- workDelete: typeof workDelete;
442
- workDone: typeof workDone;
443
- workGet: typeof workGet;
444
- workList: typeof workList;
445
- workPush: typeof workPush;
446
- workSet: typeof workSet;
447
441
  workStatus: typeof workStatus;
448
- workSubmit: typeof workSubmit;
449
- workUpdate: typeof workUpdate;
450
442
  };
451
443
  export declare function registerAgentiaMcpTools(server: McpServer): void;
452
444
  export {};