@salesforce/plugin-agent 1.43.0 → 1.44.4

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 +78 -46
  2. package/lib/adlUtils.d.ts +2 -0
  3. package/lib/adlUtils.js +31 -0
  4. package/lib/adlUtils.js.map +1 -0
  5. package/lib/commands/agent/adl/create.d.ts +6 -1
  6. package/lib/commands/agent/adl/create.js +83 -19
  7. package/lib/commands/agent/adl/create.js.map +1 -1
  8. package/lib/commands/agent/adl/delete.d.ts +0 -1
  9. package/lib/commands/agent/adl/delete.js +3 -2
  10. package/lib/commands/agent/adl/delete.js.map +1 -1
  11. package/lib/commands/agent/adl/file/add.d.ts +0 -1
  12. package/lib/commands/agent/adl/file/add.js +3 -2
  13. package/lib/commands/agent/adl/file/add.js.map +1 -1
  14. package/lib/commands/agent/adl/file/delete.d.ts +0 -1
  15. package/lib/commands/agent/adl/file/delete.js +4 -3
  16. package/lib/commands/agent/adl/file/delete.js.map +1 -1
  17. package/lib/commands/agent/adl/file/list.d.ts +5 -5
  18. package/lib/commands/agent/adl/file/list.js +31 -7
  19. package/lib/commands/agent/adl/file/list.js.map +1 -1
  20. package/lib/commands/agent/adl/get.d.ts +0 -1
  21. package/lib/commands/agent/adl/get.js +15 -3
  22. package/lib/commands/agent/adl/get.js.map +1 -1
  23. package/lib/commands/agent/adl/list.d.ts +0 -1
  24. package/lib/commands/agent/adl/list.js +3 -2
  25. package/lib/commands/agent/adl/list.js.map +1 -1
  26. package/lib/commands/agent/adl/status.d.ts +1 -1
  27. package/lib/commands/agent/adl/status.js +21 -4
  28. package/lib/commands/agent/adl/status.js.map +1 -1
  29. package/lib/commands/agent/adl/update.d.ts +1 -1
  30. package/lib/commands/agent/adl/update.js +18 -5
  31. package/lib/commands/agent/adl/update.js.map +1 -1
  32. package/lib/commands/agent/adl/upload.d.ts +0 -1
  33. package/lib/commands/agent/adl/upload.js +3 -2
  34. package/lib/commands/agent/adl/upload.js.map +1 -1
  35. package/messages/agent.adl.create.md +22 -0
  36. package/messages/agent.adl.file.add.md +2 -0
  37. package/messages/agent.adl.file.delete.md +4 -0
  38. package/messages/agent.adl.file.list.md +12 -0
  39. package/messages/agent.adl.status.md +5 -1
  40. package/messages/agent.adl.update.md +4 -0
  41. package/messages/agent.adl.upload.md +2 -0
  42. package/oclif.manifest.json +635 -573
  43. package/package.json +4 -4
  44. package/schemas/agent-adl-create.json +63 -3
  45. package/schemas/agent-adl-delete.json +5 -2
  46. package/schemas/agent-adl-file-add.json +7 -2
  47. package/schemas/agent-adl-file-delete.json +5 -2
  48. package/schemas/agent-adl-file-list.json +26 -3
  49. package/schemas/agent-adl-get.json +63 -3
  50. package/schemas/agent-adl-list.json +55 -3
  51. package/schemas/agent-adl-status.json +44 -4
  52. package/schemas/agent-adl-update.json +63 -3
  53. package/schemas/agent-adl-upload.json +5 -2
  54. package/schemas/agent-preview-end.json +8 -3
  55. package/schemas/agent-publish-authoring__bundle.json +8 -3
  56. package/schemas/agent-trace-delete.json +7 -2
  57. package/schemas/agent-trace-list.json +9 -2
  58. package/schemas/agent-trace-read.json +131 -21
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.43.0",
4
+ "version": "1.44.4",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "enableO11y": true,
@@ -12,7 +12,7 @@
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.9.0",
15
+ "@salesforce/agents": "^1.10.2",
16
16
  "@salesforce/core": "^8.28.3",
