@salesforce/plugin-agent 1.24.14-nga.0 → 1.24.14-nga.1
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.24.14-nga.
|
|
115
|
+
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/activate.ts)_
|
|
116
116
|
|
|
117
117
|
## `sf agent create`
|
|
118
118
|
|
|
@@ -174,7 +174,7 @@ EXAMPLES
|
|
|
174
174
|
$ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
|
|
175
175
|
```
|
|
176
176
|
|
|
177
|
-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
177
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/create.ts)_
|
|
178
178
|
|
|
179
179
|
## `sf agent deactivate`
|
|
180
180
|
|
|
@@ -214,7 +214,7 @@ EXAMPLES
|
|
|
214
214
|
$ sf agent deactivate --api-name Resort_Manager --target-org my-org
|
|
215
215
|
```
|
|
216
216
|
|
|
217
|
-
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
217
|
+
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/deactivate.ts)_
|
|
218
218
|
|
|
219
219
|
## `sf agent generate agent-spec`
|
|
220
220
|
|
|
@@ -319,7 +319,7 @@ EXAMPLES
|
|
|
319
319
|
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
|
|
320
320
|
```
|
|
321
321
|
|
|
322
|
-
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
322
|
+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/generate/agent-spec.ts)_
|
|
323
323
|
|
|
324
324
|
## `sf agent generate authoring-bundle`
|
|
325
325
|
|
|
@@ -367,7 +367,7 @@ EXAMPLES
|
|
|
367
367
|
other-package-dir/main/default/aiAuthoringBundles
|
|
368
368
|
```
|
|
369
369
|
|
|
370
|
-
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
370
|
+
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/generate/authoring-bundle.ts)_
|
|
371
371
|
|
|
372
372
|
## `sf agent generate template`
|
|
373
373
|
|
|
@@ -415,7 +415,7 @@ EXAMPLES
|
|
|
415
415
|
force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
|
|
416
416
|
```
|
|
417
417
|
|
|
418
|
-
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
418
|
+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/generate/template.ts)_
|
|
419
419
|
|
|
420
420
|
## `sf agent generate test-spec`
|
|
421
421
|
|
|
@@ -476,7 +476,7 @@ EXAMPLES
|
|
|
476
476
|
force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
|
|
477
477
|
```
|
|
478
478
|
|
|
479
|
-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
479
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/generate/test-spec.ts)_
|
|
480
480
|
|
|
481
481
|
## `sf agent preview`
|
|
482
482
|
|
|
@@ -542,7 +542,7 @@ EXAMPLES
|
|
|
542
542
|
transcripts/my-preview
|
|
543
543
|
```
|
|
544
544
|
|
|
545
|
-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
545
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/preview.ts)_
|
|
546
546
|
|
|
547
547
|
## `sf agent publish authoring-bundle`
|
|
548
548
|
|
|
@@ -585,7 +585,7 @@ EXAMPLES
|
|
|
585
585
|
$ sf agent publish authoring-bundle --api-name MyAuthoringbundle --agent-name "My Fab Agent" --target-org my-org
|
|
586
586
|
```
|
|
587
587
|
|
|
588
|
-
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
588
|
+
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/publish/authoring-bundle.ts)_
|
|
589
589
|
|
|
590
590
|
## `sf agent test create`
|
|
591
591
|
|
|
@@ -640,7 +640,7 @@ EXAMPLES
|
|
|
640
640
|
$ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
|
|
641
641
|
```
|
|
642
642
|
|
|
643
|
-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
643
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/test/create.ts)_
|
|
644
644
|
|
|
645
645
|
## `sf agent test list`
|
|
646
646
|
|
|
@@ -675,7 +675,7 @@ EXAMPLES
|
|
|
675
675
|
$ sf agent test list --target-org my-org
|
|
676
676
|
```
|
|
677
677
|
|
|
678
|
-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
678
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/test/list.ts)_
|
|
679
679
|
|
|
680
680
|
## `sf agent test results`
|
|
681
681
|
|
|
@@ -741,7 +741,7 @@ FLAG DESCRIPTIONS
|
|
|
741
741
|
expression when using custom evaluations.
|
|
742
742
|
```
|
|
743
743
|
|
|
744
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
744
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/test/results.ts)_
|
|
745
745
|
|
|
746
746
|
## `sf agent test resume`
|
|
747
747
|
|
|
@@ -814,7 +814,7 @@ FLAG DESCRIPTIONS
|
|
|
814
814
|
expression when using custom evaluations.
|
|
815
815
|
```
|
|
816
816
|
|
|
817
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
817
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/test/resume.ts)_
|
|
818
818
|
|
|
819
819
|
## `sf agent test run`
|
|
820
820
|
|
|
@@ -888,7 +888,7 @@ FLAG DESCRIPTIONS
|
|
|
888
888
|
expression when using custom evaluations.
|
|
889
889
|
```
|
|
890
890
|
|
|
891
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
891
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/test/run.ts)_
|
|
892
892
|
|
|
893
893
|
## `sf agent validate authoring-bundle`
|
|
894
894
|
|
|
@@ -928,6 +928,6 @@ EXAMPLES
|
|
|
928
928
|
$ sf agent validate authoring-bundle --api-name MyAuthoringBundle
|
|
929
929
|
```
|
|
930
930
|
|
|
931
|
-
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.
|
|
931
|
+
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.14-nga.1/src/commands/agent/validate/authoring-bundle.ts)_
|
|
932
932
|
|
|
933
933
|
<!-- commandsstop -->
|
|
@@ -86,6 +86,8 @@ export default class AgentPublishAuthoringBundle extends SfCommand {
|
|
|
86
86
|
mso.goto('Validate Bundle');
|
|
87
87
|
const targetOrg = flags['target-org'];
|
|
88
88
|
const conn = targetOrg.getConnection(flags['api-version']);
|
|
89
|
+
// Preserve the original accessToken by storing its value
|
|
90
|
+
const originalAccessToken = conn.accessToken;
|
|
89
91
|
// First compile the .agent file to get the Agent JSON
|
|
90
92
|
const compileResponse = await Agent.compileAgentScript(conn, readFileSync(join(authoringBundleDir, `${apiName}.agent`), 'utf8'));
|
|
91
93
|
if (compileResponse.status === 'success') {
|
|
@@ -113,6 +115,8 @@ export default class AgentPublishAuthoringBundle extends SfCommand {
|
|
|
113
115
|
}
|
|
114
116
|
return Promise.resolve();
|
|
115
117
|
});
|
|
118
|
+
// Restore the original accessToken after compilation
|
|
119
|
+
conn.accessToken = originalAccessToken;
|
|
116
120
|
const result = await Agent.publishAgentJson(conn, this.project, compileResponse.compiledArtifact);
|
|
117
121
|
mso.stop();
|
|
118
122
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-bundle.js","sourceRoot":"","sources":["../../../../src/commands/agent/publish/authoring-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC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
@@ -802,89 +802,6 @@
|
|
|
802
802
|
"test-spec:generate:agent"
|
|
803
803
|
]
|
|
804
804
|
},
|
|
805
|
-
"agent:publish:authoring-bundle": {
|
|
806
|
-
"aliases": [],
|
|
807
|
-
"args": {},
|
|
808
|
-
"description": "When you publish an authoring bundle to your org, a number of things happen. First, this command validates that the agent file (with extension \".agent\") successfully compiles. Then the authoring bundle metadata component is deployed to the org, and all associated metadata components, such as the Bot, BotVersion, and GenAiXXX components, are either created or updated. The org then creates a new next-gen agent based on the deployed authoring bundle and associated metadata. Finally, all the metadata associated with the new agent is retrieved back to your local DX project.\n\nAuthoring bundles are metadata types that represent the next-gen Salesforce agents. Their exact metadata name is AiAuthoringBundle and they consist of a standard \"\\*-meta.xml\" metadata file and an agent file (with extension \".agent\") that fully describes the next-gen agent.\n\nThis command requires the API name of the authoring bundle; if you don't provide it with the --api-name flag, the command prompts you for it.",
|
|
809
|
-
"examples": [
|
|
810
|
-
"Publish an authoring bundle with API name MyAuthoringBundle to the org with alias \"my-org\", resulting in a new agent named \"My Fab Agent\"::\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --agent-name \"My Fab Agent\" --target-org my-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.",
|
|
849
|
-
"hasDynamicHelp": false,
|
|
850
|
-
"multiple": false,
|
|
851
|
-
"type": "option"
|
|
852
|
-
}
|
|
853
|
-
},
|
|
854
|
-
"hasDynamicHelp": true,
|
|
855
|
-
"hiddenAliases": [],
|
|
856
|
-
"id": "agent:publish:authoring-bundle",
|
|
857
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
858
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
859
|
-
"pluginType": "core",
|
|
860
|
-
"strict": true,
|
|
861
|
-
"summary": "Publish an authoring bundle to your org, which results in a new next-gen agent.",
|
|
862
|
-
"enableJsonFlag": true,
|
|
863
|
-
"requiresProject": true,
|
|
864
|
-
"FLAGGABLE_PROMPTS": {
|
|
865
|
-
"api-name": {
|
|
866
|
-
"message": "API name of the authoring bundle you want to publish.",
|
|
867
|
-
"promptMessage": "API name of the authoring bundle to publish"
|
|
868
|
-
}
|
|
869
|
-
},
|
|
870
|
-
"isESM": true,
|
|
871
|
-
"relativePath": [
|
|
872
|
-
"lib",
|
|
873
|
-
"commands",
|
|
874
|
-
"agent",
|
|
875
|
-
"publish",
|
|
876
|
-
"authoring-bundle.js"
|
|
877
|
-
],
|
|
878
|
-
"aliasPermutations": [],
|
|
879
|
-
"permutations": [
|
|
880
|
-
"agent:publish:authoring-bundle",
|
|
881
|
-
"publish:agent:authoring-bundle",
|
|
882
|
-
"publish:authoring-bundle:agent",
|
|
883
|
-
"agent:authoring-bundle:publish",
|
|
884
|
-
"authoring-bundle:agent:publish",
|
|
885
|
-
"authoring-bundle:publish:agent"
|
|
886
|
-
]
|
|
887
|
-
},
|
|
888
805
|
"agent:test:create": {
|
|
889
806
|
"aliases": [],
|
|
890
807
|
"args": {},
|
|
@@ -1399,6 +1316,89 @@
|
|
|
1399
1316
|
"run:test:agent"
|
|
1400
1317
|
]
|
|
1401
1318
|
},
|
|
1319
|
+
"agent:publish:authoring-bundle": {
|
|
1320
|
+
"aliases": [],
|
|
1321
|
+
"args": {},
|
|
1322
|
+
"description": "When you publish an authoring bundle to your org, a number of things happen. First, this command validates that the agent file (with extension \".agent\") successfully compiles. Then the authoring bundle metadata component is deployed to the org, and all associated metadata components, such as the Bot, BotVersion, and GenAiXXX components, are either created or updated. The org then creates a new next-gen agent based on the deployed authoring bundle and associated metadata. Finally, all the metadata associated with the new agent is retrieved back to your local DX project.\n\nAuthoring bundles are metadata types that represent the next-gen Salesforce agents. Their exact metadata name is AiAuthoringBundle and they consist of a standard \"\\*-meta.xml\" metadata file and an agent file (with extension \".agent\") that fully describes the next-gen agent.\n\nThis command requires the API name of the authoring bundle; if you don't provide it with the --api-name flag, the command prompts you for it.",
|
|
1323
|
+
"examples": [
|
|
1324
|
+
"Publish an authoring bundle with API name MyAuthoringBundle to the org with alias \"my-org\", resulting in a new agent named \"My Fab Agent\"::\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --agent-name \"My Fab Agent\" --target-org my-org"
|
|
1325
|
+
],
|
|
1326
|
+
"flags": {
|
|
1327
|
+
"json": {
|
|
1328
|
+
"description": "Format output as json.",
|
|
1329
|
+
"helpGroup": "GLOBAL",
|
|
1330
|
+
"name": "json",
|
|
1331
|
+
"allowNo": false,
|
|
1332
|
+
"type": "boolean"
|
|
1333
|
+
},
|
|
1334
|
+
"flags-dir": {
|
|
1335
|
+
"helpGroup": "GLOBAL",
|
|
1336
|
+
"name": "flags-dir",
|
|
1337
|
+
"summary": "Import flag values from a directory.",
|
|
1338
|
+
"hasDynamicHelp": false,
|
|
1339
|
+
"multiple": false,
|
|
1340
|
+
"type": "option"
|
|
1341
|
+
},
|
|
1342
|
+
"target-org": {
|
|
1343
|
+
"char": "o",
|
|
1344
|
+
"name": "target-org",
|
|
1345
|
+
"noCacheDefault": true,
|
|
1346
|
+
"required": true,
|
|
1347
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1348
|
+
"hasDynamicHelp": true,
|
|
1349
|
+
"multiple": false,
|
|
1350
|
+
"type": "option"
|
|
1351
|
+
},
|
|
1352
|
+
"api-version": {
|
|
1353
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1354
|
+
"name": "api-version",
|
|
1355
|
+
"hasDynamicHelp": false,
|
|
1356
|
+
"multiple": false,
|
|
1357
|
+
"type": "option"
|
|
1358
|
+
},
|
|
1359
|
+
"api-name": {
|
|
1360
|
+
"char": "n",
|
|
1361
|
+
"name": "api-name",
|
|
1362
|
+
"summary": "API name of the authoring bundle you want to publish.",
|
|
1363
|
+
"hasDynamicHelp": false,
|
|
1364
|
+
"multiple": false,
|
|
1365
|
+
"type": "option"
|
|
1366
|
+
}
|
|
1367
|
+
},
|
|
1368
|
+
"hasDynamicHelp": true,
|
|
1369
|
+
"hiddenAliases": [],
|
|
1370
|
+
"id": "agent:publish:authoring-bundle",
|
|
1371
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
1372
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
1373
|
+
"pluginType": "core",
|
|
1374
|
+
"strict": true,
|
|
1375
|
+
"summary": "Publish an authoring bundle to your org, which results in a new next-gen agent.",
|
|
1376
|
+
"enableJsonFlag": true,
|
|
1377
|
+
"requiresProject": true,
|
|
1378
|
+
"FLAGGABLE_PROMPTS": {
|
|
1379
|
+
"api-name": {
|
|
1380
|
+
"message": "API name of the authoring bundle you want to publish.",
|
|
1381
|
+
"promptMessage": "API name of the authoring bundle to publish"
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
"isESM": true,
|
|
1385
|
+
"relativePath": [
|
|
1386
|
+
"lib",
|
|
1387
|
+
"commands",
|
|
1388
|
+
"agent",
|
|
1389
|
+
"publish",
|
|
1390
|
+
"authoring-bundle.js"
|
|
1391
|
+
],
|
|
1392
|
+
"aliasPermutations": [],
|
|
1393
|
+
"permutations": [
|
|
1394
|
+
"agent:publish:authoring-bundle",
|
|
1395
|
+
"publish:agent:authoring-bundle",
|
|
1396
|
+
"publish:authoring-bundle:agent",
|
|
1397
|
+
"agent:authoring-bundle:publish",
|
|
1398
|
+
"authoring-bundle:agent:publish",
|
|
1399
|
+
"authoring-bundle:publish:agent"
|
|
1400
|
+
]
|
|
1401
|
+
},
|
|
1402
1402
|
"agent:validate:authoring-bundle": {
|
|
1403
1403
|
"aliases": [],
|
|
1404
1404
|
"args": {},
|
|
@@ -1483,5 +1483,5 @@
|
|
|
1483
1483
|
]
|
|
1484
1484
|
}
|
|
1485
1485
|
},
|
|
1486
|
-
"version": "1.24.14-nga.
|
|
1486
|
+
"version": "1.24.14-nga.1"
|
|
1487
1487
|
}
|
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.24.14-nga.
|
|
4
|
+
"version": "1.24.14-nga.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
"exports": "./lib/index.js",
|
|
232
232
|
"type": "module",
|
|
233
233
|
"sfdx": {
|
|
234
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-nga.
|
|
235
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-nga.
|
|
234
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-nga.1.crt",
|
|
235
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.24.14-nga.1.sig"
|
|
236
236
|
}
|
|
237
237
|
}
|