@salesforce/cli 2.129.7 → 2.129.8

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
@@ -25,7 +25,7 @@ $ npm install -g @salesforce/cli
25
25
  $ sf COMMAND
26
26
  running command...
27
27
  $ sf (--version|-v)
28
- @salesforce/cli/2.129.7 linux-x64 node-v22.22.1
28
+ @salesforce/cli/2.129.8 linux-x64 node-v22.22.1
29
29
  $ sf --help [COMMAND]
30
30
  USAGE
31
31
  $ sf COMMAND
@@ -265,7 +265,7 @@ EXAMPLES
265
265
  $ sf agent activate --api-name Resort_Manager --version 2 --target-org my-org
266
266
  ```
267
267
 
268
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/activate.ts)_
268
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/activate.ts)_
269
269
 
270
270
  ## `sf agent create`
271
271
 
@@ -332,7 +332,7 @@ EXAMPLES
332
332
  $ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
333
333
  ```
334
334
 
335
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/create.ts)_
335
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/create.ts)_
336
336
 
337
337
  ## `sf agent deactivate`
338
338
 
@@ -373,7 +373,7 @@ EXAMPLES
373
373
  $ sf agent deactivate --api-name Resort_Manager --target-org my-org
374
374
  ```
375
375
 
376
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/deactivate.ts)_
376
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/deactivate.ts)_
377
377
 
378
378
  ## `sf agent generate agent-spec`
379
379
 
@@ -480,7 +480,7 @@ EXAMPLES
480
480
  $ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
481
481
  ```
482
482
 
483
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/generate/agent-spec.ts)_
483
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/generate/agent-spec.ts)_
484
484
 
485
485
  ## `sf agent generate authoring-bundle`
486
486
 
@@ -557,18 +557,22 @@ EXAMPLES
557
557
  other-package-dir/main/default --target-org my-dev-org
558
558
  ```
559
559
 
560
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/generate/authoring-bundle.ts)_
560
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/generate/authoring-bundle.ts)_
561
561
 
562
562
  ## `sf agent generate template`
563
563
 
564
- Generate an agent template from an existing agent in your DX project so you can then package the template in a managed package.
564
+ Generate an agent template from an existing agent in your DX project so you can then package the template in a second-generation managed package.
565
565
 
566
566
  ```
567
567
  USAGE
568
- $ sf agent generate template --agent-version <value> -f <value> [--json] [--flags-dir <value>] [--api-version <value>]
568
+ $ sf agent generate template -s <value> --agent-version <value> -f <value> [--json] [--flags-dir <value>] [--api-version
569
+ <value>] [-r <value>]
569
570
 
570
571
  FLAGS
571
572
  -f, --agent-file=<value> (required) Path to an agent (Bot) metadata file.
573
+ -r, --output-dir=<value> Directory where the generated BotTemplate and GenAiPlannerBundle files are saved.
574
+ -s, --source-org=<value> (required) Username or alias of the namespaced scratch org that contains the agent which
575
+ this template is based on.
572
576
  --agent-version=<value> (required) Version of the agent (BotVersion).
573
577
  --api-version=<value> Override the api version used for api requests made by this command
574
578
 
@@ -577,35 +581,45 @@ GLOBAL FLAGS
577
581
  --json Format output as json.
578
582
 
579
583
  DESCRIPTION
580
- Generate an agent template from an existing agent in your DX project so you can then package the template in a managed
581
- package.
584
+ Generate an agent template from an existing agent in your DX project so you can then package the template in a
585
+ second-generation managed package.
586
+
587
+ WARNING: This command doesn't work for agents that were created from an Agent Script file. In other words, you can't
588
+ currently package an agent template for agents that use Agent Script.
582
589
 
583
590
  At a high-level, agents are defined by the Bot, BotVersion, and GenAiPlannerBundle metadata types. The
584
591
  GenAiPlannerBundle type in turn defines the agent's topics and actions. This command uses the metadata files for these