17
17
  "@salesforce/kit": "^3.2.6",
18
18
  "@salesforce/sf-plugins-core": "^12.2.6",
@@ -260,7 +260,7 @@
260
260
  "exports": "./lib/index.js",
261
261
  "type": "module",
262
262
  "sfdx": {
263
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.43.0.crt",
264
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.43.0.sig"
263
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.44.4.crt",
264
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.44.4.sig"
265
265
  }
266
266
  }
@@ -35,6 +35,15 @@
35
35
  "dataSpaceScopeId": {
36
36
  "type": "string"
37
37
  },
38
+ "retriever": {
39
+ "$ref": "#/definitions/RetrieverDetail"
40
+ },
41
+ "retrieverAction": {
42
+ "$ref": "#/definitions/RetrieverActionDetail"
43
+ },
44
+ "totalFileCount": {
45
+ "type": "number"
46
+ },
38
47
  "groundingSource": {
39
48
  "type": "object",
40
49
  "properties": {
@@ -51,7 +60,50 @@
51
60
  "additionalProperties": {}
52
61
  }
53
62
  },
54
- "required": ["libraryId", "masterLabel", "developerName", "sourceType"],
63
+ "required": [
64
+ "libraryId",
65
+ "masterLabel",
66
+ "developerName",
67
+ "sourceType"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ "RetrieverDetail": {
72
+ "type": "object",
73
+ "properties": {
74
+ "id": {
75
+ "type": "string"
76
+ },
77
+ "label": {
78
+ "type": "string"
79
+ },
80
+ "apiName": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "required": [
85
+ "id",
86
+ "label"
87
+ ],
88
+ "additionalProperties": false
89
+ },
90
+ "RetrieverActionDetail": {
91
+ "type": "object",
92
+ "properties": {
93
+ "id": {
94
+ "type": "string"
95
+ },
96
+ "label": {
97
+ "type": "string"
98
+ },
99
+ "apiName": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "id",
105
+ "label"
106
+ ],
55
107
  "additionalProperties": false
56
108
  },
57
109
  "GroundingFileRef": {
@@ -74,10 +126,18 @@
74
126
  },
75
127
  "createdBy": {
76
128
  "type": "string"
129
+ },
130
+ "status": {
131
+ "type": "string"
77
132
  }
78
133
  },
79
- "required": ["fileId", "fileName", "filePath", "fileSize"],
134
+ "required": [
135
+ "fileId",
136
+ "fileName",
137
+ "filePath",
138
+ "fileSize"
139
+ ],
80
140
  "additionalProperties": false
81
141
  }
82
142
  }
83
- }
143
+ }
@@ -12,8 +12,11 @@
12
12
  "type": "string"
13
13
  }
14
14
  },
15
- "required": ["success", "libraryId"],
15
+ "required": [
16
+ "success",
17
+ "libraryId"
18
+ ],
16
19
  "additionalProperties": false
17
20
  }
18
21
  }
19
- }
22
+ }
@@ -24,8 +24,13 @@
24
24
  "type": "string"
25
25
  }
26
26
  },
27
- "required": ["success", "fileName", "fileNames", "libraryId"],
27
+ "required": [
28
+ "success",
29
+ "fileName",
30
+ "fileNames",
31
+ "libraryId"
32
+ ],
28
33
  "additionalProperties": false
29
34
  }
30
35
  }
31
- }
36
+ }
@@ -12,8 +12,11 @@
12
12
  "type": "string"
13
13
  }
14
14
  },
15
- "required": ["success", "fileId"],
15
+ "required": [
16
+ "success",
17
+ "fileId"
18
+ ],
16
19
  "additionalProperties": false
17
20
  }
18
21
  }
