@salesforce/plugin-agent 1.42.1 → 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 (115) hide show
  1. package/README.md +513 -68
  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/lib/commands/agent/generate/test-spec.d.ts +9 -0
  36. package/lib/commands/agent/generate/test-spec.js +194 -11
  37. package/lib/commands/agent/generate/test-spec.js.map +1 -1
  38. package/lib/commands/agent/mcp/asset/list.d.ts +16 -0
  39. package/lib/commands/agent/mcp/asset/list.js +68 -0
  40. package/lib/commands/agent/mcp/asset/list.js.map +1 -0
  41. package/lib/commands/agent/mcp/asset/replace.d.ts +18 -0
  42. package/lib/commands/agent/mcp/asset/replace.js +95 -0
  43. package/lib/commands/agent/mcp/asset/replace.js.map +1 -0
  44. package/lib/commands/agent/mcp/create.d.ts +24 -0
  45. package/lib/commands/agent/mcp/create.js +112 -0
  46. package/lib/commands/agent/mcp/create.js.map +1 -0
  47. package/lib/commands/agent/mcp/delete.d.ts +19 -0
  48. package/lib/commands/agent/mcp/delete.js +65 -0
  49. package/lib/commands/agent/mcp/delete.js.map +1 -0
  50. package/lib/commands/agent/mcp/fetch.d.ts +16 -0
  51. package/lib/commands/agent/mcp/fetch.js +68 -0
  52. package/lib/commands/agent/mcp/fetch.js.map +1 -0
  53. package/lib/commands/agent/mcp/get.d.ts +16 -0
  54. package/lib/commands/agent/mcp/get.js +58 -0
  55. package/lib/commands/agent/mcp/get.js.map +1 -0
  56. package/lib/commands/agent/mcp/list.d.ts +18 -0
  57. package/lib/commands/agent/mcp/list.js +73 -0
  58. package/lib/commands/agent/mcp/list.js.map +1 -0
  59. package/lib/commands/agent/mcp/update.d.ts +24 -0
  60. package/lib/commands/agent/mcp/update.js +115 -0
  61. package/lib/commands/agent/mcp/update.js.map +1 -0
  62. package/lib/commands/agent/preview/start.d.ts +1 -0
  63. package/lib/commands/agent/preview/start.js +4 -1
  64. package/lib/commands/agent/preview/start.js.map +1 -1
  65. package/lib/commands/agent/preview.d.ts +1 -0
  66. package/lib/commands/agent/preview.js +4 -0
  67. package/lib/commands/agent/preview.js.map +1 -1
  68. package/lib/components/agent-preview-react.d.ts +2 -1
  69. package/lib/components/agent-preview-react.js +3 -3
  70. package/lib/components/agent-preview-react.js.map +1 -1
  71. package/lib/flags.d.ts +12 -1
  72. package/lib/flags.js +31 -0
  73. package/lib/flags.js.map +1 -1
  74. package/messages/agent.adl.create.md +22 -0
  75. package/messages/agent.adl.file.add.md +2 -0
  76. package/messages/agent.adl.file.delete.md +4 -0
  77. package/messages/agent.adl.file.list.md +12 -0
  78. package/messages/agent.adl.status.md +5 -1
  79. package/messages/agent.adl.update.md +4 -0
  80. package/messages/agent.adl.upload.md +2 -0
  81. package/messages/agent.generate.test-spec.md +33 -5
  82. package/messages/agent.mcp.asset.list.md +25 -0
  83. package/messages/agent.mcp.asset.replace.md +49 -0
  84. package/messages/agent.mcp.create.md +61 -0
  85. package/messages/agent.mcp.delete.md +37 -0
  86. package/messages/agent.mcp.fetch.md +25 -0
  87. package/messages/agent.mcp.get.md +25 -0
  88. package/messages/agent.mcp.list.md +33 -0
  89. package/messages/agent.mcp.update.md +65 -0
  90. package/messages/shared.md +16 -0
  91. package/oclif.manifest.json +1774 -842
  92. package/package.json +14 -4
  93. package/schemas/agent-adl-create.json +63 -3
  94. package/schemas/agent-adl-delete.json +5 -2
  95. package/schemas/agent-adl-file-add.json +7 -2
  96. package/schemas/agent-adl-file-delete.json +5 -2
  97. package/schemas/agent-adl-file-list.json +26 -3
  98. package/schemas/agent-adl-get.json +63 -3
  99. package/schemas/agent-adl-list.json +55 -3
  100. package/schemas/agent-adl-status.json +44 -4
  101. package/schemas/agent-adl-update.json +63 -3
  102. package/schemas/agent-adl-upload.json +5 -2
  103. package/schemas/agent-mcp-asset-list.json +65 -0
  104. package/schemas/agent-mcp-asset-replace.json +65 -0
  105. package/schemas/agent-mcp-create.json +144 -0
  106. package/schemas/agent-mcp-delete.json +22 -0
  107. package/schemas/agent-mcp-fetch.json +66 -0
  108. package/schemas/agent-mcp-get.json +86 -0
  109. package/schemas/agent-mcp-list.json +101 -0
  110. package/schemas/agent-mcp-update.json +86 -0
  111. package/schemas/agent-preview-end.json +8 -3
  112. package/schemas/agent-publish-authoring__bundle.json +8 -3
  113. package/schemas/agent-trace-delete.json +7 -2
  114. package/schemas/agent-trace-list.json +9 -2
  115. package/schemas/agent-trace-read.json +131 -21