585
- three types, located in your local DX project, to generate a BotTemplate file for a specific agent (Bot). You then use
586
- the BotTemplate file, along with the GenAiPlannerBundle file that references the BotTemplate, to package the template
587
- in a managed package that you can share between orgs or on AppExchange.
592
+ three types, located in your local DX project, to generate a BotTemplate metadata file for a specific agent (Bot). You
593
+ then use the BotTemplate metadata file, along with the GenAiPlannerBundle metadata file that references the
594
+ BotTemplate, to package the template in a managed package that you can share between orgs or on AppExchange.
588
595
 
589
596
  Use the --agent-file flag to specify the relative or full pathname of the Bot metadata file, such as
590
597
  force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml. A single Bot can have multiple
591
- BotVersions, so use the --agent-version flag to specify the version. The corresponding BotVersion file must exist
592
- locally. For example, if you specify "--agent-version 4", then the file
598
+ BotVersions, so use the --agent-version flag to specify the version. The corresponding BotVersion metadata file must
599
+ exist locally. For example, if you specify "--agent-version 4", then the file
593
600
  force-app/main/default/bots/My_Awesome_Agent/v4.botVersion-meta.xml must exist.
594
601
 
595
- The new BotTemplate file is generated in the "botTemplates" directory in your local package directory, and has the
596
- name <Agent_API_name>_v<Version>_Template.botTemplate-meta.xml, such as
597
- force-app/main/default/botTemplates/My_Awesome_Agent_v4_Template.botTemplate-meta.xml. The command displays the full
598
- pathname of the generated files when it completes.
602
+ The new BotTemplate metadata file is generated in the "botTemplates" directory in the output directory specified with
603
+ the --output-dir flag, and has the name <Agent_API_name>\_v<Version>\_Template.botTemplate-meta.xml, such as
604
+ my-package/botTemplates/My_Awesome_Agent_v4_Template.botTemplate-meta.xml. The command displays the full pathname of
605
+ the generated files when it completes.
606
+
607
+ See "Develop and Package Agent Templates Using Scratch Orgs"
608
+ (https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/dev2gp_package_agent_templates.htm) for
609
+ details about the complete process, which includes using a scratch org to create and test the agent, retrieving the
610
+ agent metadata to your DX project, running this command to create the agent template, and then packaging the template.
599
611
 
600
612
  EXAMPLES
601
- Generate an agent template from a Bot metadata file in your DX project that corresponds to the My_Awesome_Agent
602
- agent; use version 1 of the agent.
613
+ Generate an agent template from the My_Awesome_Agent Bot metadata file in your DX project and save the BotTemplate
614
+ and GenAiPlannerBundle to the specified directory; use version 1 of the agent. The agent that the template is based
615
+ on is in the org with alias "my-scratch-org":
603
616
 
604
617
  $ sf agent generate template --agent-file \
605
- force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
618
+ force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1 --output-dir \
619
+ my-package --source-org my-scratch-org
606
620
  ```
607
621
 
608
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/generate/template.ts)_
622
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/generate/template.ts)_
609
623
 
610
624
  ## `sf agent generate test-spec`
611
625
 
@@ -670,7 +684,7 @@ EXAMPLES
670
684
  force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
671
685
  ```
672
686
 
673
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/generate/test-spec.ts)_
687
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/generate/test-spec.ts)_
674
688
 
675
689
  ## `sf agent preview`
676
690
 
@@ -743,7 +757,7 @@ EXAMPLES
743
757
  $ sf agent preview --use-live-actions --apex-debug --output-dir transcripts/my-preview
744
758
  ```
745
759
 
746
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/preview.ts)_
760
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/preview.ts)_
747
761
 
748
762
  ## `sf agent preview end`
749
763
 
@@ -798,7 +812,7 @@ EXAMPLES
798
812
  $ sf agent preview end --authoring-bundle My_Local_Agent
799
813
  ```
800
814
 
801
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/preview/end.ts)_
815
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/preview/end.ts)_
802
816
 
803
817
  ## `sf agent preview send`
804
818
 
