@salesforce/plugin-agent 1.40.5 → 1.42.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.
Files changed (58) hide show
  1. package/README.md +443 -34
  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 +59 -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 +51 -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 +51 -0
  19. package/lib/commands/agent/adl/get.js.map +1 -0
  20. package/lib/commands/agent/adl/list.d.ts +17 -0
  21. package/lib/commands/agent/adl/list.js +57 -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 +20 -0
  27. package/lib/commands/agent/adl/update.js +90 -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 +73 -0
  31. package/lib/commands/agent/adl/upload.js.map +1 -0
  32. package/lib/commands/agent/test/create.d.ts +1 -0
  33. package/lib/commands/agent/test/create.js +13 -8
  34. package/lib/commands/agent/test/create.js.map +1 -1
  35. package/messages/agent.adl.create.md +65 -0
  36. package/messages/agent.adl.delete.md +21 -0
  37. package/messages/agent.adl.file.add.md +27 -0
  38. package/messages/agent.adl.file.delete.md +25 -0
  39. package/messages/agent.adl.file.list.md +25 -0
  40. package/messages/agent.adl.get.md +21 -0
  41. package/messages/agent.adl.list.md +21 -0
  42. package/messages/agent.adl.status.md +21 -0
  43. package/messages/agent.adl.update.md +49 -0
  44. package/messages/agent.adl.upload.md +55 -0
  45. package/messages/agent.test.create.md +7 -3
  46. package/oclif.manifest.json +2071 -1100
  47. package/package.json +15 -5
  48. package/schemas/agent-adl-create.json +83 -0
  49. package/schemas/agent-adl-delete.json +19 -0
  50. package/schemas/agent-adl-file-add.json +25 -0
  51. package/schemas/agent-adl-file-delete.json +19 -0
  52. package/schemas/agent-adl-file-list.json +44 -0
  53. package/schemas/agent-adl-get.json +83 -0
  54. package/schemas/agent-adl-list.json +44 -0
  55. package/schemas/agent-adl-status.json +63 -0
  56. package/schemas/agent-adl-update.json +83 -0
  57. package/schemas/agent-adl-upload.json +28 -0
  58. package/schemas/agent-preview-end.json +2 -5
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-agent",
3
3
  "description": "Commands to interact with Salesforce agents",
4
- "version": "1.40.5",
4
+ "version": "1.42.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "enableO11y": true,
@@ -12,12 +12,12 @@
12
12
  "@inquirer/prompts": "^7.10.1",
13
13
  "@oclif/core": "^4",
14
14
  "@oclif/multi-stage-output": "^0.8.36",
15
- "@salesforce/agents": "^1.6.6",
15
+ "@salesforce/agents": "^1.8.0",
16
16
  "@salesforce/core": "^8.28.3",
17
17
  "@salesforce/kit": "^3.2.6",
18
18
  "@salesforce/sf-plugins-core": "^12.2.6",
19
19
  "@salesforce/source-deploy-retrieve": "^12.35.3",
20
- "@salesforce/types": "^1.7.1",
20
+ "@salesforce/types": "1.7.1",
21
21
  "ansis": "^3.3.2",
22
22
  "fast-xml-parser": "^5.7.1",
23
23
  "glob": "^11.0.3",
@@ -94,6 +94,16 @@
94
94
  "validate": {
95
95
  "description": "Command to validate an Agent Script file.",
96
96
  "external": true
97
+ },
98
+ "adl": {
99
+ "description": "Commands to manage Agentforce Data Libraries.",
100
+ "external": true,
101
+ "subtopics": {
102
+ "file": {
103
+ "description": "Commands to manage files in an SFDRIVE data library.",
104
+ "external": true
105
+ }
106
+ }
97
107
  }
98
108
  }
99
109
  }
@@ -240,7 +250,7 @@
240
250
  "exports": "./lib/index.js",
241
251
  "type": "module",
242
252
  "sfdx": {
243
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.40.5.crt",
244
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.40.5.sig"
253
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.42.0.crt",
254
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.42.0.sig"
245
255
  }
