@salesforce/plugin-agent 1.27.5 → 1.27.6

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.
package/README.md CHANGED
@@ -112,7 +112,7 @@ EXAMPLES
112
112
  $ sf agent activate --api-name Resort_Manager --target-org my-org
113
113
  ```
114
114
 
115
- _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/activate.ts)_
115
+ _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/activate.ts)_
116
116
 
117
117
  ## `sf agent create`
118
118
 
@@ -179,7 +179,7 @@ EXAMPLES
179
179
  $ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
180
180
  ```
181
181
 
182
- _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/create.ts)_
182
+ _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/create.ts)_
183
183
 
184
184
  ## `sf agent deactivate`
185
185
 
@@ -219,7 +219,7 @@ EXAMPLES
219
219
  $ sf agent deactivate --api-name Resort_Manager --target-org my-org
220
220
  ```
221
221
 
222
- _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/deactivate.ts)_
222
+ _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/deactivate.ts)_
223
223
 
224
224
  ## `sf agent generate agent-spec`
225
225
 
@@ -326,7 +326,7 @@ EXAMPLES
326
326
  $ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
327
327
  ```
328
328
 
329
- _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/generate/agent-spec.ts)_
329
+ _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/generate/agent-spec.ts)_
330
330
 
331
331
  ## `sf agent generate authoring-bundle`
332
332
 
@@ -401,7 +401,7 @@ EXAMPLES
401
401
  other-package-dir/main/default --target-org my-dev-org
402
402
  ```
403
403
 
404
- _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/generate/authoring-bundle.ts)_
404
+ _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/generate/authoring-bundle.ts)_
405
405
 
406
406
  ## `sf agent generate template`
407
407
 
@@ -449,7 +449,7 @@ EXAMPLES
449
449
  force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
450
450
  ```
451
451
 
452
- _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/generate/template.ts)_
452
+ _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/generate/template.ts)_
453
453
 
454
454
  ## `sf agent generate test-spec`
455
455
 
@@ -510,7 +510,7 @@ EXAMPLES
510
510
  force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
511
511
  ```
512
512
 
513
- _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/generate/test-spec.ts)_
513
+ _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/generate/test-spec.ts)_
514
514
 
515
515
  ## `sf agent preview`
516
516
 
@@ -583,7 +583,7 @@ EXAMPLES
583
583
  $ sf agent preview --use-live-actions --apex-debug --output-dir transcripts/my-preview
584
584
  ```
585
585
 
586
- _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/preview.ts)_
586
+ _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/preview.ts)_
587
587
 
588
588
  ## `sf agent publish authoring-bundle`
589
589
 
@@ -632,7 +632,7 @@ EXAMPLES
632
632
  $ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-dev-org
633
633
  ```
634
634
 
635
- _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/publish/authoring-bundle.ts)_
635
+ _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/publish/authoring-bundle.ts)_
636
636
 
637
637
  ## `sf agent test create`
638
638
 
@@ -687,7 +687,7 @@ EXAMPLES
687
687
  $ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
688
688
  ```
689
689
 
690
- _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/test/create.ts)_
690
+ _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/test/create.ts)_
691
691
 
692
692
  ## `sf agent test list`
693
693
 
@@ -722,7 +722,7 @@ EXAMPLES
722
722
  $ sf agent test list --target-org my-org
723
723
  ```
724
724
 
725
- _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/test/list.ts)_
725
+ _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/test/list.ts)_
726
726
 
727
727
  ## `sf agent test results`
728
728
 
@@ -788,7 +788,7 @@ FLAG DESCRIPTIONS
788
788
  expression when using custom evaluations.
789
789
  ```
790
790
 
791
- _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/test/results.ts)_
791
+ _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/test/results.ts)_
792
792
 
793
793
  ## `sf agent test resume`
794
794
 
@@ -861,7 +861,7 @@ FLAG DESCRIPTIONS
861
861
  expression when using custom evaluations.
862
862
  ```
863
863
 
864
- _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/test/resume.ts)_
864
+ _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/test/resume.ts)_
865
865
 
866
866
  ## `sf agent test run`
867
867
 
@@ -935,7 +935,7 @@ FLAG DESCRIPTIONS
935
935
  expression when using custom evaluations.
936
936
  ```
