better-dsh 0.0.0 → 0.2.3

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 (142) hide show
  1. package/LICENSE +24 -0
  2. package/README.md +294 -4
  3. package/control-prompt.md +37 -0
  4. package/cordis.patch.yml +53 -0
  5. package/docs/00_adr/0001-bridge-tool-layer-not-service-layer.md +14 -0
  6. package/docs/00_adr/0002-masking-is-presentation-only.md +15 -0
  7. package/docs/10_plans/A2A-messaging-channel-test-archive.md +256 -0
  8. package/docs/10_plans/code-mode-vs-rlm-ipython-comparison.md +137 -0
  9. package/docs/10_plans/dashr-blueprint-review.md +201 -0
  10. package/docs/10_plans/dashr-blueprint.md +561 -0
  11. package/docs/10_plans/dashr-compaction-window-and-archive.md +307 -0
  12. package/docs/10_plans/dashr-profile-layer-feasibility.md +367 -0
  13. package/docs/10_plans/dashr-sandbox-escalation-semantics-gap.md +171 -0
  14. package/docs/10_plans/dashr-security-sandbox-analysis.md +187 -0
  15. package/docs/10_plans/dashr-surface-invariant-and-omp-imports.md +97 -0
  16. package/docs/10_plans/ipython-kernel-interactive-interface-test-report.md +152 -0
  17. package/docs/10_plans/kernel-refactoring/Dash-IPython-Control-Prompt-draft.md +146 -0
  18. package/docs/10_plans/kernel-refactoring/Dash-IPython-Control-Prompt-draft_v3.md +50 -0
  19. package/docs/10_plans/kernel-refactoring/Dash-IPython-Control-Prompt-draft_v4.md +79 -0
  20. package/docs/10_plans/kernel-refactoring/Dash-vs-PrimeAgent-systemprompt-toolcatalog-comparison.md +138 -0
  21. package/docs/10_plans/kernel-refactoring/RLM-system-prompt-injection-gap-report.md +161 -0
  22. package/docs/10_plans/kernel-refactoring/V0.1.5-development-plan.md +109 -0
  23. package/docs/10_plans/kernel-refactoring/actinoable-surface-to-llm-in-agent-runtime_dsh.md +50 -0
  24. package/docs/10_plans/kernel-refactoring/actinoable-surface-to-llm-in-agent-runtime_prime.md +113 -0
  25. package/docs/10_plans/recallable-compaction.md +147 -0
  26. package/docs/10_plans/spike-tag-repro.mjs +102 -0
  27. package/docs/10_plans/upstream-analysis.md +128 -0
  28. package/docs/50_test-reports/REPL-/345/267/245/345/205/267/350/260/203/347/224/250-/346/210/252/346/226/255/350/257/212/346/226/255.md +110 -0
  29. package/docs/50_test-reports/kernel-provisioning.md +44 -0
  30. package/docs/50_test-reports/repl-kernel-provisioning-test-report.md +87 -0
  31. package/docs/50_test-reports/upstream-dsh-0.1.2-alpha.5-local-test-report.md +81 -0
  32. package/docs/50_test-reports/upstream-dsh-0.1.2-alpha.5-report.md +93 -0
  33. package/docs/50_test-reports/v0.1.8-improved-/345/256/236/346/265/213/346/212/245/345/221/212.md +142 -0
  34. package/docs/50_test-reports/v0.1.8-/345/256/236/346/265/213/346/212/245/345/221/212.md +193 -0
  35. package/docs/50_test-reports/v0.1.8b-/345/256/236/346/265/213/346/212/245/345/221/212.md +96 -0
  36. package/docs/50_test-reports/v0.1.8c-/345/256/236/346/265/213/346/212/245/345/221/212.md +127 -0
  37. package/docs/50_test-reports/v0.1.8d-/345/256/236/346/265/213/346/212/245/345/221/212.md +150 -0
  38. package/docs/50_test-reports/v0.1.8d_artifacts/README.md +138 -0
  39. package/docs/50_test-reports/v0.1.8d_artifacts/code-mode-repl-only.observation.md +74 -0
  40. package/docs/50_test-reports/v0.1.8d_artifacts/dsh-session-session-4a293388-9ae1-474b-87a0-9e17bb556d94.jsonl +3890 -0
  41. package/docs/50_test-reports/v0.1.8d_artifacts/dsh-session-session-4a293388-9ae1-474b-87a0-9e17bb556d94.w-sample-0435.jsonl +544 -0
  42. package/docs/50_test-reports/v0.1.8d_artifacts/functions.json +592 -0
  43. package/docs/50_test-reports/v0.1.8d_artifacts/skills-catalog.snapshot.md +30 -0
  44. package/docs/50_test-reports/v0.1.8d_artifacts/tools-sdk.output-schemas.json +1236 -0
  45. package/docs/50_test-reports/v0.1.8d_artifacts/tools-sdk.python.txt +592 -0
  46. package/docs/50_test-reports/v0.1.8d_artifacts/tools-sdk.typescript.txt +516 -0
  47. package/docs/50_test-reports/v0.1.8d_artifacts/wire-vs-transcription.diff.md +54 -0
  48. package/docs/50_test-reports/v0.1.8e-/345/256/236/346/265/213/346/212/245/345/221/212.md +224 -0
  49. package/docs/50_test-reports/v0.1.9a-/345/256/236/346/265/213/346/212/245/345/221/212.md +168 -0
  50. package/docs/50_test-reports/v0.2.0b-/345/256/236/346/265/213/346/212/245/345/221/212.md +123 -0
  51. package/docs/50_test-reports/v0.2.0b_artifacts/f2probe/Cargo.lock +7 -0
  52. package/docs/50_test-reports/v0.2.0b_artifacts/f2probe/Cargo.toml +6 -0
  53. package/docs/50_test-reports/v0.2.0b_artifacts/f2probe/src/bin/messy.rs +8 -0
  54. package/docs/50_test-reports/v0.2.0b_artifacts/f2probe/src/main.rs +4 -0
  55. package/docs/50_test-reports/v0.2.0b_artifacts/hashline-probe.md +5 -0
  56. package/docs/50_test-reports/v0.2.0b_artifacts/slowprobe/Cargo.lock +7 -0
  57. package/docs/50_test-reports/v0.2.0b_artifacts/slowprobe/Cargo.toml +7 -0
  58. package/docs/50_test-reports/v0.2.0b_artifacts/slowprobe/build.rs +4 -0
  59. package/docs/50_test-reports/v0.2.0b_artifacts/slowprobe/src/main.rs +13 -0
  60. package/docs/50_test-reports/v0.2.1-/345/256/236/346/265/213/346/212/245/345/221/212.md +110 -0
  61. package/docs/50_test-reports/v0.2.1b-/345/256/236/346/265/213/346/212/245/345/221/212.md +86 -0
  62. package/docs/50_test-reports/v0.2.1c-/345/256/236/346/265/213/346/212/245/345/221/212.md +66 -0
  63. package/docs/50_test-reports/v0.2.1d-/345/256/236/346/265/213/346/212/245/345/221/212.md +67 -0
  64. package/docs/50_test-reports/v0.2.1e-P1-/345/256/236/346/265/213/346/212/245/345/221/212.md +136 -0
  65. package/docs/50_test-reports/v0.2.1ef-dev-audit-report.md +73 -0
  66. package/docs/50_test-reports/v0.2.1f-plugin-shipped-ui-patches/345/256/236/346/265/213/346/212/245/345/221/212.md +102 -0
  67. package/docs/60_exploration-and-research/cordis-research.md +350 -0
  68. package/docs/60_exploration-and-research/dsh-web-profile-package-map.md +186 -0
  69. package/docs/60_exploration-and-research/dsh-web-ui-slot-system-research.md +310 -0
  70. package/docs/60_exploration-and-research/dsh-webui-strip-boundary-research.md +300 -0
  71. package/docs/60_exploration-and-research/ios-chat-app-bridge-research.md +324 -0
  72. package/docs/60_exploration-and-research/web-frontend-composability-research.md +191 -0
  73. package/docs/REPL-/345/267/245/345/205/267/350/260/203/347/224/250-/346/210/252/346/226/255/350/257/212/346/226/255.md +110 -0
  74. package/docs/adr/0001-bridge-tool-layer-not-service-layer.md +14 -0
  75. package/docs/adr/0002-masking-is-presentation-only.md +15 -0
  76. package/docs/distro-blueprint.md +81 -0
  77. package/docs/dsh-webUI-with-rlm-mode.png +0 -0
  78. package/docs/plans/A2A-messaging-channel-test-archive.md +256 -0
  79. package/docs/plans/code-mode-vs-rlm-ipython-comparison.md +137 -0
  80. package/docs/plans/dashr-blueprint-review.md +201 -0
  81. package/docs/plans/dashr-blueprint.md +561 -0
  82. package/docs/plans/dashr-compaction-window-and-archive.md +307 -0
  83. package/docs/plans/dashr-profile-layer-feasibility.md +367 -0
  84. package/docs/plans/dashr-sandbox-escalation-semantics-gap.md +171 -0
  85. package/docs/plans/dashr-security-sandbox-analysis.md +187 -0
  86. package/docs/plans/dashr-surface-invariant-and-omp-imports.md +97 -0
  87. package/docs/plans/ipython-kernel-interactive-interface-test-report.md +152 -0
  88. package/docs/plans/kernel-refactoring/Dash-IPython-Control-Prompt-draft.md +146 -0
  89. package/docs/plans/kernel-refactoring/Dash-IPython-Control-Prompt-draft_v3.md +50 -0
  90. package/docs/plans/kernel-refactoring/Dash-IPython-Control-Prompt-draft_v4.md +79 -0
  91. package/docs/plans/kernel-refactoring/Dash-vs-PrimeAgent-systemprompt-toolcatalog-comparison.md +138 -0
  92. package/docs/plans/kernel-refactoring/RLM-system-prompt-injection-gap-report.md +161 -0
  93. package/docs/plans/kernel-refactoring/V0.1.5-development-plan.md +109 -0
  94. package/docs/plans/kernel-refactoring/actinoable-surface-to-llm-in-agent-runtime_dsh.md +50 -0
  95. package/docs/plans/kernel-refactoring/actinoable-surface-to-llm-in-agent-runtime_prime.md +113 -0
  96. package/docs/plans/recallable-compaction.md +147 -0
  97. package/docs/plans/spike-tag-repro.mjs +102 -0
  98. package/docs/plans/upstream-analysis.md +128 -0
  99. package/docs/repositioning-and-rebranding.md +102 -0
  100. package/docs/v0.1.8-improved-/345/256/236/346/265/213/346/212/245/345/221/212.md +142 -0
  101. package/docs/v0.1.8-/345/256/236/346/265/213/346/212/245/345/221/212.md +193 -0
  102. package/docs/v0.1.8b-/345/256/236/346/265/213/346/212/245/345/221/212.md +96 -0
  103. package/docs/v0.1.8c-/345/256/236/346/265/213/346/212/245/345/221/212.md +127 -0
  104. package/docs/v0.1.8d-/345/256/236/346/265/213/346/212/245/345/221/212.md +150 -0
  105. package/docs/v0.1.8d_artifacts/README.md +138 -0
  106. package/docs/v0.1.8d_artifacts/code-mode-repl-only.observation.md +74 -0
  107. package/docs/v0.1.8d_artifacts/dsh-session-session-4a293388-9ae1-474b-87a0-9e17bb556d94.jsonl +3890 -0
  108. package/docs/v0.1.8d_artifacts/dsh-session-session-4a293388-9ae1-474b-87a0-9e17bb556d94.w-sample-0435.jsonl +544 -0
  109. package/docs/v0.1.8d_artifacts/functions.json +592 -0
  110. package/docs/v0.1.8d_artifacts/skills-catalog.snapshot.md +30 -0
  111. package/docs/v0.1.8d_artifacts/tools-sdk.output-schemas.json +1236 -0
  112. package/docs/v0.1.8d_artifacts/tools-sdk.python.txt +592 -0
  113. package/docs/v0.1.8d_artifacts/tools-sdk.typescript.txt +516 -0
  114. package/docs/v0.1.8d_artifacts/wire-vs-transcription.diff.md +54 -0
  115. package/docs/v0.1.8e-/345/256/236/346/265/213/346/212/245/345/221/212.md +224 -0
  116. package/docs/v0.1.9a-/345/256/236/346/265/213/346/212/245/345/221/212.md +168 -0
  117. package/docs/v0.2.0b-/345/256/236/346/265/213/346/212/245/345/221/212.md +123 -0
  118. package/docs/v0.2.0b_artifacts/f2probe/Cargo.lock +7 -0
  119. package/docs/v0.2.0b_artifacts/f2probe/Cargo.toml +6 -0
  120. package/docs/v0.2.0b_artifacts/f2probe/src/bin/messy.rs +8 -0
  121. package/docs/v0.2.0b_artifacts/f2probe/src/main.rs +4 -0
  122. package/docs/v0.2.0b_artifacts/hashline-probe.md +5 -0
  123. package/docs/v0.2.0b_artifacts/slowprobe/Cargo.lock +7 -0
  124. package/docs/v0.2.0b_artifacts/slowprobe/Cargo.toml +7 -0
  125. package/docs/v0.2.0b_artifacts/slowprobe/build.rs +4 -0
  126. package/docs/v0.2.0b_artifacts/slowprobe/src/main.rs +13 -0
  127. package/docs/v0.2.1-/345/256/236/346/265/213/346/212/245/345/221/212.md +110 -0
  128. package/docs/v0.2.1b-/345/256/236/346/265/213/346/212/245/345/221/212.md +86 -0
  129. package/docs/v0.2.1c-/345/256/236/346/265/213/346/212/245/345/221/212.md +66 -0
  130. package/lib/client/index.js +473 -0
  131. package/lib/index.d.ts +736 -0
  132. package/lib/index.js +11518 -0
  133. package/lib/kernel-env-hxaihi9C.js +195 -0
  134. package/lib/kernel-env.d.ts +80 -0
  135. package/lib/kernel-env.js +3 -0
  136. package/lib/py-sdk-BCaOGYz7.d.ts +125 -0
  137. package/lib/py-sdk-CbgYiX8O.js +691 -0
  138. package/lib/py-sdk.d.ts +2 -0
  139. package/lib/py-sdk.js +3 -0
  140. package/package.json +325 -4
  141. package/scripts/kernel-provision.mjs +35 -0
  142. package/index.js +0 -3
