@humain/humain-code 0.4.12 → 0.4.13

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 (539) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/dist/bun/sandbox-env-setup.js +1 -1
  3. package/dist/bun/sandbox-env-setup.js.map +1 -1
  4. package/dist/bundle/agent-monitor.js +1 -1
  5. package/dist/bundle/chunks/anthropic-messages-YSAHA7QM.js +67 -0
  6. package/dist/bundle/chunks/azure-openai-responses-Z5XYDPHS.js +15 -0
  7. package/dist/bundle/chunks/bedrock-converse-stream.js +393 -314
  8. package/dist/bundle/chunks/{chunk-EDKZRYWJ.js → chunk-2TTB6GIB.js} +2 -2
  9. package/dist/bundle/chunks/{chunk-HSDTSUZE.js → chunk-36Q5UVQL.js} +47 -89
  10. package/dist/bundle/chunks/chunk-4DXXZHY2.js +540 -0
  11. package/dist/bundle/chunks/{chunk-BKJU56SM.js → chunk-A7QKOI62.js} +142 -126
  12. package/dist/bundle/chunks/{chunk-UW4GMZL3.js → chunk-AIXI6RIE.js} +264 -248
  13. package/dist/bundle/chunks/{chunk-V5ZF7Q7L.js → chunk-BVHXWQLD.js} +52 -47
  14. package/dist/bundle/chunks/{chunk-I2ZWZAIV.js → chunk-COF5P635.js} +222 -148
  15. package/dist/bundle/chunks/{chunk-SCIGZFN5.js → chunk-DNGJMRJW.js} +11 -11
  16. package/dist/bundle/chunks/{chunk-XGO43DKL.js → chunk-DUSJT2W4.js} +21 -25
  17. package/dist/bundle/chunks/chunk-EYIYBQAR.js +7 -0
  18. package/dist/bundle/chunks/chunk-FRUFMISJ.js +505 -0
  19. package/dist/bundle/chunks/{chunk-R5VIAWGA.js → chunk-H2FY3PEV.js} +9 -8
  20. package/dist/bundle/chunks/{chunk-KGI4EX6R.js → chunk-JNHXXVLA.js} +126 -125
  21. package/dist/bundle/chunks/{chunk-45ZBHMQG.js → chunk-JQCWRL5K.js} +4 -4
  22. package/dist/bundle/chunks/{chunk-AS2Y2MO6.js → chunk-KK3KUUMM.js} +643 -624
  23. package/dist/bundle/chunks/{chunk-6KAMTNN3.js → chunk-L3J4P5JR.js} +1 -1
  24. package/dist/bundle/chunks/chunk-L6Z6JKKC.js +3 -0
  25. package/dist/bundle/chunks/{chunk-DZ5C66IU.js → chunk-LUL775V7.js} +33 -33
  26. package/dist/bundle/chunks/{chunk-BRXQUQSC.js → chunk-MF2NEHP4.js} +778 -775
  27. package/dist/bundle/chunks/chunk-MG5PX4KU.js +31 -0
  28. package/dist/bundle/chunks/{chunk-LCOHFEZZ.js → chunk-NNKA2PAP.js} +1 -1
  29. package/dist/bundle/chunks/{chunk-HMWAH7ZY.js → chunk-OX2IBCCA.js} +53 -49
  30. package/dist/bundle/chunks/{chunk-WBJN6PEI.js → chunk-QYCOHSI7.js} +1 -1
  31. package/dist/bundle/chunks/{chunk-NLTW6A7G.js → chunk-TC7EANW4.js} +3730 -3353
  32. package/dist/bundle/chunks/{chunk-77EWF2NW.js → chunk-TJG52LZB.js} +1 -1
  33. package/dist/bundle/chunks/{chunk-5XD3DHYL.js → chunk-UDVC7A5S.js} +1 -1
  34. package/dist/bundle/chunks/chunk-UGXYG7HN.js +22 -0
  35. package/dist/bundle/chunks/{chunk-VYIIPF57.js → chunk-UHLW4KJ7.js} +419 -413
  36. package/dist/bundle/chunks/{chunk-FF26YENK.js → chunk-W2QRCQBX.js} +4 -3
  37. package/dist/bundle/chunks/chunk-XQRYOCHA.js +26 -0
  38. package/dist/bundle/chunks/{chunk-7Z5MWPYE.js → chunk-Y3RFGBG2.js} +1 -1
  39. package/dist/bundle/chunks/chunk-YJ3NQWES.js +9 -0
  40. package/dist/bundle/chunks/{chunk-YJBE3IGR.js → chunk-YRCLNWFV.js} +20 -20
  41. package/dist/bundle/chunks/chunk-YZMQXAJM.js +8 -0
  42. package/dist/bundle/chunks/{chunk-BHM75BJJ.js → chunk-Z74ZYQPX.js} +207 -79
  43. package/dist/bundle/chunks/{cli-5ACW3WND.js → cli-SRI4UOSL.js} +6 -6
  44. package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-FZ3UQCZ7.js → cloudflare-workers-ai-system-one-JGN7NZCV.js} +1 -1
  45. package/dist/bundle/chunks/codemode-worker.js +27 -14
  46. package/dist/bundle/chunks/{compat-KXWWOFHQ.js → compat-PCHMBE76.js} +6 -6
  47. package/dist/bundle/chunks/dist-MNSGVI4C.js +7 -0
  48. package/dist/bundle/chunks/{dist-6SWVHFCS.js → dist-UWE5M6HK.js} +211 -8
  49. package/dist/bundle/chunks/{dist-cjs-RL2OCAP2.js → dist-cjs-4BMVQ74V.js} +1 -1
  50. package/dist/bundle/chunks/{easter-egg-3d-3L3IKAT6.js → easter-egg-3d-ZJ2JUFOA.js} +1 -1
  51. package/dist/bundle/chunks/es-YEFEOGR3.js +1905 -0
  52. package/dist/bundle/chunks/{esm-763X2IA7.js → esm-NCUV2DF7.js} +1 -1
  53. package/dist/bundle/chunks/{event-streams-R5OECII4.js → event-streams-NXFTZDSF.js} +1 -1
  54. package/dist/bundle/chunks/execute-LRTXH4YJ.js +553 -0
  55. package/dist/bundle/chunks/{extract-DLZ425VI.js → extract-OZW5JHG6.js} +140 -120
  56. package/dist/bundle/chunks/{google-generative-ai-JD2FVOIX.js → google-generative-ai-YXXFSTX7.js} +2 -2
  57. package/dist/bundle/chunks/{google-vertex-PFBMDCBW.js → google-vertex-3IVWLYJ5.js} +2 -2
  58. package/dist/bundle/chunks/host-2RMBOGA7.js +2 -0
  59. package/dist/bundle/chunks/{mistral-conversations-D74NZ65O.js → mistral-conversations-Y7GWO3QB.js} +14 -13
  60. package/dist/bundle/chunks/{node-W47VUEGE.js → node-ELWNZC34.js} +328 -337
  61. package/dist/bundle/chunks/{node-4GGYDW5Q.js → node-SPBTZUUS.js} +26 -25
  62. package/dist/bundle/chunks/{openai-codex-responses-JAAA7MSS.js → openai-codex-responses-NSXWHIDT.js} +3 -4
  63. package/dist/bundle/chunks/{openai-completions-PGPMGQPU.js → openai-completions-WGBQHTYA.js} +9 -8
  64. package/dist/bundle/chunks/{openai-decisions-QQ4MEABI.js → openai-decisions-QWEISDVO.js} +1 -1
  65. package/dist/bundle/chunks/{openai-responses-FG2R2M4L.js → openai-responses-OKGCSIEY.js} +6 -6
  66. package/dist/bundle/chunks/{openrouter-images-NTBP3UUE.js → openrouter-images-BMVMAROU.js} +1 -1
  67. package/dist/bundle/chunks/{pi-messages-JD4O7KIP.js → pi-messages-XNEG23NU.js} +1 -1
  68. package/dist/bundle/chunks/runtime-VGSK3QCM.js +2 -0
  69. package/dist/bundle/chunks/{typesafe-system-one-TTC7YCO3.js → typesafe-system-one-62YHYXZV.js} +1 -1
  70. package/dist/bundle/chunks/{undici-EEOUTE5F.js → undici-7EW63V4X.js} +1 -1
  71. package/dist/bundle/chunks/virtual-modules-JSGQ72M6.js +5 -0
  72. package/dist/bundle/cli-runtime.js +3 -3
  73. package/dist/bundle/flow/package.json +5 -6
  74. package/dist/bundle/index.js +6 -6
  75. package/dist/bundle/rpc-entry.js +2 -2
  76. package/dist/coordination/adapter/delivery.d.ts.map +1 -1
  77. package/dist/coordination/adapter/delivery.js +1 -0
  78. package/dist/coordination/adapter/delivery.js.map +1 -1
  79. package/dist/coordination/adapter/index.d.ts.map +1 -1
  80. package/dist/coordination/adapter/index.js +3 -1
  81. package/dist/coordination/adapter/index.js.map +1 -1
  82. package/dist/coordination/adapter/receipts.d.ts +2 -1
  83. package/dist/coordination/adapter/receipts.d.ts.map +1 -1
  84. package/dist/coordination/adapter/receipts.js +7 -4
  85. package/dist/coordination/adapter/receipts.js.map +1 -1
  86. package/dist/coordination/adapter/supervisor.d.ts.map +1 -1
  87. package/dist/coordination/adapter/supervisor.js +8 -0
  88. package/dist/coordination/adapter/supervisor.js.map +1 -1
  89. package/dist/coordination/broker/broker.d.ts +11 -0
  90. package/dist/coordination/broker/broker.d.ts.map +1 -1
  91. package/dist/coordination/broker/broker.js +195 -18
  92. package/dist/coordination/broker/broker.js.map +1 -1
  93. package/dist/coordination/client/client.d.ts +5 -0
  94. package/dist/coordination/client/client.d.ts.map +1 -1
  95. package/dist/coordination/client/client.js +23 -9
  96. package/dist/coordination/client/client.js.map +1 -1
  97. package/dist/coordination/transport/protocol.d.ts.map +1 -1
  98. package/dist/coordination/transport/protocol.js +8 -1
  99. package/dist/coordination/transport/protocol.js.map +1 -1
  100. package/dist/coordination/transport/types.d.ts +6 -0
  101. package/dist/coordination/transport/types.d.ts.map +1 -1
  102. package/dist/coordination/transport/types.js +2 -1
  103. package/dist/coordination/transport/types.js.map +1 -1
  104. package/dist/core/agent-session.d.ts +44 -2
  105. package/dist/core/agent-session.d.ts.map +1 -1
  106. package/dist/core/agent-session.js +305 -124
  107. package/dist/core/agent-session.js.map +1 -1
  108. package/dist/core/auth-storage.d.ts.map +1 -1
  109. package/dist/core/auth-storage.js +20 -13
  110. package/dist/core/auth-storage.js.map +1 -1
  111. package/dist/core/auto-effort.d.ts +16 -0
  112. package/dist/core/auto-effort.d.ts.map +1 -0
  113. package/dist/core/auto-effort.js +69 -0
  114. package/dist/core/auto-effort.js.map +1 -0
  115. package/dist/core/auto-session-namer.d.ts.map +1 -1
  116. package/dist/core/auto-session-namer.js +2 -12
  117. package/dist/core/auto-session-namer.js.map +1 -1
  118. package/dist/core/bug-report.d.ts +11 -1
  119. package/dist/core/bug-report.d.ts.map +1 -1
  120. package/dist/core/bug-report.js +2 -2
  121. package/dist/core/bug-report.js.map +1 -1
  122. package/dist/core/compaction/branch-summarization.d.ts +3 -2
  123. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  124. package/dist/core/compaction/branch-summarization.js +1 -1
  125. package/dist/core/compaction/branch-summarization.js.map +1 -1
  126. package/dist/core/compaction/compaction.d.ts +13 -4
  127. package/dist/core/compaction/compaction.d.ts.map +1 -1
  128. package/dist/core/compaction/compaction.js +94 -5
  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/extensions/index.d.ts +1 -1
  135. package/dist/core/extensions/index.d.ts.map +1 -1
  136. package/dist/core/extensions/index.js.map +1 -1
  137. package/dist/core/extensions/runner.d.ts +4 -2
  138. package/dist/core/extensions/runner.d.ts.map +1 -1
  139. package/dist/core/extensions/runner.js +6 -3
  140. package/dist/core/extensions/runner.js.map +1 -1
  141. package/dist/core/extensions/types.d.ts +33 -7
  142. package/dist/core/extensions/types.d.ts.map +1 -1
  143. package/dist/core/extensions/types.js.map +1 -1
  144. package/dist/core/key-id-schema.d.ts +6 -0
  145. package/dist/core/key-id-schema.d.ts.map +1 -0
  146. package/dist/core/key-id-schema.js +16 -0
  147. package/dist/core/key-id-schema.js.map +1 -0
  148. package/dist/core/keybindings-schema.d.ts +4 -0
  149. package/dist/core/keybindings-schema.d.ts.map +1 -0
  150. package/dist/core/keybindings-schema.js +16 -0
  151. package/dist/core/keybindings-schema.js.map +1 -0
  152. package/dist/core/keybindings.d.ts +198 -63
  153. package/dist/core/keybindings.d.ts.map +1 -1
  154. package/dist/core/keybindings.js +26 -23
  155. package/dist/core/keybindings.js.map +1 -1
  156. package/dist/core/model-config.d.ts +695 -74
  157. package/dist/core/model-config.d.ts.map +1 -1
  158. package/dist/core/model-config.js +16 -166
  159. package/dist/core/model-config.js.map +1 -1
  160. package/dist/core/model-runtime.d.ts.map +1 -1
  161. package/dist/core/model-runtime.js +39 -4
  162. package/dist/core/model-runtime.js.map +1 -1
  163. package/dist/core/package-manager.d.ts.map +1 -1
  164. package/dist/core/package-manager.js +3 -3
  165. package/dist/core/package-manager.js.map +1 -1
  166. package/dist/core/project-trust.d.ts.map +1 -1
  167. package/dist/core/project-trust.js +2 -1
  168. package/dist/core/project-trust.js.map +1 -1
  169. package/dist/core/remote-catalog-provider.d.ts +13 -1
  170. package/dist/core/remote-catalog-provider.d.ts.map +1 -1
  171. package/dist/core/remote-catalog-provider.js +110 -27
  172. package/dist/core/remote-catalog-provider.js.map +1 -1
  173. package/dist/core/resource-loader.d.ts.map +1 -1
  174. package/dist/core/resource-loader.js +5 -1
  175. package/dist/core/resource-loader.js.map +1 -1
  176. package/dist/core/session-export.d.ts.map +1 -1
  177. package/dist/core/session-export.js +2 -2
  178. package/dist/core/session-export.js.map +1 -1
  179. package/dist/core/session-manager.d.ts +36 -5
  180. package/dist/core/session-manager.d.ts.map +1 -1
  181. package/dist/core/session-manager.js +164 -40
  182. package/dist/core/session-manager.js.map +1 -1
  183. package/dist/core/settings-defaults.d.ts +65 -0
  184. package/dist/core/settings-defaults.d.ts.map +1 -0
  185. package/dist/core/settings-defaults.js +66 -0
  186. package/dist/core/settings-defaults.js.map +1 -0
  187. package/dist/core/settings-manager.d.ts +10 -175
  188. package/dist/core/settings-manager.d.ts.map +1 -1
  189. package/dist/core/settings-manager.js +64 -44
  190. package/dist/core/settings-manager.js.map +1 -1
  191. package/dist/core/settings-schema.d.ts +257 -0
  192. package/dist/core/settings-schema.d.ts.map +1 -0
  193. package/dist/core/settings-schema.js +311 -0
  194. package/dist/core/settings-schema.js.map +1 -0
  195. package/dist/core/tools/edit-diff.d.ts +4 -1
  196. package/dist/core/tools/edit-diff.d.ts.map +1 -1
  197. package/dist/core/tools/edit-diff.js +480 -29
  198. package/dist/core/tools/edit-diff.js.map +1 -1
  199. package/dist/core/tools/render-utils.d.ts +18 -0
  200. package/dist/core/tools/render-utils.d.ts.map +1 -1
  201. package/dist/core/tools/render-utils.js +46 -0
  202. package/dist/core/tools/render-utils.js.map +1 -1
  203. package/dist/core/tools/renderers/bash.d.ts.map +1 -1
  204. package/dist/core/tools/renderers/bash.js +17 -46
  205. package/dist/core/tools/renderers/bash.js.map +1 -1
  206. package/dist/core/tools/renderers/edit.d.ts +19 -1
  207. package/dist/core/tools/renderers/edit.d.ts.map +1 -1
  208. package/dist/core/tools/renderers/edit.js +38 -7
  209. package/dist/core/tools/renderers/edit.js.map +1 -1
  210. package/dist/core/tools/renderers/find.d.ts.map +1 -1
  211. package/dist/core/tools/renderers/find.js +3 -0
  212. package/dist/core/tools/renderers/find.js.map +1 -1
  213. package/dist/core/tools/renderers/grep.d.ts.map +1 -1
  214. package/dist/core/tools/renderers/grep.js +3 -0
  215. package/dist/core/tools/renderers/grep.js.map +1 -1
  216. package/dist/core/tools/renderers/highlighting.d.ts +13 -0
  217. package/dist/core/tools/renderers/highlighting.d.ts.map +1 -0
  218. package/dist/core/tools/renderers/highlighting.js +42 -0
  219. package/dist/core/tools/renderers/highlighting.js.map +1 -0
  220. package/dist/core/tools/renderers/ls.d.ts.map +1 -1
  221. package/dist/core/tools/renderers/ls.js +3 -0
  222. package/dist/core/tools/renderers/ls.js.map +1 -1
  223. package/dist/core/tools/renderers/read.d.ts.map +1 -1
  224. package/dist/core/tools/renderers/read.js +3 -0
  225. package/dist/core/tools/renderers/read.js.map +1 -1
  226. package/dist/core/tools/renderers/write.d.ts.map +1 -1
  227. package/dist/core/tools/renderers/write.js +3 -1
  228. package/dist/core/tools/renderers/write.js.map +1 -1
  229. package/dist/core/tools/subagent.d.ts +4 -0
  230. package/dist/core/tools/subagent.d.ts.map +1 -1
  231. package/dist/core/tools/subagent.js +85 -8
  232. package/dist/core/tools/subagent.js.map +1 -1
  233. package/dist/core/tools/truncate.d.ts.map +1 -1
  234. package/dist/core/tools/truncate.js +92 -44
  235. package/dist/core/tools/truncate.js.map +1 -1
  236. package/dist/core/usage-totals.d.ts +8 -1
  237. package/dist/core/usage-totals.d.ts.map +1 -1
  238. package/dist/core/usage-totals.js +106 -10
  239. package/dist/core/usage-totals.js.map +1 -1
  240. package/dist/extensions/codemode/execute.d.ts.map +1 -1
  241. package/dist/extensions/codemode/execute.js +64 -45
  242. package/dist/extensions/codemode/execute.js.map +1 -1
  243. package/dist/extensions/codemode/index.d.ts.map +1 -1
  244. package/dist/extensions/codemode/index.js +2 -1
  245. package/dist/extensions/codemode/index.js.map +1 -1
  246. package/dist/extensions/codemode/renderer.d.ts +2 -2
  247. package/dist/extensions/codemode/renderer.d.ts.map +1 -1
  248. package/dist/extensions/codemode/renderer.js +9 -3
  249. package/dist/extensions/codemode/renderer.js.map +1 -1
  250. package/dist/extensions/codemode/tool.d.ts +6 -12
  251. package/dist/extensions/codemode/tool.d.ts.map +1 -1
  252. package/dist/extensions/codemode/tool.js +44 -32
  253. package/dist/extensions/codemode/tool.js.map +1 -1
  254. package/dist/extensions/mcp/cli.js +5 -8
  255. package/dist/extensions/mcp/cli.js.map +1 -1
  256. package/dist/extensions/mcp/index.d.ts.map +1 -1
  257. package/dist/extensions/mcp/index.js +26 -23
  258. package/dist/extensions/mcp/index.js.map +1 -1
  259. package/dist/extensions/mcp/resources.d.ts +0 -6
  260. package/dist/extensions/mcp/resources.d.ts.map +1 -1
  261. package/dist/extensions/mcp/resources.js +1 -1
  262. package/dist/extensions/mcp/resources.js.map +1 -1
  263. package/dist/extensions/mcp/runtime.d.ts +3 -6
  264. package/dist/extensions/mcp/runtime.d.ts.map +1 -1
  265. package/dist/extensions/mcp/runtime.js +4 -39
  266. package/dist/extensions/mcp/runtime.js.map +1 -1
  267. package/dist/extensions/mcp/tools.d.ts +2 -3
  268. package/dist/extensions/mcp/tools.d.ts.map +1 -1
  269. package/dist/extensions/mcp/tools.js +62 -6
  270. package/dist/extensions/mcp/tools.js.map +1 -1
  271. package/dist/extensions/tool-search/tool.d.ts +0 -2
  272. package/dist/extensions/tool-search/tool.d.ts.map +1 -1
  273. package/dist/extensions/tool-search/tool.js +2 -4
  274. package/dist/extensions/tool-search/tool.js.map +1 -1
  275. package/dist/humain/adhd/index.d.ts +3 -2
  276. package/dist/humain/adhd/index.d.ts.map +1 -1
  277. package/dist/humain/adhd/index.js +22 -10
  278. package/dist/humain/adhd/index.js.map +1 -1
  279. package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +306 -20
  280. package/dist/humain/caveman/index.d.ts +4 -2
  281. package/dist/humain/caveman/index.d.ts.map +1 -1
  282. package/dist/humain/caveman/index.js +51 -16
  283. package/dist/humain/caveman/index.js.map +1 -1
  284. package/dist/humain/ponytail/index.d.ts +2 -0
  285. package/dist/humain/ponytail/index.d.ts.map +1 -1
  286. package/dist/humain/ponytail/index.js +2 -0
  287. package/dist/humain/ponytail/index.js.map +1 -1
  288. package/dist/humain/ponytail/vendor/hooks/ponytail-config.d.ts.map +1 -1
  289. package/dist/humain/ponytail/vendor/hooks/ponytail-config.js +39 -9
  290. package/dist/humain/ponytail/vendor/hooks/ponytail-config.js.map +1 -1
  291. package/dist/humain/ponytail/vendor/hooks/ponytail-instructions.js +1 -1
  292. package/dist/humain/ponytail/vendor/hooks/ponytail-instructions.js.map +1 -1
  293. package/dist/humain/ponytail/vendor/pi-extension/index.d.ts +4 -0
  294. package/dist/humain/ponytail/vendor/pi-extension/index.d.ts.map +1 -1
  295. package/dist/humain/ponytail/vendor/pi-extension/index.js +8 -0
  296. package/dist/humain/ponytail/vendor/pi-extension/index.js.map +1 -1
  297. package/dist/humain/web-access/vendor/baizhi.js.map +1 -1
  298. package/dist/humain/web-access/vendor/brave.d.ts.map +1 -1
  299. package/dist/humain/web-access/vendor/brave.js +19 -2
  300. package/dist/humain/web-access/vendor/brave.js.map +1 -1
  301. package/dist/humain/web-access/vendor/ceramic.d.ts +4 -0
  302. package/dist/humain/web-access/vendor/ceramic.d.ts.map +1 -0
  303. package/dist/humain/web-access/vendor/ceramic.js +212 -0
  304. package/dist/humain/web-access/vendor/ceramic.js.map +1 -0
  305. package/dist/humain/web-access/vendor/content-find.d.ts.map +1 -1
  306. package/dist/humain/web-access/vendor/content-find.js +2 -1
  307. package/dist/humain/web-access/vendor/content-find.js.map +1 -1
  308. package/dist/humain/web-access/vendor/curator-page.d.ts.map +1 -1
  309. package/dist/humain/web-access/vendor/curator-page.js +3 -1
  310. package/dist/humain/web-access/vendor/curator-page.js.map +1 -1
  311. package/dist/humain/web-access/vendor/curator-server.d.ts.map +1 -1
  312. package/dist/humain/web-access/vendor/curator-server.js +2 -0
  313. package/dist/humain/web-access/vendor/curator-server.js.map +1 -1
  314. package/dist/humain/web-access/vendor/duckduckgo.d.ts.map +1 -1
  315. package/dist/humain/web-access/vendor/duckduckgo.js +5 -1
  316. package/dist/humain/web-access/vendor/duckduckgo.js.map +1 -1
  317. package/dist/humain/web-access/vendor/endpoint-pdf-extract.d.ts +23 -0
  318. package/dist/humain/web-access/vendor/endpoint-pdf-extract.d.ts.map +1 -0
  319. package/dist/humain/web-access/vendor/endpoint-pdf-extract.js +193 -0
  320. package/dist/humain/web-access/vendor/endpoint-pdf-extract.js.map +1 -0
  321. package/dist/humain/web-access/vendor/extract.d.ts +5 -1
  322. package/dist/humain/web-access/vendor/extract.d.ts.map +1 -1
  323. package/dist/humain/web-access/vendor/extract.js +49 -12
  324. package/dist/humain/web-access/vendor/extract.js.map +1 -1
  325. package/dist/humain/web-access/vendor/fetch-params.d.ts +2 -0
  326. package/dist/humain/web-access/vendor/fetch-params.d.ts.map +1 -1
  327. package/dist/humain/web-access/vendor/fetch-params.js +9 -0
  328. package/dist/humain/web-access/vendor/fetch-params.js.map +1 -1
  329. package/dist/humain/web-access/vendor/gemini-api.d.ts +5 -0
  330. package/dist/humain/web-access/vendor/gemini-api.d.ts.map +1 -1
  331. package/dist/humain/web-access/vendor/gemini-api.js +16 -0
  332. package/dist/humain/web-access/vendor/gemini-api.js.map +1 -1
  333. package/dist/humain/web-access/vendor/gemini-search.d.ts +3 -3
  334. package/dist/humain/web-access/vendor/gemini-search.d.ts.map +1 -1
  335. package/dist/humain/web-access/vendor/gemini-search.js +48 -172
  336. package/dist/humain/web-access/vendor/gemini-search.js.map +1 -1
  337. package/dist/humain/web-access/vendor/github-extract.d.ts +7 -0
  338. package/dist/humain/web-access/vendor/github-extract.d.ts.map +1 -1
  339. package/dist/humain/web-access/vendor/github-extract.js +31 -2
  340. package/dist/humain/web-access/vendor/github-extract.js.map +1 -1
  341. package/dist/humain/web-access/vendor/github-issue-pr.d.ts +2 -0
  342. package/dist/humain/web-access/vendor/github-issue-pr.d.ts.map +1 -1
  343. package/dist/humain/web-access/vendor/github-issue-pr.js +86 -74
  344. package/dist/humain/web-access/vendor/github-issue-pr.js.map +1 -1
  345. package/dist/humain/web-access/vendor/index.d.ts.map +1 -1
  346. package/dist/humain/web-access/vendor/index.js +68 -27
  347. package/dist/humain/web-access/vendor/index.js.map +1 -1
  348. package/dist/humain/web-access/vendor/openai-search.js +3 -3
  349. package/dist/humain/web-access/vendor/openai-search.js.map +1 -1
  350. package/dist/humain/web-access/vendor/page-query.d.ts.map +1 -1
  351. package/dist/humain/web-access/vendor/page-query.js +6 -9
  352. package/dist/humain/web-access/vendor/page-query.js.map +1 -1
  353. package/dist/humain/web-access/vendor/parallel-mcp.d.ts.map +1 -1
  354. package/dist/humain/web-access/vendor/parallel-mcp.js +2 -0
  355. package/dist/humain/web-access/vendor/parallel-mcp.js.map +1 -1
  356. package/dist/humain/web-access/vendor/pdf-extract.d.ts +1 -1
  357. package/dist/humain/web-access/vendor/pdf-extract.d.ts.map +1 -1
  358. package/dist/humain/web-access/vendor/pdf-extract.js +31 -1
  359. package/dist/humain/web-access/vendor/pdf-extract.js.map +1 -1
  360. package/dist/humain/web-access/vendor/perplexity.d.ts.map +1 -1
  361. package/dist/humain/web-access/vendor/perplexity.js +21 -2
  362. package/dist/humain/web-access/vendor/perplexity.js.map +1 -1
  363. package/dist/humain/web-access/vendor/query-rewrite.js +1 -1
  364. package/dist/humain/web-access/vendor/query-rewrite.js.map +1 -1
  365. package/dist/humain/web-access/vendor/ssrf-protection.d.ts +4 -0
  366. package/dist/humain/web-access/vendor/ssrf-protection.d.ts.map +1 -1
  367. package/dist/humain/web-access/vendor/ssrf-protection.js +19 -4
  368. package/dist/humain/web-access/vendor/ssrf-protection.js.map +1 -1
  369. package/dist/humain/web-access/vendor/storage.d.ts +14 -0
  370. package/dist/humain/web-access/vendor/storage.d.ts.map +1 -1
  371. package/dist/humain/web-access/vendor/storage.js +48 -0
  372. package/dist/humain/web-access/vendor/storage.js.map +1 -1
  373. package/dist/humain/web-access/vendor/summary-review.d.ts.map +1 -1
  374. package/dist/humain/web-access/vendor/summary-review.js +18 -6
  375. package/dist/humain/web-access/vendor/summary-review.js.map +1 -1
  376. package/dist/humain/web-access/vendor/tool-arguments.d.ts.map +1 -1
  377. package/dist/humain/web-access/vendor/tool-arguments.js +5 -2
  378. package/dist/humain/web-access/vendor/tool-arguments.js.map +1 -1
  379. package/dist/humain/web-access/vendor/utils.d.ts.map +1 -1
  380. package/dist/humain/web-access/vendor/utils.js +21 -6
  381. package/dist/humain/web-access/vendor/utils.js.map +1 -1
  382. package/dist/humain/web-access/vendor/video-extract.js +6 -2
  383. package/dist/humain/web-access/vendor/video-extract.js.map +1 -1
  384. package/dist/humain/web-access/vendor/web-tool-core.d.ts +2 -1
  385. package/dist/humain/web-access/vendor/web-tool-core.d.ts.map +1 -1
  386. package/dist/humain/web-access/vendor/web-tool-core.js +56 -13
  387. package/dist/humain/web-access/vendor/web-tool-core.js.map +1 -1
  388. package/dist/humain/web-access/vendor/zai.js.map +1 -1
  389. package/dist/index.d.ts +3 -3
  390. package/dist/index.d.ts.map +1 -1
  391. package/dist/index.js.map +1 -1
  392. package/dist/main.js +3 -3
  393. package/dist/main.js.map +1 -1
  394. package/dist/modes/interactive/components/assistant-message.d.ts +21 -1
  395. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  396. package/dist/modes/interactive/components/assistant-message.js +79 -10
  397. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  398. package/dist/modes/interactive/components/footer.d.ts +8 -3
  399. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  400. package/dist/modes/interactive/components/footer.js +156 -133
  401. package/dist/modes/interactive/components/footer.js.map +1 -1
  402. package/dist/modes/interactive/components/mermaid.js +1 -1
  403. package/dist/modes/interactive/components/mermaid.js.map +1 -1
  404. package/dist/modes/interactive/components/settings-selector.d.ts +10 -1
  405. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  406. package/dist/modes/interactive/components/settings-selector.js +83 -7
  407. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  408. package/dist/modes/interactive/components/status-indicator.d.ts +1 -1
  409. package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
  410. package/dist/modes/interactive/components/status-indicator.js +2 -2
  411. package/dist/modes/interactive/components/status-indicator.js.map +1 -1
  412. package/dist/modes/interactive/components/themed-text.d.ts.map +1 -1
  413. package/dist/modes/interactive/components/themed-text.js +3 -1
  414. package/dist/modes/interactive/components/themed-text.js.map +1 -1
  415. package/dist/modes/interactive/components/tool-execution.d.ts +7 -1
  416. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  417. package/dist/modes/interactive/components/tool-execution.js +36 -19
  418. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  419. package/dist/modes/interactive/components/transcript-container.d.ts +12 -0
  420. package/dist/modes/interactive/components/transcript-container.d.ts.map +1 -0
  421. package/dist/modes/interactive/components/transcript-container.js +31 -0
  422. package/dist/modes/interactive/components/transcript-container.js.map +1 -0
  423. package/dist/modes/interactive/components/user-message.d.ts +6 -1
  424. package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
  425. package/dist/modes/interactive/components/user-message.js +20 -5
  426. package/dist/modes/interactive/components/user-message.js.map +1 -1
  427. package/dist/modes/interactive/components/visual-truncate.d.ts +20 -5
  428. package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
  429. package/dist/modes/interactive/components/visual-truncate.js +42 -3
  430. package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
  431. package/dist/modes/interactive/interactive-mode.d.ts +2 -0
  432. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  433. package/dist/modes/interactive/interactive-mode.js +125 -19
  434. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  435. package/dist/modes/interactive/theme/theme-schema.d.ts +28 -0
  436. package/dist/modes/interactive/theme/theme-schema.d.ts.map +1 -0
  437. package/dist/modes/interactive/theme/theme-schema.js +105 -0
  438. package/dist/modes/interactive/theme/theme-schema.js.map +1 -0
  439. package/dist/modes/interactive/theme/theme-tokens.d.ts +257 -0
  440. package/dist/modes/interactive/theme/theme-tokens.d.ts.map +1 -0
  441. package/dist/modes/interactive/theme/theme-tokens.js +94 -0
  442. package/dist/modes/interactive/theme/theme-tokens.js.map +1 -0
  443. package/dist/modes/interactive/theme/theme.d.ts +15 -16
  444. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  445. package/dist/modes/interactive/theme/theme.js +26 -29
  446. package/dist/modes/interactive/theme/theme.js.map +1 -1
  447. package/dist/modes/print-mode.d.ts.map +1 -1
  448. package/dist/modes/print-mode.js +4 -0
  449. package/dist/modes/print-mode.js.map +1 -1
  450. package/dist/utils/child-process.d.ts +0 -7
  451. package/dist/utils/child-process.d.ts.map +1 -1
  452. package/dist/utils/child-process.js +12 -3
  453. package/dist/utils/child-process.js.map +1 -1
  454. package/dist/utils/clipboard.d.ts.map +1 -1
  455. package/dist/utils/clipboard.js +6 -1
  456. package/dist/utils/clipboard.js.map +1 -1
  457. package/dist/utils/image-convert.d.ts +7 -0
  458. package/dist/utils/image-convert.d.ts.map +1 -1
  459. package/dist/utils/image-convert.js +35 -3
  460. package/dist/utils/image-convert.js.map +1 -1
  461. package/dist/utils/image-resize.d.ts.map +1 -1
  462. package/dist/utils/image-resize.js +2 -2
  463. package/dist/utils/image-resize.js.map +1 -1
  464. package/dist/utils/syntax-highlight.d.ts +7 -0
  465. package/dist/utils/syntax-highlight.d.ts.map +1 -1
  466. package/dist/utils/syntax-highlight.js +54 -3
  467. package/dist/utils/syntax-highlight.js.map +1 -1
  468. package/dist/utils/windows-path.js +1 -1
  469. package/dist/utils/windows-path.js.map +1 -1
  470. package/dist/utils/zip.d.ts.map +1 -1
  471. package/dist/utils/zip.js +3 -1
  472. package/dist/utils/zip.js.map +1 -1
  473. package/docs/auto-session-namer.md +4 -0
  474. package/docs/cli-integration.md +1 -1
  475. package/docs/cli.md +1 -1
  476. package/docs/codemode.md +1 -1
  477. package/docs/compaction.md +9 -5
  478. package/docs/coordination.md +7 -0
  479. package/docs/environment-variables.md +1 -0
  480. package/docs/extensions.md +7 -4
  481. package/docs/keybindings.md +1 -0
  482. package/docs/mcp.md +1 -1
  483. package/docs/models.md +1 -0
  484. package/docs/providers.md +20 -0
  485. package/docs/session-format.md +16 -2
  486. package/docs/settings.md +16 -1
  487. package/docs/themes.md +4 -2
  488. package/docs/tui.md +1 -1
  489. package/docs/usage.md +6 -2
  490. package/examples/extensions/custom-provider-anthropic/package-lock.json +6 -6
  491. package/examples/extensions/custom-provider-anthropic/package.json +2 -2
  492. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  493. package/examples/extensions/dynamic-resources/dynamic.json +1 -1
  494. package/examples/extensions/gondolin/package-lock.json +20 -20
  495. package/examples/extensions/gondolin/package.json +1 -1
  496. package/examples/extensions/overlay-test.ts +2 -2
  497. package/examples/extensions/plan-mode/index.ts +6 -2
  498. package/examples/extensions/sandbox/package-lock.json +8 -8
  499. package/examples/extensions/sandbox/package.json +2 -2
  500. package/examples/extensions/with-deps/package-lock.json +2 -2
  501. package/examples/extensions/with-deps/package.json +1 -1
  502. package/examples/plugins/pi-example-plugin/package.json +2 -2
  503. package/examples/plugins/pi-example-plugin/src/contract.ts +1 -1
  504. package/examples/plugins/pi-example-plugin/src/session.ts +1 -1
  505. package/examples/plugins/pi-example-plugin/src/tui.ts +1 -1
  506. package/npm-shrinkwrap.json +174 -190
  507. package/package.json +24 -23
  508. package/schemas/keybindings.schema.json +397 -0
  509. package/schemas/models.schema.json +1157 -0
  510. package/schemas/settings.schema.json +875 -0
  511. package/schemas/theme.schema.json +365 -0
  512. package/src/coordination/UPSTREAM.md +36 -3
  513. package/src/coordination/upstream.json +3 -2
  514. package/src/humain/adhd/UPSTREAM.md +21 -3
  515. package/src/humain/adhd/upstream.json +1 -1
  516. package/src/humain/caveman/UPSTREAM.md +24 -3
  517. package/src/humain/ponytail/UPSTREAM.md +51 -4
  518. package/src/humain/ponytail/upstream.json +12 -12
  519. package/src/humain/ponytail/vendor/skills/ponytail/SKILL.md +1 -1
  520. package/src/humain/ponytail/vendor/skills/ponytail-audit/SKILL.md +1 -1
  521. package/src/humain/ponytail/vendor/skills/ponytail-debt/SKILL.md +13 -10
  522. package/src/humain/ponytail/vendor/skills/ponytail-help/SKILL.md +1 -1
  523. package/src/humain/ponytail/vendor/skills/ponytail-review/SKILL.md +1 -1
  524. package/src/humain/web-access/UPSTREAM.md +55 -1
  525. package/src/humain/web-access/upstream.json +4 -4
  526. package/dist/bundle/chunks/anthropic-messages-UNHXXOD4.js +0 -70
  527. package/dist/bundle/chunks/azure-openai-responses-4QRYJCC2.js +0 -14
  528. package/dist/bundle/chunks/chunk-GVVRXZHN.js +0 -17
  529. package/dist/bundle/chunks/chunk-QMUIATLD.js +0 -209
  530. package/dist/bundle/chunks/chunk-QSPDLT2R.js +0 -160
  531. package/dist/bundle/chunks/chunk-SZRZXVVZ.js +0 -125
  532. package/dist/bundle/chunks/chunk-XMHLSV3I.js +0 -48
  533. package/dist/bundle/chunks/chunk-YKZGL4MB.js +0 -86
  534. package/dist/bundle/chunks/dist-VNSMKBZ6.js +0 -7
  535. package/dist/bundle/chunks/es-N6YFJOD7.js +0 -1901
  536. package/dist/bundle/chunks/execute-4X6G65NZ.js +0 -536
  537. package/dist/bundle/chunks/host-4J7H7KDS.js +0 -2
  538. package/dist/bundle/chunks/runtime-SI76JZNE.js +0 -2
  539. package/dist/bundle/chunks/virtual-modules-GZY3Y4GX.js +0 -5