@@ -856,7 +870,7 @@ EXAMPLES
856
870
  $ sf agent preview send --utterance "what can you help me with?" --authoring-bundle My_Local_Agent
857
871
  ```
858
872
 
859
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/preview/send.ts)_
873
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/preview/send.ts)_
860
874
 
861
875
  ## `sf agent preview sessions`
862
876
 
@@ -889,7 +903,7 @@ EXAMPLES
889
903
  $ sf agent preview sessions
890
904
  ```
891
905
 
892
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/preview/sessions.ts)_
906
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/preview/sessions.ts)_
893
907
 
894
908
  ## `sf agent preview start`
895
909
 
@@ -946,7 +960,7 @@ EXAMPLES
946
960
  $ sf agent preview start --api-name My_Published_Agent
947
961
  ```
948
962
 
949
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/preview/start.ts)_
963
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/preview/start.ts)_
950
964
 
951
965
  ## `sf agent publish authoring-bundle`
952
966
 
@@ -995,7 +1009,7 @@ EXAMPLES
995
1009
  $ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-dev-org
996
1010
  ```
997
1011
 
998
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/publish/authoring-bundle.ts)_
1012
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/publish/authoring-bundle.ts)_
999
1013
 
1000
1014
  ## `sf agent test create`
1001
1015
 
@@ -1050,7 +1064,7 @@ EXAMPLES
1050
1064
  $ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
1051
1065
  ```
1052
1066
 
1053
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/test/create.ts)_
1067
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/test/create.ts)_
1054
1068
 
1055
1069
  ## `sf agent test list`
1056
1070
 
@@ -1085,7 +1099,7 @@ EXAMPLES
1085
1099
  $ sf agent test list --target-org my-org
1086
1100
  ```
1087
1101
 
1088
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/test/list.ts)_
1102
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/test/list.ts)_
1089
1103
 
1090
1104
  ## `sf agent test results`
1091
1105
 
@@ -1151,7 +1165,7 @@ FLAG DESCRIPTIONS
1151
1165
  expression when using custom evaluations.
1152
1166
  ```
1153
1167
 
1154
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/test/results.ts)_
1168
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/test/results.ts)_
1155
1169
 
1156
1170
  ## `sf agent test resume`
1157
1171
 
@@ -1224,7 +1238,7 @@ FLAG DESCRIPTIONS
1224
1238
  expression when using custom evaluations.
1225
1239
  ```
1226
1240
 
1227
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/test/resume.ts)_
1241
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/test/resume.ts)_
1228
1242
 
1229
1243
  ## `sf agent test run`
1230
1244
 
@@ -1298,7 +1312,7 @@ FLAG DESCRIPTIONS
1298
1312
  expression when using custom evaluations.
1299
1313
  ```
1300
1314
 
1301
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/test/run.ts)_
1315
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/test/run.ts)_
1302
1316
 
1303
1317
  ## `sf agent validate authoring-bundle`
1304
1318
 
@@ -1345,7 +1359,7 @@ EXAMPLES
1345
1359
  $ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
1346
1360
  ```
1347
1361
 
1348
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.10/src/commands/agent/validate/authoring-bundle.ts)_
1362
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.32.11/src/commands/agent/validate/authoring-bundle.ts)_
1349
1363
 
1350
1364
  ## `sf alias list`
1351
1365
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
- "version": "2.129.7",
3
+ "version": "2.129.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/cli",
9
- "version": "2.129.7",
9
+ "version": "2.129.8",
10
10
  "hasInstallScript": true,
11
11
  "license": "Apache-2.0",
12
12
  "dependencies": {
@@ -24,7 +24,7 @@
24
24
  "@oclif/plugin-which": "3.2.46",
25
25
  "@salesforce/core": "^8.25.0",
26
26
  "@salesforce/kit": "^3.1.6",
27
- "@salesforce/plugin-agent": "1.32.10",
27
+ "@salesforce/plugin-agent": "1.32.11",
28
28
  "@salesforce/plugin-apex": "3.9.15",
29
29
  "@salesforce/plugin-api": "1.3.12",
30
30
  "@salesforce/plugin-auth": "4.3.2",
@@ -5008,9 +5008,9 @@
5008
5008
  }