@@ -0,0 +1,1236 @@
1
+ {
2
+ "ask_user_question": {
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "answers": {
7
+ "type": "array",
8
+ "items": {
9
+ "type": "object",
10
+ "additionalProperties": false,
11
+ "properties": {
12
+ "id": {
13
+ "type": "string"
14
+ },
15
+ "selected": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "custom": {
22
+ "type": "string"
23
+ }
24
+ },
25
+ "required": [
26
+ "id",
27
+ "selected"
28
+ ]
29
+ }
30
+ }
31
+ },
32
+ "required": [
33
+ "answers"
34
+ ]
35
+ },
36
+ "bash": {
37
+ "oneOf": [
38
+ {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "properties": {
42
+ "kind": {
43
+ "type": "string",
44
+ "const": "background"
45
+ },
46
+ "jobId": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "kind",
52
+ "jobId"
53
+ ]
54
+ },
55
+ {
56
+ "type": "object",
57
+ "additionalProperties": false,
58
+ "properties": {
59
+ "kind": {
60
+ "type": "string",
61
+ "const": "foreground"
62
+ },
63
+ "exitCode": {
64
+ "oneOf": [
65
+ {
66
+ "type": "integer"
67
+ },
68
+ {
69
+ "type": "null"
70
+ }
71
+ ]
72
+ },
73
+ "signal": {
74
+ "oneOf": [
75
+ {
76
+ "type": "string"
77
+ },
78
+ {
79
+ "type": "null"
80
+ }
81
+ ]
82
+ },
83
+ "timedOut": {
84
+ "type": "boolean"
85
+ },
86
+ "aborted": {
87
+ "type": "boolean"
88
+ },
89
+ "timeoutMs": {
90
+ "type": "number"
91
+ },
92
+ "stdout": {
93
+ "type": "object",
94
+ "additionalProperties": false,
95
+ "properties": {
96
+ "text": {
97
+ "type": "string"
98
+ },
99
+ "truncated": {
100
+ "type": "boolean"
101
+ },
102
+ "spillPath": {
103
+ "type": "string"
104
+ }
105
+ },
106
+ "required": [
107
+ "text",
108
+ "truncated"
109
+ ]
110
+ },
111
+ "stderr": {
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "properties": {
115
+ "text": {
116
+ "type": "string"
117
+ },
118
+ "truncated": {
119
+ "type": "boolean"
120
+ },
121
+ "spillPath": {
122
+ "type": "string"
123
+ }
124
+ },
125
+ "required": [
126
+ "text",
127
+ "truncated"
128
+ ]
129
+ },
130
+ "sandbox": {
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "properties": {
134
+ "mode": {
135
+ "type": "string"
136
+ },
137
+ "denied": {
138
+ "type": "boolean"
139
+ },
140
+ "enforcement": {
141
+ "type": "string"
142
+ },
143
+ "runnerFailed": {
144
+ "type": "boolean"
145
+ }
146
+ },
147
+ "required": [
148
+ "mode",
149
+ "denied"
150
+ ]
151
+ }
152
+ },
153
+ "required": [
154
+ "kind",
155
+ "exitCode",
156
+ "signal",
157
+ "timedOut",
158
+ "aborted",
159
+ "timeoutMs",
160
+ "stdout",
161
+ "stderr"
162
+ ]
163
+ }
164
+ ]
165
+ },
166
+ "create_goal": {
167
+ "oneOf": [
168
+ {
169
+ "type": "object",
170
+ "additionalProperties": false,
171
+ "properties": {
172
+ "goal": {
173
+ "type": "null"
174
+ }
175
+ },
176
+ "required": [
177
+ "goal"
178
+ ]
179
+ },
180
+ {
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "properties": {
184
+ "goal": {
185
+ "type": "object",
186
+ "additionalProperties": false,
187
+ "properties": {
188
+ "id": {
189
+ "type": "string"
190
+ },
191
+ "revision": {
192
+ "type": "integer"
193
+ },
194
+ "objective": {
195
+ "type": "string"
196
+ },
197
+ "phase": {
198
+ "type": "string",
199
+ "enum": [
200
+ "active",
201
+ "paused",
202
+ "blocked",
203
+ "complete"
204
+ ]
205
+ },
206
+ "roundsStarted": {
207
+ "type": "integer"
208
+ },
209
+ "maxGoalRounds": {
210
+ "type": "integer"
211
+ },
212
+ "blockedReason": {
213
+ "type": "object",
214
+ "additionalProperties": false,
215
+ "properties": {
216
+ "code": {
217
+ "type": "string"
218
+ },
219
+ "message": {
220
+ "type": "string"
221
+ }
222
+ },
223
+ "required": [
224
+ "code",
225
+ "message"
226
+ ]
227
+ }
228
+ },
229
+ "required": [
230
+ "id",
231
+ "revision",
232
+ "objective",
233
+ "phase",
234
+ "roundsStarted",
235
+ "maxGoalRounds"
236
+ ]
237
+ },
238
+ "activation": {
239
+ "type": "string",
240
+ "enum": [
241
+ "armed",
242
+ "disarmed"
243
+ ]
244
+ }
245
+ },
246
+ "required": [
247
+ "goal",
248
+ "activation"
249
+ ]
250
+ }
251
+ ]
252
+ },
253
+ "edit": {
254
+ "type": "object",
255
+ "additionalProperties": false,
256
+ "properties": {
257
+ "path": {
258
+ "type": "string"
259
+ },
260
+ "before": {
261
+ "type": "string"
262
+ },
263
+ "after": {
264
+ "type": "string"
265
+ }
266
+ },
267
+ "required": [
268
+ "path",
269
+ "before",
270
+ "after"
271
+ ]
272
+ },
273
+ "exit_plan_mode": {
274
+ "type": "object",
275
+ "additionalProperties": false,
276
+ "properties": {
277
+ "approved": {
278
+ "type": "boolean",
279
+ "const": true
280
+ }
281
+ },
282
+ "required": [
283
+ "approved"
284
+ ]
285
+ },
286
+ "get_goal": {
287
+ "oneOf": [
288
+ {
289
+ "type": "object",
290
+ "additionalProperties": false,
291
+ "properties": {
292
+ "goal": {
293
+ "type": "null"
294
+ }
295
+ },
296
+ "required": [
297
+ "goal"
298
+ ]
299
+ },
300
+ {
301
+ "type": "object",
302
+ "additionalProperties": false,
303
+ "properties": {
304
+ "goal": {
305
+ "type": "object",
306
+ "additionalProperties": false,
307
+ "properties": {
308
+ "id": {
309
+ "type": "string"
310
+ },
311
+ "revision": {
312
+ "type": "integer"
313
+ },
314
+ "objective": {
315
+ "type": "string"
316
+ },
317
+ "phase": {
318
+ "type": "string",
319
+ "enum": [
320
+ "active",
321
+ "paused",
322
+ "blocked",
323
+ "complete"
324
+ ]
325
+ },
326
+ "roundsStarted": {
327
+ "type": "integer"
328
+ },
329
+ "maxGoalRounds": {
330
+ "type": "integer"
331
+ },
332
+ "blockedReason": {
333
+ "type": "object",
334
+ "additionalProperties": false,
335
+ "properties": {
336
+ "code": {
337
+ "type": "string"
338
+ },
339
+ "message": {
340
+ "type": "string"
341
+ }
342
+ },
343
+ "required": [
344
+ "code",
345
+ "message"
346
+ ]
347
+ }
348
+ },
349
+ "required": [
350
+ "id",
351
+ "revision",
352
+ "objective",
353
+ "phase",
354
+ "roundsStarted",
355
+ "maxGoalRounds"
356
+ ]
357
+ },
358
+ "activation": {
359
+ "type": "string",
360
+ "enum": [
361
+ "armed",
362
+ "disarmed"
363
+ ]
364
+ }
365
+ },
366
+ "required": [
367
+ "goal",
368
+ "activation"
369
+ ]
370
+ }
371
+ ]
372
+ },
373
+ "glob": {
374
+ "type": "object",
375
+ "additionalProperties": false,
376
+ "properties": {
377
+ "root": {
378
+ "type": "string"
379
+ },
380
+ "paths": {
381
+ "type": "array",
382
+ "items": {
383
+ "type": "string"
384
+ }
385
+ }
386
+ },
387
+ "required": [
388
+ "root",
389
+ "paths"
390
+ ]
391
+ },
392
+ "grep": {
393
+ "type": "object",
394
+ "additionalProperties": false,
395
+ "properties": {
396
+ "matches": {
397
+ "type": "array",
398
+ "items": {
399
+ "type": "object",
400
+ "additionalProperties": false,
401
+ "properties": {
402
+ "path": {
403
+ "type": "string"
404
+ },
405
+ "lineNumber": {
406
+ "type": "integer"
407
+ },
408
+ "line": {
409
+ "type": "string"
410
+ }
411
+ },
412
+ "required": [
413
+ "path",
414
+ "lineNumber",
415
+ "line"
416
+ ]
417
+ }
418
+ }
419
+ },
420
+ "required": [
421
+ "matches"
422
+ ]
423
+ },
424
+ "interrupt_agent": {
425
+ "type": "object",
426
+ "additionalProperties": false,
427
+ "properties": {
428
+ "accepted": {
429
+ "type": "boolean"
430
+ }
431
+ },
432
+ "required": [
433
+ "accepted"
434
+ ]
435
+ },
436
+ "job_kill": {
437
+ "type": "object",
438
+ "additionalProperties": false,
439
+ "properties": {
440
+ "outcome": {
441
+ "type": "string",
442
+ "enum": [
443
+ "cancellation-requested",
444
+ "already-finished"
445
+ ]
446
+ },
447
+ "job": {
448
+ "type": "object",
449
+ "additionalProperties": false,
450
+ "properties": {
451
+ "id": {
452
+ "type": "string"
453
+ },
454
+ "kind": {
455
+ "type": "string"
456
+ },
457
+ "label": {
458
+ "type": "string"
459
+ },
460
+ "status": {
461
+ "type": "string",
462
+ "enum": [
463
+ "running",
464
+ "stopping",
465
+ "completed",
466
+ "killed",
467
+ "failed"
468
+ ]
469
+ },
470
+ "detail": {
471
+ "type": "string"
472
+ },
473
+ "startedAt": {
474
+ "type": "integer"
475
+ },
476
+ "finishedAt": {
477
+ "type": "integer"
478
+ }
479
+ },
480
+ "required": [
481
+ "id",
482
+ "kind",
483
+ "label",
484
+ "status",
485
+ "startedAt"
486
+ ]
487
+ }
488
+ },
489
+ "required": [
490
+ "outcome",
491
+ "job"
492
+ ]
493
+ },
494
+ "job_list": {
495
+ "type": "array",
496
+ "items": {
497
+ "type": "object",
498
+ "additionalProperties": false,
499
+ "properties": {
500
+ "id": {
501
+ "type": "string"
502
+ },
503
+ "kind": {
504
+ "type": "string"
505
+ },
506
+ "label": {
507
+ "type": "string"
508
+ },
509
+ "status": {
510
+ "type": "string",
511
+ "enum": [
512
+ "running",
513
+ "stopping",
514
+ "completed",
515
+ "killed",
516
+ "failed"
517
+ ]
518
+ },
519
+ "detail": {
520
+ "type": "string"
521
+ },
522
+ "startedAt": {
523
+ "type": "integer"
524
+ },
525
+ "finishedAt": {
526
+ "type": "integer"
527
+ }
528
+ },
529
+ "required": [
530
+ "id",
531
+ "kind",
532
+ "label",
533
+ "status",
534
+ "startedAt"
535
+ ]
536
+ }
537
+ },
538
+ "job_output": {
539
+ "type": "object",
540
+ "additionalProperties": false,
541
+ "properties": {
542
+ "text": {
543
+ "type": "string"
544
+ },
545
+ "job": {
546
+ "type": "object",
547
+ "additionalProperties": false,
548
+ "properties": {
549
+ "id": {
550
+ "type": "string"
551
+ },
552
+ "kind": {
553
+ "type": "string"
554
+ },
555
+ "label": {
556
+ "type": "string"
557
+ },
558
+ "status": {
559
+ "type": "string",
560
+ "enum": [
561
+ "running",
562
+ "stopping",
563
+ "completed",
564
+ "killed",
565
+ "failed"
566
+ ]
567
+ },
568
+ "detail": {
569
+ "type": "string"
570
+ },
571
+ "startedAt": {
572
+ "type": "integer"
573
+ },
574
+ "finishedAt": {
575
+ "type": "integer"
576
+ }
577
+ },
578
+ "required": [
579
+ "id",
580
+ "kind",
581
+ "label",
582
+ "status",
583
+ "startedAt"
584
+ ]
585
+ }
586
+ },
587
+ "required": [
588
+ "text",
589
+ "job"
590
+ ]
591
+ },
592
+ "list_agents": {
593
+ "type": "array",
594
+ "items": {
595
+ "oneOf": [
596
+ {
597
+ "type": "object",
598
+ "additionalProperties": false,
599
+ "properties": {
600
+ "kind": {
601
+ "type": "string",
602
+ "enum": [
603
+ "child"
604
+ ]
605
+ },
606
+ "id": {
607
+ "type": "string"
608
+ },
609
+ "label": {
610
+ "type": "string"
611
+ },
612
+ "status": {
613
+ "type": "string",
614
+ "enum": [
615
+ "running",
616
+ "idle",
617
+ "ready"
618
+ ]
619
+ },
620
+ "parent": {
621
+ "type": "string"
622
+ },
623
+ "depth": {
624
+ "type": "number"
625
+ }
626
+ },
627
+ "required": [
628
+ "kind",
629
+ "id",
630
+ "label",
631
+ "status"
632
+ ]
633
+ },
634
+ {
635
+ "type": "object",
636
+ "additionalProperties": false,
637
+ "properties": {
638
+ "kind": {
639
+ "type": "string",
640
+ "enum": [
641
+ "diagnostic"
642
+ ]
643
+ },
644
+ "id": {
645
+ "type": "string"
646
+ },
647
+ "reason": {
648
+ "type": "string",
649
+ "enum": [
650
+ "corrupt",
651
+ "unsupported",
652
+ "unavailable"
653
+ ]
654
+ },
655
+ "parent": {
656
+ "type": "string"
657
+ },
658
+ "depth": {
659
+ "type": "number"
660
+ }
661
+ },
662
+ "required": [
663
+ "kind",
664
+ "id",
665
+ "reason"
666
+ ]
667
+ }
668
+ ]
669
+ }
670
+ },
671
+ "ralph": {
672
+ "type": "object",
673
+ "additionalProperties": false,
674
+ "properties": {
675
+ "runId": {
676
+ "type": "string"
677
+ },
678
+ "agentsStarted": {
679
+ "type": "integer"
680
+ },
681
+ "result": {}
682
+ },
683
+ "required": [
684
+ "runId",
685
+ "agentsStarted",
686
+ "result"
687
+ ]
688
+ },
689
+ "read": {
690
+ "type": "object",
691
+ "additionalProperties": false,
692
+ "properties": {
693
+ "path": {
694
+ "type": "string"
695
+ },
696
+ "offset": {
697
+ "type": "integer"
698
+ },
699
+ "lines": {
700
+ "type": "array",
701
+ "items": {
702
+ "type": "object",
703
+ "additionalProperties": false,
704
+ "properties": {
705
+ "number": {
706
+ "type": "integer"
707
+ },
708
+ "text": {
709
+ "type": "string"
710
+ }
711
+ },
712
+ "required": [
713
+ "number",
714
+ "text"
715
+ ]
716
+ }
717
+ },
718
+ "totalLines": {
719
+ "type": "integer"
720
+ }
721
+ },
722
+ "required": [
723
+ "path",
724
+ "offset",
725
+ "lines",
726
+ "totalLines"
727
+ ]
728
+ },
729
+ "read_image": {
730
+ "type": "object",
731
+ "additionalProperties": false,
732
+ "properties": {
733
+ "path": {
734
+ "type": "string"
735
+ },
736
+ "image": {
737
+ "type": "object",
738
+ "additionalProperties": false,
739
+ "properties": {
740
+ "attachmentId": {
741
+ "type": "string"
742
+ },
743
+ "mediaType": {
744
+ "type": "string",
745
+ "enum": [
746
+ "image/png",
747
+ "image/jpeg",
748
+ "image/webp",
749
+ "image/gif"
750
+ ]
751
+ },
752
+ "bytes": {
753
+ "type": "integer"
754
+ },
755
+ "width": {
756
+ "type": "integer"
757
+ },
758
+ "height": {
759
+ "type": "integer"
760
+ },
761
+ "name": {
762
+ "type": "string"
763
+ },
764
+ "originalDimensions": {
765
+ "type": "object",
766
+ "additionalProperties": false,
767
+ "properties": {
768
+ "width": {
769
+ "type": "integer"
770
+ },
771
+ "height": {
772
+ "type": "integer"
773
+ }
774
+ },
775
+ "required": [
776
+ "width",
777
+ "height"
778
+ ]
779
+ }
780
+ },
781
+ "required": [
782
+ "attachmentId",
783
+ "mediaType",
784
+ "bytes",
785
+ "width",
786
+ "height"
787
+ ]
788
+ }
789
+ },
790
+ "required": [
791
+ "path",
792
+ "image"
793
+ ]
794
+ },
795
+ "send_message": {
796
+ "type": "object",
797
+ "additionalProperties": false,
798
+ "properties": {
799
+ "messageId": {
800
+ "type": "string"
801
+ }
802
+ },
803
+ "required": [
804
+ "messageId"
805
+ ]
806
+ },
807
+ "skill": {
808
+ "type": "object",
809
+ "additionalProperties": false,
810
+ "properties": {
811
+ "name": {
812
+ "type": "string"
813
+ },
814
+ "provider": {
815
+ "type": "string"
816
+ },
817
+ "resourceBase": {
818
+ "oneOf": [
819
+ {
820
+ "type": "object",
821
+ "additionalProperties": false,
822
+ "properties": {
823
+ "kind": {
824
+ "type": "string",
825
+ "const": "directory"
826
+ },
827
+ "path": {
828
+ "type": "string"
829
+ }
830
+ },
831
+ "required": [
832
+ "kind",
833
+ "path"
834
+ ]
835
+ },
836
+ {
837
+ "type": "object",
838
+ "additionalProperties": false,
839
+ "properties": {
840
+ "kind": {
841
+ "type": "string",
842
+ "const": "url"
843
+ },
844
+ "url": {
845
+ "type": "string"
846
+ }
847
+ },
848
+ "required": [
849
+ "kind",
850
+ "url"
851
+ ]
852
+ },
853
+ {
854
+ "type": "object",
855
+ "additionalProperties": false,
856
+ "properties": {
857
+ "kind": {
858
+ "type": "string",
859
+ "const": "opaque"
860
+ },
861
+ "description": {
862
+ "type": "string"
863
+ }
864
+ },
865
+ "required": [
866
+ "kind",
867
+ "description"
868
+ ]
869
+ }
870
+ ]
871
+ },
872
+ "content": {
873
+ "type": "string"
874
+ }
875
+ },
876
+ "required": [
877
+ "name",
878
+ "provider",
879
+ "content"
880
+ ]
881
+ },
882
+ "subagent": {
883
+ "oneOf": [
884
+ {
885
+ "type": "object",
886
+ "additionalProperties": false,
887
+ "properties": {
888
+ "kind": {
889
+ "type": "string",
890
+ "const": "background"
891
+ },
892
+ "jobId": {
893
+ "type": "string"
894
+ }
895
+ },
896
+ "required": [
897
+ "kind",
898
+ "jobId"
899
+ ]
900
+ },
901
+ {
902
+ "type": "object",
903
+ "additionalProperties": false,
904
+ "properties": {
905
+ "kind": {
906
+ "type": "string",
907
+ "const": "continuable"
908
+ },
909
+ "subagentId": {
910
+ "type": "string"
911
+ }
912
+ },
913
+ "required": [
914
+ "kind",
915
+ "subagentId"
916
+ ]
917
+ },
918
+ {
919
+ "type": "object",
920
+ "additionalProperties": false,
921
+ "properties": {
922
+ "kind": {
923
+ "type": "string",
924
+ "const": "foreground"
925
+ },
926
+ "runId": {
927
+ "type": "string"
928
+ },
929
+ "output": {
930
+ "type": "array",
931
+ "items": {}
932
+ }
933
+ },
934
+ "required": [
935
+ "kind",
936
+ "runId",
937
+ "output"
938
+ ]
939
+ }
940
+ ]
941
+ },
942
+ "subagent_fork": {
943
+ "oneOf": [
944
+ {
945
+ "type": "object",
946
+ "additionalProperties": false,
947
+ "properties": {
948
+ "kind": {
949
+ "type": "string",
950
+ "const": "background"
951
+ },
952
+ "jobId": {
953
+ "type": "string"
954
+ }
955
+ },
956
+ "required": [
957
+ "kind",
958
+ "jobId"
959
+ ]
960
+ },
961
+ {
962
+ "type": "object",
963
+ "additionalProperties": false,
964
+ "properties": {
965
+ "kind": {
966
+ "type": "string",
967
+ "const": "continuable"
968
+ },
969
+ "subagentId": {
970
+ "type": "string"
971
+ }
972
+ },
973
+ "required": [
974
+ "kind",
975
+ "subagentId"
976
+ ]
977
+ },
978
+ {
979
+ "type": "object",
980
+ "additionalProperties": false,
981
+ "properties": {
982
+ "kind": {
983
+ "type": "string",
984
+ "const": "foreground"
985
+ },
986
+ "runId": {
987
+ "type": "string"
988
+ },
989
+ "output": {
990
+ "type": "array",
991
+ "items": {}
992
+ }
993
+ },
994
+ "required": [
995
+ "kind",
996
+ "runId",
997
+ "output"
998
+ ]
999
+ }
1000
+ ]
1001
+ },
1002
+ "todo_write": {
1003
+ "type": "object",
1004
+ "additionalProperties": false,
1005
+ "properties": {
1006
+ "todos": {
1007
+ "type": "array",
1008
+ "items": {
1009
+ "type": "object",
1010
+ "additionalProperties": false,
1011
+ "properties": {
1012
+ "content": {
1013
+ "type": "string"
1014
+ },
1015
+ "status": {
1016
+ "type": "string",
1017
+ "enum": [
1018
+ "pending",
1019
+ "in_progress",
1020
+ "completed"
1021
+ ]
1022
+ }
1023
+ },
1024
+ "required": [
1025
+ "content",
1026
+ "status"
1027
+ ]
1028
+ }
1029
+ },
1030
+ "counts": {
1031
+ "type": "object",
1032
+ "additionalProperties": false,
1033
+ "properties": {
1034
+ "pending": {
1035
+ "type": "integer"
1036
+ },
1037
+ "inProgress": {
1038
+ "type": "integer"
1039
+ },
1040
+ "completed": {
1041
+ "type": "integer"
1042
+ }
1043
+ },
1044
+ "required": [
1045
+ "pending",
1046
+ "inProgress",
1047
+ "completed"
1048
+ ]
1049
+ }
1050
+ },
1051
+ "required": [
1052
+ "todos",
1053
+ "counts"
1054
+ ]
1055
+ },
1056
+ "update_goal": {
1057
+ "oneOf": [
1058
+ {
1059
+ "type": "object",
1060
+ "additionalProperties": false,
1061
+ "properties": {
1062
+ "goal": {
1063
+ "type": "null"
1064
+ }
1065
+ },
1066
+ "required": [
1067
+ "goal"
1068
+ ]
1069
+ },
1070
+ {
1071
+ "type": "object",
1072
+ "additionalProperties": false,
1073
+ "properties": {
1074
+ "goal": {
1075
+ "type": "object",
1076
+ "additionalProperties": false,
1077
+ "properties": {
1078
+ "id": {
1079
+ "type": "string"
1080
+ },
1081
+ "revision": {
1082
+ "type": "integer"
1083
+ },
1084
+ "objective": {
1085
+ "type": "string"
1086
+ },
1087
+ "phase": {
1088
+ "type": "string",
1089
+ "enum": [
1090
+ "active",
1091
+ "paused",
1092
+ "blocked",
1093
+ "complete"
1094
+ ]
1095
+ },
1096
+ "roundsStarted": {
1097
+ "type": "integer"
1098
+ },
1099
+ "maxGoalRounds": {
1100
+ "type": "integer"
1101
+ },
1102
+ "blockedReason": {
1103
+ "type": "object",
1104
+ "additionalProperties": false,
1105
+ "properties": {
1106
+ "code": {
1107
+ "type": "string"
1108
+ },
1109
+ "message": {
1110
+ "type": "string"
1111
+ }
1112
+ },
1113
+ "required": [
1114
+ "code",
1115
+ "message"
1116
+ ]
1117
+ }
1118
+ },
1119
+ "required": [
1120
+ "id",
1121
+ "revision",
1122
+ "objective",
1123
+ "phase",
1124
+ "roundsStarted",
1125
+ "maxGoalRounds"
1126
+ ]
1127
+ },
1128
+ "activation": {
1129
+ "type": "string",
1130
+ "enum": [
1131
+ "armed",
1132
+ "disarmed"
1133
+ ]
1134
+ }
1135
+ },
1136
+ "required": [
1137
+ "goal",
1138
+ "activation"
1139
+ ]
1140
+ }
1141
+ ]
1142
+ },
1143
+ "web_search": {
1144
+ "type": "object",
1145
+ "additionalProperties": false,
1146
+ "properties": {
1147
+ "content": {
1148
+ "type": "string"
1149
+ },
1150
+ "sources": {
1151
+ "type": "array",
1152
+ "items": {
1153
+ "type": "object",
1154
+ "additionalProperties": false,
1155
+ "properties": {
1156
+ "url": {
1157
+ "type": "string"
1158
+ },
1159
+ "title": {
1160
+ "type": "string"
1161
+ },
1162
+ "snippet": {
1163
+ "type": "string"
1164
+ },
1165
+ "publishedAt": {
1166
+ "type": "string"
1167
+ }
1168
+ },
1169
+ "required": [
1170
+ "url"
1171
+ ]
1172
+ }
1173
+ },
1174
+ "truncated": {
1175
+ "type": "boolean"
1176
+ }
1177
+ },
1178
+ "required": [
1179
+ "sources",
1180
+ "truncated"
1181
+ ]
1182
+ },
1183
+ "workflow": {
1184
+ "type": "object",
1185
+ "additionalProperties": false,
1186
+ "properties": {
1187
+ "runId": {
1188
+ "type": "string"
1189
+ },
1190
+ "agentsStarted": {
1191
+ "type": "integer"
1192
+ },
1193
+ "result": {}
1194
+ },
1195
+ "required": [
1196
+ "runId",
1197
+ "agentsStarted",
1198
+ "result"
1199
+ ]
1200
+ },
1201
+ "write": {
1202
+ "type": "object",
1203
+ "additionalProperties": false,
1204
+ "properties": {
1205
+ "path": {
1206
+ "type": "string"
1207
+ },
1208
+ "operation": {
1209
+ "type": "string",
1210
+ "enum": [
1211
+ "create",
1212
+ "update"
1213
+ ]
1214
+ },
1215
+ "before": {
1216
+ "oneOf": [
1217
+ {
1218
+ "type": "string"
1219
+ },
1220
+ {
1221
+ "type": "null"
1222
+ }
1223
+ ]
1224
+ },
1225
+ "after": {
1226
+ "type": "string"
1227
+ }
1228
+ },
1229
+ "required": [
1230
+ "path",
1231
+ "operation",
1232
+ "before",
1233
+ "after"
1234
+ ]
1235
+ }
1236
+ }