@salesforce/plugin-agent 1.38.0 → 1.39.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.
@@ -6,7 +6,9 @@ End an existing programmatic agent preview session and get trace location.
6
6
 
7
7
  You must have previously started a programmatic agent preview session with the "agent preview start" command to then use this command to end it. This command also displays the local directory where the session trace files are stored.
8
8
 
9
- The original "agent preview start" command outputs a session ID which you then use with the --session-id flag of this command to end the session. You don't have to specify the --session-id flag if an agent has only one active preview session. You must also use either the --authoring-bundle or --api-name flag to specify the API name of the authoring bundle or the published agent, respecitvely. To find either API name, navigate to your package directory in your DX project. The API name of an authoring bundle is the same as its directory name under the "aiAuthoringBundles" metadata directory. Similarly, the published agent's API name is the same as its directory name under the "Bots" metadata directory.
9
+ The original "agent preview start" command outputs a session ID which you then use with the --session-id flag of this command to end the session. You don't have to specify the --session-id flag if an agent has only one active preview session. You must also use either the --authoring-bundle or --api-name flag to specify the API name of the authoring bundle or the published agent, respectively. To find either API name, navigate to your package directory in your DX project. The API name of an authoring bundle is the same as its directory name under the "aiAuthoringBundles" metadata directory. Similarly, the published agent's API name is the same as its directory name under the "Bots" metadata directory.
10
+
11
+ Use the --all flag to end all active preview sessions at once. You can combine --all with --api-name or --authoring-bundle to end only sessions for a specific agent, or use --all on its own to end every session across all agents in the project.
10
12
 
11
13
  # flags.session-id.summary
12
14
 
@@ -20,6 +22,18 @@ API name of the activated published agent you want to preview.
20
22
 
21
23
  API name of the authoring bundle metadata component that contains the agent's Agent Script file.
22
24
 
25
+ # flags.all.summary
26
+
27
+ End all active preview sessions. Combine with --api-name or --authoring-bundle to limit to a specific agent, or use with only --target-org to end sessions for all agents found in the local session cache. Requires --target-org.
28
+
29
+ # flags.no-prompt.summary
30
+
31
+ Don't prompt for confirmation before ending sessions. Has an effect only when used with --all.
32
+
33
+ # error.exactlyOneRequired
34
+
35
+ Exactly one of the following must be provided: --api-name, --authoring-bundle
36
+
23
37
  # error.noSession
24
38
 
25
39
  No agent preview session found. Run "sf agent preview start" to start a new agent preview session.
@@ -44,9 +58,25 @@ Failed to end preview session: %s
44
58
 
45
59
  Session traces: %s
46
60
 
61
+ # output.noSessionsFound
62
+
63
+ No active preview sessions found.
64
+
65
+ # output.endedAll
66
+
67
+ Ended %s preview session(s).
68
+
69
+ # prompt.confirmAll
70
+
71
+ About to end %s preview session(s) for agent '%s'. Continue?
72
+
73
+ # prompt.confirmAllAgents
74
+
75
+ About to end %s preview session(s) across %s agent(s). Continue?
76
+
47
77
  # examples
48
78
 
49
- - End a preview session of a published agent by specifying its session ID and API name ; use the default org:
79
+ - End a preview session of a published agent by specifying its session ID and API name; use the default org:
50
80
 
51
81
  <%= config.bin %> <%= command.id %> --session-id <SESSION_ID> --api-name My_Published_Agent
52
82
 
@@ -57,3 +87,11 @@ Session traces: %s
57
87
  - End a preview session of an agent using its authoring bundle API name; you get an error if the agent has more than one active session.
58
88
 
59
89
  <%= config.bin %> <%= command.id %> --authoring-bundle My_Local_Agent
90
+
91
+ - End all active preview sessions for a specific agent without prompting:
92
+
93
+ <%= config.bin %> <%= command.id %> --all --authoring-bundle My_Local_Agent --target-org <target_org> --no-prompt
94
+
95
+ - End all active preview sessions across every agent in the local session cache for an org:
96
+
97
+ <%= config.bin %> <%= command.id %> --all --target-org <target_org>