@adhdev/daemon-core 0.9.82-rc.2 → 0.9.82-rc.200

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 (244) hide show
  1. package/dist/boot/daemon-lifecycle.d.ts +3 -0
  2. package/dist/boot/process-hardening.d.ts +50 -0
  3. package/dist/chat/source-machine.d.ts +166 -0
  4. package/dist/chat/source-resolver.d.ts +104 -0
  5. package/dist/chat/subscription-updates.d.ts +1 -0
  6. package/dist/cli-adapter-types.d.ts +23 -2
  7. package/dist/cli-adapters/cli-script-runner.d.ts +117 -0
  8. package/dist/cli-adapters/cli-state-engine.d.ts +178 -0
  9. package/dist/cli-adapters/provider-cli-adapter.d.ts +106 -63
  10. package/dist/cli-adapters/provider-cli-parse.d.ts +4 -0
  11. package/dist/cli-adapters/provider-cli-shared.d.ts +29 -0
  12. package/dist/cli-adapters/raw-terminal-io.d.ts +37 -0
  13. package/dist/commands/cli-manager.d.ts +2 -1
  14. package/dist/commands/handler.d.ts +110 -0
  15. package/dist/commands/mesh-coordinator.d.ts +85 -1
  16. package/dist/commands/router.d.ts +29 -1
  17. package/dist/config/chat-history.d.ts +9 -0
  18. package/dist/config/config.d.ts +5 -0
  19. package/dist/config/mesh-config.d.ts +72 -1
  20. package/dist/git/git-commands.d.ts +8 -1
  21. package/dist/git/git-status.d.ts +5 -0
  22. package/dist/git/git-types.d.ts +12 -0
  23. package/dist/index.d.ts +39 -10
  24. package/dist/index.js +29425 -12026
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +25700 -8378
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/installer.d.ts +1 -4
  29. package/dist/ipc/local-ipc-server.d.ts +91 -0
  30. package/dist/launch.d.ts +1 -1
  31. package/dist/logging/async-batch-writer.d.ts +10 -0
  32. package/dist/mesh/contracts.d.ts +164 -0
  33. package/dist/mesh/coordinator-prompt.d.ts +30 -0
  34. package/dist/mesh/coordinator-registry.d.ts +59 -0
  35. package/dist/mesh/mesh-active-work.d.ts +90 -0
  36. package/dist/mesh/mesh-delivery-policy.d.ts +126 -0
  37. package/dist/mesh/mesh-events.d.ts +167 -6
  38. package/dist/mesh/mesh-fast-forward.d.ts +41 -0
  39. package/dist/mesh/mesh-host-ownership.d.ts +9 -0
  40. package/dist/mesh/mesh-ledger.d.ts +58 -1
  41. package/dist/mesh/mesh-refine-status.d.ts +26 -0
  42. package/dist/mesh/mesh-runtime-store.d.ts +149 -0
  43. package/dist/mesh/mesh-work-queue.d.ts +55 -6
  44. package/dist/mesh/preview-freshness.d.ts +18 -0
  45. package/dist/mesh/refine-config.d.ts +193 -0
  46. package/dist/mesh/worktree-bootstrap-config.d.ts +113 -0
  47. package/dist/providers/approval-utils.d.ts +13 -0
  48. package/dist/providers/chat-message-normalization.d.ts +1 -0
  49. package/dist/providers/cli-provider-instance.d.ts +39 -3
  50. package/dist/providers/contracts.d.ts +130 -6
  51. package/dist/providers/external-sources.d.ts +71 -0
  52. package/dist/providers/native-history/antigravity-cli-transcript.d.ts +100 -0
  53. package/dist/providers/native-history/claude-cli-transcript.d.ts +70 -0
  54. package/dist/providers/native-history/codex-cli-transcript.d.ts +73 -0
  55. package/dist/providers/native-history/dispatcher.d.ts +27 -0
  56. package/dist/providers/native-history/hermes-cli-transcript.d.ts +30 -0
  57. package/dist/providers/native-history/index.d.ts +13 -0
  58. package/dist/providers/provider-instance-manager.d.ts +12 -0
  59. package/dist/providers/provider-instance.d.ts +13 -1
  60. package/dist/providers/provider-loader.d.ts +26 -4
  61. package/dist/providers/provider-trust.d.ts +31 -0
  62. package/dist/providers/read-chat-contract.d.ts +29 -0
  63. package/dist/providers/sdk/v1/builders/acp/detect-status.d.ts +68 -0
  64. package/dist/providers/sdk/v1/builders/cli/detect-status.d.ts +85 -0
  65. package/dist/providers/sdk/v1/builders/cli/parse-approval-squash.d.ts +59 -0
  66. package/dist/providers/sdk/v1/builders/cli/parse-approval.d.ts +65 -0
  67. package/dist/providers/sdk/v1/builders/cli/parse-session.d.ts +91 -0
  68. package/dist/providers/sdk/v1/builders/cli/visible-region.d.ts +42 -0
  69. package/dist/providers/sdk/v1/fixture-tooling/format.d.ts +126 -0
  70. package/dist/providers/sdk/v1/fixture-tooling/index.d.ts +8 -0
  71. package/dist/providers/sdk/v1/fixture-tooling/replay.d.ts +38 -0
  72. package/dist/providers/sdk/v1/index.d.ts +30 -0
  73. package/dist/providers/sdk/v1/sandbox/README-design.d.ts +193 -0
  74. package/dist/providers/sdk/v1/sandbox/require-whitelist.d.ts +74 -0
  75. package/dist/providers/sdk/v1/sandbox/script-runner.d.ts +98 -0
  76. package/dist/providers/sdk/v1/types/cli/index.d.ts +277 -0
  77. package/dist/providers/sdk/v1/types/common/index.d.ts +203 -0
  78. package/dist/providers/sdk/v1/validators/index.d.ts +5 -0
  79. package/dist/providers/sdk/v1/validators/manifest.d.ts +40 -0
  80. package/dist/providers/sdk/v1/validators/taint.d.ts +52 -0
  81. package/dist/providers/spec/adapter.d.ts +60 -0
  82. package/dist/providers/spec/cli-adapter.d.ts +98 -0
  83. package/dist/providers/spec/driver.d.ts +190 -0
  84. package/dist/providers/spec/evaluator.d.ts +55 -0
  85. package/dist/providers/spec/loader.d.ts +14 -0
  86. package/dist/providers/spec/native-history-executor.d.ts +41 -0
  87. package/dist/providers/spec/route.d.ts +4 -0
  88. package/dist/providers/spec/schema.gen.d.ts +599 -0
  89. package/dist/providers/spec/types.d.ts +282 -0
  90. package/dist/providers/transcript-v2.d.ts +176 -0
  91. package/dist/providers/types/interactive-prompt.d.ts +48 -0
  92. package/dist/repo-mesh-types.d.ts +230 -1
  93. package/dist/sessions/registry.d.ts +3 -0
  94. package/dist/shared-types-extra.d.ts +1 -1
  95. package/dist/shared-types.d.ts +42 -1
  96. package/dist/status/normalize.d.ts +1 -1
  97. package/dist/status/normalize.js +1 -0
  98. package/dist/status/normalize.js.map +1 -1
  99. package/dist/status/normalize.mjs +1 -0
  100. package/dist/status/normalize.mjs.map +1 -1
  101. package/dist/status/reporter.d.ts +2 -0
  102. package/dist/status/snapshot.d.ts +1 -0
  103. package/dist/types.d.ts +5 -0
  104. package/package.json +7 -2
  105. package/src/agent-stream/poller.ts +2 -3
  106. package/src/boot/daemon-lifecycle.ts +22 -10
  107. package/src/boot/process-hardening.ts +89 -0
  108. package/src/chat/source-machine.ts +534 -0
  109. package/src/chat/source-resolver.ts +0 -0
  110. package/src/chat/subscription-updates.ts +20 -1
  111. package/src/cli-adapter-types.d.ts +1 -0
  112. package/src/cli-adapter-types.ts +22 -2
  113. package/src/cli-adapters/cli-script-runner.ts +421 -0
  114. package/src/cli-adapters/cli-state-engine.ts +1138 -0
  115. package/src/cli-adapters/provider-cli-adapter.d.ts +1 -1
  116. package/src/cli-adapters/provider-cli-adapter.ts +670 -1137
  117. package/src/cli-adapters/provider-cli-parse.d.ts +1 -0
  118. package/src/cli-adapters/provider-cli-parse.ts +13 -0
  119. package/src/cli-adapters/provider-cli-runtime.ts +3 -1
  120. package/src/cli-adapters/provider-cli-shared.d.ts +2 -0
  121. package/src/cli-adapters/provider-cli-shared.ts +59 -11
  122. package/src/cli-adapters/raw-terminal-io.ts +252 -0
  123. package/src/cli-adapters/terminal-backends/ghostty-vt-backend.ts +17 -1
  124. package/src/cli-adapters/terminal-backends/xterm-backend.ts +8 -1
  125. package/src/commands/chat-commands.ts +1787 -60
  126. package/src/commands/cli-manager.ts +283 -14
  127. package/src/commands/handler.ts +809 -2
  128. package/src/commands/mesh-coordinator.ts +331 -122
  129. package/src/commands/router.ts +3915 -546
  130. package/src/config/chat-history.ts +95 -24
  131. package/src/config/config.ts +12 -0
  132. package/src/config/mesh-config.ts +280 -2
  133. package/src/config/recent-activity.ts +8 -2
  134. package/src/daemon/dev-cli-debug.ts +10 -1
  135. package/src/detection/ide-detector.ts +26 -16
  136. package/src/git/git-commands.ts +38 -8
  137. package/src/git/git-status.ts +132 -12
  138. package/src/git/git-summary.ts +3 -0
  139. package/src/git/git-types.ts +13 -0
  140. package/src/git/git-worktree.ts +8 -1
  141. package/src/index.ts +127 -9
  142. package/src/installer.d.ts +1 -1
  143. package/src/installer.ts +8 -6
  144. package/src/ipc/local-ipc-server.ts +278 -0
  145. package/src/launch.d.ts +1 -1
  146. package/src/launch.ts +37 -28
  147. package/src/logging/async-batch-writer.ts +55 -0
  148. package/src/logging/logger.ts +2 -1
  149. package/src/mesh/contracts.ts +329 -0
  150. package/src/mesh/coordinator-prompt.ts +204 -30
  151. package/src/mesh/coordinator-registry.ts +121 -0
  152. package/src/mesh/mesh-active-work.ts +437 -0
  153. package/src/mesh/mesh-delivery-policy.ts +298 -0
  154. package/src/mesh/mesh-events.ts +1352 -109
  155. package/src/mesh/mesh-fast-forward.ts +438 -0
  156. package/src/mesh/mesh-host-ownership.ts +73 -0
  157. package/src/mesh/mesh-ledger.ts +457 -104
  158. package/src/mesh/mesh-refine-status.ts +144 -0
  159. package/src/mesh/mesh-runtime-store.ts +769 -0
  160. package/src/mesh/mesh-work-queue.ts +267 -159
  161. package/src/mesh/preview-freshness.ts +118 -0
  162. package/src/mesh/refine-config.ts +366 -0
  163. package/src/mesh/worktree-bootstrap-config.ts +247 -0
  164. package/src/providers/approval-utils.d.ts +4 -0
  165. package/src/providers/approval-utils.ts +47 -5
  166. package/src/providers/chat-message-normalization.ts +7 -12
  167. package/src/providers/cli-provider-instance.ts +806 -64
  168. package/src/providers/contracts.d.ts +55 -0
  169. package/src/providers/contracts.ts +141 -6
  170. package/src/providers/external-sources.ts +218 -0
  171. package/src/providers/ide-provider-instance.ts +19 -5
  172. package/src/providers/native-history/antigravity-cli-transcript.ts +643 -0
  173. package/src/providers/native-history/claude-cli-transcript.ts +396 -0
  174. package/src/providers/native-history/codex-cli-transcript.ts +419 -0
  175. package/src/providers/native-history/dispatcher.ts +340 -0
  176. package/src/providers/native-history/hermes-cli-transcript.ts +230 -0
  177. package/src/providers/native-history/index.ts +30 -0
  178. package/src/providers/provider-instance-manager.ts +30 -0
  179. package/src/providers/provider-instance.ts +10 -1
  180. package/src/providers/provider-loader.ts +582 -50
  181. package/src/providers/provider-schema.ts +87 -14
  182. package/src/providers/provider-trust.ts +114 -0
  183. package/src/providers/read-chat-contract.ts +76 -16
  184. package/src/providers/sdk/README.md +49 -0
  185. package/src/providers/sdk/v1/builders/acp/detect-status.ts +144 -0
  186. package/src/providers/sdk/v1/builders/cli/detect-status.ts +262 -0
  187. package/src/providers/sdk/v1/builders/cli/parse-approval-squash.ts +158 -0
  188. package/src/providers/sdk/v1/builders/cli/parse-approval.ts +250 -0
  189. package/src/providers/sdk/v1/builders/cli/parse-session.ts +276 -0
  190. package/src/providers/sdk/v1/builders/cli/visible-region.ts +143 -0
  191. package/src/providers/sdk/v1/fixture-tooling/format.ts +130 -0
  192. package/src/providers/sdk/v1/fixture-tooling/index.ts +22 -0
  193. package/src/providers/sdk/v1/fixture-tooling/replay.ts +352 -0
  194. package/src/providers/sdk/v1/index.ts +152 -0
  195. package/src/providers/sdk/v1/sandbox/README-design.ts +195 -0
  196. package/src/providers/sdk/v1/sandbox/require-whitelist.ts +472 -0
  197. package/src/providers/sdk/v1/sandbox/script-runner.ts +150 -0
  198. package/src/providers/sdk/v1/schemas/cli/provider.schema.json +504 -0
  199. package/src/providers/sdk/v1/schemas/primitives/acp-session-protocol-v1.json +131 -0
  200. package/src/providers/sdk/v1/schemas/primitives/native-history-codex-rollout-v1.json +66 -0
  201. package/src/providers/sdk/v1/schemas/primitives/tui-approval-squash-v1.json +91 -0
  202. package/src/providers/sdk/v1/schemas/primitives/tui-assistant-block-v1.json +91 -0
  203. package/src/providers/sdk/v1/schemas/primitives/tui-cue-ordering-v1.json +47 -0
  204. package/src/providers/sdk/v1/schemas/primitives/tui-dispatch-order-v1.json +32 -0
  205. package/src/providers/sdk/v1/schemas/primitives/tui-footer-chrome-v1.json +42 -0
  206. package/src/providers/sdk/v1/schemas/primitives/tui-index-finder-v1.json +27 -0
  207. package/src/providers/sdk/v1/schemas/primitives/tui-modal-v1.json +125 -0
  208. package/src/providers/sdk/v1/schemas/primitives/tui-prompt-marker-v1.json +45 -0
  209. package/src/providers/sdk/v1/schemas/primitives/tui-session-id-extraction-v1.json +46 -0
  210. package/src/providers/sdk/v1/schemas/primitives/tui-settled-prompt-v1.json +71 -0
  211. package/src/providers/sdk/v1/schemas/primitives/tui-spinner-v1.json +83 -0
  212. package/src/providers/sdk/v1/schemas/primitives/tui-transcript-pty-v1.json +83 -0
  213. package/src/providers/sdk/v1/schemas/primitives/tui-visible-region-v1.json +57 -0
  214. package/src/providers/sdk/v1/schemas/primitives/tui-welcome-screen-v1.json +35 -0
  215. package/src/providers/sdk/v1/types/cli/index.ts +365 -0
  216. package/src/providers/sdk/v1/types/common/index.ts +229 -0
  217. package/src/providers/sdk/v1/validators/index.ts +19 -0
  218. package/src/providers/sdk/v1/validators/manifest.ts +110 -0
  219. package/src/providers/sdk/v1/validators/taint.ts +309 -0
  220. package/src/providers/spec/adapter.ts +176 -0
  221. package/src/providers/spec/cli-adapter.ts +538 -0
  222. package/src/providers/spec/driver.ts +725 -0
  223. package/src/providers/spec/evaluator.ts +373 -0
  224. package/src/providers/spec/loader.ts +130 -0
  225. package/src/providers/spec/native-history-executor.ts +939 -0
  226. package/src/providers/spec/route.ts +51 -0
  227. package/src/providers/spec/schema.gen.ts +559 -0
  228. package/src/providers/spec/schema.json +237 -0
  229. package/src/providers/spec/types.ts +301 -0
  230. package/src/providers/transcript-v2.ts +567 -0
  231. package/src/providers/types/interactive-prompt.ts +425 -0
  232. package/src/providers/version-archive.ts +38 -20
  233. package/src/repo-mesh-types.ts +250 -1
  234. package/src/sessions/registry.ts +3 -0
  235. package/src/shared-types-extra.ts +1 -1
  236. package/src/shared-types.ts +45 -1
  237. package/src/status/builders.ts +24 -6
  238. package/src/status/normalize.ts +2 -0
  239. package/src/status/reporter.ts +15 -0
  240. package/src/status/snapshot.ts +84 -25
  241. package/src/system/host-memory.ts +29 -12
  242. package/src/types.ts +5 -0
  243. package/dist/mesh/mesh-sync.d.ts +0 -53
  244. package/src/mesh/mesh-sync.ts +0 -111