@@ -10,7 +10,11 @@
10
10
  },
11
11
  "format": {
12
12
  "type": "string",
13
- "enum": ["summary", "detail", "raw"]
13
+ "enum": [
14
+ "summary",
15
+ "detail",
16
+ "raw"
17
+ ]
14
18
  },
15
19
  "dimension": {
16
20
  "$ref": "#/definitions/Dimension"
@@ -34,12 +38,20 @@
34
38
  }
35
39
  }
36
40
  },
37
- "required": ["sessionId", "format"],
41
+ "required": [
42
+ "sessionId",
43
+ "format"
44
+ ],
38
45
  "additionalProperties": false
39
46
  },
40
47
  "Dimension": {
41
48
  "type": "string",
42
- "enum": ["actions", "grounding", "routing", "errors"]
49
+ "enum": [
50
+ "actions",
51
+ "grounding",
52
+ "routing",
53
+ "errors"
54
+ ]
43
55
  },
44
56
  "TurnSummary": {
45
57
  "type": "object",
@@ -69,10 +81,22 @@
69
81
  "type": "number"
70
82
  },
71
83
  "error": {
72
- "type": ["string", "null"]
84
+ "type": [
85
+ "string",
86
+ "null"
87
+ ]
73
88
  }
74
89
  },
75
- "required": ["turn", "planId", "topic", "userInput", "agentResponse", "actionsExecuted", "latencyMs", "error"],
90
+ "required": [
91
+ "turn",
92
+ "planId",
93
+ "topic",
94
+ "userInput",
95
+ "agentResponse",
96
+ "actionsExecuted",
97
+ "latencyMs",
98
+ "error"
99
+ ],
76
100
  "additionalProperties": false
77
101
  },
78
102
  "DimensionRow": {
@@ -117,10 +141,22 @@
117
141
  "type": "number"
118
142
  },
119
143
  "error": {
120
- "type": ["string", "null"]
144
+ "type": [
145
+ "string",
146
+ "null"
147
+ ]
121
148
  }
122
149
  },
123
- "required": ["dimension", "turn", "planId", "action", "input", "output", "latencyMs", "error"],
150
+ "required": [
151
+ "dimension",
152
+ "turn",
153
+ "planId",
154
+ "action",
155
+ "input",
156
+ "output",
157
+ "latencyMs",
158
+ "error"
159
+ ],
124
160
  "additionalProperties": false
125
161
  },
126
162
  "GroundingRow": {
@@ -146,7 +182,14 @@
146
182
  "type": "number"
147
183
  }
148
184
  },
149
- "required": ["dimension", "turn", "planId", "prompt", "response", "latencyMs"],
185
+ "required": [
186
+ "dimension",
187
+ "turn",
188
+ "planId",
189
+ "prompt",
190
+ "response",
191
+ "latencyMs"
192
+ ],
150
193
  "additionalProperties": false
151
194
  },
152
195
  "RoutingRow": {
@@ -172,7 +215,14 @@
172
215
  "type": "string"
173
216
  }
174
217
  },
175
- "required": ["dimension", "turn", "planId", "fromTopic", "toTopic", "intent"],
218
+ "required": [
219
+ "dimension",
220
+ "turn",
221
+ "planId",
222
+ "fromTopic",
223
+ "toTopic",
224
+ "intent"
225
+ ],
176
226
  "additionalProperties": false