19
- }
22
+ }
@@ -3,6 +3,9 @@
3
3
  "$ref": "#/definitions/AgentAdlFileListResult",
4
4
  "definitions": {
5
5
  "AgentAdlFileListResult": {
6
+ "$ref": "#/definitions/FileListResponse"
7
+ },
8
+ "FileListResponse": {
6
9
  "type": "object",
7
10
  "properties": {
8
11
  "files": {
@@ -10,9 +13,21 @@
10
13
  "items": {
11
14
  "$ref": "#/definitions/GroundingFileRef"
12
15
  }
16
+ },
17
+ "totalSize": {
18
+ "type": "number"
19
+ },
20
+ "currentPageUrl": {
21
+ "type": "string"
22
+ },
23
+ "nextPageUrl": {
24
+ "type": "string"
13
25
  }
14
26
  },
15
- "required": ["files"],
27
+ "required": [
28
+ "files",
29
+ "totalSize"
30
+ ],
16
31
  "additionalProperties": false
17
32
  },
18
33
  "GroundingFileRef": {
@@ -35,10 +50,18 @@
35
50
  },
36
51
  "createdBy": {
37
52
  "type": "string"
53
+ },
54
+ "status": {
55
+ "type": "string"
38
56
  }
39
57
  },
40
- "required": ["fileId", "fileName", "filePath", "fileSize"],
58
+ "required": [
59
+ "fileId",
60
+ "fileName",
61
+ "filePath",
62
+ "fileSize"
63
+ ],
41
64
  "additionalProperties": false
42
65
  }
43
66
  }
44
- }
67
+ }
@@ -35,6 +35,15 @@
35
35
  "dataSpaceScopeId": {
36
36
  "type": "string"
37
37
  },
38
+ "retriever": {
39
+ "$ref": "#/definitions/RetrieverDetail"
40
+ },
41
+ "retrieverAction": {
42
+ "$ref": "#/definitions/RetrieverActionDetail"
43
+ },
44
+ "totalFileCount": {
45
+ "type": "number"
46
+ },
38
47
  "groundingSource": {
39
48
  "type": "object",
40
49
  "properties": {
@@ -51,7 +60,50 @@
51
60
  "additionalProperties": {}
52
61
  }
53
62
  },
54
- "required": ["libraryId", "masterLabel", "developerName", "sourceType"],
63
+ "required": [
64
+ "libraryId",
65
+ "masterLabel",
66
+ "developerName",
67
+ "sourceType"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ "RetrieverDetail": {
72
+ "type": "object",
73
+ "properties": {
74
+ "id": {
75
+ "type": "string"
76
+ },
77
+ "label": {
78
+ "type": "string"
79
+ },
80
+ "apiName": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "required": [
85
+ "id",
86
+ "label"
87
+ ],
88
+ "additionalProperties": false
89
+ },
90
+ "RetrieverActionDetail": {
91
+ "type": "object",
92
+ "properties": {
93
+ "id": {
94
+ "type": "string"
95
+ },
96
+ "label": {
97
+ "type": "string"
98
+ },
99
+ "apiName": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "id",
105
+ "label"
106
+ ],
55
107
  "additionalProperties": false
56
108
  },
57
109
  "GroundingFileRef": {
@@ -74,10 +126,18 @@
74
126
  },
75
127
  "createdBy": {
76
128
  "type": "string"
129
+ },
130
+ "status": {
131
+ "type": "string"
77
132
  }
78
133
  },
79
- "required": ["fileId", "fileName", "filePath", "fileSize"],
134
+ "required": [
135
+ "fileId",
136
+ "fileName",
137
+ "filePath",
138
+ "fileSize"
139
+ ],
80
140
  "additionalProperties": false
81
141
  }
82
142
  }
83
- }
143
+ }
@@ -12,7 +12,9 @@
12
12
  }
13
13
  }
14
14
  },
15
- "required": ["libraries"],
15
+ "required": [
16
+ "libraries"
17
+ ],
16
18
  "additionalProperties": false
