@salesforce/plugin-agent 1.27.5 → 1.27.7
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.
|
|
115
|
+
_See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
182
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
222
|
+
_See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
329
|
+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
404
|
+
_See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
452
|
+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
513
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
586
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
635
|
+
_See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
690
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
725
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
791
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
864
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
938
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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.
|
|
985
|
+
_See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.7/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:
|
|
138
|
-
|
|
139
|
-
|
|
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,I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,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"}
|
package/oclif.manifest.json
CHANGED
|
@@ -891,6 +891,90 @@
|
|
|
891
891
|
"authoring-bundle:publish:agent"
|
|
892
892
|
]
|
|
893
893
|
},
|
|
894
|
+
"agent:validate:authoring-bundle": {
|
|
895
|
+
"aliases": [],
|
|
896
|
+
"args": {},
|
|
897
|
+
"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\nThis command validates that the Agent Script file in the authoring bundle compiles without errors so that you can later publish the bundle to your org. Use this command while you code the Agent Script file to ensure that it's valid. If the validation fails, the command outputs the list of syntax errors, a brief description of the error, and the location in the Agent Script file where the error occurred.\n\nThis command uses the API name of the authoring bundle. If you don't provide an API name with the --api-name flag, the command searches the current DX project and outputs a list of authoring bundles that it found for you to choose from.",
|
|
898
|
+
"examples": [
|
|
899
|
+
"Validate an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
|
|
900
|
+
"Validate an authoring bundle with API name MyAuthoringBundle; use the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringBundle --target-org my-dev-org"
|
|
901
|
+
],
|
|
902
|
+
"flags": {
|
|
903
|
+
"json": {
|
|
904
|
+
"description": "Format output as json.",
|
|
905
|
+
"helpGroup": "GLOBAL",
|
|
906
|
+
"name": "json",
|
|
907
|
+
"allowNo": false,
|
|
908
|
+
"type": "boolean"
|
|
909
|
+
},
|
|
910
|
+
"flags-dir": {
|
|
911
|
+
"helpGroup": "GLOBAL",
|
|
912
|
+
"name": "flags-dir",
|
|
913
|
+
"summary": "Import flag values from a directory.",
|
|
914
|
+
"hasDynamicHelp": false,
|
|
915
|
+
"multiple": false,
|
|
916
|
+
"type": "option"
|
|
917
|
+
},
|
|
918
|
+
"target-org": {
|
|
919
|
+
"char": "o",
|
|
920
|
+
"name": "target-org",
|
|
921
|
+
"noCacheDefault": true,
|
|
922
|
+
"required": true,
|
|
923
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
924
|
+
"hasDynamicHelp": true,
|
|
925
|
+
"multiple": false,
|
|
926
|
+
"type": "option"
|
|
927
|
+
},
|
|
928
|
+
"api-version": {
|
|
929
|
+
"description": "Override the api version used for api requests made by this command",
|
|
930
|
+
"name": "api-version",
|
|
931
|
+
"hasDynamicHelp": false,
|
|
932
|
+
"multiple": false,
|
|
933
|
+
"type": "option"
|
|
934
|
+
},
|
|
935
|
+
"api-name": {
|
|
936
|
+
"char": "n",
|
|
937
|
+
"name": "api-name",
|
|
938
|
+
"summary": "API name of the authoring bundle you want to validate; if not specified, the command provides a list that you can choose from.",
|
|
939
|
+
"hasDynamicHelp": false,
|
|
940
|
+
"multiple": false,
|
|
941
|
+
"type": "option"
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
"hasDynamicHelp": true,
|
|
945
|
+
"hiddenAliases": [],
|
|
946
|
+
"id": "agent:validate:authoring-bundle",
|
|
947
|
+
"pluginAlias": "@salesforce/plugin-agent",
|
|
948
|
+
"pluginName": "@salesforce/plugin-agent",
|
|
949
|
+
"pluginType": "core",
|
|
950
|
+
"strict": true,
|
|
951
|
+
"summary": "Validate an authoring bundle to ensure its Agent Script file compiles successfully and can be used to publish an agent.",
|
|
952
|
+
"enableJsonFlag": true,
|
|
953
|
+
"requiresProject": true,
|
|
954
|
+
"FLAGGABLE_PROMPTS": {
|
|
955
|
+
"api-name": {
|
|
956
|
+
"message": "API name of the authoring bundle you want to validate; if not specified, the command provides a list that you can choose from.",
|
|
957
|
+
"promptMessage": "API name of the authoring bundle to validate"
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
"isESM": true,
|
|
961
|
+
"relativePath": [
|
|
962
|
+
"lib",
|
|
963
|
+
"commands",
|
|
964
|
+
"agent",
|
|
965
|
+
"validate",
|
|
966
|
+
"authoring-bundle.js"
|
|
967
|
+
],
|
|
968
|
+
"aliasPermutations": [],
|
|
969
|
+
"permutations": [
|
|
970
|
+
"agent:validate:authoring-bundle",
|
|
971
|
+
"validate:agent:authoring-bundle",
|
|
972
|
+
"validate:authoring-bundle:agent",
|
|
973
|
+
"agent:authoring-bundle:validate",
|
|
974
|
+
"authoring-bundle:agent:validate",
|
|
975
|
+
"authoring-bundle:validate:agent"
|
|
976
|
+
]
|
|
977
|
+
},
|
|
894
978
|
"agent:test:create": {
|
|
895
979
|
"aliases": [],
|
|
896
980
|
"args": {},
|
|
@@ -1404,91 +1488,7 @@
|
|
|
1404
1488
|
"run:agent:test",
|
|
1405
1489
|
"run:test:agent"
|
|
1406
1490
|
]
|
|
1407
|
-
},
|
|
1408
|
-
"agent:validate:authoring-bundle": {
|
|
1409
|
-
"aliases": [],
|
|
1410
|
-
"args": {},
|
|
1411
|
-
"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\nThis command validates that the Agent Script file in the authoring bundle compiles without errors so that you can later publish the bundle to your org. Use this command while you code the Agent Script file to ensure that it's valid. If the validation fails, the command outputs the list of syntax errors, a brief description of the error, and the location in the Agent Script file where the error occurred.\n\nThis command uses the API name of the authoring bundle. If you don't provide an API name with the --api-name flag, the command searches the current DX project and outputs a list of authoring bundles that it found for you to choose from.",
|
|
1412
|
-
"examples": [
|
|
1413
|
-
"Validate an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
|
|
1414
|
-
"Validate an authoring bundle with API name MyAuthoringBundle; use the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringBundle --target-org my-dev-org"
|
|
1415
|
-
],
|
|
1416
|
-
"flags": {
|
|
1417
|
-
"json": {
|
|
1418
|
-
"description": "Format output as json.",
|
|
1419
|
-
"helpGroup": "GLOBAL",
|
|
1420
|
-
"name": "json",
|
|
1421
|
-
"allowNo": false,
|
|
1422
|
-
"type": "boolean"
|
|
1423
|
-
},
|
|
1424
|
-
"flags-dir": {
|
|
1425
|
-
"helpGroup": "GLOBAL",
|
|
1426
|
-
"name": "flags-dir",
|
|
1427
|
-
"summary": "Import flag values from a directory.",
|
|
1428
|
-
"hasDynamicHelp": false,
|
|
1429
|
-
"multiple": false,
|
|
1430
|
-
"type": "option"
|
|
1431
|
-
},
|
|
1432
|
-
"target-org": {
|
|
1433
|
-
"char": "o",
|
|
1434
|
-
"name": "target-org",
|
|
1435
|
-
"noCacheDefault": true,
|
|
1436
|
-
"required": true,
|
|
1437
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1438
|
-
"hasDynamicHelp": true,
|
|
1439
|
-
"multiple": false,
|
|
1440
|
-
"type": "option"
|
|
1441
|
-
},
|
|
1442
|
-
"api-version": {
|
|
1443
|
-
"description": "Override the api version used for api requests made by this command",
|
|
1444
|
-
"name": "api-version",
|
|
1445
|
-
"hasDynamicHelp": false,
|
|
1446
|
-
"multiple": false,
|
|
1447
|
-
"type": "option"
|
|
1448
|
-
},
|
|
1449
|
-
"api-name": {
|
|
1450
|
-
"char": "n",
|
|
1451
|
-
"name": "api-name",
|
|
1452
|
-
"summary": "API name of the authoring bundle you want to validate; if not specified, the command provides a list that you can choose from.",
|
|
1453
|
-
"hasDynamicHelp": false,
|
|
1454
|
-
"multiple": false,
|
|
1455
|
-
"type": "option"
|
|
1456
|
-
}
|
|
1457
|
-
},
|
|
1458
|
-
"hasDynamicHelp": true,
|
|
1459
|
-
"hiddenAliases": [],
|
|
1460
|
-
"id": "agent:validate:authoring-bundle",
|
|
1461
|
-
"pluginAlias": "@salesforce/plugin-agent",
|
|
1462
|
-
"pluginName": "@salesforce/plugin-agent",
|
|
1463
|
-
"pluginType": "core",
|
|
1464
|
-
"strict": true,
|
|
1465
|
-
"summary": "Validate an authoring bundle to ensure its Agent Script file compiles successfully and can be used to publish an agent.",
|
|
1466
|
-
"enableJsonFlag": true,
|
|
1467
|
-
"requiresProject": true,
|
|
1468
|
-
"FLAGGABLE_PROMPTS": {
|
|
1469
|
-
"api-name": {
|
|
1470
|
-
"message": "API name of the authoring bundle you want to validate; if not specified, the command provides a list that you can choose from.",
|
|
1471
|
-
"promptMessage": "API name of the authoring bundle to validate"
|
|
1472
|
-
}
|
|
1473
|
-
},
|
|
1474
|
-
"isESM": true,
|
|
1475
|
-
"relativePath": [
|
|
1476
|
-
"lib",
|
|
1477
|
-
"commands",
|
|
1478
|
-
"agent",
|
|
1479
|
-
"validate",
|
|
1480
|
-
"authoring-bundle.js"
|
|
1481
|
-
],
|
|
1482
|
-
"aliasPermutations": [],
|
|
1483
|
-
"permutations": [
|
|
1484
|
-
"agent:validate:authoring-bundle",
|
|
1485
|
-
"validate:agent:authoring-bundle",
|
|
1486
|
-
"validate:authoring-bundle:agent",
|
|
1487
|
-
"agent:authoring-bundle:validate",
|
|
1488
|
-
"authoring-bundle:agent:validate",
|
|
1489
|
-
"authoring-bundle:validate:agent"
|
|
1490
|
-
]
|
|
1491
1491
|
}
|
|
1492
1492
|
},
|
|
1493
|
-
"version": "1.27.
|
|
1493
|
+
"version": "1.27.7"
|
|
1494
1494
|
}
|
package/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
3
|
"description": "Commands to interact with Salesforce agents",
|
|
4
|
-
"version": "1.27.
|
|
4
|
+
"version": "1.27.7",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
|
+
"enableO11y": true,
|
|
8
|
+
"o11yUploadEndpoint": "https://794testsite.my.site.com/byolwr/webruntime/log/metrics",
|
|
7
9
|
"dependencies": {
|
|
8
10
|
"@inquirer/core": "^10.3.2",
|
|
9
11
|
"@inquirer/prompts": "^7.10.1",
|
|
10
12
|
"@oclif/core": "^4",
|
|
11
13
|
"@oclif/multi-stage-output": "^0.8.29",
|
|
12
|
-
"@salesforce/agents": "^0.22.
|
|
13
|
-
"@salesforce/core": "^8.
|
|
14
|
+
"@salesforce/agents": "^0.22.6",
|
|
15
|
+
"@salesforce/core": "^8.25.1",
|
|
14
16
|
"@salesforce/kit": "^3.2.4",
|
|
15
17
|
"@salesforce/sf-plugins-core": "^12.2.6",
|
|
16
18
|
"@salesforce/source-deploy-retrieve": "^12.31.10",
|
|
17
|
-
"@salesforce/types": "^1.
|
|
19
|
+
"@salesforce/types": "^1.6.0",
|
|
18
20
|
"ansis": "^3.3.2",
|
|
19
21
|
"fast-xml-parser": "^5.3.4",
|
|
20
22
|
"glob": "^11.0.3",
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
"@salesforce/plugin-command-reference": "^3.1.78",
|
|
33
35
|
"@types/inquirer": "^9.0.9",
|
|
34
36
|
"@types/react": "^18.3.3",
|
|
35
|
-
"eslint-config-xo": "^0.
|
|
37
|
+
"eslint-config-xo": "^0.50.0",
|
|
36
38
|
"eslint-config-xo-react": "^0.27.0",
|
|
37
39
|
"eslint-plugin-react": "^7.34.3",
|
|
38
40
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
@@ -237,7 +239,7 @@
|
|
|
237
239
|
"exports": "./lib/index.js",
|
|
238
240
|
"type": "module",
|
|
239
241
|
"sfdx": {
|
|
240
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.
|
|
241
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.
|
|
242
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.7.crt",
|
|
243
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.7.sig"
|
|
242
244
|
}
|
|
243
245
|
}
|