@salesforce/plugin-agent 1.41.0 → 1.42.1

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 (56) hide show
  1. package/README.md +424 -23
  2. package/lib/commands/agent/adl/create.d.ts +23 -0
  3. package/lib/commands/agent/adl/create.js +104 -0
  4. package/lib/commands/agent/adl/create.js.map +1 -0
  5. package/lib/commands/agent/adl/delete.d.ts +18 -0
  6. package/lib/commands/agent/adl/delete.js +51 -0
  7. package/lib/commands/agent/adl/delete.js.map +1 -0
  8. package/lib/commands/agent/adl/file/add.d.ts +17 -0
  9. package/lib/commands/agent/adl/file/add.js +63 -0
  10. package/lib/commands/agent/adl/file/add.js.map +1 -0
  11. package/lib/commands/agent/adl/file/delete.d.ts +19 -0
  12. package/lib/commands/agent/adl/file/delete.js +55 -0
  13. package/lib/commands/agent/adl/file/delete.js.map +1 -0
  14. package/lib/commands/agent/adl/file/list.d.ts +18 -0
  15. package/lib/commands/agent/adl/file/list.js +64 -0
  16. package/lib/commands/agent/adl/file/list.js.map +1 -0
  17. package/lib/commands/agent/adl/get.d.ts +16 -0
  18. package/lib/commands/agent/adl/get.js +66 -0
  19. package/lib/commands/agent/adl/get.js.map +1 -0
  20. package/lib/commands/agent/adl/list.d.ts +18 -0
  21. package/lib/commands/agent/adl/list.js +63 -0
  22. package/lib/commands/agent/adl/list.js.map +1 -0
  23. package/lib/commands/agent/adl/status.d.ts +16 -0
  24. package/lib/commands/agent/adl/status.js +57 -0
  25. package/lib/commands/agent/adl/status.js.map +1 -0
  26. package/lib/commands/agent/adl/update.d.ts +21 -0
  27. package/lib/commands/agent/adl/update.js +102 -0
  28. package/lib/commands/agent/adl/update.js.map +1 -0
  29. package/lib/commands/agent/adl/upload.d.ts +18 -0
  30. package/lib/commands/agent/adl/upload.js +80 -0
  31. package/lib/commands/agent/adl/upload.js.map +1 -0
  32. package/lib/commands/agent/generate/test-spec.js +1 -1
  33. package/lib/commands/agent/generate/test-spec.js.map +1 -1
  34. package/messages/agent.adl.create.md +65 -0
  35. package/messages/agent.adl.delete.md +21 -0
  36. package/messages/agent.adl.file.add.md +31 -0
  37. package/messages/agent.adl.file.delete.md +25 -0
  38. package/messages/agent.adl.file.list.md +25 -0
  39. package/messages/agent.adl.get.md +21 -0
  40. package/messages/agent.adl.list.md +25 -0
  41. package/messages/agent.adl.status.md +21 -0
  42. package/messages/agent.adl.update.md +53 -0
  43. package/messages/agent.adl.upload.md +55 -0
  44. package/oclif.manifest.json +1799 -821
  45. package/package.json +14 -4
  46. package/schemas/agent-adl-create.json +83 -0
  47. package/schemas/agent-adl-delete.json +19 -0
  48. package/schemas/agent-adl-file-add.json +31 -0
  49. package/schemas/agent-adl-file-delete.json +19 -0
  50. package/schemas/agent-adl-file-list.json +44 -0
  51. package/schemas/agent-adl-get.json +83 -0
  52. package/schemas/agent-adl-list.json +44 -0
  53. package/schemas/agent-adl-status.json +63 -0
  54. package/schemas/agent-adl-update.json +83 -0
  55. package/schemas/agent-adl-upload.json +28 -0
  56. package/schemas/agent-preview-end.json +2 -5