@@ -0,0 +1,599 @@
1
+ /**
2
+ * Auto-generated. Mirrors schema.json — regenerate after editing.
3
+ */
4
+ export declare const SCHEMA: {
5
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
6
+ readonly $id: "adhdev:cli/spec@1";
7
+ readonly title: "ADHDev CLI provider spec";
8
+ readonly type: "object";
9
+ readonly additionalProperties: false;
10
+ readonly required: readonly ["$schema", "id", "name", "binary", "send_message", "layout", "states", "default_state"];
11
+ readonly properties: {
12
+ readonly $schema: {
13
+ readonly type: "string";
14
+ readonly const: "adhdev:cli/spec@1";
15
+ };
16
+ readonly id: {
17
+ readonly type: "string";
18
+ readonly minLength: 1;
19
+ readonly pattern: "^[a-z][a-z0-9-]*$";
20
+ };
21
+ readonly name: {
22
+ readonly type: "string";
23
+ readonly minLength: 1;
24
+ };
25
+ readonly binary: {
26
+ readonly type: "string";
27
+ readonly minLength: 1;
28
+ };
29
+ readonly spawn_args: {
30
+ readonly type: "array";
31
+ readonly items: {
32
+ readonly type: "string";
33
+ };
34
+ readonly default: readonly [];
35
+ };
36
+ readonly env: {
37
+ readonly type: "object";
38
+ readonly additionalProperties: {
39
+ readonly type: "string";
40
+ };
41
+ readonly default: {};
42
+ };
43
+ readonly send_message: {
44
+ readonly type: "object";
45
+ readonly additionalProperties: false;
46
+ readonly required: readonly ["submit_key"];
47
+ readonly properties: {
48
+ readonly submit_key: {
49
+ readonly type: "string";
50
+ readonly minLength: 1;
51
+ };
52
+ readonly delay_ms_before_submit: {
53
+ readonly type: "integer";
54
+ readonly minimum: 0;
55
+ };
56
+ readonly delay_ms_per_char: {
57
+ readonly type: "integer";
58
+ readonly minimum: 0;
59
+ };
60
+ };
61
+ };
62
+ readonly layout: {
63
+ readonly type: "object";
64
+ readonly additionalProperties: false;
65
+ readonly required: readonly ["sections"];
66
+ readonly properties: {
67
+ readonly sections: {
68
+ readonly type: "array";
69
+ readonly minItems: 1;
70
+ readonly items: {
71
+ readonly $ref: "#/definitions/section";
72
+ };
73
+ };
74
+ };
75
+ };
76
+ readonly states: {
77
+ readonly type: "array";
78
+ readonly minItems: 1;
79
+ readonly items: {
80
+ readonly $ref: "#/definitions/state";
81
+ };
82
+ };
83
+ readonly default_state: {
84
+ readonly type: "string";
85
+ readonly minLength: 1;
86
+ };
87
+ readonly control_bar: {
88
+ readonly type: "array";
89
+ readonly default: readonly [];
90
+ readonly items: {
91
+ readonly $ref: "#/definitions/control";
92
+ };
93
+ };
94
+ readonly notifications: {
95
+ readonly type: "array";
96
+ readonly default: readonly [];
97
+ readonly items: {
98
+ readonly $ref: "#/definitions/notification";
99
+ };
100
+ };
101
+ readonly delegate: {
102
+ readonly type: "array";
103
+ readonly default: readonly [];
104
+ readonly items: {
105
+ readonly $ref: "#/definitions/delegateTrigger";
106
+ };
107
+ };
108
+ readonly native_history: {
109
+ readonly $ref: "#/definitions/nativeHistory";
110
+ };
111
+ readonly cli_version_range: {
112
+ readonly type: "string";
113
+ readonly minLength: 1;
114
+ };
115
+ readonly requiresFinalAssistantBeforeIdle: {
116
+ readonly type: "boolean";
117
+ };
118
+ readonly debounce: {
119
+ readonly type: "object";
120
+ readonly additionalProperties: false;
121
+ readonly properties: {
122
+ readonly busy_hold_ms: {
123
+ readonly type: "integer";
124
+ readonly minimum: 0;
125
+ };
126
+ readonly idle_hold_ms: {
127
+ readonly type: "integer";
128
+ readonly minimum: 0;
129
+ };
130
+ readonly startup_grace_ms: {
131
+ readonly type: "integer";
132
+ readonly minimum: 0;
133
+ };
134
+ readonly completion_idle_after: {
135
+ readonly type: "object";
136
+ readonly additionalProperties: false;
137
+ readonly required: readonly ["regex", "hold_ms"];
138
+ readonly properties: {
139
+ readonly section: {
140
+ readonly type: "string";
141
+ readonly minLength: 1;
142
+ };
143
+ readonly regex: {
144
+ readonly type: "string";
145
+ readonly minLength: 1;
146
+ };
147
+ readonly flags: {
148
+ readonly type: "string";
149
+ };
150
+ readonly hold_ms: {
151
+ readonly type: "integer";
152
+ readonly minimum: 0;
153
+ };
154
+ readonly force_after_ms: {
155
+ readonly type: "integer";
156
+ readonly minimum: 0;
157
+ };
158
+ };
159
+ };
160
+ };
161
+ };
162
+ };
163
+ readonly definitions: {
164
+ readonly size: {
165
+ readonly oneOf: readonly [{
166
+ readonly type: "integer";
167
+ readonly minimum: 0;
168
+ }, {
169
+ readonly type: "string";
170
+ readonly pattern: "^\\d+(\\.\\d+)?%$";
171
+ }];
172
+ };
173
+ readonly section: {
174
+ readonly type: "object";
175
+ readonly additionalProperties: false;
176
+ readonly required: readonly ["id"];
177
+ readonly properties: {
178
+ readonly id: {
179
+ readonly type: "string";
180
+ readonly minLength: 1;
181
+ readonly pattern: "^[a-z][a-z0-9_]*$";
182
+ };
183
+ readonly from_top: {
184
+ readonly $ref: "#/definitions/size";
185
+ };
186
+ readonly from_bottom: {
187
+ readonly $ref: "#/definitions/size";
188
+ };
189
+ readonly until: {
190
+ readonly type: "object";
191
+ readonly additionalProperties: false;
192
+ readonly required: readonly ["section"];
193
+ readonly properties: {
194
+ readonly section: {
195
+ readonly type: "string";
196
+ };
197
+ };
198
+ };
199
+ readonly anchor_regex: {
200
+ readonly type: "string";
201
+ readonly minLength: 1;
202
+ };
203
+ readonly anchor_flags: {
204
+ readonly type: "string";
205
+ };
206
+ readonly anchor_last: {
207
+ readonly type: "boolean";
208
+ };
209
+ readonly anchor_context: {
210
+ readonly type: "object";
211
+ readonly additionalProperties: false;
212
+ readonly properties: {
213
+ readonly prev: {
214
+ readonly type: "string";
215
+ };
216
+ readonly prev_flags: {
217
+ readonly type: "string";
218
+ };
219
+ readonly next: {
220
+ readonly type: "string";
221
+ };
222
+ readonly next_flags: {
223
+ readonly type: "string";
224
+ };
225
+ };
226
+ };
227
+ readonly lines: {
228
+ readonly type: "integer";
229
+ readonly minimum: 1;
230
+ };
231
+ readonly until_regex: {
232
+ readonly type: "string";
233
+ readonly minLength: 1;
234
+ };
235
+ readonly until_regex_flags: {
236
+ readonly type: "string";
237
+ };
238
+ };
239
+ };
240
+ readonly sectionRegex: {
241
+ readonly type: "object";
242
+ readonly additionalProperties: false;
243
+ readonly required: readonly ["regex"];
244
+ readonly properties: {
245
+ readonly section: {
246
+ readonly type: "string";
247
+ };
248
+ readonly regex: {
249
+ readonly type: "string";
250
+ readonly minLength: 1;
251
+ };
252
+ readonly flags: {
253
+ readonly type: "string";
254
+ readonly default: "i";
255
+ };
256
+ readonly cursor_row_min: {
257
+ readonly type: "integer";
258
+ readonly minimum: 0;
259
+ };
260
+ readonly cursor_row_max: {
261
+ readonly type: "integer";
262
+ readonly minimum: 0;
263
+ };
264
+ readonly cursor_col_min: {
265
+ readonly type: "integer";
266
+ readonly minimum: 0;
267
+ };
268
+ readonly cursor_col_max: {
269
+ readonly type: "integer";
270
+ readonly minimum: 0;
271
+ };
272
+ };
273
+ };
274
+ readonly sectionPattern: {
275
+ readonly type: "object";
276
+ readonly additionalProperties: false;
277
+ readonly required: readonly ["pattern"];
278
+ readonly properties: {
279
+ readonly section: {
280
+ readonly type: "string";
281
+ };
282
+ readonly pattern: {
283
+ readonly type: "string";
284
+ readonly minLength: 1;
285
+ };
286
+ readonly flags: {
287
+ readonly type: "string";
288
+ readonly default: "";
289
+ };
290
+ };
291
+ };
292
+ readonly state: {
293
+ readonly type: "object";
294
+ readonly additionalProperties: false;
295
+ readonly required: readonly ["id", "label", "when"];
296
+ readonly properties: {
297
+ readonly id: {
298
+ readonly type: "string";
299
+ readonly minLength: 1;
300
+ readonly pattern: "^[a-z][a-z0-9_]*$";
301
+ };
302
+ readonly label: {
303
+ readonly type: "string";
304
+ readonly minLength: 1;
305
+ };
306
+ readonly when: {
307
+ readonly $ref: "#/definitions/sectionRegex";
308
+ };
309
+ readonly extract_title: {
310
+ readonly $ref: "#/definitions/sectionRegex";
311
+ };
312
+ readonly modal_buttons: {
313
+ readonly type: "object";
314
+ readonly additionalProperties: false;
315
+ readonly required: readonly ["pattern", "key_for_index"];
316
+ readonly properties: {
317
+ readonly section: {
318
+ readonly type: "string";
319
+ };
320
+ readonly pattern: {
321
+ readonly type: "string";
322
+ readonly minLength: 1;
323
+ };
324
+ readonly flags: {
325
+ readonly type: "string";
326
+ };
327
+ readonly key_for_index: {
328
+ readonly type: "string";
329
+ readonly minLength: 1;
330
+ };
331
+ readonly min_count: {
332
+ readonly type: "integer";
333
+ readonly minimum: 1;
334
+ readonly default: 2;
335
+ };
336
+ readonly continuation_lines: {
337
+ readonly type: "boolean";
338
+ readonly default: false;
339
+ };
340
+ };
341
+ };
342
+ };
343
+ };
344
+ readonly control: {
345
+ readonly type: "object";
346
+ readonly additionalProperties: false;
347
+ readonly required: readonly ["id", "label", "action"];
348
+ readonly properties: {
349
+ readonly id: {
350
+ readonly type: "string";
351
+ readonly minLength: 1;
352
+ readonly pattern: "^[a-z][a-z0-9_]*$";
353
+ };
354
+ readonly label: {
355
+ readonly type: "string";
356
+ readonly minLength: 1;
357
+ };
358
+ readonly visible_when_state: {
359
+ readonly type: "array";
360
+ readonly items: {
361
+ readonly type: "string";
362
+ };
363
+ };
364
+ readonly action: {
365
+ readonly $ref: "#/definitions/controlAction";
366
+ };
367
+ };
368
+ };
369
+ readonly controlAction: {
370
+ readonly oneOf: readonly [{
371
+ readonly type: "object";
372
+ readonly additionalProperties: false;
373
+ readonly required: readonly ["type", "keys"];
374
+ readonly properties: {
375
+ readonly type: {
376
+ readonly const: "send_keys";
377
+ };
378
+ readonly keys: {
379
+ readonly type: "string";
380
+ readonly minLength: 1;
381
+ };
382
+ };
383
+ }, {
384
+ readonly type: "object";
385
+ readonly additionalProperties: false;
386
+ readonly required: readonly ["type", "trigger_keys", "wait_for", "extract_choices", "submit_key"];
387
+ readonly properties: {
388
+ readonly type: {
389
+ readonly const: "open_picker";
390
+ };
391
+ readonly trigger_keys: {
392
+ readonly type: "string";
393
+ readonly minLength: 1;
394
+ };
395
+ readonly wait_for: {
396
+ readonly $ref: "#/definitions/sectionRegex";
397
+ };
398
+ readonly extract_choices: {
399
+ readonly $ref: "#/definitions/sectionPattern";
400
+ };
401
+ readonly submit_key: {
402
+ readonly type: "string";
403
+ readonly minLength: 1;
404
+ };
405
+ };
406
+ }, {
407
+ readonly type: "object";
408
+ readonly additionalProperties: false;
409
+ readonly required: readonly ["type", "method", "keys_template"];
410
+ readonly properties: {
411
+ readonly type: {
412
+ readonly const: "attach_image";
413
+ };
414
+ readonly method: {
415
+ readonly const: "tempfile_then_keys";
416
+ };
417
+ readonly keys_template: {
418
+ readonly type: "string";
419
+ readonly minLength: 1;
420
+ };
421
+ };
422
+ }];
423
+ };
424
+ readonly notification: {
425
+ readonly type: "object";
426
+ readonly additionalProperties: false;
427
+ readonly required: readonly ["id", "when_state", "title"];
428
+ readonly properties: {
429
+ readonly id: {
430
+ readonly type: "string";
431
+ readonly minLength: 1;
432
+ readonly pattern: "^[a-z][a-z0-9_]*$";
433
+ };
434
+ readonly when_state: {
435
+ readonly type: "string";
436
+ readonly minLength: 1;
437
+ };
438
+ readonly title: {
439
+ readonly type: "string";
440
+ readonly minLength: 1;
441
+ };
442
+ readonly body: {
443
+ readonly type: "string";
444
+ };
445
+ };
446
+ };
447
+ readonly nativeHistory: {
448
+ readonly type: "object";
449
+ readonly additionalProperties: false;
450
+ readonly properties: {
451
+ readonly reader: {
452
+ readonly type: "string";
453
+ readonly enum: readonly ["claude-cli", "codex-cli", "antigravity-cli", "hermes-cli"];
454
+ };
455
+ readonly source: {
456
+ readonly oneOf: readonly [{
457
+ readonly $ref: "#/definitions/nativeHistoryJsonlSource";
458
+ }, {
459
+ readonly $ref: "#/definitions/nativeHistorySqliteSource";
460
+ }];
461
+ };
462
+ readonly override_path: {
463
+ readonly type: "string";
464
+ readonly minLength: 1;
465
+ };
466
+ };
467
+ };
468
+ readonly nativeHistoryMessageMap: {
469
+ readonly type: "object";
470
+ readonly additionalProperties: false;
471
+ readonly required: readonly ["role", "content"];
472
+ readonly properties: {
473
+ readonly role: {
474
+ readonly type: "string";
475
+ readonly minLength: 1;
476
+ };
477
+ readonly content: {
478
+ readonly type: "string";
479
+ readonly minLength: 1;
480
+ };
481
+ readonly content_strip: {
482
+ readonly type: "array";
483
+ readonly items: {
484
+ readonly type: "string";
485
+ readonly minLength: 1;
486
+ };
487
+ };
488
+ readonly content_unwrap: {
489
+ readonly type: "array";
490
+ readonly items: {
491
+ readonly type: "string";
492
+ readonly minLength: 1;
493
+ };
494
+ };
495
+ readonly timestamp_ms: {
496
+ readonly type: "string";
497
+ readonly minLength: 1;
498
+ };
499
+ readonly kind: {
500
+ readonly type: "string";
501
+ readonly minLength: 1;
502
+ };
503
+ };
504
+ };
505
+ readonly nativeHistoryJsonlSource: {
506
+ readonly type: "object";
507
+ readonly additionalProperties: false;
508
+ readonly required: readonly ["kind", "path", "message_map"];
509
+ readonly properties: {
510
+ readonly kind: {
511
+ readonly const: "jsonl";
512
+ };
513
+ readonly path: {
514
+ readonly type: "string";
515
+ readonly minLength: 1;
516
+ };
517
+ readonly file_pattern: {
518
+ readonly type: "string";
519
+ readonly minLength: 1;
520
+ };
521
+ readonly recent_window_ms: {
522
+ readonly type: "integer";
523
+ readonly minimum: 0;
524
+ };
525
+ readonly session_id_from: {
526
+ readonly type: "string";
527
+ readonly enum: readonly ["filename_uuid", "first_record"];
528
+ };
529
+ readonly session_id_path: {
530
+ readonly type: "string";
531
+ readonly minLength: 1;
532
+ };
533
+ readonly message_filter: {
534
+ readonly type: "object";
535
+ readonly additionalProperties: false;
536
+ readonly required: readonly ["where"];
537
+ readonly properties: {
538
+ readonly where: {
539
+ readonly type: "string";
540
+ readonly minLength: 1;
541
+ };
542
+ };
543
+ };
544
+ readonly message_map: {
545
+ readonly $ref: "#/definitions/nativeHistoryMessageMap";
546
+ };
547
+ };
548
+ };
549
+ readonly nativeHistorySqliteSource: {
550
+ readonly type: "object";
551
+ readonly additionalProperties: false;
552
+ readonly required: readonly ["kind", "path", "session_query", "message_query", "message_map"];
553
+ readonly properties: {
554
+ readonly kind: {
555
+ readonly const: "sqlite";
556
+ };
557
+ readonly path: {
558
+ readonly type: "string";
559
+ readonly minLength: 1;
560
+ };
561
+ readonly session_query: {
562
+ readonly type: "string";
563
+ readonly minLength: 1;
564
+ };
565
+ readonly message_query: {
566
+ readonly type: "string";
567
+ readonly minLength: 1;
568
+ };
569
+ readonly message_map: {
570
+ readonly $ref: "#/definitions/nativeHistoryMessageMap";
571
+ };
572
+ };
573
+ };
574
+ readonly delegateTrigger: {
575
+ readonly type: "object";
576
+ readonly additionalProperties: false;
577
+ readonly required: readonly ["id", "when_state", "task_template"];
578
+ readonly properties: {
579
+ readonly id: {
580
+ readonly type: "string";
581
+ readonly minLength: 1;
582
+ readonly pattern: "^[a-z][a-z0-9_]*$";
583
+ };
584
+ readonly when_state: {
585
+ readonly type: "string";
586
+ readonly minLength: 1;
587
+ };
588
+ readonly after_duration_ms: {
589
+ readonly type: "integer";
590
+ readonly minimum: 0;
591
+ };
592
+ readonly task_template: {
593
+ readonly type: "string";
594
+ readonly minLength: 1;
595
+ };
596
+ };
597
+ };
598
+ };
599
+ };