@iowarp/clio-coder 0.5.0 → 0.5.2

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 (312) hide show
  1. package/.claude-plugin/marketplace.json +4 -4
  2. package/CHANGELOG.md +35 -0
  3. package/CONTRIBUTING.md +9 -0
  4. package/README.md +12 -9
  5. package/ROADMAP.md +30 -5
  6. package/dist/{acp-KS7ARGV6.js → acp-F6PGOFZ4.js} +2 -2
  7. package/dist/{agents-YOGJ2YEJ.js → agents-ZHP4R6EX.js} +22 -21
  8. package/dist/assets/codewiki.json +1 -1
  9. package/dist/{auth-CEDCO6O6.js → auth-N75U2H3Z.js} +4 -4
  10. package/dist/{chunk-D3KWFOUT.js → chunk-23UIXH6Z.js} +3 -3
  11. package/dist/{chunk-ZR5YA6ZF.js → chunk-36XVK5P5.js} +5 -5
  12. package/dist/{chunk-AVSR2HKI.js → chunk-3DZ4LPLS.js} +6 -6
  13. package/dist/{chunk-LYJJ6546.js → chunk-3GSPCWFX.js} +12 -12
  14. package/dist/{chunk-CRHPCPZP.js → chunk-4KC4CHKJ.js} +2 -2
  15. package/dist/{chunk-4VDHLCF5.js → chunk-4WJBWKMI.js} +2 -2
  16. package/dist/{chunk-KBUTSJSR.js → chunk-4XBYHXGK.js} +2 -2
  17. package/dist/{chunk-6W75D37F.js → chunk-53P775GE.js} +6 -3
  18. package/dist/{chunk-XZWSP67B.js → chunk-5APYAXCB.js} +2 -2
  19. package/dist/{chunk-D65E25JG.js → chunk-67HPYNTJ.js} +2 -2
  20. package/dist/{chunk-5JQR5B4D.js → chunk-6KV4KCQZ.js} +4 -4
  21. package/dist/{chunk-V4XJWDHR.js → chunk-6UKFRTXI.js} +2 -1
  22. package/dist/{chunk-NDPF2N2L.js → chunk-7DW7CJW2.js} +2 -2
  23. package/dist/{chunk-5KQEUIWM.js → chunk-7LUEQODV.js} +4 -4
  24. package/dist/{chunk-LNOXCGN2.js → chunk-7UFDIOBT.js} +3 -3
  25. package/dist/{chunk-DXSETN72.js → chunk-7WUGNN43.js} +2 -2
  26. package/dist/{chunk-V35KZDUZ.js → chunk-AA3GRZWS.js} +2 -2
  27. package/dist/{chunk-X4CEFOSG.js → chunk-ADO3OQIC.js} +4 -4
  28. package/dist/{chunk-UX2L5CUD.js → chunk-AI36V3ON.js} +3 -3
  29. package/dist/{chunk-B7GY6QER.js → chunk-B26OUMJW.js} +2 -2
  30. package/dist/{chunk-LAR7DX5E.js → chunk-B5TASTCK.js} +153 -62
  31. package/dist/{chunk-TGWZXJ7L.js → chunk-BEMQK5Q7.js} +92 -84
  32. package/dist/{chunk-RNDCROSG.js → chunk-CNXU7TR2.js} +3 -3
  33. package/dist/{chunk-3JLTRPN7.js → chunk-CVMUXT64.js} +35 -66
  34. package/dist/{chunk-733ZBT5P.js → chunk-E74MJF6G.js} +4 -4
  35. package/dist/{chunk-T2MDZES3.js → chunk-EBMTBE76.js} +3 -3
  36. package/dist/{chunk-OZ76TLGU.js → chunk-EEITU7S6.js} +2 -2
  37. package/dist/{chunk-GRHOXDKB.js → chunk-ELDJWJKM.js} +97 -14
  38. package/dist/{chunk-GCQFN7YI.js → chunk-EMYEQLWO.js} +2 -2
  39. package/dist/{chunk-LTWH2ACR.js → chunk-EQPFEDFV.js} +222 -127
  40. package/dist/{chunk-TDGYTWM6.js → chunk-F4I3H56H.js} +2 -2
  41. package/dist/chunk-F6KCJO3U.js +523 -0
  42. package/dist/{chunk-FGSQHUCK.js → chunk-F6VKWTTY.js} +5 -5
  43. package/dist/{chunk-UJD5MPP6.js → chunk-FLNXQQ5B.js} +2 -2
  44. package/dist/{chunk-EX57VVWW.js → chunk-FOSRJ2VZ.js} +4 -4
  45. package/dist/{chunk-ZARZ4POR.js → chunk-G5ZDQQE3.js} +3 -3
  46. package/dist/{chunk-HQVN7G4F.js → chunk-G62JBPXN.js} +7 -7
  47. package/dist/{chunk-ZJPORZTC.js → chunk-GIAI7A2K.js} +2 -2
  48. package/dist/chunk-GPTR6OTU.js +2551 -0
  49. package/dist/{chunk-EZD2BXGP.js → chunk-GUFQPTQK.js} +2 -2
  50. package/dist/{chunk-OPD7GL6F.js → chunk-H6FQVNZC.js} +8 -7
  51. package/dist/chunk-H7REJ7L5.js +80 -0
  52. package/dist/{chunk-EYTLV3W3.js → chunk-HTWTORF7.js} +2 -2
  53. package/dist/{chunk-DF6PI6GN.js → chunk-I6UKQPGS.js} +3 -3
  54. package/dist/{chunk-ISHUS7HC.js → chunk-JRW236JT.js} +3 -3
  55. package/dist/{chunk-DE2LU267.js → chunk-KKAJGT3B.js} +3 -2
  56. package/dist/{chunk-OV62D6KO.js → chunk-KQMYL5GR.js} +3 -3
  57. package/dist/{chunk-QDUUOZ3S.js → chunk-KWMFC7FN.js} +3 -3
  58. package/dist/{chunk-R7FGRZNF.js → chunk-LXYHCCIZ.js} +9 -9
  59. package/dist/{chunk-NFSK2VNU.js → chunk-LZMTVVN4.js} +2 -2
  60. package/dist/{chunk-62UK7AGW.js → chunk-M5PMRZSR.js} +397 -44
  61. package/dist/chunk-MMZMM6SW.js +131 -0
  62. package/dist/{chunk-FFYTC2KQ.js → chunk-MNABNEBX.js} +2 -2
  63. package/dist/{chunk-XMDBTYCH.js → chunk-N3CWOGVF.js} +3 -3
  64. package/dist/{chunk-VYRQHORQ.js → chunk-NMQSO6Z6.js} +4 -3
  65. package/dist/{chunk-R2UUNSNQ.js → chunk-O3ZAF7UY.js} +18 -5
  66. package/dist/{chunk-4SYHGVDE.js → chunk-OQNCLZI4.js} +4 -4
  67. package/dist/{chunk-EG4ARXPC.js → chunk-OX6QTA4N.js} +3 -3
  68. package/dist/{chunk-P4GNZPXO.js → chunk-OYUS3UZP.js} +2 -2
  69. package/dist/{chunk-OQ2EOAHA.js → chunk-PF36KOGI.js} +291 -112
  70. package/dist/{chunk-55RMDDFM.js → chunk-PGQG7ZMW.js} +2 -2
  71. package/dist/{chunk-CBAQPTDU.js → chunk-PIU6BXXW.js} +2 -2
  72. package/dist/{chunk-EKV4UBCM.js → chunk-PZBQUJ2F.js} +2 -2
  73. package/dist/{chunk-7RET77VB.js → chunk-Q2HKY32Y.js} +2 -2
  74. package/dist/{chunk-U6YTUVOX.js → chunk-Q4RMNWMZ.js} +4 -4
  75. package/dist/chunk-Q6FRR3AQ.js +48 -0
  76. package/dist/{chunk-6RJMYYIE.js → chunk-QJSIAJBY.js} +3 -3
  77. package/dist/{chunk-DOUISWEE.js → chunk-QOJ4ERMU.js} +5 -5
  78. package/dist/{chunk-IFPDAD7R.js → chunk-RWSRKXLT.js} +3 -3
  79. package/dist/{chunk-T33IYTZM.js → chunk-SAASVMIY.js} +3 -3
  80. package/dist/{chunk-2DTIWSAW.js → chunk-SEQDH6JC.js} +3 -3
  81. package/dist/{chunk-BRCOSE7O.js → chunk-SZUO5BSE.js} +2 -2
  82. package/dist/{chunk-HOEDA42N.js → chunk-T7HZ7KJF.js} +2 -2
  83. package/dist/{chunk-OJXOA6YU.js → chunk-TL6LNERH.js} +2 -2
  84. package/dist/{chunk-UCINIRHW.js → chunk-TPCZXWLT.js} +3 -3
  85. package/dist/{chunk-ZUKUCZYZ.js → chunk-TQ2KTH4A.js} +2 -2
  86. package/dist/{chunk-4WOOTKFD.js → chunk-U3FETNQB.js} +341 -20
  87. package/dist/{chunk-5B3RTYAK.js → chunk-UGDSB4AN.js} +2 -2
  88. package/dist/{chunk-VKHLUZNO.js → chunk-UZ7YBL43.js} +3 -3
  89. package/dist/{chunk-QNUQ7K7D.js → chunk-VKMSEO7Y.js} +4 -4
  90. package/dist/{chunk-IN7DGBVS.js → chunk-VLX5VZ35.js} +5 -5
  91. package/dist/{chunk-SJGS3GDI.js → chunk-WAGBMMNX.js} +5 -5
  92. package/dist/{chunk-BFOSV5EZ.js → chunk-WX2YCH7F.js} +2 -2
  93. package/dist/{chunk-3LT34CAM.js → chunk-XBIGUILU.js} +32 -17
  94. package/dist/{chunk-XDHUDE5K.js → chunk-XKYBFRWR.js} +5 -5
  95. package/dist/{chunk-U5QU5ZOD.js → chunk-XYPWFSU5.js} +3 -3
  96. package/dist/{chunk-YBUECLAF.js → chunk-YEJQDODA.js} +2 -2
  97. package/dist/{chunk-YQ6XEFVK.js → chunk-Z74OGONW.js} +39 -7
  98. package/dist/{chunk-I4ELN5BX.js → chunk-ZTNOEJRI.js} +2 -2
  99. package/dist/cli/index.js +26 -26
  100. package/dist/{clio-K2PBVCEM.js → clio-4IKFE25F.js} +2 -2
  101. package/dist/{clio-context-tools-GR4OHFSO.js → clio-context-tools-OHJXYX4R.js} +25 -23
  102. package/dist/{code-nav-4X3OI6DK.js → code-nav-XPM3MY5I.js} +7 -7
  103. package/dist/{config-Q5J7UBAB.js → config-343YS25T.js} +43 -41
  104. package/dist/{config-graph-P3555574.js → config-graph-WI263KDX.js} +43 -41
  105. package/dist/{configure-KIJ32ZO6.js → configure-GZDG4HER.js} +21 -21
  106. package/dist/{context-LFBQOSXT.js → context-4OFO7N7Y.js} +12 -12
  107. package/dist/{context-WBH3KSVR.js → context-JLK2RLOG.js} +42 -40
  108. package/dist/{context-NNLBES2Y.js → context-O6DIWCF6.js} +23 -21
  109. package/dist/{context-clear-YOHMQ6SQ.js → context-clear-MR7KOGQI.js} +42 -40
  110. package/dist/{context-working-set-MRAEVDNV.js → context-working-set-YZAD3KWO.js} +14 -13
  111. package/dist/{data-tool-JJPBGMQJ.js → data-tool-EKD7DFHG.js} +7 -7
  112. package/dist/{detail-RHJOTGN4.js → detail-YZPHFEVJ.js} +43 -41
  113. package/dist/{dispatch-runner-NC7PYNIO.js → dispatch-runner-VKVXVTWJ.js} +44 -42
  114. package/dist/{doctor-S5KZ2GTN.js → doctor-53AVQXAO.js} +17 -16
  115. package/dist/{doctor-deep-2EJQSHIZ.js → doctor-deep-BLRB2NCG.js} +5 -5
  116. package/dist/{eval-3D6M36N7.js → eval-P3BQSLQE.js} +21 -20
  117. package/dist/{evidence-XNVPPLVK.js → evidence-6LLI6SZH.js} +44 -42
  118. package/dist/{evidence-6IYN52ET.js → evidence-HTN3JLUO.js} +42 -40
  119. package/dist/{evidence-JVECPI3F.js → evidence-NJRE3R5H.js} +42 -40
  120. package/dist/{evolve-TLPUDJDM.js → evolve-WWZHJVJP.js} +42 -40
  121. package/dist/{fleet-WKVBF5SZ.js → fleet-GGZ4BVJE.js} +64 -62
  122. package/dist/{fleet-6RJWIOEO.js → fleet-QG3IIWWM.js} +44 -42
  123. package/dist/{fleet-commands-L6WFT7KZ.js → fleet-commands-J2ZIKISQ.js} +7 -7
  124. package/dist/{fleet-decisions-BTQMWU5A.js → fleet-decisions-Y2Q7375Q.js} +8 -8
  125. package/dist/{fleet-graph-553DZ67Q.js → fleet-graph-TCBCCCBP.js} +11 -11
  126. package/dist/{fleet-inspect-236FZPRB.js → fleet-inspect-KOLKBC56.js} +44 -42
  127. package/dist/{fleet-preflight-NZQHABWO.js → fleet-preflight-44UNCC4Y.js} +27 -25
  128. package/dist/{fleet-validate-7NLAE26R.js → fleet-validate-K2FXRZVA.js} +13 -13
  129. package/dist/{fleet-verify-E3RO6A5W.js → fleet-verify-AS444WDW.js} +42 -40
  130. package/dist/{fleet-view-KMZQY7YJ.js → fleet-view-X4JU4J6O.js} +43 -41
  131. package/dist/gui/ops-worker.js +9 -9
  132. package/dist/gui/reads-worker.js +9 -8
  133. package/dist/{init-DV5B6HQG.js → init-VSOWFHVL.js} +54 -52
  134. package/dist/{interactive-OXGYZYAS.js → interactive-JRCBENLZ.js} +1733 -577
  135. package/dist/{interop-J7UOBOSF.js → interop-JR6BCY7R.js} +10 -10
  136. package/dist/{inventory-OEGIL6PY.js → inventory-3JUGLVJI.js} +43 -41
  137. package/dist/{library-ROZAMUIL.js → library-7BOH3Y7N.js} +15 -15
  138. package/dist/{library-B3UPGY4V.js → library-7PFONXUI.js} +9 -9
  139. package/dist/{library-MXQA5DLT.js → library-TUYZMFIA.js} +7 -7
  140. package/dist/{library-import-2LTWOVBD.js → library-import-TJVXKLDK.js} +10 -10
  141. package/dist/{library-inventory-LJ3XHLWO.js → library-inventory-MD3AYTP4.js} +9 -9
  142. package/dist/{library-validation-DARHHUNW.js → library-validation-ZDLITEA3.js} +7 -7
  143. package/dist/{mcp-2GSPYQ54.js → mcp-EFCWUPUR.js} +3 -3
  144. package/dist/{memory-J3STUUIK.js → memory-Q2YVOKK5.js} +42 -40
  145. package/dist/{models-Y3GMFJ2V.js → models-M7BOCW7F.js} +17 -16
  146. package/dist/{monitor-LHNH577J.js → monitor-2HD3MC67.js} +47 -45
  147. package/dist/{orchestrator-DTAPXULA.js → orchestrator-OUW3ZN6Y.js} +1894 -226
  148. package/dist/{panes-A743ONZ5.js → panes-TTPPSYCL.js} +3 -3
  149. package/dist/{preload-OJBMAIXF.js → preload-A47C2NUF.js} +42 -40
  150. package/dist/{providers-CMETPZNS.js → providers-T43W7EL4.js} +4 -4
  151. package/dist/{resources-FY6XYFN2.js → resources-TP6X2V6W.js} +20 -11
  152. package/dist/{run-H64MEVTA.js → run-LDSBPMCS.js} +61 -59
  153. package/dist/{share-CAFMMQLM.js → share-URHKKMHR.js} +9 -9
  154. package/dist/{skills-ERKQUC7L.js → skills-E477MOOO.js} +13 -11
  155. package/dist/{skills-eval-CQ23MYQK.js → skills-eval-AIBR2L7H.js} +583 -93
  156. package/dist/{skills-inventory-TVUYJDVN.js → skills-inventory-HLMKY3R5.js} +13 -11
  157. package/dist/{slash-commands-ROG3KIFJ.js → slash-commands-LIIZKA5Y.js} +28 -26
  158. package/dist/{startup-background-KDWCQMWT.js → startup-background-JR2KDK6R.js} +43 -41
  159. package/dist/{steer-KKYXJSH4.js → steer-D7RTAPCM.js} +3 -3
  160. package/dist/{system-ZDW44ZGX.js → system-X2P5N4IY.js} +14 -13
  161. package/dist/{targets-AJWA6E7Z.js → targets-VFFAKUFM.js} +25 -24
  162. package/dist/{tasks-6L2JJRC5.js → tasks-ERAWZA22.js} +6 -6
  163. package/dist/{terminal-lease-YFUSDPAD.js → terminal-lease-V2N2BIKQ.js} +2 -2
  164. package/dist/{trace-LA5MVR4Y.js → trace-MA5BT7XY.js} +3 -3
  165. package/dist/{usage-XSILDHKF.js → usage-WYFY2L6M.js} +50 -48
  166. package/dist/{verifiers-ECA5GIHL.js → verifiers-TYIW2XKF.js} +7 -7
  167. package/dist/{verify-R6QQCCEB.js → verify-242UFYTP.js} +6 -6
  168. package/dist/{web-fetch-PVZNMBOB.js → web-fetch-LRAGYU6Y.js} +3 -3
  169. package/dist/{wiki-generate-RP22WP5K.js → wiki-generate-OFKOX2T6.js} +53 -51
  170. package/dist/worker/entry.js +31 -29
  171. package/docs/architecture/architecture.md +1 -0
  172. package/docs/architecture/context-engine.md +4 -2
  173. package/docs/architecture/observability.md +6 -4
  174. package/docs/architecture/prompt-envelope-and-tools.md +1 -1
  175. package/docs/architecture/session-lifecycle.md +1 -1
  176. package/docs/architecture/tui-design.md +12 -9
  177. package/docs/gui/parity/02-slash-and-surfaces.md +1 -1
  178. package/docs/guide/commands-and-modes.md +91 -5
  179. package/docs/guide/configuration-and-targets.md +2 -2
  180. package/docs/guide/context-continuity.md +49 -0
  181. package/docs/guide/proactive-memory.md +6 -3
  182. package/library/registry.yaml +292 -32
  183. package/library/skills/README.md +27 -2
  184. package/library/skills/context/context-handoff/SKILL.md +10 -4
  185. package/library/skills/meta/clio-coder-dev/SKILL.md +92 -88
  186. package/library/skills/meta/clio-coder-dev/evals.md +51 -46
  187. package/library/skills/meta/clio-coder-dev/plugin.json +2 -2
  188. package/library/skills/meta/clio-coder-dev/references/change-map.md +49 -0
  189. package/library/skills/meta/clio-coder-test/SKILL.md +89 -142
  190. package/library/skills/meta/clio-coder-test/evals.md +58 -62
  191. package/library/skills/meta/clio-coder-test/plugin.json +2 -2
  192. package/library/skills/meta/clio-coder-test/references/harness.md +3 -3
  193. package/library/skills/meta/clio-coder-test/references/lifecycle-validation.md +30 -0
  194. package/library/skills/meta/clio-coder-test/references/test-map.md +60 -89
  195. package/library/skills/registry.yaml +5 -5
  196. package/library/skills/skill-marketplace.json +12 -14
  197. package/package.json +1 -1
  198. package/src/cli/skills-eval.ts +1064 -54
  199. package/src/cli/usage.ts +2 -2
  200. package/src/core/clio-repo.ts +3 -0
  201. package/src/core/tool-names.ts +1 -0
  202. package/src/domains/context/budget/inspection.ts +9 -0
  203. package/src/domains/context/budget/live-view.ts +418 -0
  204. package/src/domains/context/budget/pressure.ts +393 -0
  205. package/src/domains/context/budget/request-fit.ts +15 -0
  206. package/src/domains/evidence/build.ts +24 -0
  207. package/src/domains/gateway/mcp/client.ts +1 -1
  208. package/src/domains/memory/commit-state.ts +160 -0
  209. package/src/domains/memory/operations.ts +18 -10
  210. package/src/domains/memory/prompt-cache.ts +95 -0
  211. package/src/domains/memory/prompt-section.ts +50 -7
  212. package/src/domains/memory/relevance.ts +93 -0
  213. package/src/domains/memory/restoration.ts +78 -0
  214. package/src/domains/memory/store.ts +39 -1
  215. package/src/domains/middleware/memory-intervention.ts +116 -24
  216. package/src/domains/observability/background-memory-usage.ts +1 -1
  217. package/src/domains/observability/cost.ts +3 -3
  218. package/src/domains/observability/extension.ts +1 -1
  219. package/src/domains/observability/metrics.ts +1 -1
  220. package/src/domains/prompts/compiler.ts +1 -1
  221. package/src/domains/prompts/extension.ts +38 -1
  222. package/src/domains/quota/anthropic-max-provider.ts +134 -0
  223. package/src/domains/quota/anthropic-usage.ts +220 -0
  224. package/src/domains/quota/antigravity-provider.ts +339 -0
  225. package/src/domains/quota/cache.ts +87 -0
  226. package/src/domains/quota/claude-code-provider.ts +169 -0
  227. package/src/domains/quota/codex-provider.ts +237 -0
  228. package/src/domains/quota/presentation.ts +240 -0
  229. package/src/domains/quota/registry.ts +23 -0
  230. package/src/domains/quota/service.ts +93 -0
  231. package/src/domains/quota/summary-feed.ts +86 -0
  232. package/src/domains/quota/types.ts +84 -0
  233. package/src/domains/resources/index.ts +11 -0
  234. package/src/domains/resources/skills/catalog-view.ts +571 -0
  235. package/src/domains/resources/skills/lexical-match.ts +136 -0
  236. package/src/domains/resources/skills/loader.ts +38 -0
  237. package/src/domains/resources/skills/promotion.ts +1 -55
  238. package/src/domains/resources/skills/provenance-pin.ts +50 -20
  239. package/src/domains/safety/action-classifier.ts +1 -0
  240. package/src/domains/session/compaction/branch-summary.ts +4 -1
  241. package/src/domains/session/compaction/compact.ts +18 -2
  242. package/src/domains/session/compaction/cut-point.ts +20 -1
  243. package/src/domains/session/compaction/tokens.ts +48 -3
  244. package/src/domains/session/context-accounting.ts +8 -1
  245. package/src/domains/session/continuity/carry.ts +59 -0
  246. package/src/domains/session/continuity/contract.ts +592 -0
  247. package/src/domains/session/continuity/evidence.ts +290 -0
  248. package/src/domains/session/continuity/fold.ts +1075 -0
  249. package/src/domains/session/continuity/note.ts +79 -0
  250. package/src/domains/session/continuity/operator-request.ts +104 -0
  251. package/src/domains/session/continuity/persistence.ts +408 -0
  252. package/src/domains/session/continuity/ports.ts +231 -0
  253. package/src/domains/session/continuity/projection.ts +538 -0
  254. package/src/domains/session/continuity/validate.ts +352 -0
  255. package/src/domains/session/entries.ts +50 -3
  256. package/src/domains/session/index.ts +48 -0
  257. package/src/domains/session/migrations/index.ts +7 -3
  258. package/src/domains/session/tree/fork.ts +15 -1
  259. package/src/domains/session/usage.ts +2 -2
  260. package/src/engine/acp/commands.ts +1 -1
  261. package/src/engine/agent.ts +133 -9
  262. package/src/engine/session.ts +13 -6
  263. package/src/entry/orchestrator.ts +116 -33
  264. package/src/interactive/chat-loop-messages.ts +2 -2
  265. package/src/interactive/chat-loop.ts +219 -63
  266. package/src/interactive/chat-renderer.ts +99 -8
  267. package/src/interactive/context-overlay.ts +24 -3
  268. package/src/interactive/continuity-controller.ts +526 -0
  269. package/src/interactive/dispatch-board.ts +21 -3
  270. package/src/interactive/footer/dashboard.ts +25 -1
  271. package/src/interactive/footer/key-hints.ts +2 -2
  272. package/src/interactive/footer/pages.ts +70 -27
  273. package/src/interactive/footer/widgets.ts +32 -7
  274. package/src/interactive/footer-panel.ts +1 -1
  275. package/src/interactive/interactive-application.ts +7 -2
  276. package/src/interactive/interactive-input-runtime.ts +2 -2
  277. package/src/interactive/interactive-presentation.ts +15 -0
  278. package/src/interactive/interactive-slash-runtime.ts +45 -8
  279. package/src/interactive/interactive-tickers.ts +7 -1
  280. package/src/interactive/model-session-replay.ts +130 -3
  281. package/src/interactive/output-reserve.ts +35 -0
  282. package/src/interactive/overlay-general-openers.ts +12 -8
  283. package/src/interactive/overlay-key-routing.ts +6 -9
  284. package/src/interactive/overlay-lifecycle.ts +10 -6
  285. package/src/interactive/overlay-session-lifecycle.ts +21 -14
  286. package/src/interactive/quota-view.ts +229 -0
  287. package/src/interactive/session-last-turn.ts +1 -1
  288. package/src/interactive/session-transcript.ts +2 -1
  289. package/src/interactive/session-usage-reseed.ts +2 -2
  290. package/src/interactive/side-question.ts +2 -2
  291. package/src/interactive/slash-commands.ts +28 -9
  292. package/src/interactive/turn-context.ts +686 -63
  293. package/src/interactive/turn-middleware.ts +39 -6
  294. package/src/interactive/turn-persistence.ts +15 -2
  295. package/src/interactive/turn-prewarm.ts +1 -1
  296. package/src/interactive/turn-runtime.ts +48 -5
  297. package/src/interactive/{cost-overlay.ts → usage-overlay.ts} +121 -33
  298. package/src/interactive/welcome-dashboard.ts +26 -3
  299. package/src/tools/agent-tools.ts +3 -1
  300. package/src/tools/bootstrap.ts +6 -0
  301. package/src/tools/builtin-tool-catalog.ts +9 -0
  302. package/src/tools/context/index.ts +148 -113
  303. package/src/tools/context/surface.ts +11 -7
  304. package/src/tools/core-bootstrap.ts +4 -0
  305. package/src/tools/observation.ts +8 -2
  306. package/src/tools/policy.ts +3 -0
  307. package/src/tools/self-compact.ts +31 -0
  308. package/src/tools/surface.ts +1 -0
  309. package/src/tools/tasks.ts +1 -1
  310. package/dist/chunk-CTFPFW3H.js +0 -44
  311. package/dist/chunk-EOJPDNUP.js +0 -1325
  312. package/dist/chunk-I4Y4WKZR.js +0 -386
