@salesforce/plugin-agent 1.31.1 → 1.31.2

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
@@ -116,7 +116,7 @@ EXAMPLES
116
116
  $ sf agent activate --api-name Resort_Manager --target-org my-org
117
117
  ```
118
118
 
119
- _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/activate.ts)_
119
+ _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/activate.ts)_
120
120
 
121
121
  ## `sf agent create`
122
122
 
@@ -183,7 +183,7 @@ EXAMPLES
183
183
  $ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
184
184
  ```
185
185
 
186
- _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/create.ts)_
186
+ _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/create.ts)_
187
187
 
188
188
  ## `sf agent deactivate`
189
189
 
@@ -223,7 +223,7 @@ EXAMPLES
223
223
  $ sf agent deactivate --api-name Resort_Manager --target-org my-org
224
224
  ```
225
225
 
226
- _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/deactivate.ts)_
226
+ _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/deactivate.ts)_
227
227
 
228
228
  ## `sf agent generate agent-spec`
229
229
 
@@ -330,7 +330,7 @@ EXAMPLES
330
330
  $ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
331
331
  ```
332
332
 
333
- _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/generate/agent-spec.ts)_
333
+ _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/generate/agent-spec.ts)_
334
334
 
335
335
  ## `sf agent generate authoring-bundle`
336
336
 
@@ -407,7 +407,7 @@ EXAMPLES
407
407
  other-package-dir/main/default --target-org my-dev-org
408
408
  ```
409
409
 
410
- _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/generate/authoring-bundle.ts)_
410
+ _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/generate/authoring-bundle.ts)_
411
411
 
412
412
  ## `sf agent generate template`
413
413
 
@@ -455,7 +455,7 @@ EXAMPLES
455
455
  force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
456
456
  ```
457
457
 
458
- _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/generate/template.ts)_
458
+ _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/generate/template.ts)_
459
459
 
460
460
  ## `sf agent generate test-spec`
461
461
 
@@ -516,7 +516,7 @@ EXAMPLES
516
516
  force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
517
517
  ```
518
518
 
519
- _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/generate/test-spec.ts)_
519
+ _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/generate/test-spec.ts)_
520
520
 
521
521
  ## `sf agent preview`
522
522
 
@@ -589,7 +589,7 @@ EXAMPLES
589
589
  $ sf agent preview --use-live-actions --apex-debug --output-dir transcripts/my-preview
590
590
  ```
591
591
 
592
- _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/preview.ts)_
592
+ _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/preview.ts)_
593
593
 
594
594
  ## `sf agent preview end`
595
595
 
@@ -644,7 +644,7 @@ EXAMPLES
644
644
  $ sf agent preview end --authoring-bundle My_Local_Agent
645
645
  ```
646
646
 
647
- _See code: [src/commands/agent/preview/end.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/preview/end.ts)_
647
+ _See code: [src/commands/agent/preview/end.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/preview/end.ts)_
648
648
 
649
649
  ## `sf agent preview send`
650
650
 
@@ -702,7 +702,7 @@ EXAMPLES
702
702
  $ sf agent preview send --utterance "what can you help me with?" --authoring-bundle My_Local_Agent
703
703
  ```
704
704
 
705
- _See code: [src/commands/agent/preview/send.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/preview/send.ts)_
705
+ _See code: [src/commands/agent/preview/send.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/preview/send.ts)_
706
706
 
707
707
  ## `sf agent preview sessions`
708
708
 
@@ -735,7 +735,7 @@ EXAMPLES
735
735
  $ sf agent preview sessions
736
736
  ```
737
737
 
738
- _See code: [src/commands/agent/preview/sessions.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/preview/sessions.ts)_
738
+ _See code: [src/commands/agent/preview/sessions.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/preview/sessions.ts)_
739
739
 
740
740
  ## `sf agent preview start`
741
741
 
@@ -792,7 +792,7 @@ EXAMPLES
792
792
  $ sf agent preview start --api-name My_Published_Agent
793
793
  ```
794
794
 
795
- _See code: [src/commands/agent/preview/start.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/preview/start.ts)_
795
+ _See code: [src/commands/agent/preview/start.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/preview/start.ts)_
796
796
 
797
797
  ## `sf agent publish authoring-bundle`
798
798
 
@@ -841,7 +841,7 @@ EXAMPLES
841
841
  $ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-dev-org
842
842
  ```
843
843
 
844
- _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/publish/authoring-bundle.ts)_
844
+ _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/publish/authoring-bundle.ts)_
845
845
 
846
846
  ## `sf agent test create`
847
847
 
@@ -896,7 +896,7 @@ EXAMPLES
896
896
  $ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
897
897
  ```
898
898
 
899
- _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/test/create.ts)_
899
+ _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/test/create.ts)_
900
900
 
901
901
  ## `sf agent test list`
902
902
 
