@copado/agentia-cli 0.58.0-alpha.0 → 0.59.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.
@@ -14,6 +14,8 @@ export declare class CliUpdateError extends Error {
14
14
  }
15
15
  export declare function setCliUpdateExecutorForTests(nextExecutor: CliUpdateExecutor | undefined): void;
16
16
  export declare function npmExecutable(platform?: NodeJS.Platform): string;
17
+ export declare function npmPackageScope(packageName?: string): string | undefined;
18
+ export declare function npmRegistryArguments(registry?: string, packageName?: string): string[];
17
19
  export declare function npmUpdateArguments(version: string): string[];
18
20
  export declare function npmExecOptions(platform?: NodeJS.Platform): {
19
21
  maxBuffer: number;
@@ -15,8 +15,27 @@ export function setCliUpdateExecutorForTests(nextExecutor) {
15
15
  export function npmExecutable(platform = process.platform) {
16
16
  return platform === 'win32' ? 'npm.cmd' : 'npm';
17
17
  }
18
+ export function npmPackageScope(packageName = AGENTIA_PACKAGE_NAME) {
19
+ if (!packageName.startsWith('@')) {
20
+ return undefined;
21
+ }
22
+ const slashIndex = packageName.indexOf('/');
23
+ if (slashIndex <= 1) {
24
+ return undefined;
25
+ }
26
+ return packageName.slice(0, slashIndex);
27
+ }
28
+ export function npmRegistryArguments(registry = AGENTIA_NPM_REGISTRY, packageName = AGENTIA_PACKAGE_NAME) {
29
+ const args = ['--registry', registry];
30
+ const scope = npmPackageScope(packageName);
31
+ if (scope !== undefined) {
32
+ // npm --registry does not override scoped registries from user or project npmrc.
33
+ args.push(`--${scope}:registry=${registry}`);
34
+ }
35
+ return args;
36
+ }
18
37
  export function npmUpdateArguments(version) {
19
- return ['install', '--global', `${AGENTIA_PACKAGE_NAME}@${version}`, '--registry', AGENTIA_NPM_REGISTRY];
38
+ return ['install', '--global', `${AGENTIA_PACKAGE_NAME}@${version}`, ...npmRegistryArguments()];
20
39
  }
21
40
  export function npmExecOptions(platform = process.platform) {
22
41
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"cli-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AA;IACH,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAAsD;IACvF,MAAM,aAAa,GAAG,MAAM,mBAAmB,EAAE,CAAA;IACjD,MAAM,eAAe,GAAG,cAAc,CAAC,aAAa,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;IAC7E,MAAM,YAAY,GAAG,eAAe;QAClC,CAAC,CAAC,kBAAkB;QACpB,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC;YACrD,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,SAAS,CAAA;IACf,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,IAAI,KAAK,CAAA;IAC9C,IAAI,OAAO,GAAG,KAAK,CAAA;IAEnB,IAAI,eAAe,IAAI,CAAC,WAAW,EAAE,CAAC;QACpC,MAAM,eAAe,CAAC,aAAa,EAAE,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAAA;QACzE,OAAO,GAAG,IAAI,CAAA;IAChB,CAAC;IAED,OAAO;QACL,OAAO,EAAE,uBAAuB;QAChC,WAAW;QACX,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,aAAa;QACb,WAAW,EAAE,oBAAoB;QACjC,eAAe;QACf,OAAO;QACP,YAAY;KACb,CAAA;AACH,CAAC"}
@@ -92,31 +92,6 @@
92
92
  "update.js"
93
93
  ]
94
94
  },
