@salesforce/plugin-agent 1.24.35 → 1.25.0

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.
Files changed (74) hide show
  1. package/LICENSE.txt +200 -6
  2. package/README.md +240 -55
  3. package/lib/agentActivation.js +13 -4
  4. package/lib/agentActivation.js.map +1 -1
  5. package/lib/agentTestCache.js +13 -4
  6. package/lib/agentTestCache.js.map +1 -1
  7. package/lib/commands/agent/activate.js +13 -4
  8. package/lib/commands/agent/activate.js.map +1 -1
  9. package/lib/commands/agent/create.js +13 -4
  10. package/lib/commands/agent/create.js.map +1 -1
  11. package/lib/commands/agent/deactivate.js +13 -4
  12. package/lib/commands/agent/deactivate.js.map +1 -1
  13. package/lib/commands/agent/generate/agent-spec.js +13 -4
  14. package/lib/commands/agent/generate/agent-spec.js.map +1 -1
  15. package/lib/commands/agent/generate/authoring-bundle.d.ts +23 -0
  16. package/lib/commands/agent/generate/authoring-bundle.js +140 -0
  17. package/lib/commands/agent/generate/authoring-bundle.js.map +1 -0
  18. package/lib/commands/agent/generate/template.js +13 -4
  19. package/lib/commands/agent/generate/template.js.map +1 -1
  20. package/lib/commands/agent/generate/test-spec.js +13 -4
  21. package/lib/commands/agent/generate/test-spec.js.map +1 -1
  22. package/lib/commands/agent/preview.d.ts +6 -12
  23. package/lib/commands/agent/preview.js +130 -67
  24. package/lib/commands/agent/preview.js.map +1 -1
  25. package/lib/commands/agent/publish/authoring-bundle.d.ts +20 -0
  26. package/lib/commands/agent/publish/authoring-bundle.js +154 -0
  27. package/lib/commands/agent/publish/authoring-bundle.js.map +1 -0
  28. package/lib/commands/agent/test/create.js +13 -4
  29. package/lib/commands/agent/test/create.js.map +1 -1
  30. package/lib/commands/agent/test/list.js +13 -4
  31. package/lib/commands/agent/test/list.js.map +1 -1
  32. package/lib/commands/agent/test/results.js +13 -4
  33. package/lib/commands/agent/test/results.js.map +1 -1
  34. package/lib/commands/agent/test/resume.js +13 -4
  35. package/lib/commands/agent/test/resume.js.map +1 -1
  36. package/lib/commands/agent/test/run.js +14 -4
  37. package/lib/commands/agent/test/run.js.map +1 -1
  38. package/lib/commands/agent/validate/authoring-bundle.d.ts +19 -0
  39. package/lib/commands/agent/validate/authoring-bundle.js +128 -0
  40. package/lib/commands/agent/validate/authoring-bundle.js.map +1 -0
  41. package/lib/common.d.ts +8 -0
  42. package/lib/common.js +39 -0
  43. package/lib/common.js.map +1 -0
  44. package/lib/components/agent-preview-react.d.ts +9 -2
  45. package/lib/components/agent-preview-react.js +188 -62
  46. package/lib/components/agent-preview-react.js.map +1 -1
  47. package/lib/flags.d.ts +6 -2
  48. package/lib/flags.js +55 -20
  49. package/lib/flags.js.map +1 -1
  50. package/lib/handleTestResults.js +13 -4
  51. package/lib/handleTestResults.js.map +1 -1
  52. package/lib/index.js +13 -4
  53. package/lib/index.js.map +1 -1
  54. package/lib/inquirer-theme.js +13 -4
  55. package/lib/inquirer-theme.js.map +1 -1
  56. package/lib/testStages.js +13 -4
  57. package/lib/testStages.js.map +1 -1
  58. package/lib/yes-no-cancel.js +13 -4
  59. package/lib/yes-no-cancel.js.map +1 -1
  60. package/messages/agent.create.md +2 -0
  61. package/messages/agent.generate.agent-spec.md +2 -2
  62. package/messages/agent.generate.authoring-bundle.md +69 -0
  63. package/messages/agent.preview.md +25 -12
  64. package/messages/agent.publish.authoring-bundle.md +50 -0
  65. package/messages/agent.test.run.md +4 -0
  66. package/messages/agent.validate.authoring-bundle.md +50 -0
  67. package/oclif.manifest.json +311 -10
  68. package/package.json +17 -10
  69. package/schemas/agent-generate-agent__spec.json +1 -1
  70. package/schemas/agent-generate-authoring__bundle.json +22 -0
  71. package/schemas/agent-publish-authoring__bundle.json +25 -0
  72. package/schemas/agent-validate-authoring__bundle.json +22 -0
  73. package/npm-shrinkwrap.json +0 -17457
  74. package/oclif.lock +0 -9156
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # plugin-agent
2
2
 
