@salesforce/plugin-agent 1.24.14-demo.9 → 1.24.14

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 (67) hide show
  1. package/LICENSE.txt +6 -200
  2. package/README.md +26 -161
  3. package/lib/agentActivation.js +4 -13
  4. package/lib/agentActivation.js.map +1 -1
  5. package/lib/agentTestCache.js +4 -13
  6. package/lib/agentTestCache.js.map +1 -1
  7. package/lib/commands/agent/activate.js +4 -13
  8. package/lib/commands/agent/activate.js.map +1 -1
  9. package/lib/commands/agent/create.js +4 -13
  10. package/lib/commands/agent/create.js.map +1 -1
  11. package/lib/commands/agent/deactivate.js +4 -13
  12. package/lib/commands/agent/deactivate.js.map +1 -1
  13. package/lib/commands/agent/generate/agent-spec.js +4 -13
  14. package/lib/commands/agent/generate/agent-spec.js.map +1 -1
  15. package/lib/commands/agent/generate/template.js +4 -13
  16. package/lib/commands/agent/generate/template.js.map +1 -1
  17. package/lib/commands/agent/generate/test-spec.js +4 -13
  18. package/lib/commands/agent/generate/test-spec.js.map +1 -1
  19. package/lib/commands/agent/preview.d.ts +2 -2
  20. package/lib/commands/agent/preview.js +8 -30
  21. package/lib/commands/agent/preview.js.map +1 -1
  22. package/lib/commands/agent/test/create.js +4 -13
  23. package/lib/commands/agent/test/create.js.map +1 -1
  24. package/lib/commands/agent/test/list.js +4 -13
  25. package/lib/commands/agent/test/list.js.map +1 -1
  26. package/lib/commands/agent/test/results.js +4 -13
  27. package/lib/commands/agent/test/results.js.map +1 -1
  28. package/lib/commands/agent/test/resume.js +4 -13
  29. package/lib/commands/agent/test/resume.js.map +1 -1
  30. package/lib/commands/agent/test/run.js +4 -14
  31. package/lib/commands/agent/test/run.js.map +1 -1
  32. package/lib/components/agent-preview-react.js +37 -72
  33. package/lib/components/agent-preview-react.js.map +1 -1
  34. package/lib/flags.d.ts +2 -6
  35. package/lib/flags.js +20 -55
  36. package/lib/flags.js.map +1 -1
  37. package/lib/handleTestResults.js +4 -13
  38. package/lib/handleTestResults.js.map +1 -1
  39. package/lib/index.js +4 -13
  40. package/lib/index.js.map +1 -1
  41. package/lib/inquirer-theme.js +4 -13
  42. package/lib/inquirer-theme.js.map +1 -1
  43. package/lib/testStages.js +4 -13
  44. package/lib/testStages.js.map +1 -1
  45. package/lib/yes-no-cancel.js +4 -13
  46. package/lib/yes-no-cancel.js.map +1 -1
  47. package/messages/agent.preview.md +2 -6
  48. package/messages/agent.test.run.md +0 -4
  49. package/npm-shrinkwrap.json +17924 -0
  50. package/oclif.lock +9492 -0
  51. package/oclif.manifest.json +5 -291
  52. package/package.json +12 -11
  53. package/lib/commands/agent/generate/authoring-bundle.d.ts +0 -22
  54. package/lib/commands/agent/generate/authoring-bundle.js +0 -146
  55. package/lib/commands/agent/generate/authoring-bundle.js.map +0 -1
  56. package/lib/commands/agent/publish/authoring-bundle.d.ts +0 -19
  57. package/lib/commands/agent/publish/authoring-bundle.js +0 -131
  58. package/lib/commands/agent/publish/authoring-bundle.js.map +0 -1
  59. package/lib/commands/agent/validate/authoring-bundle.d.ts +0 -18
  60. package/lib/commands/agent/validate/authoring-bundle.js +0 -123
  61. package/lib/commands/agent/validate/authoring-bundle.js.map +0 -1
  62. package/messages/agent.generate.authoring-bundle.md +0 -51
  63. package/messages/agent.publish.authoring-bundle.md +0 -50
  64. package/messages/agent.validate.authoring-bundle.md +0 -46
  65. package/schemas/agent-generate-authoring__bundle.json +0 -22
  66. package/schemas/agent-publish-authoring__bundle.json +0 -25
  67. package/schemas/agent-validate-authoring__bundle.json +0 -22
@@ -1,17 +1,8 @@
1
1
  /*
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.
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) {
@@ -1 +1 @@
1
- {"version":3,"file":"yes-no-cancel.js","sourceRoot":"","sources":["../src/yes-no-cancel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;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,CAAS,MAAM,CAAC,CAAC;IACrD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,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AY,GAAG,EAAE,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. For example, you must first create the link to a client connected app using the "org login web --client-app" CLI command to then get the value of the --client-app flag of this command. 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.
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.