95
- "mcp:start": {
96
- "aliases": [],
97
- "args": {},
98
- "description": "Start the local Agentia MCP server over stdio",
99
- "examples": [
100
- "<%= config.bin %> <%= command.id %>",
101
- "<%= config.bin %> <%= command.id %> # long-running stdio MCP server for Cursor and other clients"
102
- ],
103
- "flags": {},
104
- "hasDynamicHelp": false,
105
- "hiddenAliases": [],
106
- "id": "mcp:start",
107
- "pluginAlias": "@copado/agentia-cli",
108
- "pluginName": "@copado/agentia-cli",
109
- "pluginType": "core",
110
- "strict": true,
111
- "enableJsonFlag": false,
112
- "isESM": true,
113
- "relativePath": [
114
- "dist",
115
- "commands",
116
- "mcp",
117
- "start.js"
118
- ]
119
- },
120
95
  "auth:get": {
121
96
  "aliases": [],
122
97
  "args": {},
@@ -361,6 +336,31 @@
361
336
  "unset.js"
362
337
  ]
363
338
  },
339
+ "mcp:start": {
340
+ "aliases": [],
341
+ "args": {},
342
+ "description": "Start the local Agentia MCP server over stdio",
343
+ "examples": [
344
+ "<%= config.bin %> <%= command.id %>",
345
+ "<%= config.bin %> <%= command.id %> # long-running stdio MCP server for Cursor and other clients"
346
+ ],
347
+ "flags": {},
348
+ "hasDynamicHelp": false,
349
+ "hiddenAliases": [],
350
+ "id": "mcp:start",
351
+ "pluginAlias": "@copado/agentia-cli",
352
+ "pluginName": "@copado/agentia-cli",
353
+ "pluginType": "core",
354
+ "strict": true,
355
+ "enableJsonFlag": false,
356
+ "isESM": true,
357
+ "relativePath": [
358
+ "dist",
359
+ "commands",
360
+ "mcp",
361
+ "start.js"
362
+ ]
363
+ },
364
364
  "testing:create": {
365
365
  "aliases": [],
366
366
  "args": {},
@@ -8723,6 +8723,88 @@
8723
8723
  "list.js"
8724
8724
  ]
8725
8725
  },
8726
+ "cicd:data:dataset-file:content": {
8727
+ "aliases": [],
8728
+ "args": {
8729
+ "contentVersionId": {
8730
+ "description": "ContentVersion Id",
8731
+ "name": "contentVersionId",
8732
+ "required": true
8733
+ }
8734
+ },
8735
+ "description": "Get dataset file content by ContentVersion Id",
8736
+ "examples": [
8737
+ "<%= config.bin %> <%= command.id %> 068000000000001",
8738
+ "<%= config.bin %> <%= command.id %> 068000000000001 --json"
8739
+ ],
8740
+ "flags": {
8741
+ "json": {
8742
+ "description": "Format output as json.",
8743
+ "helpGroup": "GLOBAL",
8744
+ "name": "json",
8745
+ "allowNo": false,
8746
+ "type": "boolean"
8747
+ }
8748
+ },
8749
+ "hasDynamicHelp": false,
8750
+ "hiddenAliases": [],
8751
+ "id": "cicd:data:dataset-file:content",
8752
+ "pluginAlias": "@copado/agentia-cli",
8753
+ "pluginName": "@copado/agentia-cli",
8754
+ "pluginType": "core",
8755
+ "strict": true,
8756
+ "enableJsonFlag": true,
8757
+ "isESM": true,
8758
+ "relativePath": [
8759
+ "dist",
8760
+ "commands",
8761
+ "cicd",
8762
+ "data",
8763
+ "dataset-file",
8764
+ "content.js"
8765
+ ]
8766
+ },
8767
+ "cicd:data:dataset-file:list": {
8768
+ "aliases": [],
8769
+ "args": {
8770
+ "userStoryDataCommitId": {
8771
+ "description": "User story data commit Id",
8772
+ "name": "userStoryDataCommitId",
8773
+ "required": true
8774
+ }
8775
+ },
8776
+ "description": "List dataset files for a user story data commit",
8777
+ "examples": [
8778
+ "<%= config.bin %> <%= command.id %> a1A000000000001",
8779
+ "<%= config.bin %> <%= command.id %> a1A000000000001 --json"
8780
+ ],
8781
+ "flags": {
8782
+ "json": {
8783
+ "description": "Format output as json.",
8784
+ "helpGroup": "GLOBAL",
8785
+ "name": "json",
8786
+ "allowNo": false,
8787
+ "type": "boolean"
8788
+ }
8789
+ },
8790
+ "hasDynamicHelp": false,
8791
+ "hiddenAliases": [],
8792
+ "id": "cicd:data:dataset-file:list",
8793
+ "pluginAlias": "@copado/agentia-cli",
8794
+ "pluginName": "@copado/agentia-cli",
8795
+ "pluginType": "core",
8796
+ "strict": true,
8797
+ "enableJsonFlag": true,
8798
+ "isESM": true,
8799
+ "relativePath": [
8800
+ "dist",
8801
+ "commands",
8802
+ "cicd",
8803
+ "data",
8804
+ "dataset-file",
8805
+ "list.js"
8806
+ ]
8807
+ },
8726
8808
  "cicd:data:filter:add": {
8727
8809
  "aliases": [],
8728
8810
  "args": {
@@ -8937,88 +9019,6 @@
8937
9019
  "update.js"
8938
9020
  ]
8939
9021
  },