5009
5009
  },
5010
5010
  "node_modules/@salesforce/plugin-agent": {
5011
- "version": "1.32.10",
5012
- "resolved": "https://registry.npmjs.org/@salesforce/plugin-agent/-/plugin-agent-1.32.10.tgz",
5013
- "integrity": "sha512-oH0KqvaTgPf6QJTymmBG1d3yVvBBVvjNZ/6z6T7b6HqAntiWEQDFslcqwSPN0o6YwF4vE0FxV6YokHiTmmXqvA==",
5011
+ "version": "1.32.11",
5012
+ "resolved": "https://registry.npmjs.org/@salesforce/plugin-agent/-/plugin-agent-1.32.11.tgz",
5013
+ "integrity": "sha512-KnLhu0St/EowKXBYBj5WXtF76lF3HOPodDPL579e+lCGfZpWlOCU+V4j13/krtlZK/FlG4mvhEs/4I+xrp/0TQ==",
5014
5014
  "license": "Apache-2.0",
5015
5015
  "dependencies": {
5016
5016
  "@inquirer/core": "^10.3.2",
package/oclif.lock CHANGED
@@ -2188,10 +2188,10 @@
2188
2188
  jszip "^3.10.1"
2189
2189
  object-treeify "^2"
2190
2190
 
2191
- "@salesforce/plugin-agent@1.32.10":
2192
- version "1.32.10"
2193
- resolved "https://registry.npmjs.org/@salesforce/plugin-agent/-/plugin-agent-1.32.10.tgz"
2194
- integrity sha512-oH0KqvaTgPf6QJTymmBG1d3yVvBBVvjNZ/6z6T7b6HqAntiWEQDFslcqwSPN0o6YwF4vE0FxV6YokHiTmmXqvA==
2191
+ "@salesforce/plugin-agent@1.32.11":
2192
+ version "1.32.11"
2193
+ resolved "https://registry.npmjs.org/@salesforce/plugin-agent/-/plugin-agent-1.32.11.tgz"
2194
+ integrity sha512-KnLhu0St/EowKXBYBj5WXtF76lF3HOPodDPL579e+lCGfZpWlOCU+V4j13/krtlZK/FlG4mvhEs/4I+xrp/0TQ==
2195
2195
  dependencies:
2196
2196
  "@inquirer/core" "^10.3.2"
2197
2197
  "@inquirer/prompts" "^7.10.1"
@@ -4435,5 +4435,5 @@
4435
4435
  "requiresProject": true
4436
4436
  }
4437
4437
  },
4438
- "version": "2.129.7"
4438
+ "version": "2.129.8"
4439
4439
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
3
  "description": "The Salesforce CLI",
4
- "version": "2.129.7",
4
+ "version": "2.129.8",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "sf": "./bin/run.js",
@@ -77,7 +77,7 @@
77
77
  ],
78
78
  "jitPlugins": {
79
79
  "@salesforce/plugin-code-analyzer": "5.11.0",
80
- "@salesforce/plugin-community": "3.3.49",
80
+ "@salesforce/plugin-community": "3.3.51",
81
81
  "@salesforce/plugin-custom-metadata": "3.3.88",
82
82
  "@salesforce/plugin-dev": "2.5.2",
83
83
  "@salesforce/plugin-devops-center": "1.2.27",
@@ -158,7 +158,7 @@
158
158
  "@oclif/plugin-which": "3.2.46",
159
159
  "@salesforce/core": "^8.25.0",
160
160
  "@salesforce/kit": "^3.1.6",
161
- "@salesforce/plugin-agent": "1.32.10",
161
+ "@salesforce/plugin-agent": "1.32.11",
162
162
  "@salesforce/plugin-apex": "3.9.15",
163
163
  "@salesforce/plugin-api": "1.3.12",
164
164
  "@salesforce/plugin-auth": "4.3.2",