17
19
  },
18
20
  "DataLibrarySummary": {
@@ -35,10 +37,60 @@
35
37
  },
36
38
  "status": {
37
39
  "type": "string"
40
+ },
41
+ "retriever": {
42
+ "$ref": "#/definitions/RetrieverDetail"
43
+ },
44
+ "retrieverAction": {
45
+ "$ref": "#/definitions/RetrieverActionDetail"
46
+ }
47
+ },
48
+ "required": [
49
+ "libraryId",
50
+ "masterLabel",
51
+ "developerName",
52
+ "sourceType",
53
+ "status"
54
+ ],
55
+ "additionalProperties": false
56
+ },
57
+ "RetrieverDetail": {
58
+ "type": "object",
59
+ "properties": {
60
+ "id": {
61
+ "type": "string"
62
+ },
63
+ "label": {
64
+ "type": "string"
65
+ },
66
+ "apiName": {
67
+ "type": "string"
68
+ }
69
+ },
70
+ "required": [
71
+ "id",
72
+ "label"
73
+ ],
74
+ "additionalProperties": false
75
+ },
76
+ "RetrieverActionDetail": {
77
+ "type": "object",
78
+ "properties": {
79
+ "id": {
80
+ "type": "string"
81
+ },
82
+ "label": {
83
+ "type": "string"
84
+ },
85
+ "apiName": {
86
+ "type": "string"
38
87
  }
39
88
  },
40
- "required": ["libraryId", "masterLabel", "developerName", "sourceType", "status"],
89
+ "required": [
90
+ "id",
91
+ "label"
92
+ ],
41
93
  "additionalProperties": false
42
94
  }
43
95
  }
44
- }
96
+ }
@@ -30,11 +30,16 @@
30
30
  "type": "number"
31
31
  }
32
32
  },
33
- "required": ["libraryId", "status"],
33
+ "required": [
34
+ "libraryId",
35
+ "status"
36
+ ],
34
37
  "additionalProperties": false
35
38
  }
36
39
  },
37
- "required": ["indexingStatus"],
40
+ "required": [
41
+ "indexingStatus"
42
+ ],
38
43
  "additionalProperties": false
39
44
  },
40
45
  "StageDetail": {
@@ -54,10 +59,45 @@
54
59
  },
55
60
  "error": {
56
61
  "type": "string"
62
+ },
63
+ "artifacts": {
64
+ "type": "array",
65
+ "items": {
66
+ "$ref": "#/definitions/StageArtifact"
67
+ }
68
+ },
69
+ "errorCode": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ "required": [
74
+ "name",
75
+ "status"
76
+ ],
77
+ "additionalProperties": false
78
+ },
79
+ "StageArtifact": {
80
+ "type": "object",
81
+ "properties": {
82
+ "id": {
83
+ "type": "string"
84
+ },
85
+ "label": {
86
+ "type": "string"
87
+ },
88
+ "apiName": {
89
+ "type": "string"
90
+ },
91
+ "assetType": {
92
+ "type": "string"
57
93
  }
58
94
  },
59
- "required": ["name", "status"],
95
+ "required": [
96
+ "id",
97
+ "label",
98
+ "assetType"
99
+ ],
60
100
  "additionalProperties": false
61
101
  }
62
102
  }
63
- }
103
+ }
@@ -35,6 +35,15 @@
35
35
  "dataSpaceScopeId": {
36
36
  "type": "string"
37
37
  },
38
+ "retriever": {
39
+ "$ref": "#/definitions/RetrieverDetail"
40
+ },
41
+ "retrieverAction": {
42
+ "$ref": "#/definitions/RetrieverActionDetail"
43
+ },
44
+ "totalFileCount": {
45
+ "type": "number"
46
+ },
38
47
  "groundingSource": {
39
48
  "type": "object",
40
49
  "properties": {
@@ -51,7 +60,50 @@
51
60
  "additionalProperties": {}
52
61
  }
53
62
  },
