@adhdev/daemon-core 0.9.82-rc.220 → 0.9.82-rc.222

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.
@@ -1,342 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "adhdev:cli/spec@3",
4
- "title": "ADHDev CLI provider spec v3",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": ["$schema", "id", "name", "binary", "send_message", "sections", "states", "default_state"],
8
- "properties": {
9
- "$schema": { "type": "string", "const": "adhdev:cli/spec@3" },
10
- "id": { "type": "string", "minLength": 1, "pattern": "^[a-z][a-z0-9-]*$" },
11
- "name": { "type": "string", "minLength": 1 },
12
- "binary": { "type": "string", "minLength": 1 },
13
- "spawn_args": { "type": "array", "items": { "type": "string" }, "default": [] },
14
- "env": { "type": "object", "additionalProperties": { "type": "string" }, "default": {} },
15
- "cli_version_range": { "type": "string", "minLength": 1 },
16
- "send_message": {
17
- "type": "object",
18
- "additionalProperties": false,
19
- "required": ["submit_key"],
20
- "properties": {
21
- "submit_key": { "type": "string", "minLength": 1 },
22
- "delay_ms_before_submit": { "type": "integer", "minimum": 0 },
23
- "delay_ms_per_char": { "type": "integer", "minimum": 0 }
24
- }
25
- },
26
- "sections": {
27
- "type": "object",
28
- "minProperties": 1,
29
- "additionalProperties": { "$ref": "#/definitions/sectionDef" }
30
- },
31
- "states": {
32
- "type": "array",
33
- "minItems": 1,
34
- "items": { "$ref": "#/definitions/stateV3" }
35
- },
36
- "default_state": { "type": "string", "minLength": 1 },
37
- "control_bar": { "type": "array", "default": [], "items": { "$ref": "#/definitions/control" } },
38
- "notifications": { "type": "array", "default": [], "items": { "$ref": "#/definitions/notification" } },
39
- "delegate": { "type": "array", "default": [], "items": { "$ref": "#/definitions/delegateTrigger" } },
40
- "native_history": { "$ref": "#/definitions/nativeHistory" },
41
- "requiresFinalAssistantBeforeIdle": { "type": "boolean" },
42
- "timing": {
43
- "type": "object",
44
- "additionalProperties": false,
45
- "properties": {
46
- "busy_hold_ms": { "type": "integer", "minimum": 0 },
47
- "idle_hold_ms": { "type": "integer", "minimum": 0 },
48
- "startup_grace_ms": { "type": "integer", "minimum": 0 },
49
- "screen_active_hold_ms": { "type": "integer", "minimum": 0 },
50
- "completion_marker": {
51
- "type": "object",
52
- "additionalProperties": false,
53
- "required": ["matches", "hold_ms"],
54
- "properties": {
55
- "section": { "type": "string", "minLength": 1 },
56
- "matches": { "type": "string", "minLength": 1 },
57
- "flags": { "type": "string" },
58
- "hold_ms": { "type": "integer", "minimum": 0 },
59
- "force_after_ms": { "type": "integer", "minimum": 0 }
60
- }
61
- }
62
- }
63
- }
64
- },
65
- "definitions": {
66
- "size": {
67
- "oneOf": [
68
- { "type": "integer", "minimum": 0 },
69
- { "type": "string", "pattern": "^\\d+(\\.\\d+)?%$" }
70
- ]
71
- },
72
- "sectionDef": {
73
- "type": "object",
74
- "additionalProperties": false,
75
- "properties": {
76
- "from_top": { "$ref": "#/definitions/size" },
77
- "from_bottom": { "$ref": "#/definitions/size" },
78
- "until": { "type": "string", "minLength": 1 },
79
- "anchor": { "type": "string", "minLength": 1 },
80
- "anchor_flags": { "type": "string" },
81
- "anchor_last": { "type": "boolean" },
82
- "anchor_context": {
83
- "type": "object",
84
- "additionalProperties": false,
85
- "properties": {
86
- "prev": { "type": "string" },
87
- "prev_flags": { "type": "string" },
88
- "next": { "type": "string" },
89
- "next_flags": { "type": "string" }
90
- }
91
- },
92
- "lines": { "type": "integer", "minimum": 1 },
93
- "until_regex": { "type": "string", "minLength": 1 },
94
- "until_regex_flags": { "type": "string" }
95
- }
96
- },
97
- "condition": {
98
- "oneOf": [
99
- { "$ref": "#/definitions/regexCondition" },
100
- { "$ref": "#/definitions/changedCondition" },
101
- { "$ref": "#/definitions/allCondition" },
102
- { "$ref": "#/definitions/anyCondition" }
103
- ]
104
- },
105
- "regexCondition": {
106
- "type": "object",
107
- "additionalProperties": false,
108
- "required": ["matches"],
109
- "properties": {
110
- "section": { "type": "string" },
111
- "matches": { "type": "string", "minLength": 1 },
112
- "flags": { "type": "string" },
113
- "cursor_row_min": { "type": "integer", "minimum": 0 },
114
- "cursor_row_max": { "type": "integer", "minimum": 0 },
115
- "cursor_col_min": { "type": "integer", "minimum": 0 },
116
- "cursor_col_max": { "type": "integer", "minimum": 0 }
117
- }
118
- },
119
- "changedCondition": {
120
- "type": "object",
121
- "additionalProperties": false,
122
- "required": ["cursor_above", "changed"],
123
- "properties": {
124
- "cursor_above": { "type": "integer", "minimum": 1 },
125
- "changed": { "type": "boolean", "const": true }
126
- }
127
- },
128
- "allCondition": {
129
- "type": "object",
130
- "additionalProperties": false,
131
- "required": ["all"],
132
- "properties": {
133
- "all": { "type": "array", "items": { "$ref": "#/definitions/condition" } }
134
- }
135
- },
136
- "anyCondition": {
137
- "type": "object",
138
- "additionalProperties": false,
139
- "required": ["any"],
140
- "properties": {
141
- "any": { "type": "array", "items": { "$ref": "#/definitions/condition" } }
142
- }
143
- },
144
- "extractTitle": {
145
- "type": "object",
146
- "additionalProperties": false,
147
- "properties": {
148
- "section": { "type": "string" },
149
- "regex": { "type": "string", "minLength": 1 },
150
- "flags": { "type": "string" },
151
- "first_line": { "type": "boolean", "const": true }
152
- }
153
- },
154
- "extractButtons": {
155
- "type": "object",
156
- "additionalProperties": false,
157
- "required": ["pattern", "key_for_index"],
158
- "properties": {
159
- "section": { "type": "string" },
160
- "pattern": { "type": "string", "minLength": 1 },
161
- "flags": { "type": "string" },
162
- "key_for_index": { "type": "string", "minLength": 1 },
163
- "min_count": { "type": "integer", "minimum": 1, "default": 2 },
164
- "continuation_lines": { "type": "boolean", "default": false }
165
- }
166
- },
167
- "stateV3": {
168
- "type": "object",
169
- "additionalProperties": false,
170
- "required": ["id", "label", "when"],
171
- "properties": {
172
- "id": { "type": "string", "minLength": 1, "pattern": "^[a-z][a-z0-9_]*$" },
173
- "label": { "type": "string", "minLength": 1 },
174
- "when": {
175
- "oneOf": [
176
- { "$ref": "#/definitions/allCondition" },
177
- { "$ref": "#/definitions/anyCondition" }
178
- ]
179
- },
180
- "extract": {
181
- "type": "object",
182
- "additionalProperties": false,
183
- "properties": {
184
- "title": { "$ref": "#/definitions/extractTitle" },
185
- "buttons": { "$ref": "#/definitions/extractButtons" }
186
- }
187
- }
188
- }
189
- },
190
- "sectionRegex": {
191
- "type": "object",
192
- "additionalProperties": false,
193
- "required": ["regex"],
194
- "properties": {
195
- "section": { "type": "string" },
196
- "regex": { "type": "string", "minLength": 1 },
197
- "flags": { "type": "string", "default": "i" },
198
- "cursor_row_min": { "type": "integer", "minimum": 0 },
199
- "cursor_row_max": { "type": "integer", "minimum": 0 },
200
- "cursor_col_min": { "type": "integer", "minimum": 0 },
201
- "cursor_col_max": { "type": "integer", "minimum": 0 }
202
- }
203
- },
204
- "sectionPattern": {
205
- "type": "object",
206
- "additionalProperties": false,
207
- "required": ["pattern"],
208
- "properties": {
209
- "section": { "type": "string" },
210
- "pattern": { "type": "string", "minLength": 1 },
211
- "flags": { "type": "string", "default": "" }
212
- }
213
- },
214
- "control": {
215
- "type": "object",
216
- "additionalProperties": false,
217
- "required": ["id", "label", "action"],
218
- "properties": {
219
- "id": { "type": "string", "minLength": 1, "pattern": "^[a-z][a-z0-9_]*$" },
220
- "label": { "type": "string", "minLength": 1 },
221
- "visible_when_state": { "type": "array", "items": { "type": "string" } },
222
- "action": { "$ref": "#/definitions/controlAction" }
223
- }
224
- },
225
- "controlAction": {
226
- "oneOf": [
227
- {
228
- "type": "object",
229
- "additionalProperties": false,
230
- "required": ["type", "keys"],
231
- "properties": {
232
- "type": { "const": "send_keys" },
233
- "keys": { "type": "string", "minLength": 1 }
234
- }
235
- },
236
- {
237
- "type": "object",
238
- "additionalProperties": false,
239
- "required": ["type", "trigger_keys", "wait_for", "extract_choices", "submit_key"],
240
- "properties": {
241
- "type": { "const": "open_picker" },
242
- "trigger_keys": { "type": "string", "minLength": 1 },
243
- "wait_for": { "$ref": "#/definitions/sectionRegex" },
244
- "extract_choices": { "$ref": "#/definitions/sectionPattern" },
245
- "submit_key": { "type": "string", "minLength": 1 }
246
- }
247
- },
248
- {
249
- "type": "object",
250
- "additionalProperties": false,
251
- "required": ["type", "method", "keys_template"],
252
- "properties": {
253
- "type": { "const": "attach_image" },
254
- "method": { "const": "tempfile_then_keys" },
255
- "keys_template": { "type": "string", "minLength": 1 }
256
- }
257
- }
258
- ]
259
- },
260
- "notification": {
261
- "type": "object",
262
- "additionalProperties": false,
263
- "required": ["id", "when_state", "title"],
264
- "properties": {
265
- "id": { "type": "string", "minLength": 1, "pattern": "^[a-z][a-z0-9_]*$" },
266
- "when_state": { "type": "string", "minLength": 1 },
267
- "title": { "type": "string", "minLength": 1 },
268
- "body": { "type": "string" }
269
- }
270
- },
271
- "nativeHistory": {
272
- "type": "object",
273
- "additionalProperties": false,
274
- "properties": {
275
- "reader": { "type": "string", "enum": ["claude-cli", "codex-cli", "antigravity-cli", "hermes-cli"] },
276
- "source": {
277
- "oneOf": [
278
- { "$ref": "#/definitions/nativeHistoryJsonlSource" },
279
- { "$ref": "#/definitions/nativeHistorySqliteSource" }
280
- ]
281
- },
282
- "override_path": { "type": "string", "minLength": 1 }
283
- }
284
- },
285
- "nativeHistoryMessageMap": {
286
- "type": "object",
287
- "additionalProperties": false,
288
- "required": ["role", "content"],
289
- "properties": {
290
- "role": { "type": "string", "minLength": 1 },
291
- "content": { "type": "string", "minLength": 1 },
292
- "content_strip": { "type": "array", "items": { "type": "string", "minLength": 1 } },
293
- "content_unwrap": { "type": "array", "items": { "type": "string", "minLength": 1 } },
294
- "timestamp_ms": { "type": "string", "minLength": 1 },
295
- "kind": { "type": "string", "minLength": 1 }
296
- }
297
- },
298
- "nativeHistoryJsonlSource": {
299
- "type": "object",
300
- "additionalProperties": false,
301
- "required": ["kind", "path", "message_map"],
302
- "properties": {
303
- "kind": { "const": "jsonl" },
304
- "path": { "type": "string", "minLength": 1 },
305
- "file_pattern": { "type": "string", "minLength": 1 },
306
- "recent_window_ms": { "type": "integer", "minimum": 0 },
307
- "session_id_from": { "type": "string", "enum": ["filename_uuid", "first_record"] },
308
- "session_id_path": { "type": "string", "minLength": 1 },
309
- "message_filter": {
310
- "type": "object",
311
- "additionalProperties": false,
312
- "required": ["where"],
313
- "properties": { "where": { "type": "string", "minLength": 1 } }
314
- },
315
- "message_map": { "$ref": "#/definitions/nativeHistoryMessageMap" }
316
- }
317
- },
318
- "nativeHistorySqliteSource": {
319
- "type": "object",
320
- "additionalProperties": false,
321
- "required": ["kind", "path", "session_query", "message_query", "message_map"],
322
- "properties": {
323
- "kind": { "const": "sqlite" },
324
- "path": { "type": "string", "minLength": 1 },
325
- "session_query": { "type": "string", "minLength": 1 },
326
- "message_query": { "type": "string", "minLength": 1 },
327
- "message_map": { "$ref": "#/definitions/nativeHistoryMessageMap" }
328
- }
329
- },
330
- "delegateTrigger": {
331
- "type": "object",
332
- "additionalProperties": false,
333
- "required": ["id", "when_state", "task_template"],
334
- "properties": {
335
- "id": { "type": "string", "minLength": 1, "pattern": "^[a-z][a-z0-9_]*$" },
336
- "when_state": { "type": "string", "minLength": 1 },
337
- "after_duration_ms": { "type": "integer", "minimum": 0 },
338
- "task_template": { "type": "string", "minLength": 1 }
339
- }
340
- }
341
- }
342
- }