@draht/coding-agent 2026.10.20 → 2026.10.23

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 (726) hide show
  1. package/CHANGELOG.md +138 -0
  2. package/agents/advisor.md +2 -2
  3. package/agents/architect.md +11 -33
  4. package/agents/debugger.md +13 -54
  5. package/agents/git-committer.md +18 -42
  6. package/agents/implementer.md +14 -36
  7. package/agents/investigator.md +12 -63
  8. package/agents/reviewer.md +16 -44
  9. package/agents/security-auditor.md +22 -56
  10. package/agents/spec-reviewer.md +13 -53
  11. package/agents/verifier.md +14 -33
  12. package/bin/drahtbank.mjs +4 -0
  13. package/dist/agents/advisor.md +2 -2
  14. package/dist/agents/architect.md +11 -33
  15. package/dist/agents/debugger.md +13 -54
  16. package/dist/agents/git-committer.md +18 -42
  17. package/dist/agents/implementer.md +14 -36
  18. package/dist/agents/investigator.md +12 -63
  19. package/dist/agents/reviewer.md +16 -44
  20. package/dist/agents/security-auditor.md +22 -56
  21. package/dist/agents/spec-reviewer.md +13 -53
  22. package/dist/agents/verifier.md +14 -33
  23. package/dist/bundle/chunks/anthropic-messages-VEMVBETR.js +6 -0
  24. package/dist/bundle/chunks/anthropic.js +1 -1
  25. package/dist/bundle/chunks/azure-openai-responses-EXUP6SLM.js +2 -0
  26. package/dist/bundle/chunks/bedrock-converse-stream.js +23 -20
  27. package/dist/bundle/chunks/chunk-2MJ6J5N2.js +6 -0
  28. package/dist/bundle/chunks/chunk-2RI4GIFP.js +166 -0
  29. package/dist/bundle/chunks/chunk-57PET6SW.js +82 -0
  30. package/dist/bundle/chunks/chunk-76YNMQ57.js +2 -0
  31. package/dist/bundle/chunks/chunk-AACPRSR2.js +9 -0
  32. package/dist/bundle/chunks/chunk-CHRFWNPF.js +1424 -0
  33. package/dist/bundle/chunks/chunk-CI37W6HM.js +2 -0
  34. package/dist/bundle/chunks/chunk-CMKX4CSI.js +6 -0
  35. package/dist/bundle/chunks/chunk-DHZBWXZK.js +16 -0
  36. package/dist/bundle/chunks/{chunk-D6TMD5Q2.js → chunk-DLVZ3EK7.js} +4 -4
  37. package/dist/bundle/chunks/chunk-DQ4G4IS4.js +20 -0
  38. package/dist/bundle/chunks/chunk-FXCTQRNN.js +2 -0
  39. package/dist/bundle/chunks/chunk-FXLM6UQV.js +2 -0
  40. package/dist/bundle/chunks/chunk-ITP6IDBA.js +20 -0
  41. package/dist/bundle/chunks/chunk-JRHPLIE5.js +11 -0
  42. package/dist/bundle/chunks/chunk-KINQOWAP.js +4 -0
  43. package/dist/bundle/chunks/{chunk-IWTUBX6V.js → chunk-LK54N67E.js} +5 -2
  44. package/dist/bundle/chunks/chunk-MBFTIGLS.js +2 -0
  45. package/dist/bundle/chunks/chunk-QG2WW2SA.js +2 -0
  46. package/dist/bundle/chunks/{chunk-KPO5375S.js → chunk-RCRGGYLW.js} +1 -1
  47. package/dist/bundle/chunks/chunk-RGI7SF5G.js +2 -0
  48. package/dist/bundle/chunks/{chunk-6ZJKIMU7.js → chunk-SYRVFGYE.js} +1 -1
  49. package/dist/bundle/chunks/chunk-UQSONZLL.js +479 -0
  50. package/dist/bundle/chunks/chunk-USCN7R2E.js +2 -0
  51. package/dist/bundle/chunks/chunk-XB4F3WGD.js +132 -0
  52. package/dist/bundle/chunks/chunk-YSIQCH4Z.js +2 -0
  53. package/dist/bundle/chunks/chunk-ZRPAOMVB.js +2 -0
  54. package/dist/bundle/chunks/{cli-PYJB6AQ3.js → cli-LGOE6EXL.js} +6 -6
  55. package/dist/bundle/chunks/cloudflare-workers-ai-system-one-47PK45EQ.js +2 -0
  56. package/dist/bundle/chunks/codemode-worker.js +188 -21
  57. package/dist/bundle/chunks/execute-ZVQ7ITER.js +31 -0
  58. package/dist/bundle/chunks/github-copilot.js +1 -1
  59. package/dist/bundle/chunks/google-generative-ai-PBPH45HB.js +2 -0
  60. package/dist/bundle/chunks/google-vertex-ZPCFQNU6.js +2 -0
  61. package/dist/bundle/chunks/image-resize-worker.js +1 -1
  62. package/dist/bundle/chunks/{llama-cpp-classify-EJ5XMSQL.js → llama-cpp-classify-MWIQKGBR.js} +3 -3
  63. package/dist/bundle/chunks/mistral-conversations-7ODWQ37T.js +5 -0
  64. package/dist/bundle/chunks/node-BZAVEWJ3.js +16 -0
  65. package/dist/bundle/chunks/openai-chatgpt.js +1 -1
  66. package/dist/bundle/chunks/openai-codex-responses-7Y2SP2GS.js +10 -0
  67. package/dist/bundle/chunks/openai-codex.js +1 -1
  68. package/dist/bundle/chunks/openai-completions-QNWYJ4H4.js +7 -0
  69. package/dist/bundle/chunks/openai-decisions-4PKBAPR3.js +5 -0
  70. package/dist/bundle/chunks/openai-responses-73WU3TQM.js +4 -0
  71. package/dist/bundle/chunks/opencode-go.js +1 -1
  72. package/dist/bundle/chunks/openrouter-images-IMWDSQ5F.js +2 -0
  73. package/dist/bundle/chunks/pi-messages-AMNZ7HKZ.js +8 -0
  74. package/dist/bundle/chunks/runtime-7BIFTREJ.js +3 -0
  75. package/dist/bundle/chunks/runtime-MZVF4MP6.js +2 -0
  76. package/dist/bundle/chunks/settings-manager-QF6DRH5C.js +2 -0
  77. package/dist/bundle/chunks/typesafe-system-one-AXQRIVVX.js +2 -0
  78. package/dist/bundle/chunks/virtual-modules-Z4F3ZUX3.js +2 -0
  79. package/dist/bundle/cli-runtime.js +1 -1
  80. package/dist/bundle/index.js +1 -1
  81. package/dist/bundle/rpc-entry.js +1 -1
  82. package/dist/cli/args.d.ts +2 -1
  83. package/dist/cli/args.d.ts.map +1 -1
  84. package/dist/cli/args.js +30 -8
  85. package/dist/cli/args.js.map +1 -1
  86. package/dist/cli/credential-print.d.ts.map +1 -1
  87. package/dist/cli/credential-print.js +4 -4
  88. package/dist/cli/credential-print.js.map +1 -1
  89. package/dist/config.d.ts +18 -1
  90. package/dist/config.d.ts.map +1 -1
  91. package/dist/config.js +44 -6
  92. package/dist/config.js.map +1 -1
  93. package/dist/core/agent-session.d.ts +65 -8
  94. package/dist/core/agent-session.d.ts.map +1 -1
  95. package/dist/core/agent-session.js +240 -102
  96. package/dist/core/agent-session.js.map +1 -1
  97. package/dist/core/auth-storage.d.ts.map +1 -1
  98. package/dist/core/auth-storage.js +20 -13
  99. package/dist/core/auth-storage.js.map +1 -1
  100. package/dist/core/bash-executor.d.ts.map +1 -1
  101. package/dist/core/bash-executor.js +42 -52
  102. package/dist/core/bash-executor.js.map +1 -1
  103. package/dist/core/bug-report.d.ts +9 -1
  104. package/dist/core/bug-report.d.ts.map +1 -1
  105. package/dist/core/builtins/completion-checks.d.ts +3 -0
  106. package/dist/core/builtins/completion-checks.d.ts.map +1 -0
  107. package/dist/core/builtins/completion-checks.js +142 -0
  108. package/dist/core/builtins/completion-checks.js.map +1 -0
  109. package/dist/core/builtins/duet.d.ts.map +1 -1
  110. package/dist/core/builtins/duet.js +7 -5
  111. package/dist/core/builtins/duet.js.map +1 -1
  112. package/dist/core/builtins/git-safety.d.ts +3 -0
  113. package/dist/core/builtins/git-safety.d.ts.map +1 -0
  114. package/dist/core/builtins/git-safety.js +34 -0
  115. package/dist/core/builtins/git-safety.js.map +1 -0
  116. package/dist/core/builtins/index.d.ts.map +1 -1
  117. package/dist/core/builtins/index.js +4 -0
  118. package/dist/core/builtins/index.js.map +1 -1
  119. package/dist/core/client-identity.d.ts +8 -0
  120. package/dist/core/client-identity.d.ts.map +1 -0
  121. package/dist/core/client-identity.js +15 -0
  122. package/dist/core/client-identity.js.map +1 -0
  123. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  124. package/dist/core/compaction/branch-summarization.js +1 -2
  125. package/dist/core/compaction/branch-summarization.js.map +1 -1
  126. package/dist/core/compaction/compaction.d.ts +2 -2
  127. package/dist/core/compaction/compaction.d.ts.map +1 -1
  128. package/dist/core/compaction/compaction.js +20 -15
  129. package/dist/core/compaction/compaction.js.map +1 -1
  130. package/dist/core/compaction/utils.d.ts +6 -0
  131. package/dist/core/compaction/utils.d.ts.map +1 -1
  132. package/dist/core/compaction/utils.js +7 -8
  133. package/dist/core/compaction/utils.js.map +1 -1
  134. package/dist/core/export-html/index.d.ts.map +1 -1
  135. package/dist/core/export-html/index.js +2 -0
  136. package/dist/core/export-html/index.js.map +1 -1
  137. package/dist/core/export-html/template.html +1 -0
  138. package/dist/core/export-html/template.js +23 -17
  139. package/dist/core/export-html/tool-renderer.d.ts +3 -3
  140. package/dist/core/export-html/tool-renderer.d.ts.map +1 -1
  141. package/dist/core/export-html/tool-renderer.js +5 -3
  142. package/dist/core/export-html/tool-renderer.js.map +1 -1
  143. package/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
  144. package/dist/core/export-html/vendor/marked.min.js +30 -29
  145. package/dist/core/extensions/index.d.ts +1 -1
  146. package/dist/core/extensions/index.d.ts.map +1 -1
  147. package/dist/core/extensions/index.js.map +1 -1
  148. package/dist/core/extensions/loader.d.ts.map +1 -1
  149. package/dist/core/extensions/loader.js +7 -0
  150. package/dist/core/extensions/loader.js.map +1 -1
  151. package/dist/core/extensions/runner.d.ts +6 -2
  152. package/dist/core/extensions/runner.d.ts.map +1 -1
  153. package/dist/core/extensions/runner.js +16 -4
  154. package/dist/core/extensions/runner.js.map +1 -1
  155. package/dist/core/extensions/types.d.ts +61 -7
  156. package/dist/core/extensions/types.d.ts.map +1 -1
  157. package/dist/core/extensions/types.js.map +1 -1
  158. package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
  159. package/dist/core/extensions/virtual-modules.js +2 -0
  160. package/dist/core/extensions/virtual-modules.js.map +1 -1
  161. package/dist/core/key-id-schema.d.ts +6 -0
  162. package/dist/core/key-id-schema.d.ts.map +1 -0
  163. package/dist/core/key-id-schema.js +16 -0
  164. package/dist/core/key-id-schema.js.map +1 -0
  165. package/dist/core/keybindings-schema.d.ts +4 -0
  166. package/dist/core/keybindings-schema.d.ts.map +1 -0
  167. package/dist/core/keybindings-schema.js +16 -0
  168. package/dist/core/keybindings-schema.js.map +1 -0
  169. package/dist/core/keybindings.d.ts +242 -75
  170. package/dist/core/keybindings.d.ts.map +1 -1
  171. package/dist/core/keybindings.js +30 -23
  172. package/dist/core/keybindings.js.map +1 -1
  173. package/dist/core/mcp-servers.d.ts +22 -0
  174. package/dist/core/mcp-servers.d.ts.map +1 -1
  175. package/dist/core/mcp-servers.js +72 -11
  176. package/dist/core/mcp-servers.js.map +1 -1
  177. package/dist/core/model-config.d.ts +1623 -74
  178. package/dist/core/model-config.d.ts.map +1 -1
  179. package/dist/core/model-config.js +70 -184
  180. package/dist/core/model-config.js.map +1 -1
  181. package/dist/core/model-registry.d.ts +3 -1
  182. package/dist/core/model-registry.d.ts.map +1 -1
  183. package/dist/core/model-registry.js +4 -0
  184. package/dist/core/model-registry.js.map +1 -1
  185. package/dist/core/model-resolver.d.ts +56 -43
  186. package/dist/core/model-resolver.d.ts.map +1 -1
  187. package/dist/core/model-resolver.js +253 -358
  188. package/dist/core/model-resolver.js.map +1 -1
  189. package/dist/core/model-runtime.d.ts.map +1 -1
  190. package/dist/core/model-runtime.js +19 -10
  191. package/dist/core/model-runtime.js.map +1 -1
  192. package/dist/core/nested-tool-calls.d.ts +1 -0
  193. package/dist/core/nested-tool-calls.d.ts.map +1 -1
  194. package/dist/core/nested-tool-calls.js +1 -0
  195. package/dist/core/nested-tool-calls.js.map +1 -1
  196. package/dist/core/package-manager.js +3 -3
  197. package/dist/core/package-manager.js.map +1 -1
  198. package/dist/core/polyphase/keyword.js +1 -1
  199. package/dist/core/polyphase/keyword.js.map +1 -1
  200. package/dist/core/polyphase/model-selection.d.ts.map +1 -1
  201. package/dist/core/polyphase/model-selection.js +15 -7
  202. package/dist/core/polyphase/model-selection.js.map +1 -1
  203. package/dist/core/polyphase/workflow/prelude.d.ts +2 -0
  204. package/dist/core/polyphase/workflow/prelude.d.ts.map +1 -1
  205. package/dist/core/polyphase/workflow/prelude.js +12 -16
  206. package/dist/core/polyphase/workflow/prelude.js.map +1 -1
  207. package/dist/core/polyphase/workflow/runtime.d.ts.map +1 -1
  208. package/dist/core/polyphase/workflow/runtime.js +2 -1
  209. package/dist/core/polyphase/workflow/runtime.js.map +1 -1
  210. package/dist/core/project-trust.d.ts.map +1 -1
  211. package/dist/core/project-trust.js +2 -1
  212. package/dist/core/project-trust.js.map +1 -1
  213. package/dist/core/prompt-templates.d.ts.map +1 -1
  214. package/dist/core/prompt-templates.js +7 -2
  215. package/dist/core/prompt-templates.js.map +1 -1
  216. package/dist/core/provider-composer.d.ts +2 -1
  217. package/dist/core/provider-composer.d.ts.map +1 -1
  218. package/dist/core/provider-composer.js +13 -0
  219. package/dist/core/provider-composer.js.map +1 -1
  220. package/dist/core/radius.d.ts +2 -0
  221. package/dist/core/radius.d.ts.map +1 -1
  222. package/dist/core/radius.js +2 -0
  223. package/dist/core/radius.js.map +1 -1
  224. package/dist/core/remote-catalog-provider.d.ts +12 -1
  225. package/dist/core/remote-catalog-provider.d.ts.map +1 -1
  226. package/dist/core/remote-catalog-provider.js +84 -24
  227. package/dist/core/remote-catalog-provider.js.map +1 -1
  228. package/dist/core/resource-loader.d.ts +3 -0
  229. package/dist/core/resource-loader.d.ts.map +1 -1
  230. package/dist/core/resource-loader.js +7 -4
  231. package/dist/core/resource-loader.js.map +1 -1
  232. package/dist/core/sdk.d.ts +13 -4
  233. package/dist/core/sdk.d.ts.map +1 -1
  234. package/dist/core/sdk.js +27 -15
  235. package/dist/core/sdk.js.map +1 -1
  236. package/dist/core/settings-defaults.d.ts +65 -0
  237. package/dist/core/settings-defaults.d.ts.map +1 -0
  238. package/dist/core/settings-defaults.js +66 -0
  239. package/dist/core/settings-defaults.js.map +1 -0
  240. package/dist/core/settings-manager.d.ts +17 -178
  241. package/dist/core/settings-manager.d.ts.map +1 -1
  242. package/dist/core/settings-manager.js +86 -57
  243. package/dist/core/settings-manager.js.map +1 -1
  244. package/dist/core/settings-schema.d.ts +269 -0
  245. package/dist/core/settings-schema.d.ts.map +1 -0
  246. package/dist/core/settings-schema.js +318 -0
  247. package/dist/core/settings-schema.js.map +1 -0
  248. package/dist/core/skills.d.ts +4 -1
  249. package/dist/core/skills.d.ts.map +1 -1
  250. package/dist/core/skills.js +6 -1
  251. package/dist/core/skills.js.map +1 -1
  252. package/dist/core/system-prompt.d.ts +6 -0
  253. package/dist/core/system-prompt.d.ts.map +1 -1
  254. package/dist/core/system-prompt.js +10 -5
  255. package/dist/core/system-prompt.js.map +1 -1
  256. package/dist/core/tools/bash.d.ts.map +1 -1
  257. package/dist/core/tools/bash.js +3 -5
  258. package/dist/core/tools/bash.js.map +1 -1
  259. package/dist/core/tools/grep.d.ts +8 -0
  260. package/dist/core/tools/grep.d.ts.map +1 -1
  261. package/dist/core/tools/grep.js +19 -7
  262. package/dist/core/tools/grep.js.map +1 -1
  263. package/dist/core/tools/index.d.ts +2 -0
  264. package/dist/core/tools/index.d.ts.map +1 -1
  265. package/dist/core/tools/index.js +2 -0
  266. package/dist/core/tools/index.js.map +1 -1
  267. package/dist/core/tools/output-accumulator.d.ts.map +1 -1
  268. package/dist/core/tools/output-accumulator.js +4 -10
  269. package/dist/core/tools/output-accumulator.js.map +1 -1
  270. package/dist/core/tools/path-utils.d.ts +1 -1
  271. package/dist/core/tools/path-utils.d.ts.map +1 -1
  272. package/dist/core/tools/path-utils.js +6 -6
  273. package/dist/core/tools/path-utils.js.map +1 -1
  274. package/dist/core/tools/read.d.ts +13 -0
  275. package/dist/core/tools/read.d.ts.map +1 -1
  276. package/dist/core/tools/read.js +32 -2
  277. package/dist/core/tools/read.js.map +1 -1
  278. package/dist/core/tools/render-utils.d.ts +20 -0
  279. package/dist/core/tools/render-utils.d.ts.map +1 -1
  280. package/dist/core/tools/render-utils.js +67 -0
  281. package/dist/core/tools/render-utils.js.map +1 -1
  282. package/dist/core/tools/renderers/bash.d.ts.map +1 -1
  283. package/dist/core/tools/renderers/bash.js +7 -35
  284. package/dist/core/tools/renderers/bash.js.map +1 -1
  285. package/dist/core/tools/renderers/edit.d.ts.map +1 -1
  286. package/dist/core/tools/renderers/edit.js +5 -4
  287. package/dist/core/tools/renderers/edit.js.map +1 -1
  288. package/dist/core/tools/renderers/index.d.ts +2 -2
  289. package/dist/core/tools/renderers/index.d.ts.map +1 -1
  290. package/dist/core/tools/renderers/index.js.map +1 -1
  291. package/dist/core/tools/renderers/read.d.ts.map +1 -1
  292. package/dist/core/tools/renderers/read.js +7 -11
  293. package/dist/core/tools/renderers/read.js.map +1 -1
  294. package/dist/extensions/codemode/execute.d.ts.map +1 -1
  295. package/dist/extensions/codemode/execute.js +391 -80
  296. package/dist/extensions/codemode/execute.js.map +1 -1
  297. package/dist/extensions/codemode/index.d.ts.map +1 -1
  298. package/dist/extensions/codemode/index.js +3 -1
  299. package/dist/extensions/codemode/index.js.map +1 -1
  300. package/dist/extensions/codemode/renderer.d.ts +2 -2
  301. package/dist/extensions/codemode/renderer.d.ts.map +1 -1
  302. package/dist/extensions/codemode/renderer.js +9 -3
  303. package/dist/extensions/codemode/renderer.js.map +1 -1
  304. package/dist/extensions/codemode/tool.d.ts +22 -21
  305. package/dist/extensions/codemode/tool.d.ts.map +1 -1
  306. package/dist/extensions/codemode/tool.js +96 -123
  307. package/dist/extensions/codemode/tool.js.map +1 -1
  308. package/dist/extensions/llama/provider.d.ts.map +1 -1
  309. package/dist/extensions/llama/provider.js +34 -11
  310. package/dist/extensions/llama/provider.js.map +1 -1
  311. package/dist/extensions/mcp/cli.d.ts.map +1 -1
  312. package/dist/extensions/mcp/cli.js +27 -33
  313. package/dist/extensions/mcp/cli.js.map +1 -1
  314. package/dist/extensions/mcp/config.d.ts +15 -3
  315. package/dist/extensions/mcp/config.d.ts.map +1 -1
  316. package/dist/extensions/mcp/config.js +49 -12
  317. package/dist/extensions/mcp/config.js.map +1 -1
  318. package/dist/extensions/mcp/index.d.ts +4 -1
  319. package/dist/extensions/mcp/index.d.ts.map +1 -1
  320. package/dist/extensions/mcp/index.js +279 -129
  321. package/dist/extensions/mcp/index.js.map +1 -1
  322. package/dist/extensions/mcp/oauth.d.ts +21 -11
  323. package/dist/extensions/mcp/oauth.d.ts.map +1 -1
  324. package/dist/extensions/mcp/oauth.js +166 -45
  325. package/dist/extensions/mcp/oauth.js.map +1 -1
  326. package/dist/extensions/mcp/resources.d.ts +3 -10
  327. package/dist/extensions/mcp/resources.d.ts.map +1 -1
  328. package/dist/extensions/mcp/resources.js +4 -5
  329. package/dist/extensions/mcp/resources.js.map +1 -1
  330. package/dist/extensions/mcp/runtime.d.ts +7 -7
  331. package/dist/extensions/mcp/runtime.d.ts.map +1 -1
  332. package/dist/extensions/mcp/runtime.js +31 -45
  333. package/dist/extensions/mcp/runtime.js.map +1 -1
  334. package/dist/extensions/mcp/tools.d.ts +7 -5
  335. package/dist/extensions/mcp/tools.d.ts.map +1 -1
  336. package/dist/extensions/mcp/tools.js +87 -29
  337. package/dist/extensions/mcp/tools.js.map +1 -1
  338. package/dist/extensions/mcp/ui.d.ts +3 -3
  339. package/dist/extensions/mcp/ui.d.ts.map +1 -1
  340. package/dist/extensions/mcp/ui.js +18 -6
  341. package/dist/extensions/mcp/ui.js.map +1 -1
  342. package/dist/extensions/tool-search/tool.d.ts +0 -2
  343. package/dist/extensions/tool-search/tool.d.ts.map +1 -1
  344. package/dist/extensions/tool-search/tool.js +2 -4
  345. package/dist/extensions/tool-search/tool.js.map +1 -1
  346. package/dist/hooks/checks/checks-runtime.cjs +215 -0
  347. package/dist/hooks/checks/git-safety.cjs +198 -0
  348. package/dist/hooks/checks/git-safety.d.cts +1 -0
  349. package/dist/hooks/gsd/draht-post-task.js +78 -39
  350. package/dist/hooks/gsd/draht-quality-gate.js +210 -122
  351. package/dist/hooks/gsd/package.json +3 -0
  352. package/dist/index.d.ts +5 -4
  353. package/dist/index.d.ts.map +1 -1
  354. package/dist/index.js +3 -2
  355. package/dist/index.js.map +1 -1
  356. package/dist/main.d.ts.map +1 -1
  357. package/dist/main.js +11 -3
  358. package/dist/main.js.map +1 -1
  359. package/dist/modes/interactive/components/auth-url.d.ts +14 -0
  360. package/dist/modes/interactive/components/auth-url.d.ts.map +1 -0
  361. package/dist/modes/interactive/components/auth-url.js +37 -0
  362. package/dist/modes/interactive/components/auth-url.js.map +1 -0
  363. package/dist/modes/interactive/components/bash-execution.d.ts +5 -1
  364. package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
  365. package/dist/modes/interactive/components/bash-execution.js +17 -14
  366. package/dist/modes/interactive/components/bash-execution.js.map +1 -1
  367. package/dist/modes/interactive/components/branch-summary-message.d.ts +2 -1
  368. package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
  369. package/dist/modes/interactive/components/branch-summary-message.js +5 -2
  370. package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
  371. package/dist/modes/interactive/components/compaction-summary-message.d.ts +2 -1
  372. package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -1
  373. package/dist/modes/interactive/components/compaction-summary-message.js +5 -2
  374. package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -1
  375. package/dist/modes/interactive/components/custom-entry.d.ts +3 -1
  376. package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
  377. package/dist/modes/interactive/components/custom-entry.js +8 -2
  378. package/dist/modes/interactive/components/custom-entry.js.map +1 -1
  379. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
  380. package/dist/modes/interactive/components/custom-message.js +1 -0
  381. package/dist/modes/interactive/components/custom-message.js.map +1 -1
  382. package/dist/modes/interactive/components/login-dialog.d.ts +3 -0
  383. package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
  384. package/dist/modes/interactive/components/login-dialog.js +38 -10
  385. package/dist/modes/interactive/components/login-dialog.js.map +1 -1
  386. package/dist/modes/interactive/components/oauth-selector.d.ts +8 -2
  387. package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
  388. package/dist/modes/interactive/components/oauth-selector.js +24 -21
  389. package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
  390. package/dist/modes/interactive/components/radius-login-selector.d.ts +15 -0
  391. package/dist/modes/interactive/components/radius-login-selector.d.ts.map +1 -0
  392. package/dist/modes/interactive/components/radius-login-selector.js +85 -0
  393. package/dist/modes/interactive/components/radius-login-selector.js.map +1 -0
  394. package/dist/modes/interactive/components/settings-selector.d.ts +3 -3
  395. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  396. package/dist/modes/interactive/components/settings-selector.js +9 -8
  397. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  398. package/dist/modes/interactive/components/skill-invocation-message.d.ts +2 -1
  399. package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
  400. package/dist/modes/interactive/components/skill-invocation-message.js +5 -2
  401. package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
  402. package/dist/modes/interactive/components/status-indicator.d.ts +1 -1
  403. package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
  404. package/dist/modes/interactive/components/status-indicator.js +2 -2
  405. package/dist/modes/interactive/components/status-indicator.js.map +1 -1
  406. package/dist/modes/interactive/components/tool-execution.d.ts +12 -13
  407. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  408. package/dist/modes/interactive/components/tool-execution.js +32 -45
  409. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  410. package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
  411. package/dist/modes/interactive/components/tree-selector.js +2 -9
  412. package/dist/modes/interactive/components/tree-selector.js.map +1 -1
  413. package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
  414. package/dist/modes/interactive/components/user-message.js +5 -4
  415. package/dist/modes/interactive/components/user-message.js.map +1 -1
  416. package/dist/modes/interactive/interactive-mode.d.ts +43 -48
  417. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  418. package/dist/modes/interactive/interactive-mode.js +362 -278
  419. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  420. package/dist/modes/interactive/program-status-reporter.d.ts +34 -0
  421. package/dist/modes/interactive/program-status-reporter.d.ts.map +1 -0
  422. package/dist/modes/interactive/program-status-reporter.js +110 -0
  423. package/dist/modes/interactive/program-status-reporter.js.map +1 -0
  424. package/dist/modes/interactive/theme/dark.json +1 -1
  425. package/dist/modes/interactive/theme/light.json +1 -1
  426. package/dist/modes/interactive/theme/system-theme.d.ts +2 -1
  427. package/dist/modes/interactive/theme/system-theme.d.ts.map +1 -1
  428. package/dist/modes/interactive/theme/system-theme.js +16 -5
  429. package/dist/modes/interactive/theme/system-theme.js.map +1 -1
  430. package/dist/modes/interactive/theme/theme-schema.d.ts +28 -0
  431. package/dist/modes/interactive/theme/theme-schema.d.ts.map +1 -0
  432. package/dist/modes/interactive/theme/theme-schema.js +105 -0
  433. package/dist/modes/interactive/theme/theme-schema.js.map +1 -0
  434. package/dist/modes/interactive/theme/theme-tokens.d.ts +257 -0
  435. package/dist/modes/interactive/theme/theme-tokens.d.ts.map +1 -0
  436. package/dist/modes/interactive/theme/theme-tokens.js +94 -0
  437. package/dist/modes/interactive/theme/theme-tokens.js.map +1 -0
  438. package/dist/modes/interactive/theme/theme.d.ts +13 -16
  439. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  440. package/dist/modes/interactive/theme/theme.js +22 -29
  441. package/dist/modes/interactive/theme/theme.js.map +1 -1
  442. package/dist/modes/print-mode.d.ts.map +1 -1
  443. package/dist/modes/print-mode.js +4 -0
  444. package/dist/modes/print-mode.js.map +1 -1
  445. package/dist/package-manager-cli.d.ts.map +1 -1
  446. package/dist/package-manager-cli.js +26 -1
  447. package/dist/package-manager-cli.js.map +1 -1
  448. package/dist/prompts/commands/atomic-commit.md +8 -6
  449. package/dist/prompts/commands/brainstorm.md +5 -149
  450. package/dist/prompts/commands/create-verification-skill.md +8 -48
  451. package/dist/prompts/commands/discuss-phase.md +6 -10
  452. package/dist/prompts/commands/execute-phase.md +18 -45
  453. package/dist/prompts/commands/fix.md +16 -128
  454. package/dist/prompts/commands/grill.md +6 -53
  455. package/dist/prompts/commands/init-project.md +13 -18
  456. package/dist/prompts/commands/map-codebase.md +3 -3
  457. package/dist/prompts/commands/new-project.md +12 -17
  458. package/dist/prompts/commands/next-milestone.md +4 -8
  459. package/dist/prompts/commands/orchestrate-loop.md +12 -12
  460. package/dist/prompts/commands/orchestrate.md +12 -11
  461. package/dist/prompts/commands/pause-work.md +1 -1
  462. package/dist/prompts/commands/plan-phase.md +15 -37
  463. package/dist/prompts/commands/quick.md +11 -64
  464. package/dist/prompts/commands/resolve-conflicts.md +2 -15
  465. package/dist/prompts/commands/triage.md +3 -14
  466. package/dist/prompts/commands/verify-work.md +15 -63
  467. package/dist/prompts/commands/why.md +18 -118
  468. package/dist/skills/atomic-reasoning/SKILL.md +6 -105
  469. package/dist/skills/blast-radius/SKILL.md +1 -1
  470. package/dist/skills/epistemics/SKILL.md +12 -87
  471. package/dist/skills/explainers/SKILL.md +1 -1
  472. package/dist/skills/typescript-discipline/SKILL.md +12 -42
  473. package/dist/skills/typescript-discipline/references/patterns.md +25 -266
  474. package/dist/skills/unslop/SKILL.md +14 -105
  475. package/dist/utils/ansi.d.ts +8 -0
  476. package/dist/utils/ansi.d.ts.map +1 -1
  477. package/dist/utils/ansi.js +30 -11
  478. package/dist/utils/ansi.js.map +1 -1
  479. package/dist/utils/clipboard-command.d.ts.map +1 -1
  480. package/dist/utils/clipboard-command.js +3 -0
  481. package/dist/utils/clipboard-command.js.map +1 -1
  482. package/dist/utils/clipboard.d.ts.map +1 -1
  483. package/dist/utils/clipboard.js +18 -12
  484. package/dist/utils/clipboard.js.map +1 -1
  485. package/dist/utils/draht-user-agent.d.ts +1 -0
  486. package/dist/utils/draht-user-agent.d.ts.map +1 -1
  487. package/dist/utils/draht-user-agent.js +3 -2
  488. package/dist/utils/draht-user-agent.js.map +1 -1
  489. package/dist/utils/image-convert.d.ts +12 -0
  490. package/dist/utils/image-convert.d.ts.map +1 -1
  491. package/dist/utils/image-convert.js +45 -6
  492. package/dist/utils/image-convert.js.map +1 -1
  493. package/dist/utils/image-resize-core.d.ts +12 -0
  494. package/dist/utils/image-resize-core.d.ts.map +1 -1
  495. package/dist/utils/image-resize-core.js +5 -0
  496. package/dist/utils/image-resize-core.js.map +1 -1
  497. package/dist/utils/image-resize-worker.js +3 -2
  498. package/dist/utils/image-resize-worker.js.map +1 -1
  499. package/dist/utils/image-resize.d.ts.map +1 -1
  500. package/dist/utils/image-resize.js +9 -10
  501. package/dist/utils/image-resize.js.map +1 -1
  502. package/dist/utils/output-files.d.ts +15 -0
  503. package/dist/utils/output-files.d.ts.map +1 -0
  504. package/dist/utils/output-files.js +30 -0
  505. package/dist/utils/output-files.js.map +1 -0
  506. package/dist/utils/shell.d.ts.map +1 -1
  507. package/dist/utils/shell.js +43 -13
  508. package/dist/utils/shell.js.map +1 -1
  509. package/dist/utils/syntax-highlight.d.ts.map +1 -1
  510. package/dist/utils/syntax-highlight.js +6 -1
  511. package/dist/utils/syntax-highlight.js.map +1 -1
  512. package/dist/utils/tools-manager.d.ts.map +1 -1
  513. package/dist/utils/tools-manager.js +4 -3
  514. package/dist/utils/tools-manager.js.map +1 -1
  515. package/docs/cli-integration.md +1 -1
  516. package/docs/cli.md +30 -26
  517. package/docs/codemode.md +230 -0
  518. package/docs/compaction.md +5 -5
  519. package/docs/containerization.md +1 -1
  520. package/docs/custom-provider.md +53 -1
  521. package/docs/docs.json +17 -1
  522. package/docs/drahtbank.md +163 -0
  523. package/docs/environment-variables.md +5 -2
  524. package/docs/extensions.md +143 -13
  525. package/docs/index.md +1 -1
  526. package/docs/json.md +3 -3
  527. package/docs/keybindings.md +9 -5
  528. package/docs/llama-cpp.md +9 -2
  529. package/docs/mcp.md +59 -3
  530. package/docs/message-types.md +22 -4
  531. package/docs/models-configuration.md +187 -0
  532. package/docs/models.md +67 -4
  533. package/docs/nvidia-rtx-llama-cpp.md +96 -0
  534. package/docs/providers.md +70 -5
  535. package/docs/sdk.md +1 -1
  536. package/docs/settings.md +10 -8
  537. package/docs/terminal-setup.md +14 -0
  538. package/docs/themes.md +4 -2
  539. package/docs/tui.md +71 -1
  540. package/docs/usage.md +1 -1
  541. package/docs/windows.md +16 -2
  542. package/eval/drahtbank/adapters.d.mts +35 -0
  543. package/eval/drahtbank/adapters.mjs +192 -0
  544. package/eval/drahtbank/bank.d.mts +141 -0
  545. package/eval/drahtbank/bank.mjs +515 -0
  546. package/eval/drahtbank/cases-v2.d.mts +28 -0
  547. package/eval/drahtbank/cases-v2.mjs +164 -0
  548. package/eval/drahtbank/cases.d.mts +17 -0
  549. package/eval/drahtbank/cases.mjs +198 -0
  550. package/eval/drahtbank/cli.mjs +120 -0
  551. package/eval/drahtbank/grading-v2.d.mts +26 -0
  552. package/eval/drahtbank/grading-v2.mjs +227 -0
  553. package/eval/drahtbank/isolated-tools.ts +223 -0
  554. package/eval/drahtbank/isolation-worker.mjs +53 -0
  555. package/eval/drahtbank/isolation.d.mts +52 -0
  556. package/eval/drahtbank/isolation.mjs +345 -0
  557. package/eval/drahtbank/runtime-checks.d.mts +15 -0
  558. package/eval/drahtbank/runtime-checks.mjs +187 -0
  559. package/examples/extensions/dynamic-resources/dynamic.json +1 -1
  560. package/examples/extensions/minimal-mode.ts +4 -5
  561. package/examples/extensions/overlay-test.ts +2 -2
  562. package/examples/extensions/plan-mode/index.ts +6 -2
  563. package/examples/extensions/subagent/index.ts +4 -6
  564. package/hooks/checks/checks-runtime.cjs +215 -0
  565. package/hooks/checks/git-safety.cjs +198 -0
  566. package/hooks/checks/git-safety.d.cts +1 -0
  567. package/hooks/gsd/draht-post-task.js +78 -39
  568. package/hooks/gsd/draht-quality-gate.js +210 -122
  569. package/hooks/gsd/package.json +3 -0
  570. package/package.json +21 -16
  571. package/prompts/commands/atomic-commit.md +8 -6
  572. package/prompts/commands/brainstorm.md +5 -149
  573. package/prompts/commands/create-verification-skill.md +8 -48
  574. package/prompts/commands/discuss-phase.md +6 -10
  575. package/prompts/commands/execute-phase.md +18 -45
  576. package/prompts/commands/fix.md +16 -128
  577. package/prompts/commands/grill.md +6 -53
  578. package/prompts/commands/init-project.md +13 -18
  579. package/prompts/commands/map-codebase.md +3 -3
  580. package/prompts/commands/new-project.md +12 -17
  581. package/prompts/commands/next-milestone.md +4 -8
  582. package/prompts/commands/orchestrate-loop.md +12 -12
  583. package/prompts/commands/orchestrate.md +12 -11
  584. package/prompts/commands/pause-work.md +1 -1
  585. package/prompts/commands/plan-phase.md +15 -37
  586. package/prompts/commands/quick.md +11 -64
  587. package/prompts/commands/resolve-conflicts.md +2 -15
  588. package/prompts/commands/triage.md +3 -14
  589. package/prompts/commands/verify-work.md +15 -63
  590. package/prompts/commands/why.md +18 -118
  591. package/schemas/keybindings.schema.json +433 -0
  592. package/schemas/models.schema.json +1190 -0
  593. package/schemas/settings.schema.json +849 -0
  594. package/schemas/theme.schema.json +365 -0
  595. package/skills/atomic-reasoning/SKILL.md +6 -105
  596. package/skills/blast-radius/SKILL.md +1 -1
  597. package/skills/epistemics/SKILL.md +12 -87
  598. package/skills/explainers/SKILL.md +1 -1
  599. package/skills/typescript-discipline/SKILL.md +12 -42
  600. package/skills/typescript-discipline/references/patterns.md +25 -266
  601. package/skills/unslop/SKILL.md +14 -105
  602. package/dist/bundle/chunks/anthropic-messages-GAKYXF65.js +0 -6
  603. package/dist/bundle/chunks/azure-openai-responses-ZIXMK6JO.js +0 -2
  604. package/dist/bundle/chunks/chunk-2E5VODES.js +0 -2
  605. package/dist/bundle/chunks/chunk-2VAF4XJI.js +0 -146
  606. package/dist/bundle/chunks/chunk-4TVQYRQY.js +0 -2
  607. package/dist/bundle/chunks/chunk-7TYCZN4Z.js +0 -137
  608. package/dist/bundle/chunks/chunk-BXSHCX3G.js +0 -11
  609. package/dist/bundle/chunks/chunk-GVXA72ZA.js +0 -2
  610. package/dist/bundle/chunks/chunk-I5OKY6RH.js +0 -11
  611. package/dist/bundle/chunks/chunk-KU5HAKZL.js +0 -4
  612. package/dist/bundle/chunks/chunk-MO3SCGBN.js +0 -18
  613. package/dist/bundle/chunks/chunk-N2QZNJT6.js +0 -65
  614. package/dist/bundle/chunks/chunk-PGJAHC3R.js +0 -107
  615. package/dist/bundle/chunks/chunk-QVFELZW2.js +0 -312
  616. package/dist/bundle/chunks/chunk-RZKPFWMH.js +0 -42
  617. package/dist/bundle/chunks/chunk-SDRCE6OP.js +0 -2
  618. package/dist/bundle/chunks/chunk-SVNWI7EV.js +0 -8
  619. package/dist/bundle/chunks/chunk-TOWVIJ2O.js +0 -1623
  620. package/dist/bundle/chunks/chunk-XBUEMKIY.js +0 -2
  621. package/dist/bundle/chunks/chunk-ZA4QNPJY.js +0 -82
  622. package/dist/bundle/chunks/cloudflare-workers-ai-system-one-MJKOAE5S.js +0 -2
  623. package/dist/bundle/chunks/execute-6N7T7VLY.js +0 -18
  624. package/dist/bundle/chunks/google-generative-ai-RPUPQ6PM.js +0 -2
  625. package/dist/bundle/chunks/google-vertex-EZES5QVQ.js +0 -2
  626. package/dist/bundle/chunks/mistral-conversations-AOYGU43Y.js +0 -5
  627. package/dist/bundle/chunks/node-LQ52KV6B.js +0 -16
  628. package/dist/bundle/chunks/openai-codex-responses-M2Y77JEQ.js +0 -10
  629. package/dist/bundle/chunks/openai-completions-A4OKYOYV.js +0 -7
  630. package/dist/bundle/chunks/openai-responses-6IXV53T3.js +0 -3
  631. package/dist/bundle/chunks/openrouter-images-LYV4NKFM.js +0 -2
  632. package/dist/bundle/chunks/pi-messages-KKMEUT3Z.js +0 -8
  633. package/dist/bundle/chunks/runtime-363BOYEO.js +0 -3
  634. package/dist/bundle/chunks/runtime-D3KV73AE.js +0 -2
  635. package/dist/bundle/chunks/settings-manager-GEOZJXFQ.js +0 -2
  636. package/dist/bundle/chunks/typesafe-system-one-YBEEY5XU.js +0 -2
  637. package/dist/bundle/chunks/virtual-modules-RLC4Y5MX.js +0 -2
  638. package/dist/core/provider-attribution.d.ts +0 -4
  639. package/dist/core/provider-attribution.d.ts.map +0 -1
  640. package/dist/core/provider-attribution.js +0 -72
  641. package/dist/core/provider-attribution.js.map +0 -1
  642. package/dist/experimental/micro/api.d.ts +0 -81
  643. package/dist/experimental/micro/api.d.ts.map +0 -1
  644. package/dist/experimental/micro/api.js +0 -2
  645. package/dist/experimental/micro/api.js.map +0 -1
  646. package/dist/experimental/micro/main.d.ts +0 -3
  647. package/dist/experimental/micro/main.d.ts.map +0 -1
  648. package/dist/experimental/micro/main.js +0 -21
  649. package/dist/experimental/micro/main.js.map +0 -1
  650. package/dist/experimental/micro/models.d.ts +0 -11
  651. package/dist/experimental/micro/models.d.ts.map +0 -1
  652. package/dist/experimental/micro/models.js +0 -95
  653. package/dist/experimental/micro/models.js.map +0 -1
  654. package/dist/experimental/micro/runtime.d.ts +0 -12
  655. package/dist/experimental/micro/runtime.d.ts.map +0 -1
  656. package/dist/experimental/micro/runtime.js +0 -465
  657. package/dist/experimental/micro/runtime.js.map +0 -1
  658. package/dist/experimental/micro/sessions.d.ts +0 -10
  659. package/dist/experimental/micro/sessions.d.ts.map +0 -1
  660. package/dist/experimental/micro/sessions.js +0 -41
  661. package/dist/experimental/micro/sessions.js.map +0 -1
  662. package/dist/experimental/micro/tools.d.ts +0 -10
  663. package/dist/experimental/micro/tools.d.ts.map +0 -1
  664. package/dist/experimental/micro/tools.js +0 -96
  665. package/dist/experimental/micro/tools.js.map +0 -1
  666. package/dist/experimental/micro/tui.d.ts +0 -3
  667. package/dist/experimental/micro/tui.d.ts.map +0 -1
  668. package/dist/experimental/micro/tui.js +0 -510
  669. package/dist/experimental/micro/tui.js.map +0 -1
  670. package/dist/experimental/mini/main.d.ts +0 -7
  671. package/dist/experimental/mini/main.d.ts.map +0 -1
  672. package/dist/experimental/mini/main.js +0 -21
  673. package/dist/experimental/mini/main.js.map +0 -1
  674. package/dist/experimental/mini/server/entry.d.ts +0 -3
  675. package/dist/experimental/mini/server/entry.d.ts.map +0 -1
  676. package/dist/experimental/mini/server/entry.js +0 -11
  677. package/dist/experimental/mini/server/entry.js.map +0 -1
  678. package/dist/experimental/mini/server/run.d.ts +0 -13
  679. package/dist/experimental/mini/server/run.d.ts.map +0 -1
  680. package/dist/experimental/mini/server/run.js +0 -150
  681. package/dist/experimental/mini/server/run.js.map +0 -1
  682. package/dist/experimental/mini/shared/protocol.d.ts +0 -127
  683. package/dist/experimental/mini/shared/protocol.d.ts.map +0 -1
  684. package/dist/experimental/mini/shared/protocol.js +0 -13
  685. package/dist/experimental/mini/shared/protocol.js.map +0 -1
  686. package/dist/experimental/mini/shared/rpc.d.ts +0 -49
  687. package/dist/experimental/mini/shared/rpc.d.ts.map +0 -1
  688. package/dist/experimental/mini/shared/rpc.js +0 -171
  689. package/dist/experimental/mini/shared/rpc.js.map +0 -1
  690. package/dist/experimental/mini/shared/transport.d.ts +0 -35
  691. package/dist/experimental/mini/shared/transport.d.ts.map +0 -1
  692. package/dist/experimental/mini/shared/transport.js +0 -94
  693. package/dist/experimental/mini/shared/transport.js.map +0 -1
  694. package/dist/experimental/mini/tui/run.d.ts +0 -9
  695. package/dist/experimental/mini/tui/run.d.ts.map +0 -1
  696. package/dist/experimental/mini/tui/run.js +0 -62
  697. package/dist/experimental/mini/tui/run.js.map +0 -1
  698. package/dist/experimental/mini/tui/session.d.ts +0 -26
  699. package/dist/experimental/mini/tui/session.d.ts.map +0 -1
  700. package/dist/experimental/mini/tui/session.js +0 -94
  701. package/dist/experimental/mini/tui/session.js.map +0 -1
  702. package/dist/experimental/mini/tui/view.d.ts +0 -10
  703. package/dist/experimental/mini/tui/view.d.ts.map +0 -1
  704. package/dist/experimental/mini/tui/view.js +0 -461
  705. package/dist/experimental/mini/tui/view.js.map +0 -1
  706. package/dist/experimental/mini/worker/entry.d.ts +0 -3
  707. package/dist/experimental/mini/worker/entry.d.ts.map +0 -1
  708. package/dist/experimental/mini/worker/entry.js +0 -10
  709. package/dist/experimental/mini/worker/entry.js.map +0 -1
  710. package/dist/experimental/mini/worker/lane-service.d.ts +0 -44
  711. package/dist/experimental/mini/worker/lane-service.d.ts.map +0 -1
  712. package/dist/experimental/mini/worker/lane-service.js +0 -97
  713. package/dist/experimental/mini/worker/lane-service.js.map +0 -1
  714. package/dist/experimental/mini/worker/models-service.d.ts +0 -19
  715. package/dist/experimental/mini/worker/models-service.d.ts.map +0 -1
  716. package/dist/experimental/mini/worker/models-service.js +0 -136
  717. package/dist/experimental/mini/worker/models-service.js.map +0 -1
  718. package/dist/experimental/mini/worker/run.d.ts +0 -14
  719. package/dist/experimental/mini/worker/run.d.ts.map +0 -1
  720. package/dist/experimental/mini/worker/run.js +0 -88
  721. package/dist/experimental/mini/worker/run.js.map +0 -1
  722. package/dist/modes/interactive/theme/theme-json.d.ts +0 -85
  723. package/dist/modes/interactive/theme/theme-json.d.ts.map +0 -1
  724. package/dist/modes/interactive/theme/theme-json.js +0 -132
  725. package/dist/modes/interactive/theme/theme-json.js.map +0 -1
  726. package/dist/modes/interactive/theme/theme-schema.json +0 -361
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-json.js","sourceRoot":"","sources":["../../../../src/modes/interactive/theme/theme-json.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAe,IAAI,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC;IACnC,IAAI,CAAC,MAAM,EAAE,EAAE,oDAAoD;IACnE,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,kBAAkB;CAC9D,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;IACnB,qFAAqF;IACrF,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpF,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,gBAAgB,CAAC,CAAC;IACjE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACnB,sBAAsB;QACtB,MAAM,EAAE,gBAAgB;QACxB,MAAM,EAAE,gBAAgB;QACxB,YAAY,EAAE,gBAAgB;QAC9B,WAAW,EAAE,gBAAgB;QAC7B,OAAO,EAAE,gBAAgB;QACzB,KAAK,EAAE,gBAAgB;QACvB,OAAO,EAAE,gBAAgB;QACzB,KAAK,EAAE,gBAAgB;QACvB,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,gBAAgB;QACtB,YAAY,EAAE,gBAAgB;QAC9B,gCAAgC;QAChC,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAC/C,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAC/C,uDAAuD;QACvD,UAAU,EAAE,gBAAgB;QAC5B,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAC9C,eAAe,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAChD,aAAa,EAAE,gBAAgB;QAC/B,eAAe,EAAE,gBAAgB;QACjC,eAAe,EAAE,gBAAgB;QACjC,iBAAiB,EAAE,gBAAgB;QACnC,kBAAkB,EAAE,gBAAgB;QACpC,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,gBAAgB;QAC/B,WAAW,EAAE,gBAAgB;QAC7B,SAAS,EAAE,gBAAgB;QAC3B,UAAU,EAAE,gBAAgB;QAC5B,uBAAuB;QACvB,SAAS,EAAE,gBAAgB;QAC3B,MAAM,EAAE,gBAAgB;QACxB,SAAS,EAAE,gBAAgB;QAC3B,MAAM,EAAE,gBAAgB;QACxB,WAAW,EAAE,gBAAgB;QAC7B,iBAAiB,EAAE,gBAAgB;QACnC,OAAO,EAAE,gBAAgB;QACzB,aAAa,EAAE,gBAAgB;QAC/B,IAAI,EAAE,gBAAgB;QACtB,YAAY,EAAE,gBAAgB;QAC9B,wBAAwB;QACxB,aAAa,EAAE,gBAAgB;QAC/B,eAAe,EAAE,gBAAgB;QACjC,eAAe,EAAE,gBAAgB;QACjC,iCAAiC;QACjC,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,gBAAgB;QAC/B,cAAc,EAAE,gBAAgB;QAChC,cAAc,EAAE,gBAAgB;QAChC,YAAY,EAAE,gBAAgB;QAC9B,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,gBAAgB;QAC5B,cAAc,EAAE,gBAAgB;QAChC,iBAAiB,EAAE,gBAAgB;QACnC,oCAAoC;QACpC,WAAW,EAAE,gBAAgB;QAC7B,eAAe,EAAE,gBAAgB;QACjC,WAAW,EAAE,gBAAgB;QAC7B,cAAc,EAAE,gBAAgB;QAChC,YAAY,EAAE,gBAAgB;QAC9B,aAAa,EAAE,gBAAgB;QAC/B,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAC5C,sBAAsB;QACtB,QAAQ,EAAE,gBAAgB;KAC1B,CAAC;IACF,MAAM,EAAE,IAAI,CAAC,QAAQ,CACpB,IAAI,CAAC,MAAM,CAAC;QACX,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QACvC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QACvC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;KACvC,CAAC,CACF;CACD,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAKrD,uFAAuF;AACvF,MAAM,UAAU,iBAAiB,CAAC,KAAa,EAAE,IAAa;IAC7D,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACtC,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5D,MAAM,aAAa,GAAG,IAAI,GAAG,EAAU,CAAC;QACxC,MAAM,WAAW,GAAa,EAAE,CAAC;QAEjC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC5B,IAAI,KAAK,CAAC,OAAO,KAAK,UAAU,IAAI,KAAK,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;gBACtE,MAAM,kBAAkB,GAAI,KAAK,CAAC,MAA4C,CAAC,kBAAkB,CAAC;gBAClG,KAAK,MAAM,gBAAgB,IAAI,kBAAkB,IAAI,EAAE,EAAE,CAAC;oBACzD,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;gBACrC,CAAC;gBACD,SAAS;YACV,CAAC;YAED,MAAM,IAAI,GAAG,KAAK,CAAC,YAAY,IAAI,GAAG,CAAC;YACvC,WAAW,CAAC,IAAI,CAAC,OAAO,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACnD,CAAC;QAED,IAAI,YAAY,GAAG,kBAAkB,KAAK,MAAM,CAAC;QACjD,IAAI,aAAa,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;YAC5B,YAAY,IAAI,oCAAoC,CAAC;YACrD,YAAY,IAAI,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;iBACvC,IAAI,EAAE;iBACN,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,EAAE,CAAC;iBAC9B,IAAI,CAAC,IAAI,CAAC,CAAC;YACb,YAAY,IAAI,+DAA+D,CAAC;YAChF,YAAY,IAAI,yEAAyE,CAAC;QAC3F,CAAC;QACD,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5B,YAAY,IAAI,sBAAsB,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAChE,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;IAC/B,CAAC;IAED,MAAM,SAAS,GAAG,IAA0B,CAAC;IAC7C,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,KAAK,CACd,uBAAuB,SAAS,CAAC,IAAI,mGAAmG,CACxI,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AAClB,CAAC","sourcesContent":["/**\n * Theme JSON validation, kept out of `theme.ts` on purpose.\n *\n * Validating user-authored theme files needs typebox, which costs ~17 MB of module graph to import.\n * Palette lookup does not, so a presentation that only uses built-in themes should never pay for it.\n * `interactive-mode.ts` installs this validator; anything that does not simply skips validation, as\n * built-in themes already do.\n */\n\nimport { type Static, Type } from \"typebox\";\nimport { Compile } from \"typebox/compile\";\n\nconst ColorValueSchema = Type.Union([\n\tType.String(), // hex, OKLCH, OKHSL, var ref \"primary\", or empty \"\"\n\tType.Integer({ minimum: 0, maximum: 255 }), // 256-color index\n]);\n\nconst ThemeJsonSchema = Type.Object({\n\t$schema: Type.Optional(Type.String()),\n\tname: Type.String(),\n\t// Background the theme is designed for. Detected from the theme colors when omitted.\n\tappearance: Type.Optional(Type.Union([Type.Literal(\"dark\"), Type.Literal(\"light\")])),\n\tvars: Type.Optional(Type.Record(Type.String(), ColorValueSchema)),\n\tcolors: Type.Object({\n\t\t// Core UI (11 colors)\n\t\taccent: ColorValueSchema,\n\t\tborder: ColorValueSchema,\n\t\tborderAccent: ColorValueSchema,\n\t\tborderMuted: ColorValueSchema,\n\t\tsuccess: ColorValueSchema,\n\t\terror: ColorValueSchema,\n\t\twarning: ColorValueSchema,\n\t\tmuted: ColorValueSchema,\n\t\tdim: ColorValueSchema,\n\t\ttext: ColorValueSchema,\n\t\tthinkingText: ColorValueSchema,\n\t\t// Scrollbar (2 optional colors)\n\t\tscrollbarTrack: Type.Optional(ColorValueSchema),\n\t\tscrollbarThumb: Type.Optional(ColorValueSchema),\n\t\t// Backgrounds & Content Text (11 required, 2 optional)\n\t\tselectedBg: ColorValueSchema,\n\t\tsearchMatchBg: Type.Optional(ColorValueSchema),\n\t\tsearchMatchText: Type.Optional(ColorValueSchema),\n\t\tuserMessageBg: ColorValueSchema,\n\t\tuserMessageText: ColorValueSchema,\n\t\tcustomMessageBg: ColorValueSchema,\n\t\tcustomMessageText: ColorValueSchema,\n\t\tcustomMessageLabel: ColorValueSchema,\n\t\ttoolPendingBg: ColorValueSchema,\n\t\ttoolSuccessBg: ColorValueSchema,\n\t\ttoolErrorBg: ColorValueSchema,\n\t\ttoolTitle: ColorValueSchema,\n\t\ttoolOutput: ColorValueSchema,\n\t\t// Markdown (10 colors)\n\t\tmdHeading: ColorValueSchema,\n\t\tmdLink: ColorValueSchema,\n\t\tmdLinkUrl: ColorValueSchema,\n\t\tmdCode: ColorValueSchema,\n\t\tmdCodeBlock: ColorValueSchema,\n\t\tmdCodeBlockBorder: ColorValueSchema,\n\t\tmdQuote: ColorValueSchema,\n\t\tmdQuoteBorder: ColorValueSchema,\n\t\tmdHr: ColorValueSchema,\n\t\tmdListBullet: ColorValueSchema,\n\t\t// Tool Diffs (3 colors)\n\t\ttoolDiffAdded: ColorValueSchema,\n\t\ttoolDiffRemoved: ColorValueSchema,\n\t\ttoolDiffContext: ColorValueSchema,\n\t\t// Syntax Highlighting (9 colors)\n\t\tsyntaxComment: ColorValueSchema,\n\t\tsyntaxKeyword: ColorValueSchema,\n\t\tsyntaxFunction: ColorValueSchema,\n\t\tsyntaxVariable: ColorValueSchema,\n\t\tsyntaxString: ColorValueSchema,\n\t\tsyntaxNumber: ColorValueSchema,\n\t\tsyntaxType: ColorValueSchema,\n\t\tsyntaxOperator: ColorValueSchema,\n\t\tsyntaxPunctuation: ColorValueSchema,\n\t\t// Thinking Level Borders (6 colors)\n\t\tthinkingOff: ColorValueSchema,\n\t\tthinkingMinimal: ColorValueSchema,\n\t\tthinkingLow: ColorValueSchema,\n\t\tthinkingMedium: ColorValueSchema,\n\t\tthinkingHigh: ColorValueSchema,\n\t\tthinkingXhigh: ColorValueSchema,\n\t\tthinkingMax: Type.Optional(ColorValueSchema),\n\t\t// Bash Mode (1 color)\n\t\tbashMode: ColorValueSchema,\n\t}),\n\texport: Type.Optional(\n\t\tType.Object({\n\t\t\tpageBg: Type.Optional(ColorValueSchema),\n\t\t\tcardBg: Type.Optional(ColorValueSchema),\n\t\t\tinfoBg: Type.Optional(ColorValueSchema),\n\t\t}),\n\t),\n});\n\nconst compiledThemeSchema = Compile(ThemeJsonSchema);\n\nexport type ThemeColorValue = Static<typeof ColorValueSchema>;\nexport type ValidatedThemeJson = Static<typeof ThemeJsonSchema>;\n\n/** Validate one theme document, throwing a message that names the offending tokens. */\nexport function validateThemeJson(label: string, json: unknown): ValidatedThemeJson {\n\tif (!compiledThemeSchema.Check(json)) {\n\t\tconst errors = Array.from(compiledThemeSchema.Errors(json));\n\t\tconst missingColors = new Set<string>();\n\t\tconst otherErrors: string[] = [];\n\n\t\tfor (const error of errors) {\n\t\t\tif (error.keyword === \"required\" && error.instancePath === \"/colors\") {\n\t\t\t\tconst requiredProperties = (error.params as { requiredProperties?: string[] }).requiredProperties;\n\t\t\t\tfor (const requiredProperty of requiredProperties ?? []) {\n\t\t\t\t\tmissingColors.add(requiredProperty);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst path = error.instancePath || \"/\";\n\t\t\totherErrors.push(` - ${path}: ${error.message}`);\n\t\t}\n\n\t\tlet errorMessage = `Invalid theme \"${label}\":\\n`;\n\t\tif (missingColors.size > 0) {\n\t\t\terrorMessage += \"\\nMissing required color tokens:\\n\";\n\t\t\terrorMessage += Array.from(missingColors)\n\t\t\t\t.sort()\n\t\t\t\t.map((color) => ` - ${color}`)\n\t\t\t\t.join(\"\\n\");\n\t\t\terrorMessage += '\\n\\nPlease add these colors to your theme\\'s \"colors\" object.';\n\t\t\terrorMessage += \"\\nSee the built-in themes (dark.json, light.json) for reference values.\";\n\t\t}\n\t\tif (otherErrors.length > 0) {\n\t\t\terrorMessage += `\\n\\nOther errors:\\n${otherErrors.join(\"\\n\")}`;\n\t\t}\n\n\t\tthrow new Error(errorMessage);\n\t}\n\n\tconst themeJson = json as ValidatedThemeJson;\n\tif (themeJson.name.includes(\"/\")) {\n\t\tthrow new Error(\n\t\t\t`Invalid theme name \"${themeJson.name}\": theme names cannot contain \"/\" because it is reserved for automatic light/dark theme settings.`,\n\t\t);\n\t}\n\treturn themeJson;\n}\n"]}
@@ -1,361 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Pi Coding Agent Theme",
4
- "description": "Theme schema for Pi coding agent",
5
- "type": "object",
6
- "required": ["name", "colors"],
7
- "properties": {
8
- "$schema": {
9
- "type": "string",
10
- "description": "JSON schema reference"
11
- },
12
- "name": {
13
- "type": "string",
14
- "pattern": "^[^/]+$",
15
- "description": "Theme name. Must not contain '/' because it is reserved for automatic light/dark theme settings."
16
- },
17
- "appearance": {
18
- "type": "string",
19
- "enum": ["dark", "light"],
20
- "description": "Background the theme is designed for. Detected from the theme colors when omitted."
21
- },
22
- "vars": {
23
- "type": "object",
24
- "description": "Reusable color variables",
25
- "additionalProperties": {
26
- "oneOf": [
27
- {
28
- "type": "string",
29
- "description": "Hex color (#RGB or #RRGGBB), OKLCH or OKHSL color, variable reference, or empty string for terminal default"
30
- },
31
- {
32
- "type": "integer",
33
- "minimum": 0,
34
- "maximum": 255,
35
- "description": "256-color palette index (0-255)"
36
- }
37
- ]
38
- }
39
- },
40
- "colors": {
41
- "type": "object",
42
- "description": "Theme color definitions (scrollbar, thinkingMax, and search highlight colors are optional and use compatible fallbacks)",
43
- "required": [
44
- "accent",
45
- "border",
46
- "borderAccent",
47
- "borderMuted",
48
- "success",
49
- "error",
50
- "warning",
51
- "muted",
52
- "dim",
53
- "text",
54
- "thinkingText",
55
- "selectedBg",
56
- "userMessageBg",
57
- "userMessageText",
58
- "customMessageBg",
59
- "customMessageText",
60
- "customMessageLabel",
61
- "toolPendingBg",
62
- "toolSuccessBg",
63
- "toolErrorBg",
64
- "toolTitle",
65
- "toolOutput",
66
- "mdHeading",
67
- "mdLink",
68
- "mdLinkUrl",
69
- "mdCode",
70
- "mdCodeBlock",
71
- "mdCodeBlockBorder",
72
- "mdQuote",
73
- "mdQuoteBorder",
74
- "mdHr",
75
- "mdListBullet",
76
- "toolDiffAdded",
77
- "toolDiffRemoved",
78
- "toolDiffContext",
79
- "syntaxComment",
80
- "syntaxKeyword",
81
- "syntaxFunction",
82
- "syntaxVariable",
83
- "syntaxString",
84
- "syntaxNumber",
85
- "syntaxType",
86
- "syntaxOperator",
87
- "syntaxPunctuation",
88
- "thinkingOff",
89
- "thinkingMinimal",
90
- "thinkingLow",
91
- "thinkingMedium",
92
- "thinkingHigh",
93
- "thinkingXhigh",
94
- "bashMode"
95
- ],
96
- "properties": {
97
- "accent": {
98
- "$ref": "#/$defs/colorValue",
99
- "description": "Primary accent color (logo, selected items, cursor)"
100
- },
101
- "border": {
102
- "$ref": "#/$defs/colorValue",
103
- "description": "Normal borders"
104
- },
105
- "borderAccent": {
106
- "$ref": "#/$defs/colorValue",
107
- "description": "Highlighted borders"
108
- },
109
- "borderMuted": {
110
- "$ref": "#/$defs/colorValue",
111
- "description": "Subtle borders"
112
- },
113
- "success": {
114
- "$ref": "#/$defs/colorValue",
115
- "description": "Success states"
116
- },
117
- "error": {
118
- "$ref": "#/$defs/colorValue",
119
- "description": "Error states"
120
- },
121
- "warning": {
122
- "$ref": "#/$defs/colorValue",
123
- "description": "Warning states"
124
- },
125
- "muted": {
126
- "$ref": "#/$defs/colorValue",
127
- "description": "Secondary/dimmed text"
128
- },
129
- "dim": {
130
- "$ref": "#/$defs/colorValue",
131
- "description": "Very dimmed text (more subtle than muted)"
132
- },
133
- "text": {
134
- "$ref": "#/$defs/colorValue",
135
- "description": "Default text color (usually empty string)"
136
- },
137
- "thinkingText": {
138
- "$ref": "#/$defs/colorValue",
139
- "description": "Thinking block text color"
140
- },
141
- "selectedBg": {
142
- "$ref": "#/$defs/colorValue",
143
- "description": "Selected item background"
144
- },
145
- "scrollbarTrack": {
146
- "$ref": "#/$defs/colorValue",
147
- "description": "Fullscreen scrollbar track foreground (falls back to muted when omitted)"
148
- },
149
- "scrollbarThumb": {
150
- "$ref": "#/$defs/colorValue",
151
- "description": "Fullscreen scrollbar thumb foreground (falls back to text when omitted)"
152
- },
153
- "searchMatchBg": {
154
- "$ref": "#/$defs/colorValue",
155
- "description": "Transcript search match background and current-match text (falls back to selectedBg when omitted)"
156
- },
157
- "searchMatchText": {
158
- "$ref": "#/$defs/colorValue",
159
- "description": "Transcript search match text and current-match background (falls back to text when omitted)"
160
- },
161
- "userMessageBg": {
162
- "$ref": "#/$defs/colorValue",
163
- "description": "User message background"
164
- },
165
- "userMessageText": {
166
- "$ref": "#/$defs/colorValue",
167
- "description": "User message text color"
168
- },
169
- "customMessageBg": {
170
- "$ref": "#/$defs/colorValue",
171
- "description": "Custom message background (hook-injected messages)"
172
- },
173
- "customMessageText": {
174
- "$ref": "#/$defs/colorValue",
175
- "description": "Custom message text color"
176
- },
177
- "customMessageLabel": {
178
- "$ref": "#/$defs/colorValue",
179
- "description": "Custom message type label color"
180
- },
181
- "toolPendingBg": {
182
- "$ref": "#/$defs/colorValue",
183
- "description": "Tool execution box (pending state)"
184
- },
185
- "toolSuccessBg": {
186
- "$ref": "#/$defs/colorValue",
187
- "description": "Tool execution box (success state)"
188
- },
189
- "toolErrorBg": {
190
- "$ref": "#/$defs/colorValue",
191
- "description": "Tool execution box (error state)"
192
- },
193
- "toolTitle": {
194
- "$ref": "#/$defs/colorValue",
195
- "description": "Tool execution box title color"
196
- },
197
- "toolOutput": {
198
- "$ref": "#/$defs/colorValue",
199
- "description": "Tool execution box output text color"
200
- },
201
- "mdHeading": {
202
- "$ref": "#/$defs/colorValue",
203
- "description": "Markdown heading text"
204
- },
205
- "mdLink": {
206
- "$ref": "#/$defs/colorValue",
207
- "description": "Markdown link text"
208
- },
209
- "mdLinkUrl": {
210
- "$ref": "#/$defs/colorValue",
211
- "description": "Markdown link URL"
212
- },
213
- "mdCode": {
214
- "$ref": "#/$defs/colorValue",
215
- "description": "Markdown inline code"
216
- },
217
- "mdCodeBlock": {
218
- "$ref": "#/$defs/colorValue",
219
- "description": "Markdown code block content"
220
- },
221
- "mdCodeBlockBorder": {
222
- "$ref": "#/$defs/colorValue",
223
- "description": "Markdown code block fences"
224
- },
225
- "mdQuote": {
226
- "$ref": "#/$defs/colorValue",
227
- "description": "Markdown blockquote text"
228
- },
229
- "mdQuoteBorder": {
230
- "$ref": "#/$defs/colorValue",
231
- "description": "Markdown blockquote border"
232
- },
233
- "mdHr": {
234
- "$ref": "#/$defs/colorValue",
235
- "description": "Markdown horizontal rule"
236
- },
237
- "mdListBullet": {
238
- "$ref": "#/$defs/colorValue",
239
- "description": "Markdown list bullets/numbers"
240
- },
241
- "toolDiffAdded": {
242
- "$ref": "#/$defs/colorValue",
243
- "description": "Added lines in tool diffs"
244
- },
245
- "toolDiffRemoved": {
246
- "$ref": "#/$defs/colorValue",
247
- "description": "Removed lines in tool diffs"
248
- },
249
- "toolDiffContext": {
250
- "$ref": "#/$defs/colorValue",
251
- "description": "Context lines in tool diffs"
252
- },
253
- "syntaxComment": {
254
- "$ref": "#/$defs/colorValue",
255
- "description": "Syntax highlighting: comments"
256
- },
257
- "syntaxKeyword": {
258
- "$ref": "#/$defs/colorValue",
259
- "description": "Syntax highlighting: keywords"
260
- },
261
- "syntaxFunction": {
262
- "$ref": "#/$defs/colorValue",
263
- "description": "Syntax highlighting: function names"
264
- },
265
- "syntaxVariable": {
266
- "$ref": "#/$defs/colorValue",
267
- "description": "Syntax highlighting: variable names"
268
- },
269
- "syntaxString": {
270
- "$ref": "#/$defs/colorValue",
271
- "description": "Syntax highlighting: string literals"
272
- },
273
- "syntaxNumber": {
274
- "$ref": "#/$defs/colorValue",
275
- "description": "Syntax highlighting: number literals"
276
- },
277
- "syntaxType": {
278
- "$ref": "#/$defs/colorValue",
279
- "description": "Syntax highlighting: type names"
280
- },
281
- "syntaxOperator": {
282
- "$ref": "#/$defs/colorValue",
283
- "description": "Syntax highlighting: operators"
284
- },
285
- "syntaxPunctuation": {
286
- "$ref": "#/$defs/colorValue",
287
- "description": "Syntax highlighting: punctuation"
288
- },
289
- "thinkingOff": {
290
- "$ref": "#/$defs/colorValue",
291
- "description": "Thinking level border: off"
292
- },
293
- "thinkingMinimal": {
294
- "$ref": "#/$defs/colorValue",
295
- "description": "Thinking level border: minimal"
296
- },
297
- "thinkingLow": {
298
- "$ref": "#/$defs/colorValue",
299
- "description": "Thinking level border: low"
300
- },
301
- "thinkingMedium": {
302
- "$ref": "#/$defs/colorValue",
303
- "description": "Thinking level border: medium"
304
- },
305
- "thinkingHigh": {
306
- "$ref": "#/$defs/colorValue",
307
- "description": "Thinking level border: high"
308
- },
309
- "thinkingXhigh": {
310
- "$ref": "#/$defs/colorValue",
311
- "description": "Thinking level border: xhigh"
312
- },
313
- "thinkingMax": {
314
- "$ref": "#/$defs/colorValue",
315
- "description": "Thinking level border: max (falls back to thinkingXhigh when omitted)"
316
- },
317
- "bashMode": {
318
- "$ref": "#/$defs/colorValue",
319
- "description": "Editor border color in bash mode"
320
- }
321
- },
322
- "additionalProperties": false
323
- },
324
- "export": {
325
- "type": "object",
326
- "description": "Optional colors for HTML export (defaults derived from userMessageBg if not specified)",
327
- "properties": {
328
- "pageBg": {
329
- "$ref": "#/$defs/colorValue",
330
- "description": "Page background color"
331
- },
332
- "cardBg": {
333
- "$ref": "#/$defs/colorValue",
334
- "description": "Card/container background color"
335
- },
336
- "infoBg": {
337
- "$ref": "#/$defs/colorValue",
338
- "description": "Info sections background (system prompt, notices)"
339
- }
340
- },
341
- "additionalProperties": false
342
- }
343
- },
344
- "additionalProperties": false,
345
- "$defs": {
346
- "colorValue": {
347
- "oneOf": [
348
- {
349
- "type": "string",
350
- "description": "Hex color (#RGB or #RRGGBB), OKLCH or OKHSL color, variable reference, or empty string for terminal default"
351
- },
352
- {
353
- "type": "integer",
354
- "minimum": 0,
355
- "maximum": 255,
356
- "description": "256-color palette index (0-255)"
357
- }
358
- ]
359
- }
360
- }
361
- }