@@ -0,0 +1,365 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://pi.dev/schemas/theme.schema.json",
4
+ "$comment": "This file is generated from TypeScript source. Do not edit it manually; run npm run generate:schemas.",
5
+ "type": "object",
6
+ "required": [
7
+ "name",
8
+ "colors"
9
+ ],
10
+ "properties": {
11
+ "$schema": {
12
+ "type": "string",
13
+ "description": "JSON schema reference"
14
+ },
15
+ "name": {
16
+ "type": "string",
17
+ "pattern": "^[^/]+$",
18
+ "description": "Theme name. Must not contain '/' because it is reserved for automatic light/dark theme settings."
19
+ },
20
+ "appearance": {
21
+ "anyOf": [
22
+ {
23
+ "type": "string",
24
+ "const": "dark"
25
+ },
26
+ {
27
+ "type": "string",
28
+ "const": "light"
29
+ }
30
+ ],
31
+ "description": "Background the theme is designed for. Detected from the theme colors when omitted."
32
+ },
33
+ "vars": {
34
+ "type": "object",
35
+ "patternProperties": {
36
+ "^.*$": {
37
+ "$ref": "#/$defs/ColorValue"
38
+ }
39
+ },
40
+ "description": "Reusable color variables"
41
+ },
42
+ "colors": {
43
+ "type": "object",
44
+ "required": [
45
+ "accent",
46
+ "border",
47
+ "borderAccent",
48
+ "borderMuted",
49
+ "success",
50
+ "error",
51
+ "warning",
52
+ "muted",
53
+ "dim",
54
+ "text",
55
+ "thinkingText",
56
+ "selectedBg",
57
+ "userMessageBg",
58
+ "userMessageText",
59
+ "customMessageBg",
60
+ "customMessageText",
61
+ "customMessageLabel",
62
+ "toolPendingBg",
63
+ "toolSuccessBg",
64
+ "toolErrorBg",
65
+ "toolTitle",
66
+ "toolOutput",
67
+ "mdHeading",
68
+ "mdLink",
69
+ "mdLinkUrl",
70
+ "mdCode",
71
+ "mdCodeBlock",
72
+ "mdCodeBlockBorder",
73
+ "mdQuote",
74
+ "mdQuoteBorder",
75
+ "mdHr",
76
+ "mdListBullet",
77
+ "toolDiffAdded",
78
+ "toolDiffRemoved",
79
+ "toolDiffContext",
80
+ "syntaxComment",
81
+ "syntaxKeyword",
82
+ "syntaxFunction",
83
+ "syntaxVariable",
84
+ "syntaxString",
85
+ "syntaxNumber",
86
+ "syntaxType",
87
+ "syntaxOperator",
88
+ "syntaxPunctuation",
89
+ "thinkingOff",
90
+ "thinkingMinimal",
91
+ "thinkingLow",
92
+ "thinkingMedium",
93
+ "thinkingHigh",
94
+ "thinkingXhigh",
95
+ "bashMode"
96
+ ],
97
+ "properties": {
98
+ "accent": {
99
+ "$ref": "#/$defs/ColorValue",
100
+ "description": "Primary accent color (logo, selected items, cursor)"
101
+ },
102
+ "border": {
103
+ "$ref": "#/$defs/ColorValue",
104
+ "description": "Normal borders"
105
+ },
106
+ "borderAccent": {
107
+ "$ref": "#/$defs/ColorValue",
108
+ "description": "Highlighted borders"
109
+ },
110
+ "borderMuted": {
111
+ "$ref": "#/$defs/ColorValue",
112
+ "description": "Subtle borders"
113
+ },
114
+ "success": {
115
+ "$ref": "#/$defs/ColorValue",
116
+ "description": "Success states"
117
+ },
118
+ "error": {
119
+ "$ref": "#/$defs/ColorValue",
120
+ "description": "Error states"
121
+ },
122
+ "warning": {
123
+ "$ref": "#/$defs/ColorValue",
124
+ "description": "Warning states"
125
+ },
126
+ "muted": {
127
+ "$ref": "#/$defs/ColorValue",
128
+ "description": "Secondary/dimmed text"
129
+ },
130
+ "dim": {
131
+ "$ref": "#/$defs/ColorValue",
132
+ "description": "Very dimmed text (more subtle than muted)"
133
+ },
134
+ "text": {
135
+ "$ref": "#/$defs/ColorValue",
136
+ "description": "Default text color (usually empty string)"
137
+ },
138
+ "thinkingText": {
139
+ "$ref": "#/$defs/ColorValue",
140
+ "description": "Thinking block text color"
141
+ },
142
+ "scrollbarTrack": {
143
+ "$ref": "#/$defs/ColorValue",
144
+ "description": "Fullscreen scrollbar track foreground (falls back to muted when omitted)"
145
+ },
146
+ "scrollbarThumb": {
147
+ "$ref": "#/$defs/ColorValue",
148
+ "description": "Fullscreen scrollbar thumb foreground (falls back to text when omitted)"
149
+ },
150
+ "selectedBg": {
151
+ "$ref": "#/$defs/ColorValue",
152
+ "description": "Selected item background"
153
+ },
154
+ "searchMatchBg": {
155
+ "$ref": "#/$defs/ColorValue",
156
+ "description": "Transcript search match background and current-match text (falls back to selectedBg when omitted)"
157
+ },
158
+ "searchMatchText": {
159
+ "$ref": "#/$defs/ColorValue",
160
+ "description": "Transcript search match text and current-match background (falls back to text when omitted)"
161
+ },
162
+ "userMessageBg": {
163
+ "$ref": "#/$defs/ColorValue",
164
+ "description": "User message background"
165
+ },
166
+ "userMessageText": {
167
+ "$ref": "#/$defs/ColorValue",
168
+ "description": "User message text color"
169
+ },
170
+ "customMessageBg": {
171
+ "$ref": "#/$defs/ColorValue",
172
+ "description": "Custom message background (hook-injected messages)"
173
+ },
174
+ "customMessageText": {
175
+ "$ref": "#/$defs/ColorValue",
176
+ "description": "Custom message text color"
177
+ },
178
+ "customMessageLabel": {
179
+ "$ref": "#/$defs/ColorValue",
180
+ "description": "Custom message type label color"
181
+ },
182
+ "toolPendingBg": {
183
+ "$ref": "#/$defs/ColorValue",
184
+ "description": "Tool execution box (pending state)"
185
+ },
186
+ "toolSuccessBg": {
187
+ "$ref": "#/$defs/ColorValue",
188
+ "description": "Tool execution box (success state)"
189
+ },
190
+ "toolErrorBg": {
191
+ "$ref": "#/$defs/ColorValue",
192
+ "description": "Tool execution box (error state)"
193
+ },
194
+ "toolTitle": {
195
+ "$ref": "#/$defs/ColorValue",
196
+ "description": "Tool execution box title color"
197
+ },
198
+ "toolOutput": {
199
+ "$ref": "#/$defs/ColorValue",
200
+ "description": "Tool execution box output text color"
201
+ },
202
+ "mdHeading": {
203
+ "$ref": "#/$defs/ColorValue",
204
+ "description": "Markdown heading text"
205
+ },
206
+ "mdLink": {
207
+ "$ref": "#/$defs/ColorValue",
208
+ "description": "Markdown link text"
209
+ },
210
+ "mdLinkUrl": {
211
+ "$ref": "#/$defs/ColorValue",
212
+ "description": "Markdown link URL"
213
+ },
214
+ "mdCode": {
215
+ "$ref": "#/$defs/ColorValue",
216
+ "description": "Markdown inline code"
217
+ },
218
+ "mdCodeBlock": {
219
+ "$ref": "#/$defs/ColorValue",
220
+ "description": "Markdown code block content"
221
+ },
222
+ "mdCodeBlockBorder": {
223
+ "$ref": "#/$defs/ColorValue",
224
+ "description": "Markdown code block fences"
225
+ },
226
+ "mdQuote": {
227
+ "$ref": "#/$defs/ColorValue",
228
+ "description": "Markdown blockquote text"
229
+ },
230
+ "mdQuoteBorder": {
231
+ "$ref": "#/$defs/ColorValue",
232
+ "description": "Markdown blockquote border"
233
+ },
234
+ "mdHr": {
235
+ "$ref": "#/$defs/ColorValue",
236
+ "description": "Markdown horizontal rule"
237
+ },
238
+ "mdListBullet": {
239
+ "$ref": "#/$defs/ColorValue",
240
+ "description": "Markdown list bullets/numbers"
241
+ },
242
+ "toolDiffAdded": {
243
+ "$ref": "#/$defs/ColorValue",
244
+ "description": "Added lines in tool diffs"
245
+ },
246
+ "toolDiffRemoved": {
247
+ "$ref": "#/$defs/ColorValue",
248
+ "description": "Removed lines in tool diffs"
249
+ },
250
+ "toolDiffContext": {
251
+ "$ref": "#/$defs/ColorValue",
252
+ "description": "Context lines in tool diffs"
253
+ },
254
+ "syntaxComment": {
255
+ "$ref": "#/$defs/ColorValue",
256
+ "description": "Syntax highlighting: comments"
257
+ },
258
+ "syntaxKeyword": {
259
+ "$ref": "#/$defs/ColorValue",
260
+ "description": "Syntax highlighting: keywords"
261
+ },
262
+ "syntaxFunction": {
263
+ "$ref": "#/$defs/ColorValue",
264
+ "description": "Syntax highlighting: function names"
265
+ },
266
+ "syntaxVariable": {
267
+ "$ref": "#/$defs/ColorValue",
268
+ "description": "Syntax highlighting: variable names"
269
+ },
270
+ "syntaxString": {
271
+ "$ref": "#/$defs/ColorValue",
272
+ "description": "Syntax highlighting: string literals"
273
+ },
274
+ "syntaxNumber": {
275
+ "$ref": "#/$defs/ColorValue",
276
+ "description": "Syntax highlighting: number literals"
277
+ },
278
+ "syntaxType": {
279
+ "$ref": "#/$defs/ColorValue",
280
+ "description": "Syntax highlighting: type names"
281
+ },
282
+ "syntaxOperator": {
283
+ "$ref": "#/$defs/ColorValue",
284
+ "description": "Syntax highlighting: operators"
285
+ },
286
+ "syntaxPunctuation": {
287
+ "$ref": "#/$defs/ColorValue",
288
+ "description": "Syntax highlighting: punctuation"
289
+ },
290
+ "thinkingOff": {
291
+ "$ref": "#/$defs/ColorValue",
292
+ "description": "Thinking level border: off"
293
+ },
294
+ "thinkingMinimal": {
295
+ "$ref": "#/$defs/ColorValue",
296
+ "description": "Thinking level border: minimal"
297
+ },
298
+ "thinkingLow": {
299
+ "$ref": "#/$defs/ColorValue",
300
+ "description": "Thinking level border: low"
301
+ },
302
+ "thinkingMedium": {
303
+ "$ref": "#/$defs/ColorValue",
304
+ "description": "Thinking level border: medium"
305
+ },
306
+ "thinkingHigh": {
307
+ "$ref": "#/$defs/ColorValue",
308
+ "description": "Thinking level border: high"
309
+ },
310
+ "thinkingXhigh": {
311
+ "$ref": "#/$defs/ColorValue",
312
+ "description": "Thinking level border: xhigh"
313
+ },
314
+ "thinkingMax": {
315
+ "$ref": "#/$defs/ColorValue",
316
+ "description": "Thinking level border: max (falls back to thinkingXhigh when omitted)"
317
+ },
318
+ "bashMode": {
319
+ "$ref": "#/$defs/ColorValue",
320
+ "description": "Editor border color in bash mode"
321
+ }
322
+ },
323
+ "description": "Theme color definitions (scrollbar, thinkingMax, and search highlight colors are optional and use compatible fallbacks)",
324
+ "additionalProperties": false
325
+ },
326
+ "export": {
327
+ "type": "object",
328
+ "properties": {
329
+ "pageBg": {
330
+ "$ref": "#/$defs/ColorValue",
331
+ "description": "Page background color"
332
+ },
333
+ "cardBg": {
334
+ "$ref": "#/$defs/ColorValue",
335
+ "description": "Card/container background color"
336
+ },
337
+ "infoBg": {
338
+ "$ref": "#/$defs/ColorValue",
339
+ "description": "Info sections background (system prompt, notices)"
340
+ }
341
+ },
342
+ "description": "Optional colors for HTML export (defaults derived from userMessageBg if not specified)",
343
+ "additionalProperties": false
344
+ }
345
+ },
346
+ "title": "Pi Coding Agent Theme",
347
+ "description": "Theme schema for Pi coding agent",
348
+ "additionalProperties": false,
349
+ "$defs": {
350
+ "ColorValue": {
351
+ "anyOf": [
352
+ {
353
+ "type": "string",
354
+ "description": "Hex color (#RGB or #RRGGBB), OKLCH or OKHSL color, variable reference, or empty string for terminal default"
355
+ },
356
+ {
357
+ "type": "integer",
358
+ "minimum": 0,
359
+ "maximum": 255,
360
+ "description": "256-color palette index (0-255)"
361
+ }
362
+ ]
363
+ }
364
+ }
365
+ }
@@ -2,11 +2,14 @@
2
2
 