@@ -57,16 +57,16 @@
57
57
  {
58
58
  "name": "clio-coder-dev",
59
59
  "source": "./library/skills/meta/clio-coder-dev",
60
- "description": "Governs changes to Clio Coder's own source and harness (TUI, skills, agents, tools, prompts, domains): what may change freely, what needs explicit user intent, and how to change it without breaking the architecture. Not for verifying a change against the harness; use clio-coder-test.",
61
- "version": "0.4.0",
60
+ "description": "Develop Clio Coder inside its own repository: trace source contracts, implement bounded changes, coordinate sprint work, and preserve running-agent and session correctness. Use before changing Clio source, prompts, tools, or library; pair with clio-coder-test for validation.",
61
+ "version": "0.5.0",
62
62
  "category": "meta",
63
63
  "license": "Apache-2.0"
64
64
  },
65
65
  {
66
66
  "name": "clio-coder-test",
67
67
  "source": "./library/skills/meta/clio-coder-test",
68
- "description": "Verifies a Clio Coder source change against the current contract, smoke, boundary, and application test lanes, including temporary-state and local-provider harnesses. Not for deciding what may change; use clio-coder-dev.",
69
- "version": "0.3.1",
68
+ "description": "Validate Clio Coder changes using focused source regressions, built CLI and ACP fixtures, skill/library checks, and isolated package or GUI gates. Use when developing or diagnosing Clio itself; select checks from the changed behavior and report evidence without claiming unrun coverage.",
69
+ "version": "0.4.0",
70
70
  "category": "meta",
71
71
  "license": "Apache-2.0"
72
72
  },
