@salesforce/plugin-agent 1.24.14-demo.9 → 1.24.15
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/LICENSE.txt +6 -200
- package/README.md +26 -161
- package/lib/agentActivation.js +4 -13
- package/lib/agentActivation.js.map +1 -1
- package/lib/agentTestCache.js +4 -13
- package/lib/agentTestCache.js.map +1 -1
- package/lib/commands/agent/activate.js +4 -13
- package/lib/commands/agent/activate.js.map +1 -1
- package/lib/commands/agent/create.js +4 -13
- package/lib/commands/agent/create.js.map +1 -1
- package/lib/commands/agent/deactivate.js +4 -13
- package/lib/commands/agent/deactivate.js.map +1 -1
- package/lib/commands/agent/generate/agent-spec.js +4 -13
- package/lib/commands/agent/generate/agent-spec.js.map +1 -1
- package/lib/commands/agent/generate/template.js +4 -13
- package/lib/commands/agent/generate/template.js.map +1 -1
- package/lib/commands/agent/generate/test-spec.js +4 -13
- package/lib/commands/agent/generate/test-spec.js.map +1 -1
- package/lib/commands/agent/preview.d.ts +2 -2
- package/lib/commands/agent/preview.js +8 -30
- package/lib/commands/agent/preview.js.map +1 -1
- package/lib/commands/agent/test/create.js +4 -13
- package/lib/commands/agent/test/create.js.map +1 -1
- package/lib/commands/agent/test/list.js +4 -13
- package/lib/commands/agent/test/list.js.map +1 -1
- package/lib/commands/agent/test/results.js +4 -13
- package/lib/commands/agent/test/results.js.map +1 -1
- package/lib/commands/agent/test/resume.js +4 -13
- package/lib/commands/agent/test/resume.js.map +1 -1
- package/lib/commands/agent/test/run.js +4 -14
- package/lib/commands/agent/test/run.js.map +1 -1
- package/lib/components/agent-preview-react.js +37 -72
- package/lib/components/agent-preview-react.js.map +1 -1
- package/lib/flags.d.ts +2 -6
- package/lib/flags.js +20 -55
- package/lib/flags.js.map +1 -1
- package/lib/handleTestResults.js +4 -13
- package/lib/handleTestResults.js.map +1 -1
- package/lib/index.js +4 -13
- package/lib/index.js.map +1 -1
- package/lib/inquirer-theme.js +4 -13
- package/lib/inquirer-theme.js.map +1 -1
- package/lib/testStages.js +4 -13
- package/lib/testStages.js.map +1 -1
- package/lib/yes-no-cancel.js +4 -13
- package/lib/yes-no-cancel.js.map +1 -1
- package/messages/agent.preview.md +2 -6
- package/messages/agent.test.run.md +0 -4
- package/npm-shrinkwrap.json +17924 -0
- package/oclif.lock +9492 -0
- package/oclif.manifest.json +5 -291
- package/package.json +13 -12
- package/lib/commands/agent/generate/authoring-bundle.d.ts +0 -22
- package/lib/commands/agent/generate/authoring-bundle.js +0 -146
- package/lib/commands/agent/generate/authoring-bundle.js.map +0 -1
- package/lib/commands/agent/publish/authoring-bundle.d.ts +0 -19
- package/lib/commands/agent/publish/authoring-bundle.js +0 -131
- package/lib/commands/agent/publish/authoring-bundle.js.map +0 -1
- package/lib/commands/agent/validate/authoring-bundle.d.ts +0 -18
- package/lib/commands/agent/validate/authoring-bundle.js +0 -123
- package/lib/commands/agent/validate/authoring-bundle.js.map +0 -1
- package/messages/agent.generate.authoring-bundle.md +0 -51
- package/messages/agent.publish.authoring-bundle.md +0 -50
- package/messages/agent.validate.authoring-bundle.md +0 -46
- package/schemas/agent-generate-authoring__bundle.json +0 -22
- package/schemas/agent-publish-authoring__bundle.json +0 -25
- package/schemas/agent-validate-authoring__bundle.json +0 -22
package/lib/yes-no-cancel.js
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2025,
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
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.
|
|
2
|
+
* Copyright (c) 2025, 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
|
|
15
6
|
*/
|
|
16
7
|
import { createPrompt, useState, useKeypress, isEnterKey, usePrefix, makeTheme, } from '@inquirer/core';
|
|
17
8
|
function getBooleanValue(value, defaultValue) {
|
package/lib/yes-no-cancel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yes-no-cancel.js","sourceRoot":"","sources":["../src/yes-no-cancel.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"yes-no-cancel.js","sourceRoot":"","sources":["../src/yes-no-cancel.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,SAAS,EACT,SAAS,GAGV,MAAM,gBAAgB,CAAC;AAUxB,SAAS,eAAe,CAAC,KAAa,EAAE,YAAsB;IAC5D,IAAI,MAAM,GAAG,YAAY,KAAK,KAAK,CAAC;IACpC,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,MAAM,GAAG,IAAI,CAAC;SACtC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,MAAM,GAAG,KAAK,CAAC;IAChD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,YAAY,CAAC,KAAc;IAClC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9B,CAAC;AAED,gGAAgG;AAChG,MAAM,aAAa,GAAuE,YAAY,CAGpG,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE;IACjB,MAAM,EAAE,WAAW,GAAG,YAAY,EAAE,GAAG,MAAM,CAAC;IAC9C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ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,CAAC;IACtB,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACtB,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7C,CAAC;SAAM,CAAC;QACN,YAAY,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC;IACzG,CAAC;IAED,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5D,OAAO,GAAG,MAAM,IAAI,OAAO,GAAG,YAAY,IAAI,cAAc,EAAE,CAAC;AACjE,CAAC,CAAC,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -12,19 +12,15 @@ When the session concludes, the command asks if you want to save the API respons
|
|
|
12
12
|
|
|
13
13
|
Find the agent's API name in its Agent Details page of your org's Agentforce Studio UI in Setup. If your agent is currently deactivated, use the "agent activate" CLI command to activate it.
|
|
14
14
|
|
|
15
|
-
IMPORTANT: Before you use this command, you must complete a number of configuration steps in your org and your DX project.
|
|
15
|
+
IMPORTANT: Before you use this command, you must complete a number of configuration steps in your org and your DX project. The examples in this help assume you've completed the steps. See "Preview an Agent" in the "Agentforce Developer Guide" for complete documentation: https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-preview.html.
|
|
16
16
|
|
|
17
17
|
# flags.api-name.summary
|
|
18
18
|
|
|
19
19
|
API name of the agent you want to interact with.
|
|
20
20
|
|
|
21
|
-
# flags.authoring-bundle.summary
|
|
22
|
-
|
|
23
|
-
Preview a next-gen agent by specifying the API name of the authoring bundle metadata component that implements it.
|
|
24
|
-
|
|
25
21
|
# flags.client-app.summary
|
|
26
22
|
|
|
27
|
-
Name of the linked client app to use for the agent connection.
|
|
23
|
+
Name of the linked client app to use for the agent connection. You must have previously created this link with "org login web --client-app". Run "org display" to see the available linked client apps.
|
|
28
24
|
|
|
29
25
|
# flags.output-dir.summary
|
|
30
26
|
|
|
@@ -14,10 +14,6 @@ By default, this command outputs test results in human-readable tables for each
|
|
|
14
14
|
|
|
15
15
|
API name of the agent test to run; corresponds to the name of the AiEvaluationDefinition metadata component that implements the agent test.
|
|
16
16
|
|
|
17
|
-
# flags.api-name.prompt
|
|
18
|
-
|
|
19
|
-
API name of the agent test to run
|
|
20
|
-
|
|
21
17
|
# flags.wait.summary
|
|
22
18
|
|
|
23
19
|
Number of minutes to wait for the command to complete and display results to the terminal window.
|