8940
- "cicd:data:dataset-file:content": {
8941
- "aliases": [],
8942
- "args": {
8943
- "contentVersionId": {
8944
- "description": "ContentVersion Id",
8945
- "name": "contentVersionId",
8946
- "required": true
8947
- }
8948
- },
8949
- "description": "Get dataset file content by ContentVersion Id",
8950
- "examples": [
8951
- "<%= config.bin %> <%= command.id %> 068000000000001",
8952
- "<%= config.bin %> <%= command.id %> 068000000000001 --json"
8953
- ],
8954
- "flags": {
8955
- "json": {
8956
- "description": "Format output as json.",
8957
- "helpGroup": "GLOBAL",
8958
- "name": "json",
8959
- "allowNo": false,
8960
- "type": "boolean"
8961
- }
8962
- },
8963
- "hasDynamicHelp": false,
8964
- "hiddenAliases": [],
8965
- "id": "cicd:data:dataset-file:content",
8966
- "pluginAlias": "@copado/agentia-cli",
8967
- "pluginName": "@copado/agentia-cli",
8968
- "pluginType": "core",
8969
- "strict": true,
8970
- "enableJsonFlag": true,
8971
- "isESM": true,
8972
- "relativePath": [
8973
- "dist",
8974
- "commands",
8975
- "cicd",
8976
- "data",
8977
- "dataset-file",
8978
- "content.js"
8979
- ]
8980
- },
8981
- "cicd:data:dataset-file:list": {
8982
- "aliases": [],
8983
- "args": {
8984
- "userStoryDataCommitId": {
8985
- "description": "User story data commit Id",
8986
- "name": "userStoryDataCommitId",
8987
- "required": true
8988
- }
8989
- },
8990
- "description": "List dataset files for a user story data commit",
8991
- "examples": [
8992
- "<%= config.bin %> <%= command.id %> a1A000000000001",
8993
- "<%= config.bin %> <%= command.id %> a1A000000000001 --json"
8994
- ],
8995
- "flags": {
8996
- "json": {
8997
- "description": "Format output as json.",
8998
- "helpGroup": "GLOBAL",
8999
- "name": "json",
9000
- "allowNo": false,
9001
- "type": "boolean"
9002
- }
9003
- },
9004
- "hasDynamicHelp": false,
9005
- "hiddenAliases": [],
9006
- "id": "cicd:data:dataset-file:list",
9007
- "pluginAlias": "@copado/agentia-cli",
9008
- "pluginName": "@copado/agentia-cli",
9009
- "pluginType": "core",
9010
- "strict": true,
9011
- "enableJsonFlag": true,
9012
- "isESM": true,
9013
- "relativePath": [
9014
- "dist",
9015
- "commands",
9016
- "cicd",
9017
- "data",
9018
- "dataset-file",
9019
- "list.js"
9020
- ]
9021
- },
9022
9022
  "cicd:data:formula:create": {
9023
9023
  "aliases": [],
9024
9024
  "args": {
@@ -10313,90 +10313,6 @@
10313
10313
  "get.js"
10314
10314
  ]
10315
10315
  },