177
227
  },
178
228
  "ErrorsRow": {
@@ -198,7 +248,14 @@
198
248
  "type": "string"
199
249
  }
200
250
  },
201
- "required": ["dimension", "turn", "planId", "source", "errorCode", "message"],
251
+ "required": [
252
+ "dimension",
253
+ "turn",
254
+ "planId",
255
+ "source",
256
+ "errorCode",
257
+ "message"
258
+ ],
202
259
  "additionalProperties": false
203
260
  },
204
261
  "PlannerResponse": {
@@ -227,7 +284,14 @@
227
284
  }
228
285
  }
229
286
  },
230
- "required": ["type", "planId", "sessionId", "intent", "topic", "plan"],
287
+ "required": [
288
+ "type",
289
+ "planId",
290
+ "sessionId",
291
+ "intent",
292
+ "topic",
293
+ "plan"
294
+ ],
231
295
  "additionalProperties": false
232
296
  },
233
297
  "PlanStep": {
@@ -263,7 +327,10 @@
263
327
  "type": "string"
264
328
  }
265
329
  },
266
- "required": ["type", "message"],
330
+ "required": [
331
+ "type",
332
+ "message"
333
+ ],
267
334
  "additionalProperties": false
268
335
  },
269
336
  "LLMExecutionStep": {
@@ -330,7 +397,14 @@
330
397
  "items": {}
331
398
  }
332
399
  },
333
- "required": ["type", "topic", "description", "job", "instructions", "availableFunctions"],
400
+ "required": [
401
+ "type",
402
+ "topic",
403
+ "description",
404
+ "job",
405
+ "instructions",
406
+ "availableFunctions"
407
+ ],
334
408
  "additionalProperties": false
335
409
  },
336
410
  "EventStep": {
@@ -356,11 +430,19 @@
356
430
  "type": "string"
357
431
  }
358
432
  },
359
- "required": ["oldTopic", "newTopic"],
433
+ "required": [
434
+ "oldTopic",
435
+ "newTopic"
436
+ ],
360
437
  "additionalProperties": false
361
438
  }
362
439
  },
363
- "required": ["type", "eventName", "isError", "payload"],
440
+ "required": [
441
+ "type",
442
+ "eventName",
443
+ "isError",
444
+ "payload"
445
+ ],
364
446
  "additionalProperties": false
365
447
  },
366
448
  "FunctionStep": {
@@ -385,7 +467,11 @@
385
467
  "additionalProperties": {}
386
468
  }
387
469
  },
388
- "required": ["name", "input", "output"],
470
+ "required": [
471
+ "name",
472
+ "input",
473
+ "output"
474
+ ],
389
475
  "additionalProperties": false
390
476
  },
391
477
  "executionLatency": {
@@ -398,7 +484,13 @@
398
484
  "type": "number"
399
485
  }
400
486
  },
401
- "required": ["type", "function", "executionLatency", "startExecutionTime", "endExecutionTime"],
487
+ "required": [
488
+ "type",
489
+ "function",
490
+ "executionLatency",
491
+ "startExecutionTime",
492
+ "endExecutionTime"
493
+ ],
402
494
  "additionalProperties": false
403
495
  },
404
496
  "PlannerResponseStep": {
@@ -451,16 +543,34 @@
451
543
  "type": "number"
452
544
  }
453
545
  },
454
- "required": ["toxicity", "hate", "identity", "violence", "physical", "sexual", "profanity", "biased"],
546
+ "required": [
547
+ "toxicity",
548
+ "hate",
549
+ "identity",
550
+ "violence",
551
+ "physical",
552
+ "sexual",
553
+ "profanity",
554
+ "biased"
555
+ ],
455
556
  "additionalProperties": false
456
557
  }
457
558
  },
458
- "required": ["safety_score", "category_scores"],
559
+ "required": [
560
+ "safety_score",
561
+ "category_scores"
562
+ ],
459
563
  "additionalProperties": false
460
564
  }
461
565
  },
462
- "required": ["type", "message", "responseType", "isContentSafe", "safetyScore"],
566
+ "required": [
567
+ "type",
568
+ "message",
569
+ "responseType",
570
+ "isContentSafe",
571
+ "safetyScore"
572
+ ],
463
573
  "additionalProperties": false
464
574
  }
465
575
  }
466
- }
576
+ }