3
- [![NPM](https://img.shields.io/npm/v/@salesforce/plugin-agent.svg?label=@salesforce/plugin-agent)](https://www.npmjs.com/package/@salesforce/plugin-agent) [![Downloads/week](https://img.shields.io/npm/dw/@salesforce/plugin-agent.svg)](https://npmjs.org/package/@salesforce/plugin-agent) [![License](https://img.shields.io/badge/License-BSD%203--Clause-brightgreen.svg)](https://raw.githubusercontent.com/salesforcecli/plugin-agent/main/LICENSE.txt)
3
+ [![NPM](https://img.shields.io/npm/v/@salesforce/plugin-agent.svg?label=@salesforce/plugin-agent)](https://www.npmjs.com/package/@salesforce/plugin-agent) [![Downloads/week](https://img.shields.io/npm/dw/@salesforce/plugin-agent.svg)](https://npmjs.org/package/@salesforce/plugin-agent) [![License](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://opensource.org/license/apache-2-0)
4
4
 
5
5
  ## Install
6
6
 
@@ -63,14 +63,17 @@ sf plugins
63
63
  - [`sf agent create`](#sf-agent-create)
64
64
  - [`sf agent deactivate`](#sf-agent-deactivate)
65
65
  - [`sf agent generate agent-spec`](#sf-agent-generate-agent-spec)
66
+ - [`sf agent generate authoring-bundle`](#sf-agent-generate-authoring-bundle)
66
67
  - [`sf agent generate template`](#sf-agent-generate-template)
67
68
  - [`sf agent generate test-spec`](#sf-agent-generate-test-spec)
68
69
  - [`sf agent preview`](#sf-agent-preview)
70
+ - [`sf agent publish authoring-bundle`](#sf-agent-publish-authoring-bundle)
69
71
  - [`sf agent test create`](#sf-agent-test-create)
70
72
  - [`sf agent test list`](#sf-agent-test-list)
71
73
  - [`sf agent test results`](#sf-agent-test-results)
72
74
  - [`sf agent test resume`](#sf-agent-test-resume)
73
75
  - [`sf agent test run`](#sf-agent-test-run)
76
+ - [`sf agent validate authoring-bundle`](#sf-agent-validate-authoring-bundle)
74
77
 
75
78
  ## `sf agent activate`
76
79
 
@@ -109,7 +112,7 @@ EXAMPLES
109
112
  $ sf agent activate --api-name Resort_Manager --target-org my-org
110
113
  ```
111
114
 
112
- _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/src/commands/agent/activate.ts)_
115
+ _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/activate.ts)_
113
116
 
114
117
  ## `sf agent create`
115
118
 
@@ -137,6 +140,11 @@ GLOBAL FLAGS
137
140
  DESCRIPTION
138
141
  Create an agent in your org using a local agent spec file.
139
142
 
143
+ NOTE: This command creates an agent that doesn't use Agent Script as its blueprint. We generally don't recommend you
144
+ use this workflow to create an agent. Rather, use the "agent generate|validate|publish authoring-bundle" commands to
145
+ author agents that use the Agent Script language. See "Author an Agent"
146
+ (https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-nga-author-agent.html) for details.
147
+
140
148
  To run this command, you must have an agent spec file, which is a YAML file that define the agent properties and
141
149
  contains a list of AI-generated topics. Topics define the range of jobs the agent can handle. Use the "agent generate
142
150
  agent-spec" CLI command to generate an agent spec file. Then specify the file to this command using the --spec flag,
@@ -171,7 +179,7 @@ EXAMPLES
171
179
  $ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
172
180
  ```
173
181
 
174
- _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/src/commands/agent/create.ts)_
182
+ _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/create.ts)_
175
183
 
176
184
  ## `sf agent deactivate`
177
185
 
@@ -211,7 +219,7 @@ EXAMPLES
211
219
  $ sf agent deactivate --api-name Resort_Manager --target-org my-org
212
220
  ```
213
221
 
214
- _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/src/commands/agent/deactivate.ts)_
222
+ _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/deactivate.ts)_
215
223
 
216
224
  ## `sf agent generate agent-spec`
217
225
 
@@ -262,10 +270,9 @@ GLOBAL FLAGS
262
270
  DESCRIPTION
263
271
  Generate an agent spec, which is a YAML file that captures what an agent can do.
264
272
 
265
- The first step in creating an agent in your org with Salesforce CLI is to generate an agent spec using this command.
266
- An agent spec is a YAML-formatted file that contains information about the agent, such as its role and company
267
- description, and then an AI-generated list of topics based on this information. Topics define the range of jobs your
268
- agent can handle.
273
+ An agent spec is a YAML-formatted file that contains basic information about the agent, such as its role, company
274
+ description, and an AI-generated list of topics based on this information. Topics define the range of jobs your agent
275
+ can handle.
269
276
 
270
277
  Use flags, such as --role and --company-description, to provide details about your company and the role that the agent
271
278
  plays in your company. If you prefer, you can also be prompted for the basic information; use --full-interview to be
@@ -283,8 +290,11 @@ DESCRIPTION
283
290
  add context to the agent's prompts, the tone of the prompts, and the username of a user in the org to assign to the
284
291
  agent.
285
292
 
286
- When your agent spec is ready, you then create the agent in your org by running the "agent create" CLI command and
287
- specifying the spec with the --spec flag.
293
+ When your agent spec is ready, generate an authoring bundle from it by passing the spec file to the --spec flag of the
294
+ "agent generate authoring-bundle" CLI command. An authoring bundle is a metadata type that contains an Agent Script
295
+ file, which is the blueprint for an agent. (While not recommended, you can also use the agent spec file to immediately
296
+ create an agent with the "agent create" command. We don't recommend this workflow because these types of agents don't
297
+ use Agent Script, and are thus less flexible and more difficult to maintain.)
288
298
 
289
299
  EXAMPLES
290
300
  Generate an agent spec in the default location and use flags to specify the agent properties, such as its role and
@@ -316,7 +326,73 @@ EXAMPLES
316
326
  $ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
317
327
  ```
318
328
 
319
- _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/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.25.0/src/commands/agent/generate/agent-spec.ts)_
330
+
331
+ ## `sf agent generate authoring-bundle`
332
+
333
+ Generate an authoring bundle from an existing agent spec YAML file.
334
+
335
+ ```
336
+ USAGE
337
+ $ sf agent generate authoring-bundle -o <value> [--json] [--flags-dir <value>] [--api-name <value>] [--api-version <value>] [-f
338
+ <value>] [-d <value>] [-n <value>]
339
+
340
+ FLAGS
341
+ -d, --output-dir=<value> Directory where the authoring bundle files are generated.
342
+ -f, --spec=<value> Path to the agent spec YAML file; if not specified, the command provides a list that you
343
+ can choose from.
344
+ -n, --name=<value> Name (label) of the authoring bundle; if not specified, you're prompted for the name.
345
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
346
+ configuration variable is already set.
347
+ --api-name=<value> API name of the new authoring bundle; if not specified, the API name is derived from the
348
+ authoring bundle name (label); the API name can't exist in the org.
349
+ --api-version=<value> Override the api version used for api requests made by this command
350
+
351
+ GLOBAL FLAGS
352
+ --flags-dir=<value> Import flag values from a directory.
353
+ --json Format output as json.
354
+
355
+ DESCRIPTION
356
+ Generate an authoring bundle from an existing agent spec YAML file.
357
+
358
+ Authoring bundles are metadata components that contain an agent's Agent Script file. The Agent Script file is the
359
+ agent's blueprint; it fully describes what the agent can do using the Agent Script language.
360
+
361
+ Use this command to generate a new authoring bundle based on an agent spec YAML file, which you create with the "agent
362
+ generate agent-spec" command. The agent spec YAML file is a high-level description of the agent; it describes its
363
+ essence rather than exactly what it can do.
364
+
365
+ The metadata type for authoring bundles is aiAuthoringBundle, which consist of a standard
366
+ "<bundle-api-name>.bundle-meta.xml" metadata file and the Agent Script file (with extension ".agent"). When you run
367
+ this command, the new authoring bundle is generated in the force-app/main/default/aiAuthoringBundles/<bundle-api-name>
368
+ directory. Use the --output-dir flag to generate them elsewhere.
369
+
370
+ After you generate the initial authoring bundle, code the Agent Script file so your agent behaves exactly as you want.
371
+ The Agent Script file generated by this command is just a first draft of your agent! Interactively test the agent by
372
+ conversing with it using the "agent preview" command. Then publish the agent to your org with the "agent publish
373
+ authoring-bundle" command.
374
+
375
+ This command requires an org because it uses it to access an LLM for generating the Agent Script file.
376
+
377
+ EXAMPLES
378
+ Generate an authoring bundle by being prompted for all required values, such as the agent spec YAML file, the bundle
379
+ name, and the API name; use your default org:
380
+
381
+ $ sf agent generate authoring-bundle
382
+
383
+ Generate an authoring bundle from the "specs/agentSpec.yaml" agent spec YAML file and give it the label "My
384
+ Authoring Bundle"; use your default org:
385
+
386
+ $ sf agent generate authoring-bundle --spec specs/agentSpec.yaml --name "My Authoring Bundle"
387
+
388
+ Similar to previous example, but generate the authoring bundle files in the "other-package-dir/main/default" package
389
+ directory; use the org with alias "my-dev-org":
390
+
391
+ $ sf agent generate authoring-bundle --spec specs/agentSpec.yaml --name "My Authoring Bundle" --output-dir \
392
+ other-package-dir/main/default --target-org my-dev-org
393
+ ```
394
+
395
+ _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/generate/authoring-bundle.ts)_
320
396
 
321
397
  ## `sf agent generate template`
322
398
 
@@ -364,7 +440,7 @@ EXAMPLES
364
440
  force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
365
441
  ```
366
442
 
367
- _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/src/commands/agent/generate/template.ts)_
443
+ _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/generate/template.ts)_
368
444
 
369
445
  ## `sf agent generate test-spec`
370
446
 
@@ -425,71 +501,133 @@ EXAMPLES
425
501
  force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
426
502
  ```
427
503
 
428
- _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/src/commands/agent/generate/test-spec.ts)_
504
+ _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/generate/test-spec.ts)_
429
505
 
430
506
  ## `sf agent preview`
431
507
 
432
- Interact with an active agent to preview how the agent responds to your statements, questions, and commands (utterances).
508
+ Interact with an agent to preview how it responds to your statements, questions, and commands (utterances).
433
509
 
434
510
  ```
435
511
  USAGE
436
- $ sf agent preview (-c <value> -o <value>) [--flags-dir <value>] [--api-version <value>] [-n <value>] [-d
437
- <value>] [-x]
512
+ $ sf agent preview [--flags-dir <value>] [--api-version <value>] (-c <value> -o <value>) [-n <value>]
513
+ [--authoring-bundle <value>] [-d <value>] [-x] [--use-live-actions]
438
514
 
439
515
  FLAGS
440
- -c, --client-app=<value> (required) Name of the linked client app to use for the agent connection. You must have
441
- previously created this link with "org login web --client-app". Run "org display" to see
442
- the available linked client apps.
443
- -d, --output-dir=<value> Directory where conversation transcripts are saved.
444
- -n, --api-name=<value> API name of the agent you want to interact with.
445
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
446
- configuration variable is already set.
447
- -x, --apex-debug Enable Apex debug logging during the agent preview conversation.
448
- --api-version=<value> Override the api version used for api requests made by this command
516
+ -c, --client-app=<value> Name of the linked client app to use for the connection to the published and active
517
+ agent.
518
+ -d, --output-dir=<value> Directory where conversation transcripts are saved.
519
+ -n, --api-name=<value> API name of the published and active agent you want to interact with.
520
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
521
+ configuration variable is already set.
522
+ -x, --apex-debug Enable Apex debug logging during the agent preview conversation.
523
+ --api-version=<value> Override the api version used for api requests made by this command
524
+ --authoring-bundle=<value> API name of the authoring bundle metadata component that contains the agent's Agent
525
+ Script file.
526
+ --use-live-actions Use real actions in the org; if not specified, preview uses AI to simulate (mock)
527
+ actions.
449
528
 
450
529
  GLOBAL FLAGS
451
530
  --flags-dir=<value> Import flag values from a directory.
452
531
 
453
532
  DESCRIPTION
454
- Interact with an active agent to preview how the agent responds to your statements, questions, and commands
455
- (utterances).
533
+ Interact with an agent to preview how it responds to your statements, questions, and commands (utterances).
456
534
 
457
- Use this command to have a natural language conversation with an active agent in your org, as if you were an actual
458
- user. The interface is simple: in the "Start typing..." prompt, enter a statement, question, or command; when you're
459
- done, enter Return. Your utterance is posted on the right along with a timestamp. The agent then responds on the left.
460
- To exit the conversation, hit ESC or Control+C.
535
+ Use this command to have a natural language conversation with an agent while you code its Agent Script file.
536
+ Previewing an agent works like an initial test to make sure it responds to your utterances as you expect. For example,
537
+ you can test that the agent uses a particular topic when asked a question, and then whether it invokes the correct
538
+ action associated with that topic. This command is the CLI-equivalent of the Preview panel in your org's Agentforce
539
+ Builder UI.
461
540
 
462
- This command is useful to test if the agent responds to your utterances as you expect. For example, you can test that
463
- the agent uses a particular topic when asked a question, and then whether it invokes the correct action associated
464
- with that topic. This command is the CLI-equivalent of the Conversation Preview panel in your org's Agent Builder UI.
541
+ This command uses the agent's local authoring bundle, which contains its Agent Script file. You can let the command
542
+ provide a list of authoring bundles (labeled "(Agent Script)") to choose from or use the --authoring-bundle flag to
543
+ specify a bundle's API name.
544
+
545
+ You can use these two modes when previewing an agent from its Agent Script file:
546
+
547
+ - Simulated mode (Default): Uses only the Agent Script file to converse, and it simulates (mocks) all the actions. Use
548
+ this mode if none of the Apex classes, flows, and prompt templates that implement your actions are available yet. The
549
+ LLM uses the information about topics in the Agent Script file to simulate what the action does or how it responds.
550
+ - Live mode: Uses the actual Apex classes, flows, and prompt templates in your development org in the agent preview.
551
+ If you've changed the Apex classe, flows, or prompt templates in your local DX project, then you must deploy them to
552
+ your development org if you want to use them in your live preview. You can use the Apex Replay Debugger to debug your
553
+ Apex classes when using live mode.
554
+
555
+ The interface is simple: in the "Start typing..." prompt, enter a statement, question, or command; when you're done,
556
+ enter Return. Your utterance is posted on the right along with a timestamp. The agent then responds on the left. To
557
+ exit the conversation, hit ESC or Control+C.
465
558
 
466
559
  When the session concludes, the command asks if you want to save the API responses and chat transcripts. By default,
467
- the files are saved to the "./temp/agent-preview" directory. Specify a new default directory by setting the
468
- environment variable "SF_AGENT_PREVIEW_OUTPUT_DIR" to the directory. Or you can pass the directory to the --output-dir
560
+ the files are saved to the "./temp/agent-preview" directory. Specify a new default directory with the --output-dir
469
561
  flag.
470
562
 
471
- Find the agent's API name in its Agent Details page of your org's Agentforce Studio UI in Setup. If your agent is
472
- currently deactivated, use the "agent activate" CLI command to activate it.
563
+ NOTE: You can also use this command to connect to a published and active agent, which are labeled "(Published)" if you
564
+ let this command provide the list of agents to preview. That use case, however, requires additional security and
565
+ configuration in both your org and your DX project. The examples in this help are for previewing an agent from its
566
+ Agent Script file in your DX project and require only simple authorization of your org, such as with the "org login
567
+ web" command. The --client-app and --api-name flags are used only for previewing published and active agents, they
568
+ don't apply to Agent Script agents. See "Connect to a Published Agent" in the "Agentforce Developer Guide" for
569
+ complete documentation: https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-preview.html.
570
+
571
+ EXAMPLES
572
+ Preview an agent in simulated mode by choosing from a list of authoring bundles provided by the command; use the org
573
+ with alias "my-dev-org":
574
+
575
+ $ sf agent preview --target-org my-dev-org
576
+
577
+ Preview an agent in live mode by choosing from a list of authoring bundles. Save the conversation transcripts to the
578
+ "./transcripts/my-preview" directory, enable the Apex debug logs, and use your default org:
579
+
580
+ $ sf agent preview --use-live-actions --apex-debug --output-dir transcripts/my-preview
581
+ ```
582
+
583
+ _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/preview.ts)_
584
+
585
+ ## `sf agent publish authoring-bundle`
473
586
 
474
- IMPORTANT: Before you use this command, you must complete a number of configuration steps in your org and your DX
475
- project. The examples in this help assume you've completed the steps. See "Preview an Agent" in the "Agentforce
476
- Developer Guide" for complete documentation:
477
- https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-preview.html.
587
+ Publish an authoring bundle to your org, which results in a new agent or a new version of an existing agent.
588
+
589
+ ```
590
+ USAGE
591
+ $ sf agent publish authoring-bundle -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>]
592
+
593
+ FLAGS
594
+ -n, --api-name=<value> API name of the authoring bundle you want to publish; if not specified, the command
595
+ provides a list that you can choose from.
596
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
597
+ configuration variable is already set.
598
+ --api-version=<value> Override the api version used for api requests made by this command
599
+
600
+ GLOBAL FLAGS
601
+ --flags-dir=<value> Import flag values from a directory.
602
+ --json Format output as json.
603
+
604
+ DESCRIPTION
605
+ Publish an authoring bundle to your org, which results in a new agent or a new version of an existing agent.
606
+
607
+ An authoring bundle is a metadata type (named aiAuthoringBundle) that provides the blueprint for an agent. The
608
+ metadata type contains two files: the standard metatada XML file and an Agent Script file (extension ".agent") that
609
+ fully describes the agent using the Agent Script language.
610
+
611
+ When you publish an authoring bundle to your org, a number of things happen. First, this command validates that the
612
+ Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent
613
+ Script file to continue. Once the Agent Script file compiles, then it's published to the org, which in turn creates
614
+ new associated metadata (Bot, BotVersion, GenAiX), or new versions of the metadata if the agent already exists. The
615
+ new or updated metadata is retrieved back to your DX project, and then the authoring bundle metadata
616
+ (AiAuthoringBundle) is deployed to your org.
617
+
618
+ This command uses the API name of the authoring bundle.
478
619
 
479
620
  EXAMPLES
480
- Interact with an agent with API name Resort_Manager in the org with alias "my-org" and the linked "agent-app"
481
- connected app:
621
+ Publish an authoring bundle by being prompted for its API name; use your default org:
482
622
 
483
- $ sf agent preview --api-name Resort_Manager --target-org my-org --client-app agent-app
623
+ $ sf agent publish authoring-bundle
484
624
 
485
- Same as the preceding example, but this time save the conversation transcripts to the "./transcripts/my-preview"
486
- directory rather than the default "./temp/agent-preview":
625
+ Publish an authoring bundle with API name MyAuthoringBundle to the org with alias "my-dev-org":
487
626
 
488
- $ sf agent preview --api-name Resort_Manager --target-org my-org --client-app agent-app --output-dir \
489
- transcripts/my-preview
627
+ $ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-dev-org
490
628
  ```
491
629
 
492
- _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/src/commands/agent/preview.ts)_
630
+ _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/publish/authoring-bundle.ts)_
493
631
 
494
632
  ## `sf agent test create`
495
633
 
@@ -544,7 +682,7 @@ EXAMPLES
544
682
  $ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
545
683
  ```
546
684
 
547
- _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/src/commands/agent/test/create.ts)_
685
+ _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/test/create.ts)_
548
686
 
549
687
  ## `sf agent test list`
550
688
 
@@ -579,7 +717,7 @@ EXAMPLES
579
717
  $ sf agent test list --target-org my-org
580
718
  ```
581
719
 
582
- _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/src/commands/agent/test/list.ts)_
720
+ _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/test/list.ts)_
583
721
 
584
722
  ## `sf agent test results`
585
723
 
@@ -645,7 +783,7 @@ FLAG DESCRIPTIONS
645
783
  expression when using custom evaluations.
646
784
  ```
647
785
 
648
- _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/src/commands/agent/test/results.ts)_
786
+ _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/test/results.ts)_
649
787
 
650
788
  ## `sf agent test resume`
651
789
 
@@ -718,7 +856,7 @@ FLAG DESCRIPTIONS
718
856
  expression when using custom evaluations.
719
857
  ```
720
858
 
721
- _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/src/commands/agent/test/resume.ts)_
859
+ _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/test/resume.ts)_
722
860
 
723
861
  ## `sf agent test run`
724
862
 
@@ -792,6 +930,53 @@ FLAG DESCRIPTIONS
792
930
  expression when using custom evaluations.
793
931
  ```
794
932
 
795
- _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.24.35/src/commands/agent/test/run.ts)_
933
+ _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/test/run.ts)_
934
+
935
+ ## `sf agent validate authoring-bundle`
936
+
937
+ Validate an authoring bundle to ensure its Agent Script file compiles successfully and can be used to publish an agent.
938
+
939
+ ```
940
+ USAGE
941
+ $ sf agent validate authoring-bundle -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>]
942
+
943
+ FLAGS
944
+ -n, --api-name=<value> API name of the authoring bundle you want to validate; if not specified, the command
945
+ provides a list that you can choose from.
946
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
947
+ configuration variable is already set.
948
+ --api-version=<value> Override the api version used for api requests made by this command
949
+
950
+ GLOBAL FLAGS
951
+ --flags-dir=<value> Import flag values from a directory.
952
+ --json Format output as json.
953
+
954
+ DESCRIPTION
955
+ Validate an authoring bundle to ensure its Agent Script file compiles successfully and can be used to publish an
956
+ agent.
957
+
958
+ An authoring bundle is a metadata type (named aiAuthoringBundle) that provides the blueprint for an agent. The
959
+ metadata type contains two files: the standard metatada XML file and an Agent Script file (extension ".agent") that
960
+ fully describes the agent using the Agent Script language.
961
+
962
+ This command validates that the Agent Script file in the authoring bundle compiles without errors so that you can
963
+ later publish the bundle to your org. Use this command while you code the Agent Script file to ensure that it's valid.
964
+ If the validation fails, the command outputs the list of syntax errors, a brief description of the error, and the
965
+ location in the Agent Script file where the error occurred.
966
+
967
+ This command uses the API name of the authoring bundle. If you don't provide an API name with the --api-name flag, the
968
+ command searches the current DX project and outputs a list of authoring bundles that it found for you to choose from.
969
+
970
+ EXAMPLES
971
+ Validate an authoring bundle by being prompted for its API name; use your default org:
972
+
973
+ $ sf agent validate authoring-bundle
974
+
975
+ Validate an authoring bundle with API name MyAuthoringBundle; use the org with alias "my-dev-org":
976
+
977
+ $ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
978
+ ```
979
+
980
+ _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.25.0/src/commands/agent/validate/authoring-bundle.ts)_
796
981
 
797
982
  <!-- commandsstop -->
@@ -1,8 +1,17 @@
1
1
  /*
2
- * Copyright (c) 2024, salesforce.com, inc.
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
2
+ * Copyright 2025, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
6
15
  */
7
16
  import { Messages, SfError } from '@salesforce/core';
8
17
  import { Agent } from '@salesforce/agents';
@@ -1 +1 @@
1
- {"version":3,"file":"agentActivation.js","sourceRoot":"","sources":["../src/agentActivation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAc,QAAQ,EAAO,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,KAAK,EAAoB,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAY3C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,k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ACL,CAAC;IAED,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;QACxB,MAAM,QAAQ,CAAC,WAAW,CAAC,qBAAqB,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAC/E,CAAC;IAED,IAAI,aAAsC,CAAC;IAE3C,IAAI,WAAW,EAAE,CAAC;QAChB,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,KAAK,WAAW,CAAC,CAAC;QACjF,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,MAAM,QAAQ,CAAC,WAAW,CAAC,yBAAyB,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QAChG,CAAC;QACD,aAAa,CAAC,aAAa,CAAC,CAAC;IAC/B,CAAC;SAAM,CAAC;QACN,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC;YAC/B,OAAO,EAAE,iBAAiB;YAC1B,OAAO,EAAE,eAAe,CAAC,WAAW,EAAE,MAAM,CAAC;SAC9C,CAAC,CAAC;QACH,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,KAAK,WAAW,CAAC,aAAa,CAAC,CAAC;IACjG,CAAC;IAED,OAAO,IAAI,KAAK,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAc,CAAC,EAAE,EAAE,CAAC,CAAC;AACtE,CAAC,CAAC"}
@@ -1,8 +1,17 @@
1
1
  /*
2
- * Copyright (c) 2024, salesforce.com, inc.
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
2
+ * Copyright 2025, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
6
15
  */
7
16
  import { Global, SfError, TTLConfig } from '@salesforce/core';
8
17
  import { Duration } from '@salesforce/kit';
@@ -1 +1 @@
1
- {"version":3,"file":"agentTestCache.js","sourceRoot":"","sources":["../src/agentTestCache.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAW3C,MAAM,OAAO,cAAe,SAAQ,SAA2C;IACtE,MAAM,CAAC,WAAW;QACvB,OAAO,uBAAuB,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,iBAAiB;QAC7B,OAAO;YACL,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,cAAc,CAAC,WAAW,EAAE;YACtC,WAAW,EAAE,MAAM,CAAC,eAAe;YACnC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;SACtB,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAC3B,KAAa,EACb,IAAY,EACZ,SAAkB,EAClB,YAA2B;QAE3B,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,OAAO,CAAC,2CAA2C,CAAC,CAAC;QAE3E,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAC,KAAa;QACzC,I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AAC;QAC3E,CAAC;QAED,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;QACvD,CAAC;QAED,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;CACF"}
@@ -1,8 +1,17 @@
1
1
  /*
2
- * Copyright (c) 2024, salesforce.com, inc.
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
2
+ * Copyright 2025, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
6
15
  */
7
16
  import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
8
17
  import { Messages } from '@salesforce/core';
@@ -1 +1 @@
1
- {"version":3,"file":"activate.js","sourceRoot":"","sources":["../../../src/commands/agent/activate.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,E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AAC,CAAC;QACtC,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;QACtC,MAAM,IAAI,GAAG,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QAE3D,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACvC,MAAM,QAAQ,CAAC,WAAW,CAAC,4BAA4B,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;QACzE,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,qBAAqB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC;QAC9F,MAAM,KAAK,CAAC,QAAQ,EAAE,CAAC;QACvB,MAAM,SAAS,GAAG,CAAC,MAAM,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,aAAa,CAAC;QAE/D,IAAI,CAAC,GAAG,CAAC,SAAS,SAAS,aAAa,CAAC,CAAC;IAC5C,CAAC"}
@@ -1,8 +1,17 @@
1
1
  /*
2
- * Copyright (c) 2024, salesforce.com, inc.
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
2
+ * Copyright 2025, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
6
15
  */
7
16
  import { resolve } from 'node:path';
8
17
  import { existsSync, readFileSync, writeFileSync } from 'node:fs';
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRo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