package/CHANGELOG.md CHANGED
@@ -2,6 +2,41 @@
2
2
 
3
3
  All notable changes to Clio Coder are documented in this file. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and versions follow Semantic Versioning; pre-1.0 minor releases may include incompatible changes.
4
4
 
5
+ ## 0.5.2 - 2026-09-21
6
+
7
+ ### Context continuity and memory
8
+
9
+ - Add native `self_compact({note_to_self})` with exact assistant-authored notes, whole-batch exclusivity, durable preparation and reduction attempts, summary/eviction checkpoints, continuation delivery, and acknowledgement tied to the persisted successful response. Bound each handoff to two attempts and four summary invocations, and preserve the original operator turn across continuation.
10
+ - Add `/context recover <handoffId> <reduce|deliver>` for explicit recovery, with branch-bound operator authority, preserved transaction identity, bounded deadlines, and no automatic redelivery after an uncertain interruption. Session format v5 retains continuity records through replay, forks, export, and later summaries; inherited notes remain recall only.
11
+ - Enforce input plus reserved output at submission, settled tool continuation, and the final provider boundary. Price pending message framing and images, serialize reductions, retain calibrated accounting through eviction, and inspect the live budget through `context(scope="budget")` and `/context`.
12
+ - Freeze approved durable-memory selection for a prepared turn and its continuations, using bounded content hashes that detect same-size rewrites. Retain existing default record/token limits and keep lexical relevance ranking experimental.
13
+ - Restore private task memory only after successful durable reductions and admitted installation. Revoke pre-commit content jobs and queued reminders while retaining originating usage, deduplicate successful commit notifications, and close repeated-failure episodes on exact successful tool receipts.
14
+
15
+ ### Skills and harness correctness
16
+
17
+ - Add bounded query/paging for skill discovery with a preserved response footer and visible installed-skill drift. Record exact skill artifacts in evaluation sidecars and independently judge the baseline for non-gating helped/regressed/mixed/no-change/unmeasured attribution.
18
+ - Correct handoff guidance about persisted summaries, repair the first-turn system-prompt fixture, remove checkout-name dependence from the quota footer test, and stabilize retained-memory measurement across stream finalization without relaxing its memory ceiling.
19
+
20
+ ### Library
21
+
22
+ - Add `wtfp@0.7.3` as a pinned remote catalog package without vendoring its files. Regenerate remote pins from fetched manifests and full-tree digests, preserve the previous pin with a warning when refresh fails, and keep remote packages out of the local Claude Code marketplace projection. Reject fetched package identity changes and report unverified retained pins separately.
23
+
24
+ ### Self-development skills
25
+
26
+ - Redesign `clio-coder-dev` and `clio-coder-test` around source ownership, bounded sprint work, lifecycle correctness, isolated candidate builds, focused validation, and honest evidence. Update their reference maps, behavioral scenarios, and package metadata.
27
+ - Discover these two source skills inside Clio's own checkout and give task-aware loading guidance through the existing skill interface. Preserve autonomy and worker bindings, no-skills mode, package ownership, hidden skills, and repository containment; keep skill bodies out of the base prompt until loaded.
28
+
29
+ ## 0.5.1 - 2026-09-21
30
+
31
+ ### subscription quota and unified usage
32
+
33
+ - Read what each connected subscription account has left, before a refusal rather than after it. Adapters for Claude Code, `anthropic-max`, the Codex CLI, and Antigravity read stored credentials and normalize every reported window into one model of consumed percentage, so a provider's own percentages and another's remaining fractions are never interpreted interchangeably. Readings are cached for about five minutes and refreshed lazily when a surface that shows them renders, never on a background timer; a failed refresh keeps the last good reading and marks it stale instead of blanking the account. Reads are read-only: no token refresh, no credential write, no sign-in flow. An expired credential is reported with the provider's own guidance. A provider's own severity word outranks Clio's fallback thresholds, a provider that reports no 5h window gets no 5h row, and two credentials on one Anthropic subscription fold into a single account so the apparent budget is not doubled. Accounts that merely show equal percentages never merge.
34
+ - Replace `/cost` with `/usage`, with no alias period. The overlay keeps the session token and cost accounting `/cost` carried and adds four views over it: Accounts (subscription and credit meters, every reported model group, reset countdowns with local reset times and an explicit time zone, and stale or expired readings), Session (the existing token, cost, cache, reasoning, and background-call breakdown), Models (each model's share of recorded processed tokens beside its detailed breakdown), and Workers (recorded tokens, cost, and context per run beside the shared account limit). Keys 1–4, Tab/Shift+Tab, and the arrows change views; the arrows, PgUp/PgDn, and Home/End scroll, and each view keeps its own position. `clio-coder usage report` is unchanged and remains the cross-session command.
35
+ - Show the same cached readings on the welcome launchpad, the expanded dashboard, worker cards, and fleet islands. The launchpad's `Subscriptions` row sits in the field list beside the wordmark and wraps, so no connected account and not the free local-inference row is clipped. Status puts the session total above the account meters and no longer claims that providers report no quota; Activity shows shared account headroom on worker cards; Context states that request occupancy and account-wide limits are different quantities.
36
+ - Give every percentage a direction in its own label. Detailed meters fill by consumed capacity, label that number `used`, and print the complement as `remaining`; compact badges carry the other direction and say `left`. A weekly window at 9% used and a footer badge reading `weekly 91% left` are the same reading.
37
+ - Fix the compact footer's two-line contract. Line 1 carries active work and model identity, the selected model's weekly headroom beside it when the account and model group are identifiable, and thinking and context detail as width allows. Line 2 always keeps the working directory and Git branch or dirty state; notices, tips, and urgent prompts borrow the rotating hint area beside them rather than replacing the row. Quota never occupies line 2, and the footer never substitutes an unrelated account's busier window for the selected model's. Rendering stays bounded at narrow widths.
38
+ - Present worker quota as shared account headroom, never as a measured per-worker share. A badge appears only for a supported local credential owner and the matching model group, keeping Antigravity's Gemini group distinct from its Claude and GPT group. Remote workers and unknown credential mappings stay unlinked rather than attributed to an account that may not be theirs, and Clio's own `openai-codex` sign-in is treated as separate storage from the Codex CLI's `auth.json`. Local inference is listed at `$0.00` with no subscription window consumed; no saved-quota figure is claimed, because per-target token attribution does not exist yet.
39
+
5
40
  ## 0.5.0 - 2026-09-20
6
41
 
7
42
  ### public launch and documentation
package/CONTRIBUTING.md CHANGED
@@ -227,6 +227,15 @@ generated peer-host projection; do not edit it by hand. Core recipes under
227
227
 
228
228
  ## Working with coding agents
229
229
 
230
+ In this repository, Clio discovers the local `clio-coder-dev` and
231
+ `clio-coder-test` skills and recommends them for development and validation.
232
+ Load them through the normal skill interface when the task calls for them;
233
+ source discovery does not bypass autonomy, `--no-skills`, installed package
234
+ state, or worker recipe bindings. See the
235
+ [self-development skill behavior](library/skills/README.md#developing-clio-itself).
236
+ When the current checkout's `dist/` backs the running agent, build and test a
237
+ candidate in a separate worktree and restart a separate process to dogfood it.
238
+
230
239
  Read this file, the relevant changelog entry, any local `CLIO-CODER.md`, and the
231
240
  owning subsystem's documentation. Prefer `rg` and focused source reads. Preserve
232
241
  other work in a shared checkout and coordinate file ownership before editing.
package/README.md CHANGED
@@ -39,10 +39,11 @@ engineering. Connect a model on your workstation, your institution's gateway,
39
39
  or a cloud service. Start with one conversation; add workers and specialized
40
40
  workflows when the task calls for them.
41
41
 
42
- **v0.5.0 brings Clio to its public launch:** the terminal is the primary working
43
- interface, and the bundled browser app provides documentation and an early
44
- preview of the wider graphical experience. Clio is pre-1.0 software. Review
45
- changes and validate scientific results with your own reference checks.
42
+ **v0.5.2 adds durable self-compaction, context budgeting, and memory restoration.**
43
+ The terminal is the primary working interface, and the bundled browser app
44
+ provides documentation and an early preview of the wider graphical experience.
45
+ Clio is pre-1.0 software. Review changes and validate scientific results with your
46
+ own reference checks.
46
47
 
47
48
  ## Get started
48
49
 
@@ -101,6 +102,7 @@ For the bootstrap installer, source builds, upgrades, and removal, see
101
102
  | **Keep long tasks moving** | Context accounting, compaction, task memory, durable conversation history, and fork/resume navigation. | [Memory](docs/guide/proactive-memory.md) |
102
103
  | **Add domain knowledge** | Operator-activated skills, prompt templates, plugins, harness extensions, and local MCP tool servers. | [Library](library/README.md) |
103
104
  | **Inspect what happened** | Tool activity, usage, traces, decisions, evidence, and worker receipts. | [Observability](docs/architecture/observability.md) |
105
+ | **Know what you have left** | `/usage` gathers subscription headroom for your connected accounts beside this session's tokens, cost, per-model shares, and worker accounting. | [Quota and usage](docs/guide/commands-and-modes.md#subscription-quota-and-session-usage) |
104
106
 
105
107
  These capabilities work together. A worker result is a lead you can inspect;
106
108
  a successful command is evidence of that command's outcome; neither substitutes
@@ -109,15 +111,16 @@ for scientific validation.
109
111
  ### Work in the terminal
110
112
 
111
113
  The TUI keeps the conversation, tool activity, diffs, and permission decisions
112
- in one place. Its footer shows the active model and context use; dashboards
113
- provide more detail without taking over the conversation.
114
+ in one place. Its footer shows the active model, its remaining weekly
115
+ subscription headroom where a connected account reports one, and context use;
116
+ dashboards provide more detail without taking over the conversation.
114
117
 
115
118
  | Want to… | Use… |
116
119
  | --- | --- |
117
120
  | Find commands and shortcuts | `/help` |
118
121
  | Choose a model or change settings | `/model`, `/settings` |
119
122
  | Attach a project file | Type `@` and choose a path |
120
- | Inspect context, memory, or cost | `/context`, `/memory`, `/cost` |
123
+ | Inspect context, memory, or usage | `/context`, `/memory`, `/usage` |
121
124
  | Browse skills and recipes | `/library` or `Alt+L` |
122
125
  | Inspect workers | `Alt+W` |
123
126
  | Manage the task board | `/tasks` |
@@ -245,12 +248,12 @@ bootstrap installer, upgrades, selective resets, and removal.
245
248
  <details>
246
249
  <summary><strong>Build and install a published release from source</strong></summary>
247
250
 
248
- From source, pin the release you intend to run. The following selects v0.5.0
251
+ From source, pin the release you intend to run. The following selects v0.5.2
249
252
  once its release tag is published; for development before the tag, use the
250
253
  [contributor checkout instructions](CONTRIBUTING.md#set-up-a-checkout).
251
254
 
252
255
  ```bash
253
- git clone --branch v0.5.0 https://github.com/iowarp/clio-coder.git
256
+ git clone --branch v0.5.2 https://github.com/iowarp/clio-coder.git
254
257
  cd clio-coder
255
258
  corepack enable pnpm
256
259
  pnpm run install:local
package/ROADMAP.md CHANGED
@@ -1,16 +1,41 @@
1
1
  # Clio Coder roadmap
2
2
 
3
- Clio Coder is preparing v0.5.0 for its public launch. The terminal is the primary
4
- coding interface; bundled browser documentation and the early graphical app
5
- introduce the next part of the product.
3
+ Clio Coder v0.5.1 is released. The next release focus is context management,
4
+ compaction, and memory: preserving task continuity, making context decisions
5
+ understandable, and reducing the cost of long sessions. The terminal remains
6
+ the primary coding interface.
6
7
 
7
8
  This roadmap describes priorities, not available features or delivery promises.
8
9
  For implemented behavior, use the [documentation](docs/README.md). Historical
9
10
  release changes are in [CHANGELOG.md](CHANGELOG.md); older development plans in
10
11
  git history are not current contracts.
11
12
 
13
+ ## v0.5.2 context and memory priorities
14
+
15
+ Development starts on the local `v052` branch with solution design and
16
+ evaluation planning. The implementation sprint follows maintainer approval of
17
+ the solution shape. These priorities describe intended work, not shipped features.
18
+
19
+ - **Task continuity through compaction.** Let the active agent save a bounded
20
+ handoff with its next action, preserve it verbatim, and recover interrupted
21
+ transitions from the session ledger.
22
+ - **Earlier, shared context awareness.** Give the agent and operator the same
23
+ pressure and budget facts while preserving automatic eviction and overflow
24
+ recovery.
25
+ - **Clear memory lifetimes.** Distinguish the active working set, session
26
+ continuity, and reviewed durable lessons; keep provenance and scope explicit.
27
+ - **Measured speed and usefulness.** Prefer reversible eviction, avoid redundant
28
+ restoration and model calls, and evaluate task completion, context cost,
29
+ cache effects, and recovery latency together.
30
+
31
+ Threshold changes and wider memory automation depend on comparative evaluation.
32
+ The first implementation slice is the shared context snapshot and deterministic
33
+ pressure policy, followed by the recoverable handoff transaction.
34
+
12
35
  ## v0.5.0 launch priorities
13
36
 
37
+ These priorities are retained as the historical scope of the public launch.
38
+
14
39
  - **A dependable terminal workflow.** Responsive startup, clear tool activity,
15
40
  honest progress and timing, useful permissions, and recoverable sessions.
16
41
  - **Models chosen by the operator.** Local inference, institutional gateways,
@@ -25,8 +50,8 @@ git history are not current contracts.
25
50
  - **A reproducible distribution.** Package contents, installed CLI/browser
26
51
  checks, component notices, and qualification of the exact release artifact.
27
52
 
28
- The candidate includes these systems; final publication remains a maintainer
29
- action after the [release checklist](docs/process/release-cut-checklist.md).
53
+ These systems formed the public launch. Future releases still follow the
54
+ [release checklist](docs/process/release-cut-checklist.md).
30
55
  A completed test campaign establishes its recorded coverage, not universal
31
56
  correctness across every model, platform, or scientific workload.
32
57
 
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
2
2
  import {
3
3
  runClioCommand
4
- } from "./chunk-X4CEFOSG.js";
4
+ } from "./chunk-ADO3OQIC.js";
5
5
  import {
6
6
  restoreStdout,
7
7
  takeOverStdout,
@@ -129,4 +129,4 @@ async function runAcpCommand(args, options = {}) {
129
129
  export {
130
130
  runAcpCommand
131
131
  };
132
- //# sourceMappingURL=acp-KS7ARGV6.js.map
132
+ //# sourceMappingURL=acp-F6PGOFZ4.js.map
@@ -1,20 +1,20 @@
1
1
  import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
2
- import "./chunk-4VDHLCF5.js";
2
+ import "./chunk-4WJBWKMI.js";
3
3
  import "./chunk-HOYZUKG7.js";
4
4
  import "./chunk-QHSBROEW.js";
5
5
  import "./chunk-NASYVWDB.js";
6
- import "./chunk-IN7DGBVS.js";
6
+ import "./chunk-VLX5VZ35.js";
7
7
  import {
8
8
  ensureClioState
9
9
  } from "./chunk-NOCSM22Y.js";
10
10
  import "./chunk-KW5HXKLJ.js";
11
11
  import "./chunk-URCXX7WJ.js";
12
12
  import "./chunk-U26XXPJS.js";
13
- import "./chunk-T2MDZES3.js";
13
+ import "./chunk-EBMTBE76.js";
14
14
  import "./chunk-4A6YRGV4.js";
15
15
  import {
16
16
  AgentsDomainModule
17
- } from "./chunk-UCINIRHW.js";
17
+ } from "./chunk-TPCZXWLT.js";
18
18
  import "./chunk-GGPF6LLE.js";
19
19
  import {
20
20
  ConfigDomainModule
@@ -23,7 +23,7 @@ import "./chunk-3UW3KU4A.js";
23
23
  import "./chunk-GN7QBEEI.js";
24
24
  import {
25
25
  SafetyDomainModule
26
- } from "./chunk-XMDBTYCH.js";
26
+ } from "./chunk-N3CWOGVF.js";
27
27
  import "./chunk-TKDRT2DF.js";
28
28
  import "./chunk-LQTKDAUO.js";
29
29
  import "./chunk-ZU4JPCPR.js";
@@ -31,21 +31,21 @@ import {
31
31
  printError
32
32
  } from "./chunk-NBXFPI7U.js";
33
33
  import "./chunk-SQZHXUB3.js";
34
- import "./chunk-ZARZ4POR.js";
35
- import "./chunk-UX2L5CUD.js";
36
- import "./chunk-LAR7DX5E.js";
34
+ import "./chunk-G5ZDQQE3.js";
35
+ import "./chunk-AI36V3ON.js";
36
+ import "./chunk-B5TASTCK.js";
37
37
  import "./chunk-DNCE23JJ.js";
38
38
  import "./chunk-CDQ2UC6W.js";
39
39
  import "./chunk-5LP5FNNR.js";
40
40
  import "./chunk-NVPXXW2H.js";
41
41
  import "./chunk-ZNUZ3EXD.js";
42
- import "./chunk-DOUISWEE.js";
43
- import "./chunk-VKHLUZNO.js";
42
+ import "./chunk-QOJ4ERMU.js";
43
+ import "./chunk-UZ7YBL43.js";
44
44
  import "./chunk-7QXCO3AF.js";
45
- import "./chunk-T33IYTZM.js";
46
- import "./chunk-BRCOSE7O.js";
47
- import "./chunk-DE2LU267.js";
48
- import "./chunk-733ZBT5P.js";
45
+ import "./chunk-SAASVMIY.js";
46
+ import "./chunk-SZUO5BSE.js";
47
+ import "./chunk-KKAJGT3B.js";
48
+ import "./chunk-E74MJF6G.js";
49
49
  import "./chunk-6CTHLZFB.js";
50
50
  import "./chunk-2KUBKL63.js";
51
51
  import "./chunk-MYI32N4R.js";
@@ -55,23 +55,24 @@ import "./chunk-Z4GLJ6J4.js";
55
55
  import "./chunk-VNBICSS2.js";
56
56
  import "./chunk-2WVPJF3Z.js";
57
57
  import "./chunk-ALJWT6O6.js";
58
- import "./chunk-I4Y4WKZR.js";
58
+ import "./chunk-F6KCJO3U.js";
59
59
  import "./chunk-UZVYEF57.js";
60
- import "./chunk-EKV4UBCM.js";
60
+ import "./chunk-MMZMM6SW.js";
61
+ import "./chunk-PZBQUJ2F.js";
61
62
  import "./chunk-UHW5V7HC.js";
62
63
  import {
63
64
  isUserVisibleAgent
64
- } from "./chunk-LNOXCGN2.js";
65
+ } from "./chunk-7UFDIOBT.js";
65
66
  import "./chunk-BJH6WFIB.js";
66
67
  import "./chunk-5EQO5NWP.js";
67
- import "./chunk-VYRQHORQ.js";
68
- import "./chunk-P4GNZPXO.js";
68
+ import "./chunk-NMQSO6Z6.js";
69
+ import "./chunk-OYUS3UZP.js";
69
70
  import "./chunk-R2P2U3ZS.js";
70
71
  import "./chunk-NTTS3O53.js";
71
72
  import "./chunk-C2CPOIH2.js";
72
73
  import "./chunk-MGLRTOCK.js";
73
74
  import "./chunk-M4KFUXS7.js";
74
- import "./chunk-V4XJWDHR.js";
75
+ import "./chunk-6UKFRTXI.js";
75
76
  import "./chunk-56XP4FJU.js";
76
77
  import "./chunk-QZTTRSJE.js";
77
78
  import "./chunk-U2MSJ57E.js";
@@ -160,4 +161,4 @@ function renderLine(spec) {
160
161
  export {
161
162
  runAgentsCommand
162
163
  };
163
- //# sourceMappingURL=agents-YOGJ2YEJ.js.map
164
+ //# sourceMappingURL=agents-ZHP4R6EX.js.map