@@ -0,0 +1,53 @@
1
+ # summary
2
+
3
+ Update an Agentforce Data Library.
4
+
5
+ # description
6
+
7
+ Updates the label, description, or other mutable properties of an existing data library.
8
+
9
+ # examples
10
+
11
+ - Update the label of a data library:
12
+
13
+ <%= config.bin %> <%= command.id %> --library-id 1JDSG000007IbWX4A0 --name "New Name" --target-org myOrg
14
+
15
+ - Update the description:
16
+
17
+ <%= config.bin %> <%= command.id %> --library-id 1JDSG000007IbWX4A0 --description "Updated description" --target-org myOrg
18
+
19
+ - Update Knowledge library content fields (triggers re-indexing):
20
+
21
+ <%= config.bin %> <%= command.id %> --library-id 1JDSG000007IbWX4A0 --content-fields "Answer**c,Summary**c" --target-org myOrg
22
+
23
+ - Restrict Knowledge library to public articles:
24
+
25
+ <%= config.bin %> <%= command.id %> --library-id 1JDSG000007IbWX4A0 --restrict-to-public-articles --target-org myOrg
26
+
27
+ # flags.library-id.summary
28
+
29
+ Agentforce Data Library ID (18-char Salesforce ID with prefix 1JD).
30
+
31
+ # flags.name.summary
32
+
33
+ New display name for the data library (max 80 characters).
34
+
35
+ # flags.description.summary
36
+
37
+ New description for the data library (max 255 characters).
38
+
39
+ # flags.content-fields.summary
40
+
41
+ Comma-separated list of content fields for KNOWLEDGE libraries (triggers re-indexing).
42
+
43
+ # flags.restrict-to-public-articles.summary
44
+
45
+ Restrict to public Knowledge articles only (KNOWLEDGE libraries, triggers re-indexing).
46
+
47
+ # flags.retriever-id.summary
48
+
49
+ Swap the retriever for a RETRIEVER library (must be an active Custom Retriever ID).
50
+
51
+ # error.updateFailed
52
+
53
+ Failed to update data library: %s
@@ -0,0 +1,55 @@
1
+ # summary
2
+
3
+ Upload a file to an SFDRIVE Agentforce Data Library.
4
+
5
+ # description
6
+
7
+ Performs the multi-step upload workflow: checks upload readiness, obtains a pre-signed S3 URL, uploads the file, triggers indexing, and optionally polls until the library is ready (retrieverId is populated).
8
+
9
+ This command only works with SFDRIVE libraries. KNOWLEDGE libraries index automatically after creation, and RETRIEVER libraries require no file upload.
10
+
11
+ # examples
12
+
13
+ - Upload a file and wait for indexing to complete:
14
+
15
+ <%= config.bin %> <%= command.id %> --library-id 1JDSG000007IbWX4A0 --file ./docs/guide.pdf --target-org myOrg --wait 10
16
+
17
+ - Upload a file without waiting:
18
+
19
+ <%= config.bin %> <%= command.id %> --library-id 1JDSG000007IbWX4A0 --file ./docs/guide.pdf --target-org myOrg
20
+
21
+ # flags.library-id.summary
22
+
23
+ Agentforce Data Library ID (18-char Salesforce ID with prefix 1JD).
24
+
25
+ # flags.file.summary
26
+
27
+ Path to the file to upload.
28
+
29
+ # flags.wait.summary
30
+
31
+ Number of minutes to wait for indexing to complete. If not specified, returns after triggering indexing.
32
+
33
+ # error.uploadReadiness
34
+
35
+ Library is not ready for upload: %s
36
+
37
+ # error.getUploadUrl
38
+
39
+ Failed to get upload URL: %s
40
+
41
+ # error.s3Upload
42
+
43
+ Failed to upload file to storage: %s
44
+
45
+ # error.indexing
46
+
47
+ Failed to trigger indexing: %s
48
+
49
+ # error.polling
50
+
51
+ Failed to poll library status: %s
52
+
53
+ # error.timeout
54
+
55
+ Indexing did not complete within the specified wait time. Use "sf agent adl get --library-id %s" to check status.