@@ -931,7 +931,7 @@ EXAMPLES
931
931
  $ sf agent test list --target-org my-org
932
932
  ```
933
933
 
934
- _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/test/list.ts)_
934
+ _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/test/list.ts)_
935
935
 
936
936
  ## `sf agent test results`
937
937
 
@@ -997,7 +997,7 @@ FLAG DESCRIPTIONS
997
997
  expression when using custom evaluations.
998
998
  ```
999
999
 
1000
- _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/test/results.ts)_
1000
+ _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/test/results.ts)_
1001
1001
 
1002
1002
  ## `sf agent test resume`
1003
1003
 
@@ -1070,7 +1070,7 @@ FLAG DESCRIPTIONS
1070
1070
  expression when using custom evaluations.
1071
1071
  ```
1072
1072
 
1073
- _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/test/resume.ts)_
1073
+ _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/test/resume.ts)_
1074
1074
 
1075
1075
  ## `sf agent test run`
1076
1076
 
@@ -1144,7 +1144,7 @@ FLAG DESCRIPTIONS
1144
1144
  expression when using custom evaluations.
1145
1145
  ```
1146
1146
 
1147
- _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/test/run.ts)_
1147
+ _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/test/run.ts)_
1148
1148
 
1149
1149
  ## `sf agent validate authoring-bundle`
1150
1150
 
@@ -1191,6 +1191,6 @@ EXAMPLES
1191
1191
  $ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
