@kb-labs/agent-entry 2.119.0-canary.e120bc0ee → 2.119.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.
- package/dist/cli/commands/diff.js.map +1 -1
- package/dist/cli/commands/history.js.map +1 -1
- package/dist/cli/commands/quality-report.js.map +1 -1
- package/dist/cli/commands/rollback.js.map +1 -1
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/trace-context.js.map +1 -1
- package/dist/cli/commands/trace-diagnose.js.map +1 -1
- package/dist/cli/commands/trace-event-normalizer.js.map +1 -1
- package/dist/cli/commands/trace-filter.js.map +1 -1
- package/dist/cli/commands/trace-iteration.js.map +1 -1
- package/dist/cli/commands/trace-stats.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.js +1 -1
- package/dist/manifest.js.map +1 -1
- package/dist/rest/handlers/approve-handler.js.map +1 -1
- package/dist/rest/handlers/approve-session-plan-handler.js.map +1 -1
- package/dist/rest/handlers/correct-handler.js.map +1 -1
- package/dist/rest/handlers/create-session-handler.js.map +1 -1
- package/dist/rest/handlers/execute-session-plan-handler.js.map +1 -1
- package/dist/rest/handlers/generate-spec-handler.js.map +1 -1
- package/dist/rest/handlers/get-file-diff-handler.js.map +1 -1
- package/dist/rest/handlers/get-session-handler.js.map +1 -1
- package/dist/rest/handlers/get-session-plan-handler.js.map +1 -1
- package/dist/rest/handlers/get-session-turns-handler.js.map +1 -1
- package/dist/rest/handlers/get-spec-handler.js.map +1 -1
- package/dist/rest/handlers/list-file-changes-handler.js.map +1 -1
- package/dist/rest/handlers/list-sessions-handler.js.map +1 -1
- package/dist/rest/handlers/rollback-handler.js.map +1 -1
- package/dist/rest/handlers/run-handler.js.map +1 -1
- package/dist/rest/handlers/sessions-handler.js.map +1 -1
- package/dist/rest/handlers/status-handler.js.map +1 -1
- package/dist/rest/handlers/stop-handler.js.map +1 -1
- package/dist/ws/session-stream-handler.js.map +1 -1
- package/package.json +14 -14
- package/dist/manifest.json +0 -685
- package/dist/widgets/117.js +0 -32
- package/dist/widgets/165.js +0 -1
- package/dist/widgets/326.js +0 -1
- package/dist/widgets/370.js +0 -1
- package/dist/widgets/405.js +0 -1
- package/dist/widgets/46.js +0 -445
- package/dist/widgets/50.js +0 -1
- package/dist/widgets/546.js +0 -1
- package/dist/widgets/648.js +0 -1
- package/dist/widgets/669.js +0 -1
- package/dist/widgets/707.js +0 -1
- package/dist/widgets/775.js +0 -1
- package/dist/widgets/78.js +0 -1
- package/dist/widgets/832.js +0 -96
- package/dist/widgets/875.js +0 -25
- package/dist/widgets/945.js +0 -1
- package/dist/widgets/968.js +0 -9
- package/dist/widgets/__federation_expose_AgentsPage.js +0 -1
- package/dist/widgets/mf-manifest.json +0 -229
- package/dist/widgets/mf-stats.json +0 -256
- package/dist/widgets/remoteEntry.js +0 -7
package/dist/manifest.json
DELETED
|
@@ -1,685 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": "kb.plugin/3",
|
|
3
|
-
"id": "@kb-labs/agent",
|
|
4
|
-
"version": "0.1.0",
|
|
5
|
-
"display": {
|
|
6
|
-
"name": "Agent System",
|
|
7
|
-
"description": "Autonomous agents, tool calling, and task orchestration",
|
|
8
|
-
"tags": [
|
|
9
|
-
"agent",
|
|
10
|
-
"autonomous",
|
|
11
|
-
"llm",
|
|
12
|
-
"orchestration"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"configSection": "agents",
|
|
16
|
-
"platform": {
|
|
17
|
-
"requires": [
|
|
18
|
-
"llm"
|
|
19
|
-
],
|
|
20
|
-
"optional": [
|
|
21
|
-
"cache",
|
|
22
|
-
"analytics",
|
|
23
|
-
"logger"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"cli": {
|
|
27
|
-
"groupMeta": [
|
|
28
|
-
{
|
|
29
|
-
"path": "agent",
|
|
30
|
-
"describe": "Autonomous agent commands"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "agent trace",
|
|
34
|
-
"describe": "Agent trace debugging commands"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"path": "agent quality",
|
|
38
|
-
"describe": "Agent quality control commands"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"commands": [
|
|
42
|
-
{
|
|
43
|
-
"path": "agent run",
|
|
44
|
-
"category": "Run",
|
|
45
|
-
"describe": "Run agent task (execute, plan, edit, or debug)",
|
|
46
|
-
"operationType": "execute",
|
|
47
|
-
"longDescription": "Unified agent command with multiple modes: execute (default) - run task immediately, plan - generate execution plan without running, edit - modify existing files, debug - analyze errors with trace context. Supports filesystem, search, shell, memory, and user interaction tools.",
|
|
48
|
-
"handler": "./cli/commands/run.js#default",
|
|
49
|
-
"flags": [
|
|
50
|
-
{
|
|
51
|
-
"name": "task",
|
|
52
|
-
"type": "string",
|
|
53
|
-
"description": "Task description"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "mode",
|
|
57
|
-
"type": "string",
|
|
58
|
-
"default": "execute",
|
|
59
|
-
"description": "Agent mode: execute (default), plan, edit, debug"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "session-id",
|
|
63
|
-
"type": "string",
|
|
64
|
-
"description": "Session ID (auto-generated if not provided)"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "complexity",
|
|
68
|
-
"type": "string",
|
|
69
|
-
"description": "Task complexity (for plan mode): simple, medium, complex"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"name": "approve",
|
|
73
|
-
"type": "boolean",
|
|
74
|
-
"default": false,
|
|
75
|
-
"description": "Auto-approve generated plan (supported with --mode=plan)"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "execute",
|
|
79
|
-
"type": "boolean",
|
|
80
|
-
"default": false,
|
|
81
|
-
"description": "After plan is approved, immediately execute it (use with --mode=plan --approve)"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"name": "files",
|
|
85
|
-
"type": "array",
|
|
86
|
-
"description": "Target files (for edit mode)"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"name": "trace",
|
|
90
|
-
"type": "string",
|
|
91
|
-
"description": "Trace file path (for debug mode)"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"name": "dry-run",
|
|
95
|
-
"type": "boolean",
|
|
96
|
-
"default": false,
|
|
97
|
-
"description": "Preview changes without applying (for edit mode)"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "verbose",
|
|
101
|
-
"type": "boolean",
|
|
102
|
-
"default": false,
|
|
103
|
-
"description": "Verbose output"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "debug",
|
|
107
|
-
"type": "boolean",
|
|
108
|
-
"default": false,
|
|
109
|
-
"description": "Enable debug mode: emit full prompts and responses as llm:debug events"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "timeout",
|
|
113
|
-
"type": "number",
|
|
114
|
-
"description": "Abort agent execution after this many seconds (exit code 124). No timeout by default."
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"name": "budget",
|
|
118
|
-
"type": "number",
|
|
119
|
-
"description": "Override token budget (e.g. 300000 for heavy tasks). Overrides config value."
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"name": "json",
|
|
123
|
-
"type": "boolean",
|
|
124
|
-
"description": "Output structured JSON result instead of human-readable output."
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"examples": [
|
|
128
|
-
"kb agent run --task=\"Create analytics system\"",
|
|
129
|
-
"kb agent run --mode=plan --task=\"Add auth\" --complexity=complex",
|
|
130
|
-
"kb agent run --mode=plan --task=\"Add auth\" --approve",
|
|
131
|
-
"kb agent run --mode=plan --task=\"Add auth\" --approve --execute",
|
|
132
|
-
"kb agent run --mode=edit --task=\"Fix bug\" --files src/auth.ts",
|
|
133
|
-
"kb agent run --mode=debug --task=\"Why crash?\" --trace .kb/traces/trace-123.json",
|
|
134
|
-
"kb agent run --task=\"Refactor auth module\" --timeout=120"
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"path": "agent trace stats",
|
|
139
|
-
"category": "Trace",
|
|
140
|
-
"describe": "Show trace statistics: tokens, cost, timing",
|
|
141
|
-
"operationType": "read",
|
|
142
|
-
"longDescription": "Analyze trace file to show comprehensive statistics: iterations, LLM calls, token usage, tool usage, timing, and cost. Supports --json flag for AI agent consumption.",
|
|
143
|
-
"handler": "./cli/commands/trace-stats.js#default",
|
|
144
|
-
"flags": [
|
|
145
|
-
{
|
|
146
|
-
"name": "task-id",
|
|
147
|
-
"type": "string",
|
|
148
|
-
"description": "Task ID or trace filename"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"name": "json",
|
|
152
|
-
"type": "boolean",
|
|
153
|
-
"default": false,
|
|
154
|
-
"description": "Output JSON for AI agents"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
"examples": [
|
|
158
|
-
"kb agent trace stats --task-id=task-2026-01-29",
|
|
159
|
-
"kb agent trace stats --task-id=task-123 --json"
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"path": "agent trace filter",
|
|
164
|
-
"category": "Trace",
|
|
165
|
-
"describe": "Filter trace events by type for debugging",
|
|
166
|
-
"operationType": "read",
|
|
167
|
-
"longDescription": "Filter trace events by type (llm:call, tool:execution, error:captured, etc.). Use this to debug specific aspects of agent execution. Supports --json flag for programmatic access.",
|
|
168
|
-
"handler": "./cli/commands/trace-filter.js#default",
|
|
169
|
-
"flags": [
|
|
170
|
-
{
|
|
171
|
-
"name": "task-id",
|
|
172
|
-
"type": "string",
|
|
173
|
-
"description": "Task ID or trace filename"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"name": "type",
|
|
177
|
-
"type": "string",
|
|
178
|
-
"description": "Event type to filter (llm:call, tool:execution, etc.)"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"name": "json",
|
|
182
|
-
"type": "boolean",
|
|
183
|
-
"default": false,
|
|
184
|
-
"description": "Output JSON for AI agents"
|
|
185
|
-
}
|
|
186
|
-
],
|
|
187
|
-
"examples": [
|
|
188
|
-
"kb agent trace filter --task-id=task-123 --type=llm:call",
|
|
189
|
-
"kb agent trace filter --task-id=task-123 --type=error:captured --json"
|
|
190
|
-
]
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"path": "agent trace iteration",
|
|
194
|
-
"category": "Trace",
|
|
195
|
-
"describe": "View all events for a specific iteration",
|
|
196
|
-
"operationType": "read",
|
|
197
|
-
"longDescription": "Show all trace events for a specific iteration number. Useful for debugging what happened in a particular loop iteration. Includes summary statistics and event timeline.",
|
|
198
|
-
"handler": "./cli/commands/trace-iteration.js#default",
|
|
199
|
-
"flags": [
|
|
200
|
-
{
|
|
201
|
-
"name": "task-id",
|
|
202
|
-
"type": "string",
|
|
203
|
-
"description": "Task ID or trace filename"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"name": "iteration",
|
|
207
|
-
"type": "number",
|
|
208
|
-
"description": "Iteration number (1-based)"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"name": "json",
|
|
212
|
-
"type": "boolean",
|
|
213
|
-
"default": false,
|
|
214
|
-
"description": "Output JSON for AI agents"
|
|
215
|
-
}
|
|
216
|
-
],
|
|
217
|
-
"examples": [
|
|
218
|
-
"kb agent trace iteration --task-id=task-123 --iteration=3",
|
|
219
|
-
"kb agent trace iteration --task-id=task-123 --iteration=5 --json"
|
|
220
|
-
]
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"path": "agent trace context",
|
|
224
|
-
"category": "Trace",
|
|
225
|
-
"describe": "Inspect context window and truncations per iteration",
|
|
226
|
-
"operationType": "read",
|
|
227
|
-
"longDescription": "Shows the full context timeline for debugging agent behavior. For each LLM call: what messages are in the sliding window, what was truncated/dropped, and what the LLM responded with.",
|
|
228
|
-
"handler": "./cli/commands/trace-context.js#default",
|
|
229
|
-
"flags": [
|
|
230
|
-
{
|
|
231
|
-
"name": "task-id",
|
|
232
|
-
"type": "string",
|
|
233
|
-
"description": "Task ID or trace filename"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"name": "iteration",
|
|
237
|
-
"type": "number",
|
|
238
|
-
"description": "Filter to specific iteration"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"name": "json",
|
|
242
|
-
"type": "boolean",
|
|
243
|
-
"default": false,
|
|
244
|
-
"description": "Output JSON for AI agents"
|
|
245
|
-
}
|
|
246
|
-
],
|
|
247
|
-
"examples": [
|
|
248
|
-
"kb agent trace context --task-id=task-123",
|
|
249
|
-
"kb agent trace context --task-id=task-123 --iteration=3",
|
|
250
|
-
"kb agent trace context --task-id=task-123 --json"
|
|
251
|
-
]
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"path": "agent trace diagnose",
|
|
255
|
-
"category": "Trace",
|
|
256
|
-
"describe": "Diagnose what went wrong in an agent run",
|
|
257
|
-
"operationType": "analyze",
|
|
258
|
-
"longDescription": "Comprehensive diagnostic report for agent execution. Analyzes errors, context window health (drops, truncations), tool failures, LLM reasoning text, loop detection, and quality indicators. One command to understand any agent issue.",
|
|
259
|
-
"handler": "./cli/commands/trace-diagnose.js#default",
|
|
260
|
-
"flags": [
|
|
261
|
-
{
|
|
262
|
-
"name": "task-id",
|
|
263
|
-
"type": "string",
|
|
264
|
-
"description": "Task ID or trace filename"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"name": "json",
|
|
268
|
-
"type": "boolean",
|
|
269
|
-
"default": false,
|
|
270
|
-
"description": "Output JSON for AI agents"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"examples": [
|
|
274
|
-
"kb agent trace diagnose --task-id=task-123",
|
|
275
|
-
"kb agent trace diagnose --task-id=task-123 --json"
|
|
276
|
-
]
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"path": "agent quality report",
|
|
280
|
-
"category": "Quality",
|
|
281
|
-
"describe": "Show quality control report for recent agent runs",
|
|
282
|
-
"operationType": "analyze",
|
|
283
|
-
"longDescription": "Aggregates agent KPI telemetry from analytics buffer and shows quality, token usage, tool efficiency, drift, and regression alerts. Useful for continuous quality control and cost/performance monitoring.",
|
|
284
|
-
"handler": "./cli/commands/quality-report.js#default",
|
|
285
|
-
"flags": [
|
|
286
|
-
{
|
|
287
|
-
"name": "days",
|
|
288
|
-
"type": "number",
|
|
289
|
-
"default": 1,
|
|
290
|
-
"description": "Lookback period in days"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"name": "limit",
|
|
294
|
-
"type": "number",
|
|
295
|
-
"default": 200,
|
|
296
|
-
"description": "Max KPI runs to analyze"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"name": "session-id",
|
|
300
|
-
"type": "string",
|
|
301
|
-
"description": "Filter by session ID"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"name": "json",
|
|
305
|
-
"type": "boolean",
|
|
306
|
-
"default": false,
|
|
307
|
-
"description": "Output JSON for automation"
|
|
308
|
-
}
|
|
309
|
-
],
|
|
310
|
-
"examples": [
|
|
311
|
-
"kb agent quality report",
|
|
312
|
-
"kb agent quality report --days=7",
|
|
313
|
-
"kb agent quality report --session-id=session-123",
|
|
314
|
-
"kb agent quality report --days=3 --json"
|
|
315
|
-
]
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
"path": "agent history",
|
|
319
|
-
"category": "History",
|
|
320
|
-
"describe": "Show file change history for agent sessions",
|
|
321
|
-
"operationType": "read",
|
|
322
|
-
"longDescription": "View file changes made by agents during execution. Filter by session, file, or agent. Shows timestamps, operations, and change metadata.",
|
|
323
|
-
"handler": "./cli/commands/history.js#default",
|
|
324
|
-
"flags": [
|
|
325
|
-
{
|
|
326
|
-
"name": "session-id",
|
|
327
|
-
"type": "string",
|
|
328
|
-
"description": "Session ID to filter by"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"name": "file",
|
|
332
|
-
"type": "string",
|
|
333
|
-
"description": "File path to filter by"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"name": "agent-id",
|
|
337
|
-
"type": "string",
|
|
338
|
-
"description": "Agent ID to filter by"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"name": "json",
|
|
342
|
-
"type": "boolean",
|
|
343
|
-
"default": false,
|
|
344
|
-
"description": "Output JSON for AI agents"
|
|
345
|
-
}
|
|
346
|
-
],
|
|
347
|
-
"examples": [
|
|
348
|
-
"kb agent history",
|
|
349
|
-
"kb agent history --session-id=session-123",
|
|
350
|
-
"kb agent history --file=src/index.ts",
|
|
351
|
-
"kb agent history --agent-id=agent-abc --json"
|
|
352
|
-
]
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
"path": "agent diff",
|
|
356
|
-
"category": "History",
|
|
357
|
-
"describe": "Show diff for specific file change",
|
|
358
|
-
"operationType": "read",
|
|
359
|
-
"longDescription": "Display line-by-line diff for a specific file change. Shows additions, deletions, and modifications with context.",
|
|
360
|
-
"handler": "./cli/commands/diff.js#default",
|
|
361
|
-
"flags": [
|
|
362
|
-
{
|
|
363
|
-
"name": "change-id",
|
|
364
|
-
"type": "string",
|
|
365
|
-
"description": "Change ID to show diff for"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"name": "json",
|
|
369
|
-
"type": "boolean",
|
|
370
|
-
"default": false,
|
|
371
|
-
"description": "Output JSON for AI agents"
|
|
372
|
-
}
|
|
373
|
-
],
|
|
374
|
-
"examples": [
|
|
375
|
-
"kb agent diff --change-id=change-abc123",
|
|
376
|
-
"kb agent diff --change-id=change-abc123 --json"
|
|
377
|
-
]
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"path": "agent rollback",
|
|
381
|
-
"category": "History",
|
|
382
|
-
"describe": "Rollback file changes made by agents",
|
|
383
|
-
"operationType": "mutate",
|
|
384
|
-
"longDescription": "Rollback file changes made by agents. Supports rollback by change ID, file path, agent ID, session, or timestamp. Use --dry-run to preview changes before applying.",
|
|
385
|
-
"handler": "./cli/commands/rollback.js#default",
|
|
386
|
-
"flags": [
|
|
387
|
-
{
|
|
388
|
-
"name": "change-id",
|
|
389
|
-
"type": "string",
|
|
390
|
-
"description": "Change ID to rollback"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"name": "file",
|
|
394
|
-
"type": "string",
|
|
395
|
-
"description": "File path to rollback all changes for"
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
"name": "agent-id",
|
|
399
|
-
"type": "string",
|
|
400
|
-
"description": "Agent ID to rollback all changes by"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
"name": "session-id",
|
|
404
|
-
"type": "string",
|
|
405
|
-
"description": "Session ID to rollback all changes in"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
"name": "after",
|
|
409
|
-
"type": "string",
|
|
410
|
-
"description": "Rollback all changes after timestamp (ISO 8601)"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"name": "force",
|
|
414
|
-
"type": "boolean",
|
|
415
|
-
"default": false,
|
|
416
|
-
"description": "Force rollback even with conflicts"
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"name": "dry-run",
|
|
420
|
-
"type": "boolean",
|
|
421
|
-
"default": false,
|
|
422
|
-
"description": "Preview rollback without applying"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
"name": "json",
|
|
426
|
-
"type": "boolean",
|
|
427
|
-
"default": false,
|
|
428
|
-
"description": "Output JSON for AI agents"
|
|
429
|
-
}
|
|
430
|
-
],
|
|
431
|
-
"examples": [
|
|
432
|
-
"kb agent rollback --change-id=change-abc123",
|
|
433
|
-
"kb agent rollback --file=src/index.ts --dry-run",
|
|
434
|
-
"kb agent rollback --agent-id=agent-abc",
|
|
435
|
-
"kb agent rollback --session-id=session-123",
|
|
436
|
-
"kb agent rollback --after=\"2026-02-16T10:00:00Z\" --json"
|
|
437
|
-
]
|
|
438
|
-
}
|
|
439
|
-
]
|
|
440
|
-
},
|
|
441
|
-
"capabilities": [],
|
|
442
|
-
"permissions": {
|
|
443
|
-
"fs": {
|
|
444
|
-
"read": [
|
|
445
|
-
".kb/**",
|
|
446
|
-
".agent-memory/**",
|
|
447
|
-
"**/*"
|
|
448
|
-
],
|
|
449
|
-
"write": [
|
|
450
|
-
".kb/**",
|
|
451
|
-
".agent-memory/**",
|
|
452
|
-
"**/*"
|
|
453
|
-
]
|
|
454
|
-
},
|
|
455
|
-
"env": {
|
|
456
|
-
"read": [
|
|
457
|
-
"HOME",
|
|
458
|
-
"USER",
|
|
459
|
-
"PATH",
|
|
460
|
-
"TMPDIR",
|
|
461
|
-
"NODE_ENV",
|
|
462
|
-
"KB_*"
|
|
463
|
-
]
|
|
464
|
-
},
|
|
465
|
-
"platform": {
|
|
466
|
-
"llm": true,
|
|
467
|
-
"analytics": true,
|
|
468
|
-
"cache": {
|
|
469
|
-
"namespaces": [
|
|
470
|
-
"agent:"
|
|
471
|
-
]
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
"quotas": {
|
|
475
|
-
"timeoutMs": 1800000,
|
|
476
|
-
"memoryMb": 1024
|
|
477
|
-
}
|
|
478
|
-
},
|
|
479
|
-
"rest": {
|
|
480
|
-
"basePath": "/v1/plugins/agents",
|
|
481
|
-
"defaults": {
|
|
482
|
-
"timeoutMs": 1800000
|
|
483
|
-
},
|
|
484
|
-
"routes": [
|
|
485
|
-
{
|
|
486
|
-
"method": "POST",
|
|
487
|
-
"path": "/run",
|
|
488
|
-
"description": "Start a new agent run",
|
|
489
|
-
"handler": "./rest/handlers/run-handler.js",
|
|
490
|
-
"security": [
|
|
491
|
-
"none"
|
|
492
|
-
]
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
"method": "GET",
|
|
496
|
-
"path": "/run/:runId",
|
|
497
|
-
"description": "Get status of a run",
|
|
498
|
-
"handler": "./rest/handlers/status-handler.js",
|
|
499
|
-
"security": [
|
|
500
|
-
"none"
|
|
501
|
-
]
|
|
502
|
-
},
|
|
503
|
-
{
|
|
504
|
-
"method": "POST",
|
|
505
|
-
"path": "/run/:runId/correct",
|
|
506
|
-
"description": "Send correction to running agent(s)",
|
|
507
|
-
"handler": "./rest/handlers/correct-handler.js",
|
|
508
|
-
"security": [
|
|
509
|
-
"none"
|
|
510
|
-
]
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"method": "POST",
|
|
514
|
-
"path": "/run/:runId/stop",
|
|
515
|
-
"description": "Stop a running agent",
|
|
516
|
-
"handler": "./rest/handlers/stop-handler.js",
|
|
517
|
-
"security": [
|
|
518
|
-
"none"
|
|
519
|
-
]
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"method": "GET",
|
|
523
|
-
"path": "/sessions",
|
|
524
|
-
"description": "List all sessions",
|
|
525
|
-
"handler": "./rest/handlers/list-sessions-handler.js",
|
|
526
|
-
"security": [
|
|
527
|
-
"none"
|
|
528
|
-
]
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
"method": "GET",
|
|
532
|
-
"path": "/sessions/:sessionId",
|
|
533
|
-
"description": "Get session details",
|
|
534
|
-
"handler": "./rest/handlers/get-session-handler.js",
|
|
535
|
-
"security": [
|
|
536
|
-
"none"
|
|
537
|
-
]
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"method": "POST",
|
|
541
|
-
"path": "/sessions",
|
|
542
|
-
"description": "Create a new session",
|
|
543
|
-
"handler": "./rest/handlers/create-session-handler.js",
|
|
544
|
-
"security": [
|
|
545
|
-
"none"
|
|
546
|
-
]
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"method": "GET",
|
|
550
|
-
"path": "/sessions/:sessionId/turns",
|
|
551
|
-
"description": "Get session turns (turn-based UI)",
|
|
552
|
-
"handler": "./rest/handlers/get-session-turns-handler.js",
|
|
553
|
-
"security": [
|
|
554
|
-
"none"
|
|
555
|
-
]
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"method": "GET",
|
|
559
|
-
"path": "/sessions/:sessionId/plan",
|
|
560
|
-
"description": "Get current session plan",
|
|
561
|
-
"handler": "./rest/handlers/get-session-plan-handler.js",
|
|
562
|
-
"security": [
|
|
563
|
-
"none"
|
|
564
|
-
]
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
"method": "POST",
|
|
568
|
-
"path": "/sessions/:sessionId/plan/approve",
|
|
569
|
-
"description": "Approve current session plan",
|
|
570
|
-
"handler": "./rest/handlers/approve-session-plan-handler.js",
|
|
571
|
-
"security": [
|
|
572
|
-
"none"
|
|
573
|
-
]
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
"method": "POST",
|
|
577
|
-
"path": "/sessions/:sessionId/plan/execute",
|
|
578
|
-
"description": "Execute approved session plan",
|
|
579
|
-
"handler": "./rest/handlers/execute-session-plan-handler.js",
|
|
580
|
-
"security": [
|
|
581
|
-
"none"
|
|
582
|
-
]
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
"method": "POST",
|
|
586
|
-
"path": "/sessions/:sessionId/plan/spec",
|
|
587
|
-
"description": "Generate detailed spec from approved plan",
|
|
588
|
-
"handler": "./rest/handlers/generate-spec-handler.js",
|
|
589
|
-
"security": [
|
|
590
|
-
"none"
|
|
591
|
-
]
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"method": "GET",
|
|
595
|
-
"path": "/sessions/:sessionId/spec",
|
|
596
|
-
"description": "Get current session spec",
|
|
597
|
-
"handler": "./rest/handlers/get-spec-handler.js",
|
|
598
|
-
"security": [
|
|
599
|
-
"none"
|
|
600
|
-
]
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
"method": "GET",
|
|
604
|
-
"path": "/sessions/:sessionId/changes",
|
|
605
|
-
"description": "List file changes for session (optionally filtered by runId)",
|
|
606
|
-
"handler": "./rest/handlers/list-file-changes-handler.js",
|
|
607
|
-
"security": [
|
|
608
|
-
"none"
|
|
609
|
-
]
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
"method": "GET",
|
|
613
|
-
"path": "/sessions/:sessionId/changes/:changeId/diff",
|
|
614
|
-
"description": "Get unified diff for a specific file change",
|
|
615
|
-
"handler": "./rest/handlers/get-file-diff-handler.js",
|
|
616
|
-
"security": [
|
|
617
|
-
"none"
|
|
618
|
-
]
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"method": "POST",
|
|
622
|
-
"path": "/sessions/:sessionId/rollback",
|
|
623
|
-
"description": "Rollback file changes for a session/run",
|
|
624
|
-
"handler": "./rest/handlers/rollback-handler.js",
|
|
625
|
-
"security": [
|
|
626
|
-
"none"
|
|
627
|
-
]
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
"method": "POST",
|
|
631
|
-
"path": "/sessions/:sessionId/approve",
|
|
632
|
-
"description": "Approve file changes for a session/run",
|
|
633
|
-
"handler": "./rest/handlers/approve-handler.js",
|
|
634
|
-
"security": [
|
|
635
|
-
"none"
|
|
636
|
-
]
|
|
637
|
-
}
|
|
638
|
-
]
|
|
639
|
-
},
|
|
640
|
-
"ws": {
|
|
641
|
-
"basePath": "/v1/ws/plugins/agents",
|
|
642
|
-
"defaults": {
|
|
643
|
-
"auth": "none",
|
|
644
|
-
"idleTimeoutMs": 3600000
|
|
645
|
-
},
|
|
646
|
-
"channels": [
|
|
647
|
-
{
|
|
648
|
-
"path": "/session/:sessionId",
|
|
649
|
-
"description": "Persistent session stream (all runs in session)",
|
|
650
|
-
"handler": "./ws/session-stream-handler.js",
|
|
651
|
-
"auth": "none"
|
|
652
|
-
}
|
|
653
|
-
]
|
|
654
|
-
},
|
|
655
|
-
"artifacts": [
|
|
656
|
-
{
|
|
657
|
-
"id": "agent.memory.json",
|
|
658
|
-
"pathTemplate": ".agent-memory/memory.json",
|
|
659
|
-
"description": "Persistent agent memory (facts, sessions, project context)."
|
|
660
|
-
}
|
|
661
|
-
],
|
|
662
|
-
"studio": {
|
|
663
|
-
"version": 2,
|
|
664
|
-
"remoteName": "agentPlugin",
|
|
665
|
-
"pages": [
|
|
666
|
-
{
|
|
667
|
-
"id": "agent.overview",
|
|
668
|
-
"title": "Agent",
|
|
669
|
-
"icon": "RobotOutlined",
|
|
670
|
-
"route": "/p/agent",
|
|
671
|
-
"entry": "./AgentsPage",
|
|
672
|
-
"order": 1
|
|
673
|
-
}
|
|
674
|
-
],
|
|
675
|
-
"menus": [
|
|
676
|
-
{
|
|
677
|
-
"id": "agent",
|
|
678
|
-
"label": "Agent",
|
|
679
|
-
"icon": "RobotOutlined",
|
|
680
|
-
"target": "agent.overview",
|
|
681
|
-
"order": 30
|
|
682
|
-
}
|
|
683
|
-
]
|
|
684
|
-
}
|
|
685
|
-
}
|