54
- "required": ["libraryId", "masterLabel", "developerName", "sourceType"],
63
+ "required": [
64
+ "libraryId",
65
+ "masterLabel",
66
+ "developerName",
67
+ "sourceType"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ "RetrieverDetail": {
72
+ "type": "object",
73
+ "properties": {
74
+ "id": {
75
+ "type": "string"
76
+ },
77
+ "label": {
78
+ "type": "string"
79
+ },
80
+ "apiName": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "required": [
85
+ "id",
86
+ "label"
87
+ ],
88
+ "additionalProperties": false
89
+ },
90
+ "RetrieverActionDetail": {
91
+ "type": "object",
92
+ "properties": {
93
+ "id": {
94
+ "type": "string"
95
+ },
96
+ "label": {
97
+ "type": "string"
98
+ },
99
+ "apiName": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "id",
105
+ "label"
106
+ ],
55
107
  "additionalProperties": false
56
108
  },
57
109
  "GroundingFileRef": {
@@ -74,10 +126,18 @@
74
126
  },
75
127
  "createdBy": {
76
128
  "type": "string"
129
+ },
130
+ "status": {
131
+ "type": "string"
77
132
  }
78
133
  },
79
- "required": ["fileId", "fileName", "filePath", "fileSize"],
134
+ "required": [
135
+ "fileId",
136
+ "fileName",
137
+ "filePath",
138
+ "fileSize"
139
+ ],
80
140
  "additionalProperties": false
81
141
  }
82
142
  }
83
- }
143
+ }
@@ -21,8 +21,11 @@
21
21
  "type": "string"
22
22
  }
23
23
  },
24
- "required": ["libraryId", "status"],
24
+ "required": [
25
+ "libraryId",
26
+ "status"
27
+ ],
25
28
  "additionalProperties": false
26
29
  }
27
30
  }
28
- }
31
+ }
@@ -14,7 +14,9 @@
14
14
  }
15
15
  }
16
16
  },
17
- "required": ["ended"],
17
+ "required": [
18
+ "ended"
19
+ ],
18
20
  "additionalProperties": false
19
21
  },
20
22
  {
@@ -32,8 +34,11 @@
32
34
  "type": "string"
33
35
  }
34
36
  },
35
- "required": ["sessionId", "tracesPath"],
37
+ "required": [
38
+ "sessionId",
39
+ "tracesPath"
40
+ ],
36
41
  "additionalProperties": false
37
42
  }
38
43
  }
39
- }
44
+ }
@@ -39,12 +39,17 @@
39
39
  "type": "number"
40
40
  }
41
41
  },
42
- "required": ["retrieved", "deployed"],
42
+ "required": [
43
+ "retrieved",
44
+ "deployed"
45
+ ],
43
46
  "additionalProperties": false
44
47
  }
45
48
  },
46
- "required": ["success"],
49
+ "required": [
50
+ "success"
51
+ ],
47
52
  "additionalProperties": false
48
53
  }
49
54
  }
50
- }
55
+ }
@@ -20,9 +20,14 @@
20
20
  "type": "string"
21
21
  }
22
22
  },
23
- "required": ["agent", "sessionId", "planId", "path"],
23
+ "required": [
24
+ "agent",
25
+ "sessionId",
26
+ "planId",
27
+ "path"
28
+ ],
24
29
  "additionalProperties": false
25
30
  }
26
31
  }
27
32
  }
28
- }
33
+ }
@@ -26,9 +26,16 @@
26
26
  "type": "string"
27
27
  }
28
28
  },
29
- "required": ["agent", "sessionId", "planId", "path", "size", "mtime"],
29
+ "required": [
30
+ "agent",
31
+ "sessionId",
32
+ "planId",
33
+ "path",
34
+ "size",
35
+ "mtime"
36
+ ],
30
37
  "additionalProperties": false
31
38
  }
32
39
  }
33
40
  }
34
- }
41
+ }