1192
1192
  ```
1193
1193
 
1194
- _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.1/src/commands/agent/validate/authoring-bundle.ts)_
1194
+ _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.31.2/src/commands/agent/validate/authoring-bundle.ts)_
1195
1195
 
1196
1196
  <!-- commandsstop -->
@@ -791,96 +791,6 @@
791
791
  "test-spec:generate:agent"
792
792
  ]
793
793
  },
794
- "agent:publish:authoring-bundle": {
795
- "aliases": [],
796
- "args": {},
797
- "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.",
798
- "examples": [
799
- "Publish an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
800
- "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"
801
- ],
802
- "flags": {
803
- "json": {
804
- "description": "Format output as json.",
805
- "helpGroup": "GLOBAL",
806
- "name": "json",
807
- "allowNo": false,
808
- "type": "boolean"
809
- },
810
- "flags-dir": {
811
- "helpGroup": "GLOBAL",
812
- "name": "flags-dir",
813
- "summary": "Import flag values from a directory.",
814
- "hasDynamicHelp": false,
815
- "multiple": false,
816
- "type": "option"
817
- },
818
- "target-org": {
819
- "char": "o",
820
- "name": "target-org",
821
- "noCacheDefault": true,
822
- "required": true,
823
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
824
- "hasDynamicHelp": true,
825
- "multiple": false,
826
- "type": "option"
827
- },
828
- "api-version": {
829
- "description": "Override the api version used for api requests made by this command",
830
- "name": "api-version",
831
- "hasDynamicHelp": false,
832
- "multiple": false,
833
- "type": "option"
834
- },
835
- "api-name": {
836
- "char": "n",
837
- "name": "api-name",
838
- "summary": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
839
- "hasDynamicHelp": false,
840
- "multiple": false,
841
- "type": "option"
842
- },
843
- "skip-retrieve": {
844
- "name": "skip-retrieve",
845
- "summary": "Don't retrieve the metadata associated with the agent to your DX project.",
846
- "allowNo": false,
847
- "type": "boolean"
848
- }
849
- },
850
- "hasDynamicHelp": true,
851
- "hiddenAliases": [],
852
- "id": "agent:publish:authoring-bundle",
853
- "pluginAlias": "@salesforce/plugin-agent",
854
- "pluginName": "@salesforce/plugin-agent",
855
- "pluginType": "core",
856
- "strict": true,
857
- "summary": "Publish an authoring bundle to your org, which results in a new agent or a new version of an existing agent.",
858
- "enableJsonFlag": true,
859
- "requiresProject": true,
860
- "FLAGGABLE_PROMPTS": {
861
- "api-name": {
862
- "message": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
863
- "promptMessage": "API name of the authoring bundle to publish"
864
- }
865
- },
866
- "isESM": true,
867
- "relativePath": [
868
- "lib",
869
- "commands",
870
- "agent",
871
- "publish",
872
- "authoring-bundle.js"
873
- ],
874
- "aliasPermutations": [],
875
- "permutations": [
876
- "agent:publish:authoring-bundle",
877
- "publish:agent:authoring-bundle",
878
- "publish:authoring-bundle:agent",
879
- "agent:authoring-bundle:publish",
880
- "authoring-bundle:agent:publish",
881
- "authoring-bundle:publish:agent"
882
- ]
883
- },
884
794
  "agent:preview:end": {
885
795
  "aliases": [],
886
796
  "args": {},
@@ -1226,6 +1136,96 @@
1226
1136
  "start:preview:agent"
1227
1137
  ]
1228
1138
  },
1139
+ "agent:publish:authoring-bundle": {
1140
+ "aliases": [],
1141
+ "args": {},
1142
+ "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.",
1143
+ "examples": [
1144
+ "Publish an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
1145
+ "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"
1146
+ ],
1147
+ "flags": {
1148
+ "json": {
1149
+ "description": "Format output as json.",
1150
+ "helpGroup": "GLOBAL",
1151
+ "name": "json",
1152
+ "allowNo": false,
1153
+ "type": "boolean"
1154
+ },
1155
+ "flags-dir": {
1156
+ "helpGroup": "GLOBAL",
1157
+ "name": "flags-dir",
1158
+ "summary": "Import flag values from a directory.",
1159
+ "hasDynamicHelp": false,
1160
+ "multiple": false,
1161
+ "type": "option"
1162
+ },
1163
+ "target-org": {
1164
+ "char": "o",
1165
+ "name": "target-org",
1166
+ "noCacheDefault": true,
1167
+ "required": true,
1168
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1169
+ "hasDynamicHelp": true,
1170
+ "multiple": false,
1171
+ "type": "option"
1172
+ },
1173
+ "api-version": {
1174
+ "description": "Override the api version used for api requests made by this command",
1175
+ "name": "api-version",
1176
+ "hasDynamicHelp": false,
1177
+ "multiple": false,
1178
+ "type": "option"
1179
+ },
1180
+ "api-name": {
1181
+ "char": "n",
1182
+ "name": "api-name",
1183
+ "summary": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
1184
+ "hasDynamicHelp": false,
1185
+ "multiple": false,
1186
+ "type": "option"
1187
+ },
1188
+ "skip-retrieve": {
1189
+ "name": "skip-retrieve",
1190
+ "summary": "Don't retrieve the metadata associated with the agent to your DX project.",
1191
+ "allowNo": false,
1192
+ "type": "boolean"
1193
+ }
1194
+ },
1195
+ "hasDynamicHelp": true,
1196
+ "hiddenAliases": [],
1197
+ "id": "agent:publish:authoring-bundle",
1198
+ "pluginAlias": "@salesforce/plugin-agent",
1199
+ "pluginName": "@salesforce/plugin-agent",
1200
+ "pluginType": "core",
1201
+ "strict": true,
1202
+ "summary": "Publish an authoring bundle to your org, which results in a new agent or a new version of an existing agent.",
1203
+ "enableJsonFlag": true,
1204
+ "requiresProject": true,
1205
+ "FLAGGABLE_PROMPTS": {
1206
+ "api-name": {
1207
+ "message": "API name of the authoring bundle you want to publish; if not specified, the command provides a list that you can choose from.",
1208
+ "promptMessage": "API name of the authoring bundle to publish"
1209
+ }
1210
+ },
1211
+ "isESM": true,
1212
+ "relativePath": [
1213
+ "lib",
1214
+ "commands",
1215
+ "agent",
1216
+ "publish",
1217
+ "authoring-bundle.js"
1218
+ ],
1219
+ "aliasPermutations": [],
1220
+ "permutations": [
1221
+ "agent:publish:authoring-bundle",
1222
+ "publish:agent:authoring-bundle",
1223
+ "publish:authoring-bundle:agent",
1224
+ "agent:authoring-bundle:publish",
1225
+ "authoring-bundle:agent:publish",
1226
+ "authoring-bundle:publish:agent"
1227
+ ]
1228
+ },
1229
1229
  "agent:test:create": {
1230
1230
  "aliases": [],
1231
1231
  "args": {},
@@ -1953,5 +1953,5 @@
1953
1953
  ]
1954
1954
  }
1955
1955
  },
1956
- "version": "1.31.1"
1956
+ "version": "1.31.2"
1957
1957
  }
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.31.1",
4
+ "version": "1.31.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "enableO11y": true,
@@ -13,7 +13,7 @@
13
13
  "@oclif/core": "^4",
14
14
  "@oclif/multi-stage-output": "^0.8.29",
15
15
  "@salesforce/agents": "^0.24.1",
16
- "@salesforce/core": "^8.26.2",
16
+ "@salesforce/core": "^8.26.3",
17
17
  "@salesforce/kit": "^3.2.4",
18
18
  "@salesforce/sf-plugins-core": "^12.2.6",
19
19
  "@salesforce/source-deploy-retrieve": "^12.31.14",
@@ -240,7 +240,7 @@
240
240
  "exports": "./lib/index.js",
241
241
  "type": "module",
242
242
  "sfdx": {
243
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.31.1.crt",
244
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.31.1.sig"
243
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.31.2.crt",
244
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.31.2.sig"
245
245
  }
246
246
  }