246
256
  }
@@ -0,0 +1,83 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentAdlCreateResult",
4
+ "definitions": {
5
+ "AgentAdlCreateResult": {
6
+ "$ref": "#/definitions/DataLibraryDetail"
7
+ },
8
+ "DataLibraryDetail": {
9
+ "type": "object",
10
+ "properties": {
11
+ "libraryId": {
12
+ "type": "string"
13
+ },
14
+ "masterLabel": {
15
+ "type": "string"
16
+ },
17
+ "developerName": {
18
+ "type": "string"
19
+ },
20
+ "description": {
21
+ "type": "string"
22
+ },
23
+ "sourceType": {
24
+ "type": "string"
25
+ },
26
+ "status": {
27
+ "type": "string"
28
+ },
29
+ "retrieverId": {
30
+ "type": "string"
31
+ },
32
+ "retrieverLabel": {
33
+ "type": "string"
34
+ },
35
+ "dataSpaceScopeId": {
36
+ "type": "string"
37
+ },
38
+ "groundingSource": {
39
+ "type": "object",
40
+ "properties": {
41
+ "groundingSourceType": {
42
+ "type": "string"
43
+ },
44
+ "groundingFileRefs": {
45
+ "type": "array",
46
+ "items": {
47
+ "$ref": "#/definitions/GroundingFileRef"
48
+ }
49
+ }
50
+ },
51
+ "additionalProperties": {}
52
+ }
53
+ },
54
+ "required": ["libraryId", "masterLabel", "developerName", "sourceType"],
55
+ "additionalProperties": false
56
+ },
57
+ "GroundingFileRef": {
58
+ "type": "object",
59
+ "properties": {
60
+ "fileId": {
61
+ "type": "string"
62
+ },
63
+ "fileName": {
64
+ "type": "string"
65
+ },
66
+ "filePath": {
67
+ "type": "string"
68
+ },
69
+ "fileSize": {
70
+ "type": "number"
71
+ },
72
+ "createdDate": {
73
+ "type": "string"
74
+ },
75
+ "createdBy": {
76
+ "type": "string"
77
+ }
78
+ },
79
+ "required": ["fileId", "fileName", "filePath", "fileSize"],
80
+ "additionalProperties": false
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentAdlDeleteResult",
4
+ "definitions": {
5
+ "AgentAdlDeleteResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "libraryId": {
12
+ "type": "string"
13
+ }
14
+ },
15
+ "required": ["success", "libraryId"],
16
+ "additionalProperties": false
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentAdlFileAddResult",
4
+ "definitions": {
5
+ "AgentAdlFileAddResult": {
6
+ "$ref": "#/definitions/FileAddResult"
7
+ },
8
+ "FileAddResult": {
9
+ "type": "object",
10
+ "properties": {
11
+ "success": {
12
+ "type": "boolean"
13
+ },
14
+ "fileName": {
15
+ "type": "string"
16
+ },
17
+ "libraryId": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "required": ["success", "fileName", "libraryId"],
22
+ "additionalProperties": false
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentAdlFileDeleteResult",
4
+ "definitions": {
5
+ "AgentAdlFileDeleteResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "success": {
9
+ "type": "boolean"
10
+ },
11
+ "fileId": {
12
+ "type": "string"
13
+ }
14
+ },
15
+ "required": ["success", "fileId"],
16
+ "additionalProperties": false
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentAdlFileListResult",
4
+ "definitions": {
5
+ "AgentAdlFileListResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "files": {
9
+ "type": "array",
10
+ "items": {
11
+ "$ref": "#/definitions/GroundingFileRef"
12
+ }
13
+ }
14
+ },
15
+ "required": ["files"],
16
+ "additionalProperties": false
17
+ },
18
+ "GroundingFileRef": {
19
+ "type": "object",
20
+ "properties": {
21
+ "fileId": {
22
+ "type": "string"
23
+ },
24
+ "fileName": {
25
+ "type": "string"
26
+ },
27
+ "filePath": {
28
+ "type": "string"
29
+ },
30
+ "fileSize": {
31
+ "type": "number"
32
+ },
33
+ "createdDate": {
34
+ "type": "string"
35
+ },
36
+ "createdBy": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ "required": ["fileId", "fileName", "filePath", "fileSize"],
41
+ "additionalProperties": false
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentAdlGetResult",
4
+ "definitions": {
5
+ "AgentAdlGetResult": {
6
+ "$ref": "#/definitions/DataLibraryDetail"
7
+ },
8
+ "DataLibraryDetail": {
9
+ "type": "object",
10
+ "properties": {
11
+ "libraryId": {
12
+ "type": "string"
13
+ },
14
+ "masterLabel": {
15
+ "type": "string"
16
+ },
17
+ "developerName": {
18
+ "type": "string"
19
+ },
20
+ "description": {
21
+ "type": "string"
22
+ },
23
+ "sourceType": {
24
+ "type": "string"
25
+ },
26
+ "status": {
27
+ "type": "string"
28
+ },
29
+ "retrieverId": {
30
+ "type": "string"
31
+ },
32
+ "retrieverLabel": {
33
+ "type": "string"
34
+ },
35
+ "dataSpaceScopeId": {
36
+ "type": "string"
37
+ },
38
+ "groundingSource": {
39
+ "type": "object",
40
+ "properties": {
41
+ "groundingSourceType": {
42
+ "type": "string"
43
+ },
44
+ "groundingFileRefs": {
45
+ "type": "array",
46
+ "items": {
47
+ "$ref": "#/definitions/GroundingFileRef"
48
+ }
49
+ }
50
+ },
51
+ "additionalProperties": {}
52
+ }
53
+ },
54
+ "required": ["libraryId", "masterLabel", "developerName", "sourceType"],
55
+ "additionalProperties": false
56
+ },
57
+ "GroundingFileRef": {
58
+ "type": "object",
59
+ "properties": {
60
+ "fileId": {
61
+ "type": "string"
62
+ },
63
+ "fileName": {
64
+ "type": "string"
65
+ },
66
+ "filePath": {
67
+ "type": "string"
68
+ },
69
+ "fileSize": {
70
+ "type": "number"
71
+ },
72
+ "createdDate": {
73
+ "type": "string"
74
+ },
75
+ "createdBy": {
76
+ "type": "string"
77
+ }
78
+ },
79
+ "required": ["fileId", "fileName", "filePath", "fileSize"],
80
+ "additionalProperties": false
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentAdlListResult",
4
+ "definitions": {
5
+ "AgentAdlListResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "libraries": {
9
+ "type": "array",
10
+ "items": {
11
+ "$ref": "#/definitions/DataLibrarySummary"
12
+ }
13
+ }
14
+ },
15
+ "required": ["libraries"],
16
+ "additionalProperties": false
17
+ },
18
+ "DataLibrarySummary": {
19
+ "type": "object",
20
+ "properties": {
21
+ "libraryId": {
22
+ "type": "string"
23
+ },
24
+ "masterLabel": {
25
+ "type": "string"
26
+ },
27
+ "developerName": {
28
+ "type": "string"
29
+ },
30
+ "description": {
31
+ "type": "string"
32
+ },
33
+ "sourceType": {
34
+ "type": "string"
35
+ },
36
+ "status": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ "required": ["libraryId", "masterLabel", "developerName", "sourceType", "status"],
41
+ "additionalProperties": false
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentAdlStatusResult",
4
+ "definitions": {
5
+ "AgentAdlStatusResult": {
6
+ "$ref": "#/definitions/IndexingStatusResponse"
7
+ },
8
+ "IndexingStatusResponse": {
9
+ "type": "object",
10
+ "properties": {
11
+ "indexingStatus": {
12
+ "type": "object",
13
+ "properties": {
14
+ "libraryId": {
15
+ "type": "string"
16
+ },
17
+ "status": {
18
+ "type": "string"
19
+ },
20
+ "currentStage": {
21
+ "type": "string"
22
+ },
23
+ "stageDetails": {
24
+ "type": "array",
25
+ "items": {
26
+ "$ref": "#/definitions/StageDetail"
27
+ }
28
+ },
29
+ "lastUpdatedAt": {
30
+ "type": "number"
31
+ }
32
+ },
33
+ "required": ["libraryId", "status"],
34
+ "additionalProperties": false
35
+ }
36
+ },
37
+ "required": ["indexingStatus"],
38
+ "additionalProperties": false
39
+ },
40
+ "StageDetail": {
41
+ "type": "object",
42
+ "properties": {
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "status": {
47
+ "type": "string"
48
+ },
49
+ "completedAt": {
50
+ "type": "number"
51
+ },
52
+ "startedAt": {
53
+ "type": "number"
54
+ },
55
+ "error": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "required": ["name", "status"],
60
+ "additionalProperties": false
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentAdlUpdateResult",
4
+ "definitions": {
5
+ "AgentAdlUpdateResult": {
6
+ "$ref": "#/definitions/DataLibraryDetail"
7
+ },
8
+ "DataLibraryDetail": {
9
+ "type": "object",
10
+ "properties": {
11
+ "libraryId": {
12
+ "type": "string"
13
+ },
14
+ "masterLabel": {
15
+ "type": "string"
16
+ },
17
+ "developerName": {
18
+ "type": "string"
19
+ },
20
+ "description": {
21
+ "type": "string"
22
+ },
23
+ "sourceType": {
24
+ "type": "string"
25
+ },
26
+ "status": {
27
+ "type": "string"
28
+ },
29
+ "retrieverId": {
30
+ "type": "string"
31
+ },
32
+ "retrieverLabel": {
33
+ "type": "string"
34
+ },
35
+ "dataSpaceScopeId": {
36
+ "type": "string"
37
+ },
38
+ "groundingSource": {
39
+ "type": "object",
40
+ "properties": {
41
+ "groundingSourceType": {
42
+ "type": "string"
43
+ },
44
+ "groundingFileRefs": {
45
+ "type": "array",
46
+ "items": {
47
+ "$ref": "#/definitions/GroundingFileRef"
48
+ }
49
+ }
50
+ },
51
+ "additionalProperties": {}
52
+ }
53
+ },
54
+ "required": ["libraryId", "masterLabel", "developerName", "sourceType"],
55
+ "additionalProperties": false
56
+ },
57
+ "GroundingFileRef": {
58
+ "type": "object",
59
+ "properties": {
60
+ "fileId": {
61
+ "type": "string"
62
+ },
63
+ "fileName": {
64
+ "type": "string"
65
+ },
66
+ "filePath": {
67
+ "type": "string"
68
+ },
69
+ "fileSize": {
70
+ "type": "number"
71
+ },
72
+ "createdDate": {
73
+ "type": "string"
74
+ },
75
+ "createdBy": {
76
+ "type": "string"
77
+ }
78
+ },
79
+ "required": ["fileId", "fileName", "filePath", "fileSize"],
80
+ "additionalProperties": false
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/AgentAdlUploadResult",
4
+ "definitions": {
5
+ "AgentAdlUploadResult": {
6
+ "$ref": "#/definitions/UploadResult"
7
+ },
8
+ "UploadResult": {
9
+ "type": "object",
10
+ "properties": {
11
+ "libraryId": {
12
+ "type": "string"
13
+ },
14
+ "retrieverId": {
15
+ "type": "string"
16
+ },
17
+ "ragFeatureConfigId": {
18
+ "type": "string"
19
+ },
20
+ "status": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "required": ["libraryId", "status"],
25
+ "additionalProperties": false
26
+ }
27
+ }
28
+ }
@@ -32,11 +32,8 @@
32
32
  "type": "string"
33
33
  }
34
34
  },
35
- "required": [
36
- "sessionId",
37
- "tracesPath"
38
- ],
35
+ "required": ["sessionId", "tracesPath"],
39
36
  "additionalProperties": false
40
37
  }
41
38
  }
42
- }
39
+ }