@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.
- package/README.md +424 -23
- package/lib/commands/agent/adl/create.d.ts +23 -0
- package/lib/commands/agent/adl/create.js +104 -0
- package/lib/commands/agent/adl/create.js.map +1 -0
- package/lib/commands/agent/adl/delete.d.ts +18 -0
- package/lib/commands/agent/adl/delete.js +51 -0
- package/lib/commands/agent/adl/delete.js.map +1 -0
- package/lib/commands/agent/adl/file/add.d.ts +17 -0
- package/lib/commands/agent/adl/file/add.js +63 -0
- package/lib/commands/agent/adl/file/add.js.map +1 -0
- package/lib/commands/agent/adl/file/delete.d.ts +19 -0
- package/lib/commands/agent/adl/file/delete.js +55 -0
- package/lib/commands/agent/adl/file/delete.js.map +1 -0
- package/lib/commands/agent/adl/file/list.d.ts +18 -0
- package/lib/commands/agent/adl/file/list.js +64 -0
- package/lib/commands/agent/adl/file/list.js.map +1 -0
- package/lib/commands/agent/adl/get.d.ts +16 -0
- package/lib/commands/agent/adl/get.js +66 -0
- package/lib/commands/agent/adl/get.js.map +1 -0
- package/lib/commands/agent/adl/list.d.ts +18 -0
- package/lib/commands/agent/adl/list.js +63 -0
- package/lib/commands/agent/adl/list.js.map +1 -0
- package/lib/commands/agent/adl/status.d.ts +16 -0
- package/lib/commands/agent/adl/status.js +57 -0
- package/lib/commands/agent/adl/status.js.map +1 -0
- package/lib/commands/agent/adl/update.d.ts +21 -0
- package/lib/commands/agent/adl/update.js +102 -0
- package/lib/commands/agent/adl/update.js.map +1 -0
- package/lib/commands/agent/adl/upload.d.ts +18 -0
- package/lib/commands/agent/adl/upload.js +80 -0
- package/lib/commands/agent/adl/upload.js.map +1 -0
- package/lib/commands/agent/generate/test-spec.js +1 -1
- package/lib/commands/agent/generate/test-spec.js.map +1 -1
- package/messages/agent.adl.create.md +65 -0
- package/messages/agent.adl.delete.md +21 -0
- package/messages/agent.adl.file.add.md +31 -0
- package/messages/agent.adl.file.delete.md +25 -0
- package/messages/agent.adl.file.list.md +25 -0
- package/messages/agent.adl.get.md +21 -0
- package/messages/agent.adl.list.md +25 -0
- package/messages/agent.adl.status.md +21 -0
- package/messages/agent.adl.update.md +53 -0
- package/messages/agent.adl.upload.md +55 -0
- package/oclif.manifest.json +1799 -821
- package/package.json +14 -4
- package/schemas/agent-adl-create.json +83 -0
- package/schemas/agent-adl-delete.json +19 -0
- package/schemas/agent-adl-file-add.json +31 -0
- package/schemas/agent-adl-file-delete.json +19 -0
- package/schemas/agent-adl-file-list.json +44 -0
- package/schemas/agent-adl-get.json +83 -0
- package/schemas/agent-adl-list.json +44 -0
- package/schemas/agent-adl-status.json +63 -0
- package/schemas/agent-adl-update.json +83 -0
- package/schemas/agent-adl-upload.json +28 -0
- 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.
|