10316
- "cicd:metadata:index:compare": {
10317
- "aliases": [],
10318
- "args": {},
10319
- "description": "Compare metadata between orgs or Git branches",
10320
- "examples": [
10321
- "<%= config.bin %> <%= command.id %> --comparison-mode BRANCH_COMPARE --pipeline-id <id> --source-org-id <id> --source-credential-id <id> --target-org-id <id>",
10322
- "<%= config.bin %> <%= command.id %> --comparison-mode INDEX_FILE --filter-type ApexClass --pipeline-id <id> --source-org-id <id> --source-credential-id <id> --target-org-id <id>",
10323
- "<%= config.bin %> <%= command.id %> --comparison-mode MIX --json"
10324
- ],
10325
- "flags": {
10326
- "json": {
10327
- "description": "Format output as json.",
10328
- "helpGroup": "GLOBAL",
10329
- "name": "json",
10330
- "allowNo": false,
10331
- "type": "boolean"
10332
- },
10333
- "comparison-mode": {
10334
- "description": "Comparison mode",
10335
- "name": "comparison-mode",
10336
- "default": "BRANCH_COMPARE",
10337
- "hasDynamicHelp": false,
10338
- "multiple": false,
10339
- "options": [
10340
- "BRANCH_COMPARE",
10341
- "INDEX_FILE",
10342
- "MIX"
10343
- ],
10344
- "type": "option"
10345
- },
10346
- "filter-type": {
10347
- "description": "Optional metadata type filter, for example ApexClass",
10348
- "name": "filter-type",
10349
- "hasDynamicHelp": false,
10350
- "multiple": false,
10351
- "type": "option"
10352
- },
10353
- "pipeline-id": {
10354
- "description": "Pipeline Id",
10355
- "name": "pipeline-id",
10356
- "hasDynamicHelp": false,
10357
- "multiple": false,
10358
- "type": "option"
10359
- },
10360
- "source-credential-id": {
10361
- "description": "Source org credential Id",
10362
- "name": "source-credential-id",
10363
- "hasDynamicHelp": false,
10364
- "multiple": false,
10365
- "type": "option"
10366
- },
10367
- "source-org-id": {
10368
- "description": "Source org Id",
10369
- "name": "source-org-id",
10370
- "hasDynamicHelp": false,
10371
- "multiple": false,
10372
- "type": "option"
10373
- },
10374
- "target-org-id": {
10375
- "description": "Target org Id",
10376
- "name": "target-org-id",
10377
- "hasDynamicHelp": false,
10378
- "multiple": false,
10379
- "type": "option"
10380
- }
10381
- },
10382
- "hasDynamicHelp": false,
10383
- "hiddenAliases": [],
10384
- "id": "cicd:metadata:index:compare",
10385
- "pluginAlias": "@copado/agentia-cli",
10386
- "pluginName": "@copado/agentia-cli",
10387
- "pluginType": "core",
10388
- "strict": true,
10389
- "enableJsonFlag": true,
10390
- "isESM": true,
10391
- "relativePath": [
10392
- "dist",
10393
- "commands",
10394
- "cicd",
10395
- "metadata",
10396
- "index",
10397
- "compare.js"
10398
- ]
10399
- },
10400
10316
  "cicd:metadata:dependency:list": {
10401
10317
  "aliases": [],
10402
10318
  "args": {},
@@ -10560,6 +10476,90 @@
10560
10476
  "list.js"
10561
10477
  ]
10562
10478
  },