937
937
 
938
- _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/test/run.ts)_
938
+ _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/test/run.ts)_
939
939
 
940
940
  ## `sf agent validate authoring-bundle`
941
941
 
@@ -982,6 +982,6 @@ EXAMPLES
982
982
  $ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
983
983
  ```
984
984
 
985
- _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.5/src/commands/agent/validate/authoring-bundle.ts)_
985
+ _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.6/src/commands/agent/validate/authoring-bundle.ts)_
986
986
 
987
987
  <!-- commandsstop -->
@@ -133,10 +133,14 @@ export default class AgentGenerateAuthoringBundle extends SfCommand {
133
133
  const agentPath = join(targetOutputDir, `${bundleApiName}.agent`);
134
134
  const metaXmlPath = join(targetOutputDir, `${bundleApiName}.bundle-meta.xml`);
135
135
  // Write Agent file
136
+ const parsedSpec = spec ? YAML.parse(readFileSync(spec, 'utf8')) : undefined;
136
137
  await ScriptAgent.createAuthoringBundle({
137
- agentSpec: spec
138
- ? { ...YAML.parse(readFileSync(spec, 'utf8')), ...{ name, developerName: bundleApiName } }
139
- : undefined,
138
+ agentSpec: {
139
+ ...parsedSpec,
140
+ name,
141
+ developerName: bundleApiName,
142
+ role: parsedSpec?.role ?? `${name} description`,
143
+ },
140
144
  project: this.project,
141
145
  bundleApiName,
142
146
  });
@@ -1 +1 @@
1
- {"version":3,"file":"authoring-bundle.js","sourceRoot":"","sources":["../../../../src/commands/agent/generate/authoring-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAgB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAmB,aAAa,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,iCAAiC,CAAC,CAAC;AAQtG,MAAM,CAAC,OAAO,OAAO,4BAA6B,SAAQ,SAA6C;IAC9F,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,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Ae,EAAE,GAAG,aAAa,QAAQ,CAAC,CAAC;YAClE,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,GAAG,aAAa,kBAAkB,CAAC,CAAC;YAE9E,mBAAmB;YACnB,MAAM,UAAU,GAAG,IAAI,CAAC,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC/F,MAAM,WAAW,CAAC,qBAAqB,CAAC;gBACtC,SAAS,EAAE;oBACT,GAAG,UAAU;oBACb,IAAI;oBACJ,aAAa,EAAE,aAAa;oBAC5B,IAAI,EAAE,UAAU,EAAE,IAAI,IAAI,GAAG,IAAI,cAAc;iBACU;gBAC3D,OAAO,EAAE,IAAI,CAAC,OAAQ;gBACtB,aAAa;aACd,CAAC,CAAC;YAEH,IAAI,CAAC,UAAU,CAAC,0BAA0B,aAAa,mBAAmB,CAAC,CAAC;YAE5E,OAAO;gBACL,SAAS;gBACT,WAAW;gBACX,SAAS,EAAE,eAAe;aAC3B,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC,EAAE,sBAAsB,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;QAChH,CAAC;IACH,CAAC"}
@@ -801,96 +801,6 @@
801
801
  "test-spec:generate:agent"
802
802
  ]
803
803
  },
804
- "agent:publish:authoring-bundle": {
805
- "aliases": [],
806
- "args": {},
807
- "description": "An authoring bundle is a metadata type (named aiAuthoringBundle) that provides the blueprint for an agent. The metadata type contains two files: the standard metatada XML file and an Agent Script file (extension \".agent\") that fully describes the agent using the Agent Script language.\n\nWhen you publish an authoring bundle to your org, a number of things happen. First, this command validates that the Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent Script file to continue. Once the Agent Script file compiles, then it's published to the org, which in turn creates new associated metadata (Bot, BotVersion, GenAiX), or new versions of the metadata if the agent already exists. The new or updated metadata is retrieved back to your DX project; specify the --skip-retrieve flag to skip this step. Finally, the authoring bundle metadata (AiAuthoringBundle) is deployed to your org.\n\nThis command uses the API name of the authoring bundle.",
808
- "examples": [
809
- "Publish an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
810
- "Publish an authoring bundle with API name MyAuthoringBundle to the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --target-org my-dev-org"
811
- ],
812
- "flags": {
813
- "json": {
814
- "description": "Format output as json.",
815
- "helpGroup": "GLOBAL",
816
- "name": "json",
817
- "allowNo": false,
818
- "type": "boolean"
819
- },
820
- "flags-dir": {
821
- "helpGroup": "GLOBAL",
822
- "name": "flags-dir",
823
- "summary": "Import flag values from a directory.",
824
- "hasDynamicHelp": false,
825
- "multiple": false,
826
- "type": "option"
827
- },
828
- "target-org": {
829
- "char": "o",
830
- "name": "target-org",
831
- "noCacheDefault": true,
832
- "required": true,
833
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
834
- "hasDynamicHelp": true,
835
- "multiple": false,
836
- "type": "option"
837
- },
838
- "api-version": {
839
- "description": "Override the api version used for api requests made by this command",
840
- "name": "api-version",
841
- "hasDynamicHelp": false,
842
- "multiple": false,
843
- "type": "option"
844
- },
845
- "api-name": {
846
- "char": "n",
847
- "name": "api-name",
848
- "summary": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
849
- "hasDynamicHelp": false,
850
- "multiple": false,
851
- "type": "option"
852
- },
853
- "skip-retrieve": {
854
- "name": "skip-retrieve",
855
- "summary": "Don't retrieve the metadata associated with the agent to your DX project.",
856
- "allowNo": false,
857
- "type": "boolean"
858
- }
859
- },
860
- "hasDynamicHelp": true,
861
- "hiddenAliases": [],
862
- "id": "agent:publish:authoring-bundle",
863
- "pluginAlias": "@salesforce/plugin-agent",
864
- "pluginName": "@salesforce/plugin-agent",
865
- "pluginType": "core",
866
- "strict": true,
867
- "summary": "Publish an authoring bundle to your org, which results in a new agent or a new version of an existing agent.",
868
- "enableJsonFlag": true,
869
- "requiresProject": true,
870
- "FLAGGABLE_PROMPTS": {
871
- "api-name": {
872
- "message": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
873
- "promptMessage": "API name of the authoring bundle to publish"
874
- }
875
- },
876
- "isESM": true,
877
- "relativePath": [
878
- "lib",
879
- "commands",
880
- "agent",
881
- "publish",
882
- "authoring-bundle.js"
883
- ],
884
- "aliasPermutations": [],
885
- "permutations": [
886
- "agent:publish:authoring-bundle",
887
- "publish:agent:authoring-bundle",
888
- "publish:authoring-bundle:agent",
889
- "agent:authoring-bundle:publish",
890
- "authoring-bundle:agent:publish",
891
- "authoring-bundle:publish:agent"
892
- ]
893
- },
894
804
  "agent:test:create": {
895
805
  "aliases": [],
896
806
  "args": {},
@@ -1488,7 +1398,97 @@
1488
1398
  "authoring-bundle:agent:validate",
1489
1399
  "authoring-bundle:validate:agent"
1490
1400
  ]
1401
+ },
1402
+ "agent:publish:authoring-bundle": {
1403
+ "aliases": [],
1404
+ "args": {},
1405
+ "description": "An authoring bundle is a metadata type (named aiAuthoringBundle) that provides the blueprint for an agent. The metadata type contains two files: the standard metatada XML file and an Agent Script file (extension \".agent\") that fully describes the agent using the Agent Script language.\n\nWhen you publish an authoring bundle to your org, a number of things happen. First, this command validates that the Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent Script file to continue. Once the Agent Script file compiles, then it's published to the org, which in turn creates new associated metadata (Bot, BotVersion, GenAiX), or new versions of the metadata if the agent already exists. The new or updated metadata is retrieved back to your DX project; specify the --skip-retrieve flag to skip this step. Finally, the authoring bundle metadata (AiAuthoringBundle) is deployed to your org.\n\nThis command uses the API name of the authoring bundle.",
1406
+ "examples": [
1407
+ "Publish an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
1408
+ "Publish an authoring bundle with API name MyAuthoringBundle to the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --target-org my-dev-org"
1409
+ ],
1410
+ "flags": {
1411
+ "json": {
1412
+ "description": "Format output as json.",
1413
+ "helpGroup": "GLOBAL",
1414
+ "name": "json",
1415
+ "allowNo": false,
1416
+ "type": "boolean"
1417
+ },
1418
+ "flags-dir": {
1419
+ "helpGroup": "GLOBAL",
1420
+ "name": "flags-dir",
1421
+ "summary": "Import flag values from a directory.",
1422
+ "hasDynamicHelp": false,
1423
+ "multiple": false,
1424
+ "type": "option"
1425
+ },
1426
+ "target-org": {
1427
+ "char": "o",
1428
+ "name": "target-org",
1429
+ "noCacheDefault": true,
1430
+ "required": true,
1431
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1432
+ "hasDynamicHelp": true,
1433
+ "multiple": false,
1434
+ "type": "option"
1435
+ },
1436
+ "api-version": {
1437
+ "description": "Override the api version used for api requests made by this command",
1438
+ "name": "api-version",
1439
+ "hasDynamicHelp": false,
1440
+ "multiple": false,
1441
+ "type": "option"
1442
+ },
1443
+ "api-name": {
1444
+ "char": "n",
1445
+ "name": "api-name",
1446
+ "summary": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
1447
+ "hasDynamicHelp": false,
1448
+ "multiple": false,
1449
+ "type": "option"
1450
+ },
1451
+ "skip-retrieve": {
1452
+ "name": "skip-retrieve",
1453
+ "summary": "Don't retrieve the metadata associated with the agent to your DX project.",
1454
+ "allowNo": false,
1455
+ "type": "boolean"
1456
+ }
1457
+ },
1458
+ "hasDynamicHelp": true,
1459
+ "hiddenAliases": [],
1460
+ "id": "agent:publish:authoring-bundle",
1461
+ "pluginAlias": "@salesforce/plugin-agent",
1462
+ "pluginName": "@salesforce/plugin-agent",
1463
+ "pluginType": "core",
1464
+ "strict": true,
1465
+ "summary": "Publish an authoring bundle to your org, which results in a new agent or a new version of an existing agent.",
1466
+ "enableJsonFlag": true,
1467
+ "requiresProject": true,
1468
+ "FLAGGABLE_PROMPTS": {
1469
+ "api-name": {
1470
+ "message": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
1471
+ "promptMessage": "API name of the authoring bundle to publish"
1472
+ }
1473
+ },
1474
+ "isESM": true,
1475
+ "relativePath": [
1476
+ "lib",
1477
+ "commands",
1478
+ "agent",
1479
+ "publish",
1480
+ "authoring-bundle.js"
1481
+ ],
1482
+ "aliasPermutations": [],
1483
+ "permutations": [
1484
+ "agent:publish:authoring-bundle",
1485
+ "publish:agent:authoring-bundle",
1486
+ "publish:authoring-bundle:agent",
1487
+ "agent:authoring-bundle:publish",
1488
+ "authoring-bundle:agent:publish",
1489
+ "authoring-bundle:publish:agent"
1490
+ ]
1491
1491
  }
1492
1492
  },
1493
- "version": "1.27.5"
1493
+ "version": "1.27.6"
1494
1494
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-agent",
3
3
  "description": "Commands to interact with Salesforce agents",
4
- "version": "1.27.5",
4
+ "version": "1.27.6",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -32,7 +32,7 @@
32
32
  "@salesforce/plugin-command-reference": "^3.1.78",
33
33
  "@types/inquirer": "^9.0.9",
34
34
  "@types/react": "^18.3.3",
35
- "eslint-config-xo": "^0.49.0",
35
+ "eslint-config-xo": "^0.50.0",
36
36
  "eslint-config-xo-react": "^0.27.0",
37
37
  "eslint-plugin-react": "^7.34.3",
38
38
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -237,7 +237,7 @@
237
237
  "exports": "./lib/index.js",
238
238
  "type": "module",
239
239
  "sfdx": {
240
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.5.crt",
241
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.5.sig"
240
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.6.crt",
241
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.6.sig"
242
242
  }
243
243
  }