3
3
  The transport, broker and client under this directory are derived from
4
4
  [`nicobailon/pi-intercom`](https://github.com/nicobailon/pi-intercom) at commit
5
- `a5fad4df2a9fe4909bf4d9b06263c8316976b57d` (0.16.1), used under the MIT license in
5
+ `14731a4873b500e19d000bf131142e430e4b7928` (tag `v0.17.0`, version 0.17.0), used under the MIT license in
6
6
  `vendor/LICENSE`. Every derived file carries a header naming its origin.
7
7
 
8
- Reviewed 2026-10-07: 0.16.0 to 0.16.1 changed only `index.ts` (Pi extension, not vendored), tests, changelog and
9
- version files; every vendored source file and `LICENSE` is byte-identical, so no port was needed.
8
+ Reviewed 2026-10-13: ported the 0.16.1 to 0.17.0 receipt-confirmed delivery, broker-side heartbeat eviction,
9
+ live session-ID protection and simplified client outcome decoding. `LICENSE`, framing, paths, spawn,
10
+ extension-state and runtime-claim did not change upstream; their existing origin headers remain accurate.
11
+ HUMAIN's reconnect supervisor already retries every failure with the upstream 1s, 2s, 5s, 10s, 30s backoff.
12
+ Focused regression coverage lives in `test/coordination/upstream-refresh.test.ts`.
10
13
 
11
14
  ## HUMAIN modifications
12
15
 
@@ -55,6 +58,36 @@ version files; every vendored source file and `LICENSE` is byte-identical, so no
55
58
  - Pending-ask files are named by the SHA-256 of the message id (bounded filename); the ask record is persisted before
56
59
  the delivery dedupe record, so a failed ask write replies `E_PERSIST_FAILED` and leaves nothing for a retry to dedupe.
57
60
 
61
+ ## 0.17.0 adaptations and intentional differences
62
+
63
+ - Receipt-promising adapters receive `socket_delivered` only after a receipt from the actual endpoint.
64
+ Without confirmation, the sender gets `delivery: "unknown"`, `retryable: true`, `outcomeKnown: false`,
65
+ with `E_RECEIPT_TIMEOUT` or `E_RECEIVER_DISCONNECTED`. Plain clients retain immediate socket results.
66
+ `HUMAIN_TERMINAL_COORDINATION_RECEIPT_TIMEOUT_MS` sets the deadline (positive integer below 10000;
67
+ default 5000). It is read when the broker starts, not from peer frames.
68
+ - Unlike upstream's in-memory socket-send path, every accepted message still enters HUMAIN's durable mailbox
69
+ before any write. Confirmation does not retire mail: only `injected` or `not_injected` does. Timeout leaves
70
+ the mail and ask edge intact; retries reuse the entry, redeliver safely, and wait for confirmation. Duplicate
71
+ arrivals repeat `receiver_received` even while injection is pending. Cancel and supersede settle pending waits.
72
+ Durable mail also enforces authored-content identity after its separate dedupe record has expired or been evicted.
73
+ - Clients advertise their heartbeat interval; the broker evicts a peer after three silent intervals, through the
74
+ normal disconnect path (including lease loss and writer release). A sweep delayed by system sleep first resets
75
+ activity timestamps. Plain clients that promise no interval are not evicted. Sweep interval:
76
+ `HUMAIN_TERMINAL_COORDINATION_LIVENESS_SWEEP_MS` (default 10000). No TCP keepalive: TCP remains intentionally absent.
77
+ - A different live process cannot replace a session ID (`E_SESSION_HELD`). Same-process reconnects and dead holders
78
+ retain the existing replacement path, including integration fencing. PID is still a self-asserted local hint,
79
+ not authentication. HUMAIN omits upstream's holder PID/directory payload and uses a fixed redacted diagnostic;
80
+ the supervisor stops retrying until the extension is recreated on reload/session start.
81
+ - `/intercom-pool` and mutable `PI_INTERCOM_SCOPE_ID` are not ported. HUMAIN binds each connection's authority to its
82
+ canonical Git repository; arbitrary pools must not move records, policy, artifacts or integration across that
83
+ trust boundary. Device-wide discovery and explicit cross-repository messages remain available as before.
84
+ - Upstream's shared `pi.idle-wake.v1` reservation is not ported. HUMAIN uses `sendMessage`, not upstream's
85
+ `sendUserMessage` wake, and `AgentSession._runAgentPrompt` marks the run active before its first async preflight.
86
+ `InboundDelivery` already holds messages when the host is non-idle and drains them at safe points.
87
+ - Upstream Pi extension UI, global `stableId` configuration, subagent pool inheritance and headless
88
+ `intercom_session_held` entries remain outside the fork's built-in adapter. Human-only ownership and integration
89
+ commands are unchanged; peer messages cannot execute them.
90
+
58
91
  ## Not vendored
59
92
 
60
93
  `index.ts` (Pi extension), `config.ts`, `herdr-location.ts`, `project-agent.ts`, `handover.ts`,
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "pi-intercom",
3
3
  "repository": "https://github.com/nicobailon/pi-intercom",
4
- "commit": "a5fad4df2a9fe4909bf4d9b06263c8316976b57d",
5
- "upstreamVersion": "0.16.1",
4
+ "commit": "14731a4873b500e19d000bf131142e430e4b7928",
5
+ "tag": "v0.17.0",
6
+ "upstreamVersion": "0.17.0",
6
7
  "license": "MIT",
7
8
  "vendoredSha256": {
8
9
  "LICENSE": "2d20dfacd9742706e564470dc77438608a1e54b0ed46959f080709389209093c"
@@ -2,7 +2,7 @@
2
2
 
3
3
  `vendor/skills/i-have-adhd/SKILL.md` and `vendor/LICENSE` come from
4
4
  [`ayghri/i-have-adhd`](https://github.com/ayghri/i-have-adhd) at commit
5
- `723af7d9afaf43eb871dbcce6129e2bf80de90d5`. The repository's `package.json`
5
+ `1ecea1993b7fce257ffbd686c070948b5e07eda6`. The repository's `package.json`
6
6
  records version `0.4.1`; upstream had no stable tags when this pin was reviewed.
7
7
  Both the skill frontmatter and the repository license identify MIT, copyright
8
8
  2026 Ayoub Ghriss.
@@ -12,6 +12,17 @@ records their SHA-256 hashes (`vendoredSha256`) and has no `humainPatches`.
12
12
  `test/humain-modules-upstream.test.ts` verifies the pins offline and checks the
13
13
  Node package and binary asset declarations.
14
14
 
15
+ ## HEAD refresh (2026-10-13)
16
+
17
+ Upstream still has no stable tags. HEAD is
18
+ `1ecea1993b7fce257ffbd686c070948b5e07eda6`; package version remains `0.4.1`.
19
+ The complete diff from `723af7d9afaf43eb871dbcce6129e2bf80de90d5` adds a
20
+ French README translation and links it from the other READMEs. The skill,
21
+ license, package metadata and upstream extension are unchanged. Both bundled
22
+ files were compared byte-for-byte against the new commit, so their hashes and
23
+ runtime behavior remain unchanged. This provenance-only change reflects a
24
+ reviewed documentation-only release, not a skipped skill update.
25
+
15
26
  ## Not vendored
16
27
 
17
28
  The upstream `extensions/i-have-adhd.ts`, hooks, installers, scripts, tests,
@@ -31,7 +42,14 @@ strips frontmatter at runtime; the vendored file remains unchanged.
31
42
  - Session entries restore saved state when a session resumes.
32
43
  - `/adhd default on|off` saves `<agent dir>/adhd/config.json`. A valid
33
44
  `HUMAIN_TERMINAL_ADHD_DEFAULT_MODE` overrides the saved default, which
34
- overrides the built-in `on`. Invalid values are ignored.
45
+ overrides the built-in `on`. Invalid values are ignored. Startup tolerates
46
+ invalid or unreadable configuration; default writes reject it without
47
+ overwriting the input. Existing file symlinks are resolved before validation
48
+ and atomic target replacement, preserving the link chain and target mode
49
+ bits even under a restrictive umask. Dangling links report errors instead of
50
+ becoming regular files. New configuration uses mode `0600`; temporary files
51
+ use exclusive creation and are cleaned up after write or replacement failure.
52
+ This writer is HUMAIN-authored; upstream pins and vendored files are unchanged.
35
53
  - The UI displays `adhd: ON` when enabled.
36
54
  `HUMAIN_TERMINAL_ADHD_HIDE_STATUS=1` hides this status entry.
37
55
  - Ponytail owns implementation choices, ADHD owns response organization, and
@@ -51,7 +69,7 @@ review the latest stable tag instead of following an unreleased HEAD.
51
69
  git clone https://github.com/ayghri/i-have-adhd /tmp/i-have-adhd-review
52
70
  cd /tmp/i-have-adhd-review
53
71
  git checkout <commit>
54
- git diff 723af7d9afaf43eb871dbcce6129e2bf80de90d5 <commit> -- skills/i-have-adhd/SKILL.md LICENSE package.json
72
+ git diff 1ecea1993b7fce257ffbd686c070948b5e07eda6 <commit> -- skills/i-have-adhd/SKILL.md LICENSE package.json
55
73
  shasum -a 256 skills/i-have-adhd/SKILL.md LICENSE
56
74
  ```
57
75
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "i-have-adhd",
3
3
  "repository": "https://github.com/ayghri/i-have-adhd",
4
- "commit": "723af7d9afaf43eb871dbcce6129e2bf80de90d5",
4
+ "commit": "1ecea1993b7fce257ffbd686c070948b5e07eda6",
5
5
  "upstreamVersion": "0.4.1",
6
6
  "license": "MIT",
7
7
  "vendoredSha256": {
@@ -14,6 +14,16 @@ The vendored files are byte-identical to the pinned commit; `upstream.json`
14
14
  records their SHA-256 (`vendoredSha256`) and `humainPatches` is empty.
15
15
  `test/humain-modules-upstream.test.ts` checks the hashes offline.
16
16
 
17
+ ## Stable release recheck (2026-10-13)
18
+
19
+ The latest stable `v*` tag remains `v3.2.0`, peeled commit
20
+ `e20f07e8152a0c0360f58c09e79d30ac94329991`. Upstream HEAD is
21
+ `2e08b9177c07bb7249a8a2d1a6758e5db281d002`; it is not a stable release and
22
+ was not imported. All five bundled files were fetched from the stable commit
23
+ and compared byte-for-byte. They match the existing vendor files and pins.
24
+ `LICENSING.md` still covers the skills under Apache-2.0 with the preserved MIT
25
+ notice for older contributions. No runtime, proxy, installer or hook was run.
26
+
17
27
  ## 3.2.0 refresh (structure change)
18
28
 
19
29
  Upstream 3.0.0 had one `skills/caveman/SKILL.md` with a lite/full/ultra table
@@ -60,14 +70,25 @@ prompt prefix stays cacheable.
60
70
  `full`. Nothing throws. An explicit `/caveman lite` or `/caveman wenyan-*`
61
71
  shows an info notice and switches to `full`.
62
72
  - `stop caveman` turns caveman off for the session; `normal mode` turns off
63
- both caveman and ponytail (each module's input handler sees the same text).
73
+ caveman, ponytail and ADHD (each module's input handler sees the same text).
64
74
  - The mode is restored from `caveman-mode` session entries.
65
75
  - Default precedence: a valid `HUMAIN_TERMINAL_CAVEMAN_DEFAULT_MODE`, then a
66
76
  valid `defaultMode` in `<agent dir>/caveman/config.json`, then `full`.
67
77
  Invalid values are ignored. `/caveman status` names the source.
68
78
  `HUMAIN_TERMINAL_CAVEMAN_HIDE_STATUS=1` hides the status line entry.
69
- - The only file written is `<agent dir>/caveman/config.json`, and only by
70
- `/caveman default <mode>`. No network, no child processes.
79
+ - The only persistent configuration written is `<agent dir>/caveman/config.json`
80
+ (or its resolved target), and only by `/caveman default <mode>`. Saving tolerates
81
+ only missing files and
82
+ requires a JSON object; parse/read failures leave existing bytes untouched
83
+ and reach the command's error notification. Existing configuration is resolved
84
+ with `lstatSync` and `realpathSync` before reading, validating, or replacing the
85
+ target. Relative and chained symlinks remain intact. Dangling links report
86
+ resolution failures; ordinary missing configuration can still be created.
87
+ An exclusively created temporary file in the target directory is atomically
88
+ renamed onto the target. `fchmodSync` restores existing permission bits despite
89
+ umask (new files use mode 0600), and only this write's temporary file is cleaned
90
+ up. Startup reads remain forgiving. This is a local HUMAIN host repair, not a
91
+ change to the byte-identical vendored skills. No network, no child processes.
71
92
 
72
93
  ## Bump procedure
73
94
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  The vendored files in `vendor/` come from the npm package
4
4
  [`@dietrichgebert/ponytail`](https://github.com/DietrichGebert/ponytail) version
5
- `5.0.0` and remain licensed under the upstream MIT license in `vendor/LICENSE`.
5
+ `5.2.0` and remain licensed under the upstream MIT license in `vendor/LICENSE`.
6
6
  They were taken from the published npm tarball, not the git repository, after
7
7
  verifying the tarball against the registry's `dist.shasum` and `dist.integrity`.
8
8
 
9
- Last reviewed: 5.0.0 on 2026-10-07.
9
+ Last reviewed: 5.2.0 on 2026-10-13.
10
10
 
11
11
  `upstream.json` records the tarball URL, SHA-1 shasum, SHA-512 integrity, the
12
12
  SHA-256 of every vendored file that is byte-identical to the tarball
@@ -46,6 +46,21 @@ SHA-256 of every vendored file that is byte-identical to the tarball
46
46
  `getAgentDir()` (default `~/.humain-terminal/agent/ponytail/config.json`)
47
47
  instead of `$XDG_CONFIG_HOME`, `~/.config` or `%APPDATA%`. Env vars renamed
48
48
  to `HUMAIN_TERMINAL_PONYTAIL_DEFAULT_MODE`, `_QUIET_STARTUP`, `_HIDE_STATUS`.
49
+ Startup stays quiet unless `quietStartup` is explicitly false (upstream
50
+ defaults to showing the toast). The new `getQoderDir()` is omitted because
51
+ HUMAIN does not ship the Qoder hooks that call it. Default writes tolerate
52
+ only missing files, require a JSON object, and propagate parse/read failures
53
+ to the command's error notification instead of replacing existing data.
54
+ Writes resolve existing configuration files with `lstatSync` and `realpathSync`
55
+ before reading, validating, or replacing the resolved target. Relative and chained
56
+ symlinks remain intact; dangling links report resolution failures rather than being
57
+ treated as missing files. Ordinary missing configuration can still be created.
58
+ An exclusively created temporary file in the target directory is atomically
59
+ renamed onto the target. `fchmodSync` restores existing permission bits despite
60
+ umask (new files use mode 0600). Cleanup only removes the temporary file created
61
+ by this write. Startup reads remain forgiving.
62
+ This is a local HUMAIN repair; `upstreamSourceSha256` still records the
63
+ original upstream source, not the patched file.
49
64
  - `hooks/ponytail-instructions.ts`: `SKILL_PATH` resolves through
50
65
  `getHumainModuleAssetsDir()` in `src/config.ts` instead of `__dirname`.
51
66
  - `pi-extension/index.ts`: no emoji in the status line (upstream prints a horse
@@ -56,6 +71,9 @@ SHA-256 of every vendored file that is byte-identical to the tarball
56
71
  preserves an earlier handler's forced prompt by appending instead of setting
57
72
  a section that the forced prompt would ignore. The upstream OMP array-prompt
58
73
  branch is omitted because HUMAIN's `systemPrompt` is always a string.
74
+ The OMP-only `session_switch` and `session_branch` listeners are omitted:
75
+ HUMAIN emits `session_start` for new/resumed/forked sessions and
76
+ `session_tree` for tree navigation.
59
77
  - `skills/ponytail-help/SKILL.md`: the "Configure Default Mode" section names
60
78
  the HUMAIN env var and config path; the Claude Code "Update" section is
61
79
  replaced with a line saying updates ship with HUMAIN Code CLI.
@@ -63,6 +81,35 @@ SHA-256 of every vendored file that is byte-identical to the tarball
63
81
  `Bad:`/`Good:` patch was dropped because the upstream examples are gone). The
64
82
  pin test still checks every vendored skill for emoji.
65
83
 
84
+ ## 5.2.0 refresh (2026-10-13)
85
+
86
+ The registry's latest stable release is 5.2.0. Both the 5.0.0 baseline and
87
+ 5.2.0 tarballs were verified against their registry SHA-1 and SHA-512 values.
88
+ The new shasum is `b4a8c1f823c88dac3265a95d78365422ad04c86e`. The complete
89
+ published-package diff was reviewed as untrusted input. No dependencies or
90
+ lifecycle scripts were added (`scripts.test` only, never run).
91
+
92
+ Imported release content:
93
+
94
+ - The Pi command completes runtime levels, `status`, and complete
95
+ `default <level>` commands. It never suggests bare `default` or `review`.
96
+ - The base skill and fallback instructions now mark deliberate limits with
97
+ `shortcut: <the limit>, <when to upgrade>` instead of `ponytail:`.
98
+ - Review/audit skills recognize both markers. Debt scans honor `.gitignore`,
99
+ accept a user-specified marker, and exclude non-deferral keyboard notes.
100
+ - Help adopts the new marker while retaining HUMAIN configuration and update
101
+ instructions. The gain skill and MIT license are unchanged.
102
+
103
+ Reviewed but not imported: OpenCode argument/mention handling, defaults and
104
+ compaction injection; Claude/Codex compaction state and synchronous hook output;
105
+ Windows hook compatibility; bounded/safe codebase-map generation; Qoder config
106
+ lookup; Cursor installer validation and uninstall changes. These files are
107
+ outside the bundled Pi runtime. OMP-only session events are intentionally
108
+ omitted as described above. No upstream hooks, installers or tests ran.
109
+
110
+ Focused tests cover command completions, session restoration, aliases, prompt
111
+ sections/forced prompts, ownership, deactivation and offline vendor hashes.
112
+
66
113
  ## 5.0.0 refresh (2026-10-07)
67
114
 
68
115
  Tarball shasum `8b8b0b0e5df174565777fe7daffe64ca3ae62a2d` and integrity match
@@ -101,8 +148,8 @@ Runtime behavior: on by default at `full`; adds the filtered SKILL.md body
101
148
  (rendered `<ponytail>...</ponytail>`) in `before_agent_start` when no earlier
102
149
  handler forced the prompt, otherwise appends it to the prompt string. Restores
103
150
  the mode from `ponytail-mode` session entries on `session_start` and
104
- `session_tree`; writes only `<agent dir>/ponytail/config.json`, and only on
105
- `/ponytail default <mode>`. No network, no child processes.
151
+ `session_tree`; writes only `<agent dir>/ponytail/config.json` (or its resolved
152
+ target), and only on `/ponytail default <mode>`. No network, no child processes.
106
153
 
107
154
  ## Bump procedure
108
155