10479
+ "cicd:metadata:index:compare": {
10480
+ "aliases": [],
10481
+ "args": {},
10482
+ "description": "Compare metadata between orgs or Git branches",
10483
+ "examples": [
10484
+ "<%= config.bin %> <%= command.id %> --comparison-mode BRANCH_COMPARE --pipeline-id <id> --source-org-id <id> --source-credential-id <id> --target-org-id <id>",
10485
+ "<%= config.bin %> <%= command.id %> --comparison-mode INDEX_FILE --filter-type ApexClass --pipeline-id <id> --source-org-id <id> --source-credential-id <id> --target-org-id <id>",
10486
+ "<%= config.bin %> <%= command.id %> --comparison-mode MIX --json"
10487
+ ],
10488
+ "flags": {
10489
+ "json": {
10490
+ "description": "Format output as json.",
10491
+ "helpGroup": "GLOBAL",
10492
+ "name": "json",
10493
+ "allowNo": false,
10494
+ "type": "boolean"
10495
+ },
10496
+ "comparison-mode": {
10497
+ "description": "Comparison mode",
10498
+ "name": "comparison-mode",
10499
+ "default": "BRANCH_COMPARE",
10500
+ "hasDynamicHelp": false,
10501
+ "multiple": false,
10502
+ "options": [
10503
+ "BRANCH_COMPARE",
10504
+ "INDEX_FILE",
10505
+ "MIX"
10506
+ ],
10507
+ "type": "option"
10508
+ },
10509
+ "filter-type": {
10510
+ "description": "Optional metadata type filter, for example ApexClass",
10511
+ "name": "filter-type",
10512
+ "hasDynamicHelp": false,
10513
+ "multiple": false,
10514
+ "type": "option"
10515
+ },
10516
+ "pipeline-id": {
10517
+ "description": "Pipeline Id",
10518
+ "name": "pipeline-id",
10519
+ "hasDynamicHelp": false,
10520
+ "multiple": false,
10521
+ "type": "option"
10522
+ },
10523
+ "source-credential-id": {
10524
+ "description": "Source org credential Id",
10525
+ "name": "source-credential-id",
10526
+ "hasDynamicHelp": false,
10527
+ "multiple": false,
10528
+ "type": "option"
10529
+ },
10530
+ "source-org-id": {
10531
+ "description": "Source org Id",
10532
+ "name": "source-org-id",
10533
+ "hasDynamicHelp": false,
10534
+ "multiple": false,
10535
+ "type": "option"
10536
+ },
10537
+ "target-org-id": {
10538
+ "description": "Target org Id",
10539
+ "name": "target-org-id",
10540
+ "hasDynamicHelp": false,
10541
+ "multiple": false,
10542
+ "type": "option"
10543
+ }
10544
+ },
10545
+ "hasDynamicHelp": false,
10546
+ "hiddenAliases": [],
10547
+ "id": "cicd:metadata:index:compare",
10548
+ "pluginAlias": "@copado/agentia-cli",
10549
+ "pluginName": "@copado/agentia-cli",
10550
+ "pluginType": "core",
10551
+ "strict": true,
10552
+ "enableJsonFlag": true,
10553
+ "isESM": true,
10554
+ "relativePath": [
10555
+ "dist",
10556
+ "commands",
10557
+ "cicd",
10558
+ "metadata",
10559
+ "index",
10560
+ "compare.js"
10561
+ ]
10562
+ },
10563
10563
  "cicd:metadata:refresh:deleted": {
10564
10564
  "aliases": [],
10565
10565
  "args": {},
@@ -11485,5 +11485,5 @@
11485
11485
  ]
11486
11486
  }
11487
11487
  },
11488
- "version": "0.58.0-alpha.0"
11488
+ "version": "0.59.0-alpha.0"
11489
11489
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@copado/agentia-cli",
3
3
  "description": "Command-line interface for Agentia",
4
- "version": "0.58.0-alpha.0",
4
+ "version": "0.59.0-alpha.0",
5
5
  "author": "Copado Solutions",
6
6
  "bin": {
7
7
  "agentia": "./bin/run.js"