@copado/agentia-cli 0.23.0-alpha.0 → 0.26.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.
@@ -1,12 +1,17 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type CicdRegion } from '../cicd-region.js';
3
+ import { type CredentialType } from '../credential-store.js';
2
4
  import { type Environment } from '../environment-types.js';
3
5
  import { type JobListFilters } from '../job-types.js';
4
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
+ import { type IndexRefreshResult, type RefreshDeletedMetadataIndexResult } from '../metadata-refresh.js';
5
8
  import { type PipelineConnection, type PipelineDescribe } from '../pipeline-types.js';
6
9
  import { type ProjectDefaultScope } from '../project-defaults.js';
10
+ import { type Project } from '../project-types.js';
11
+ import { type PromotionConflict, type PromotionConflictMode, type PromotionConflictResolutionResult, type PromotionConflictUndoResult } from '../promotion-conflicts.js';
7
12
  import { type PromotionDetail, type PromotionListFilters } from '../promotion-types.js';
8
13
  import { type User } from '../user-types.js';
9
- import { type UserStory, type UserStoryMutationPayload, type WorkListFilters } from '../work-types.js';
14
+ import { type HeadlessWorkStatusResult, type UserStory, type UserStoryMutationPayload, type WorkDoneResult, type WorkListFilters, type WorkPushResult, type WorkSetResult, type WorkSubmitResult } from '../work-types.js';
10
15
  type EnvironmentCreateArgs = {
11
16
  apexTestLevel?: string;
12
17
  enableRollback?: boolean;
@@ -34,7 +39,9 @@ type EnvironmentUpdateArgs = {
34
39
  type?: string;
35
40
  validationPromotionDefaultCredential?: string;
36
41
  };
37
- type JobListArgs = JobListFilters;
42
+ type JobListArgs = JobListFilters & {
43
+ mine?: boolean;
44
+ };
38
45
  type JobIdArgs = {
39
46
  id: string;
40
47
  };
@@ -203,7 +210,7 @@ declare function projectList(args?: {
203
210
  mine?: boolean;
204
211
  name?: string;
205
212
  }): Promise<{
206
- projects: import("../project-types.js").Project[];
213
+ projects: Project[];
207
214
  }>;
208
215
  declare function userGet(args?: {
209
216
  id?: string;
@@ -262,7 +269,138 @@ declare function workDelete(args: WorkDeleteArgs): Promise<{
262
269
  deleted: boolean;
263
270
  id: string;
264
271
  }>;
272
+ type AuthGetArgs = {
273
+ cicd?: boolean;
274
+ crt?: boolean;
275
+ };
276
+ type AuthSetArgs = {
277
+ cicd?: string;
278
+ crt?: string;
279
+ customUrl?: string;
280
+ region?: CicdRegion;
281
+ };
282
+ declare function authGet(args?: AuthGetArgs): Promise<{
283
+ credentials: ({
284
+ label: string;
285
+ set: boolean;
286
+ type: "cicd";
287
+ baseUrl?: string | undefined;
288
+ local?: boolean | undefined;
289
+ masked?: undefined;
290
+ } | {
291
+ masked: string;
292
+ set: boolean;
293
+ type: "cicd";
294
+ local?: boolean | undefined;
295
+ baseUrl: string | null;
296
+ label: string;
297
+ } | {
298
+ label: string;
299
+ set: boolean;
300
+ type: "crt";
301
+ masked?: undefined;
302
+ } | {
303
+ label: string;
304
+ masked: string;
305
+ set: boolean;
306
+ type: "crt";
307
+ })[];
308
+ }>;
309
+ declare function authSet(args: AuthSetArgs): Promise<{
310
+ stored: {
311
+ label: string;
312
+ type: CredentialType;
313
+ }[];
314
+ baseUrl?: string | undefined;
315
+ }>;
316
+ declare function environmentAuthStatus(args: {
317
+ credentialId?: string;
318
+ id: string;
319
+ }): Promise<import("../environment-auth-status.js").EnvironmentAuthStatusResult>;
320
+ declare function jobLogGet(args: {
321
+ id: string;
322
+ step?: string;
323
+ }): Promise<{
324
+ stepId?: string | undefined;
325
+ jobId: string;
326
+ log: string;
327
+ resultId: string;
328
+ }>;
329
+ declare function projectGet(args: {
330
+ id: string;
331
+ }): Promise<{
332
+ project: Project;
333
+ }>;
334
+ declare function promotionConflictList(args: {
335
+ promotionId: string;
336
+ }): Promise<{
337
+ conflicts: PromotionConflict[];
338
+ }>;
339
+ declare function promotionConflictGet(args: {
340
+ id: string;
341
+ promotionId: string;
342
+ }): Promise<{
343
+ conflictId: string;
344
+ content: string;
345
+ promotionId: string;
346
+ }>;
347
+ declare function promotionConflictResolve(args: {
348
+ content?: string;
349
+ id: string;
350
+ mode: PromotionConflictMode;
351
+ promotionId: string;
352
+ }): Promise<PromotionConflictResolutionResult>;
353
+ declare function promotionConflictUnresolve(args: {
354
+ id: string;
355
+ promotionId: string;
356
+ }): Promise<PromotionConflictUndoResult>;
357
+ declare function metadataRefreshRun(args: {
358
+ all?: boolean;
359
+ env: string;
360
+ gitFiles?: string[];
361
+ moduleType?: ModuleType;
362
+ pipelineId?: string;
363
+ platformExperience?: PlatformExperience;
364
+ refreshMode?: string;
365
+ selectedName?: string;
366
+ selectedType?: string;
367
+ sourceCredentialId?: string;
368
+ sourceOrgId?: string;
369
+ targetOrgId?: string;
370
+ }): Promise<{
371
+ result: IndexRefreshResult;
372
+ }>;
373
+ declare function metadataRefreshStatus(args: {
374
+ jobId: string;
375
+ moduleType?: ModuleType;
376
+ platformExperience?: PlatformExperience;
377
+ }): Promise<{
378
+ result: IndexRefreshResult;
379
+ }>;
380
+ declare function metadataRefreshDeleted(args: {
381
+ env: string;
382
+ moduleType?: ModuleType;
383
+ sourceCredentialId?: string;
384
+ sourceOrgId?: string;
385
+ }): Promise<{
386
+ result: RefreshDeletedMetadataIndexResult;
387
+ }>;
388
+ declare function workSet(args: {
389
+ baseBranch?: string;
390
+ id: string;
391
+ }): Promise<WorkSetResult>;
392
+ declare function workPush(): Promise<WorkPushResult>;
393
+ declare function workStatus(args?: {
394
+ id?: string;
395
+ }): Promise<{
396
+ result: HeadlessWorkStatusResult;
397
+ }>;
398
+ declare function workSubmit(): Promise<WorkSubmitResult>;
399
+ declare function workDone(): Promise<WorkDoneResult>;
265
400
  export declare const agentiaMcpToolHandlers: {
401
+ authGet: typeof authGet;
402
+ authSet: typeof authSet;
403
+ environmentAuthStatus: typeof environmentAuthStatus;
266
404
  environmentCreate: typeof environmentCreate;
267
405
  environmentGet: typeof environmentGet;
268
406
  environmentList: typeof environmentList;
@@ -270,6 +408,7 @@ export declare const agentiaMcpToolHandlers: {
270
408
  jobGet: typeof jobGet;
271
409
  jobKill: typeof jobKill;
272
410
  jobList: typeof jobList;
411
+ jobLogGet: typeof jobLogGet;
273
412
  jobPause: typeof jobPause;
274
413
  jobResume: typeof jobResume;
275
414
  jobRun: typeof jobRun;
@@ -278,20 +417,33 @@ export declare const agentiaMcpToolHandlers: {
278
417
  metadataDependencyList: typeof metadataDependencyList;
279
418
  metadataIndexCompare: typeof metadataIndexCompare;
280
419
  metadataList: typeof metadataList;
420
+ metadataRefreshDeleted: typeof metadataRefreshDeleted;
421
+ metadataRefreshRun: typeof metadataRefreshRun;
422
+ metadataRefreshStatus: typeof metadataRefreshStatus;
281
423
  pipelineConnectionList: typeof pipelineConnectionList;
282
424
  pipelineGet: typeof pipelineGet;
283
425
  pipelineList: typeof pipelineList;
284
426
  projectDefaultGet: typeof projectDefaultGet;
285
427
  projectDefaultSet: typeof projectDefaultSet;
286
428
  projectDefaultUnset: typeof projectDefaultUnset;
429
+ projectGet: typeof projectGet;
287
430
  projectList: typeof projectList;
431
+ promotionConflictGet: typeof promotionConflictGet;
432
+ promotionConflictList: typeof promotionConflictList;
433
+ promotionConflictResolve: typeof promotionConflictResolve;
434
+ promotionConflictUnresolve: typeof promotionConflictUnresolve;
288
435
  promotionGet: typeof promotionGet;
289
436
  promotionList: typeof promotionList;
290
437
  userGet: typeof userGet;
291
438
  workCreate: typeof workCreate;
292
439
  workDelete: typeof workDelete;
440
+ workDone: typeof workDone;
293
441
  workGet: typeof workGet;
294
442
  workList: typeof workList;
443
+ workPush: typeof workPush;
444
+ workSet: typeof workSet;
445
+ workStatus: typeof workStatus;
446
+ workSubmit: typeof workSubmit;
295
447
  workUpdate: typeof workUpdate;
296
448
  };
297
449
  export declare function registerAgentiaMcpTools(server: McpServer): void;