raga-cli 0.0.0-stage → 0.9.0

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 (487) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/LICENSE +21 -0
  3. package/README.md +162 -2
  4. package/bundled-skills/AGENTS.md +5 -0
  5. package/bundled-skills/README.md +25 -0
  6. package/bundled-skills/agents/comment-sicko.json +9 -0
  7. package/bundled-skills/agents/comment-sicko.md +28 -0
  8. package/bundled-skills/agents/model-roles.json +41 -0
  9. package/bundled-skills/agents/poteto-agent.json +9 -0
  10. package/bundled-skills/agents/poteto-agent.md +4 -0
  11. package/bundled-skills/agents/worker.json +8 -0
  12. package/bundled-skills/agents/worker.md +1 -0
  13. package/bundled-skills/bundle.json +1514 -0
  14. package/bundled-skills/dependencies.json +40 -0
  15. package/bundled-skills/docs/guide/01-setup.md +3 -0
  16. package/bundled-skills/docs/guide/02-peak.md +135 -0
  17. package/bundled-skills/docs/guide/03-understand.md +79 -0
  18. package/bundled-skills/docs/guide/04-design.md +133 -0
  19. package/bundled-skills/docs/guide/05-build-and-clean.md +83 -0
  20. package/bundled-skills/docs/guide/06-verify-and-ship.md +166 -0
  21. package/bundled-skills/docs/guide/07-overnight.md +118 -0
  22. package/bundled-skills/docs/guide/08-principles.md +72 -0
  23. package/bundled-skills/docs/guide/09-make-it-yours.md +96 -0
  24. package/bundled-skills/docs/guide/10-recipes-and-pitfalls.md +180 -0
  25. package/bundled-skills/docs/guide/README.md +38 -0
  26. package/bundled-skills/docs/guide/images/design.jpg +0 -0
  27. package/bundled-skills/docs/guide/images/overnight.jpg +0 -0
  28. package/bundled-skills/docs/guide/images/recipes.jpg +0 -0
  29. package/bundled-skills/docs/guide/images/router.jpg +0 -0
  30. package/bundled-skills/docs/guide/images/understanding.jpg +0 -0
  31. package/bundled-skills/docs/guide/images/verification.jpg +0 -0
  32. package/bundled-skills/licenses/commander +22 -0
  33. package/bundled-skills/licenses/cursor-team-kit +21 -0
  34. package/bundled-skills/licenses/no-mistakes +21 -0
  35. package/bundled-skills/licenses/pstack +21 -0
  36. package/bundled-skills/skills/bend/SKILL.md +58 -0
  37. package/bundled-skills/skills/bend/bend_tool.py +144 -0
  38. package/bundled-skills/skills/peak/SKILL.md +184 -0
  39. package/bundled-skills/skills/peak/playbooks/authoring-a-skill.md +12 -0
  40. package/bundled-skills/skills/peak/playbooks/autonomous-run.md +13 -0
  41. package/bundled-skills/skills/peak/playbooks/autopilot-full.md +25 -0
  42. package/bundled-skills/skills/peak/playbooks/autopilot-stack.md +12 -0
  43. package/bundled-skills/skills/peak/playbooks/babysit.md +18 -0
  44. package/bundled-skills/skills/peak/playbooks/bug-fix.md +15 -0
  45. package/bundled-skills/skills/peak/playbooks/eval.md +25 -0
  46. package/bundled-skills/skills/peak/playbooks/feature.md +21 -0
  47. package/bundled-skills/skills/peak/playbooks/hillclimb.md +21 -0
  48. package/bundled-skills/skills/peak/playbooks/investigation.md +14 -0
  49. package/bundled-skills/skills/peak/playbooks/multi-phase-plan.md +155 -0
  50. package/bundled-skills/skills/peak/playbooks/opening-a-pr.md +34 -0
  51. package/bundled-skills/skills/peak/playbooks/orchestrate.md +112 -0
  52. package/bundled-skills/skills/peak/playbooks/pause-safely.md +10 -0
  53. package/bundled-skills/skills/peak/playbooks/perf-issue.md +25 -0
  54. package/bundled-skills/skills/peak/playbooks/prototype.md +14 -0
  55. package/bundled-skills/skills/peak/playbooks/refactoring.md +16 -0
  56. package/bundled-skills/skills/peak/playbooks/runtime-forensics.md +11 -0
  57. package/bundled-skills/skills/peak/playbooks/session-pickup.md +11 -0
  58. package/bundled-skills/skills/peak/playbooks/shipping.md +12 -0
  59. package/bundled-skills/skills/peak/playbooks/trace-forensics.md +14 -0
  60. package/bundled-skills/skills/peak/playbooks/visual-parity.md +11 -0
  61. package/bundled-skills/skills/peak/playbooks/worktree-cleanup.md +6 -0
  62. package/bundled-skills/skills/peak/references/architect/SKILL.md +81 -0
  63. package/bundled-skills/skills/peak/references/architect/references/design-red-flags.md +57 -0
  64. package/bundled-skills/skills/peak/references/architect/references/rationale-template.md +35 -0
  65. package/bundled-skills/skills/peak/references/architect/references/runner-prompt.md +20 -0
  66. package/bundled-skills/skills/peak/references/arena/SKILL.md +50 -0
  67. package/bundled-skills/skills/peak/references/automate-me/SKILL.md +106 -0
  68. package/bundled-skills/skills/peak/references/benchmark-checklist/SKILL.md +41 -0
  69. package/bundled-skills/skills/peak/references/blast-radius/SKILL.md +52 -0
  70. package/bundled-skills/skills/peak/references/bro/SKILL.md +9 -0
  71. package/bundled-skills/skills/peak/references/control-cli/SKILL.md +111 -0
  72. package/bundled-skills/skills/peak/references/control-ui/SKILL.md +111 -0
  73. package/bundled-skills/skills/peak/references/correct/SKILL.md +34 -0
  74. package/bundled-skills/skills/peak/references/create-formal-verification-skill/SKILL.md +43 -0
  75. package/bundled-skills/skills/peak/references/create-skill/SKILL.md +14 -0
  76. package/bundled-skills/skills/peak/references/create-verification-skill/SKILL.md +46 -0
  77. package/bundled-skills/skills/peak/references/create-verification-skill/references/feature-map-example/README.md +47 -0
  78. package/bundled-skills/skills/peak/references/create-verification-skill/references/feature-map-example/create-note.md +39 -0
  79. package/bundled-skills/skills/peak/references/create-verification-skill/references/feature-map-example/search.md +45 -0
  80. package/bundled-skills/skills/peak/references/deslop/SKILL.md +24 -0
  81. package/bundled-skills/skills/peak/references/figure-it-out/SKILL.md +54 -0
  82. package/bundled-skills/skills/peak/references/how/SKILL.md +38 -0
  83. package/bundled-skills/skills/peak/references/how/references/explainer-prompt.md +55 -0
  84. package/bundled-skills/skills/peak/references/how/references/explorer-prompt.md +35 -0
  85. package/bundled-skills/skills/peak/references/in-your-own-words/SKILL.md +9 -0
  86. package/bundled-skills/skills/peak/references/interrogate/SKILL.md +76 -0
  87. package/bundled-skills/skills/peak/references/interrogate/references/code-quality-review.md +47 -0
  88. package/bundled-skills/skills/peak/references/interrogate/references/lead-judgment.md +39 -0
  89. package/bundled-skills/skills/peak/references/interrogate/references/reviewer-prompt.md +62 -0
  90. package/bundled-skills/skills/peak/references/interrogate/references/rubric.md +77 -0
  91. package/bundled-skills/skills/peak/references/ketchup/SKILL.md +45 -0
  92. package/bundled-skills/skills/peak/references/maintain-formal-verification-skill/SKILL.md +60 -0
  93. package/bundled-skills/skills/peak/references/maintain-verification-skill/SKILL.md +41 -0
  94. package/bundled-skills/skills/peak/references/no-comments/SKILL.md +26 -0
  95. package/bundled-skills/skills/peak/references/no-mistakes/SKILL.md +20 -0
  96. package/bundled-skills/skills/peak/references/no-mistakes/upstream/SKILL.md +394 -0
  97. package/bundled-skills/skills/peak/references/peak-setup/SKILL.md +18 -0
  98. package/bundled-skills/skills/peak/references/poteto-help/SKILL.md +16 -0
  99. package/bundled-skills/skills/peak/references/poteto-help/references/prompting.md +51 -0
  100. package/bundled-skills/skills/peak/references/poteto-help/references/recipes.md +51 -0
  101. package/bundled-skills/skills/peak/references/principle-attack-the-premise/SKILL.md +23 -0
  102. package/bundled-skills/skills/peak/references/principle-boundary-discipline/SKILL.md +36 -0
  103. package/bundled-skills/skills/peak/references/principle-build-the-lever/SKILL.md +25 -0
  104. package/bundled-skills/skills/peak/references/principle-encode-lessons-in-structure/SKILL.md +13 -0
  105. package/bundled-skills/skills/peak/references/principle-exhaust-the-design-space/SKILL.md +11 -0
  106. package/bundled-skills/skills/peak/references/principle-experience-first/SKILL.md +21 -0
  107. package/bundled-skills/skills/peak/references/principle-explain-the-number/SKILL.md +19 -0
  108. package/bundled-skills/skills/peak/references/principle-fix-root-causes/SKILL.md +23 -0
  109. package/bundled-skills/skills/peak/references/principle-foundational-thinking/SKILL.md +23 -0
  110. package/bundled-skills/skills/peak/references/principle-guard-the-context-window/SKILL.md +14 -0
  111. package/bundled-skills/skills/peak/references/principle-laziness-protocol/SKILL.md +12 -0
  112. package/bundled-skills/skills/peak/references/principle-make-operations-idempotent/SKILL.md +24 -0
  113. package/bundled-skills/skills/peak/references/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +16 -0
  114. package/bundled-skills/skills/peak/references/principle-minimize-reader-load/SKILL.md +20 -0
  115. package/bundled-skills/skills/peak/references/principle-model-the-domain/SKILL.md +26 -0
  116. package/bundled-skills/skills/peak/references/principle-never-block-on-the-human/SKILL.md +17 -0
  117. package/bundled-skills/skills/peak/references/principle-outcome-oriented-execution/SKILL.md +23 -0
  118. package/bundled-skills/skills/peak/references/principle-prove-it-works/SKILL.md +24 -0
  119. package/bundled-skills/skills/peak/references/principle-redesign-from-first-principles/SKILL.md +18 -0
  120. package/bundled-skills/skills/peak/references/principle-separate-before-serializing-shared-state/SKILL.md +18 -0
  121. package/bundled-skills/skills/peak/references/principle-sequence-verifiable-units/SKILL.md +19 -0
  122. package/bundled-skills/skills/peak/references/principle-subtract-before-you-add/SKILL.md +20 -0
  123. package/bundled-skills/skills/peak/references/principle-test-behavior-not-implementation/SKILL.md +22 -0
  124. package/bundled-skills/skills/peak/references/principle-type-system-discipline/SKILL.md +15 -0
  125. package/bundled-skills/skills/peak/references/raga-runtime/SKILL.md +51 -0
  126. package/bundled-skills/skills/peak/references/raga-runtime/managed-tools.mjs +34 -0
  127. package/bundled-skills/skills/peak/references/raga-runtime/raga_runtime.py +55 -0
  128. package/bundled-skills/skills/peak/references/recall/SKILL.md +37 -0
  129. package/bundled-skills/skills/peak/references/reflect/SKILL.md +63 -0
  130. package/bundled-skills/skills/peak/references/reflect/references/divergent-reviewer.md +38 -0
  131. package/bundled-skills/skills/peak/references/reflect/references/judgment-reviewer.md +37 -0
  132. package/bundled-skills/skills/peak/references/reflect/references/synthesizer.md +56 -0
  133. package/bundled-skills/skills/peak/references/reflect/references/tooling-reviewer.md +48 -0
  134. package/bundled-skills/skills/peak/references/reviewer-triage.md +142 -0
  135. package/bundled-skills/skills/peak/references/sharpen/SKILL.md +18 -0
  136. package/bundled-skills/skills/peak/references/show-me-your-work/SKILL.md +84 -0
  137. package/bundled-skills/skills/peak/references/show-me-your-work/references/decision-log-template.tsv +1 -0
  138. package/bundled-skills/skills/peak/references/show-me-your-work/scripts/log.sh +42 -0
  139. package/bundled-skills/skills/peak/references/statechart/SKILL.md +38 -0
  140. package/bundled-skills/skills/peak/references/statechart/scripts/chart-to-tla.mjs +236 -0
  141. package/bundled-skills/skills/peak/references/statechart/scripts/compare-charts.mjs +104 -0
  142. package/bundled-skills/skills/peak/references/statechart/scripts/lib.mjs +725 -0
  143. package/bundled-skills/skills/peak/references/statechart/scripts/model/OutputFolder.cfg +6 -0
  144. package/bundled-skills/skills/peak/references/statechart/scripts/model/OutputFolder.map.mjs +106 -0
  145. package/bundled-skills/skills/peak/references/statechart/scripts/model/OutputFolder.tla +176 -0
  146. package/bundled-skills/skills/peak/references/statechart/scripts/statechart.mjs +749 -0
  147. package/bundled-skills/skills/peak/references/statechart/scripts/test/statechart.test.mjs +2790 -0
  148. package/bundled-skills/skills/peak/references/statechart/scripts/test/sync.mmd +19 -0
  149. package/bundled-skills/skills/peak/references/statechart/scripts/test/upload.mmd +16 -0
  150. package/bundled-skills/skills/peak/references/statechart/scripts/tlc-to-chart.mjs +1347 -0
  151. package/bundled-skills/skills/peak/references/swarm/SKILL.md +43 -0
  152. package/bundled-skills/skills/peak/references/tdd/SKILL.md +44 -0
  153. package/bundled-skills/skills/peak/references/teach/SKILL.md +23 -0
  154. package/bundled-skills/skills/peak/references/technical-writing/SKILL.md +108 -0
  155. package/bundled-skills/skills/peak/references/typescript-best-practices/SKILL.md +33 -0
  156. package/bundled-skills/skills/peak/references/typescript-best-practices/references/patterns.md +328 -0
  157. package/bundled-skills/skills/peak/references/unslop/SKILL.md +64 -0
  158. package/bundled-skills/skills/peak/references/verify-this/SKILL.md +76 -0
  159. package/bundled-skills/skills/peak/references/why/SKILL.md +100 -0
  160. package/bundled-skills/skills/peak/references/why/references/epistemics.md +71 -0
  161. package/bundled-skills/skills/peak/references/why/references/investigator-prompt.md +84 -0
  162. package/bundled-skills/skills/peak/references/why/references/source-playbook.md +17 -0
  163. package/bundled-skills/skills/peak/references/why/references/sources/code-archaeology.md +51 -0
  164. package/bundled-skills/skills/peak/references/why/references/sources/databricks.md +70 -0
  165. package/bundled-skills/skills/peak/references/why/references/sources/datadog.md +97 -0
  166. package/bundled-skills/skills/peak/references/why/references/sources/incident-postmortem.md +5 -0
  167. package/bundled-skills/skills/peak/references/why/references/sources/linear.md +48 -0
  168. package/bundled-skills/skills/peak/references/why/references/sources/notion.md +55 -0
  169. package/bundled-skills/skills/peak/references/why/references/sources/sentry.md +66 -0
  170. package/bundled-skills/skills/peak/references/why/references/sources/slack.md +17 -0
  171. package/bundled-skills/skills/peak/references/why/references/synthesizer-prompt.md +129 -0
  172. package/bundled-skills/skills/peak/scripts/check-plan.mjs +205 -0
  173. package/bundled-skills/skills/peak/scripts/check-plan.test.ts +96 -0
  174. package/bundled-skills/skills/peak/scripts/orch/orch.test.ts +761 -0
  175. package/bundled-skills/skills/peak/scripts/orch/orch.ts +588 -0
  176. package/bundled-skills/skills/peak/scripts/orch/store.ts +1676 -0
  177. package/bundled-skills/skills/peak/scripts/vendor/commander/LICENSE +22 -0
  178. package/bundled-skills/skills/peak/scripts/vendor/commander/esm.mjs +16 -0
  179. package/bundled-skills/skills/peak/scripts/vendor/commander/index.js +24 -0
  180. package/bundled-skills/skills/peak/scripts/vendor/commander/lib/argument.js +149 -0
  181. package/bundled-skills/skills/peak/scripts/vendor/commander/lib/command.js +2778 -0
  182. package/bundled-skills/skills/peak/scripts/vendor/commander/lib/error.js +39 -0
  183. package/bundled-skills/skills/peak/scripts/vendor/commander/lib/help.js +747 -0
  184. package/bundled-skills/skills/peak/scripts/vendor/commander/lib/option.js +379 -0
  185. package/bundled-skills/skills/peak/scripts/vendor/commander/lib/suggestSimilar.js +101 -0
  186. package/bundled-skills/skills/peak/scripts/vendor/commander/package.json +1 -0
  187. package/bundled-skills/skills/peak/scripts/vendor/commander/typings/esm.d.mts +3 -0
  188. package/bundled-skills/skills/peak/scripts/vendor/commander/typings/index.d.ts +1113 -0
  189. package/bundled-skills/skills/peak/scripts/watch-pr/cli.test.ts +224 -0
  190. package/bundled-skills/skills/peak/scripts/watch-pr/cli.ts +223 -0
  191. package/bundled-skills/skills/peak/scripts/watch-pr/fakes.test-helper.ts +129 -0
  192. package/bundled-skills/skills/peak/scripts/watch-pr/github.test.ts +436 -0
  193. package/bundled-skills/skills/peak/scripts/watch-pr/github.ts +718 -0
  194. package/bundled-skills/skills/peak/scripts/watch-pr/policy.test.ts +420 -0
  195. package/bundled-skills/skills/peak/scripts/watch-pr/policy.ts +836 -0
  196. package/bundled-skills/skills/peak/scripts/watch-pr/render.ts +169 -0
  197. package/bundled-skills/skills/peak/scripts/watch-pr/tsconfig.json +13 -0
  198. package/bundled-skills/skills/peak/scripts/watch-pr/types.compile.ts +93 -0
  199. package/bundled-skills/skills/peak/scripts/watch-pr/types.ts +413 -0
  200. package/bundled-skills/skills/peak/scripts/watch-pr/watch-pr +4 -0
  201. package/bundled-skills/skills/peak/scripts/worktree-audit.sh +4 -0
  202. package/bundled-skills/skills/raga-artifacts/SKILL.md +117 -0
  203. package/bundled-skills/skills/raga-artifacts/artifact.mjs +254 -0
  204. package/bundled-skills/skills/raga-artifacts/artifact_tool.py +55 -0
  205. package/bundled-skills/skills/raga-artifacts/diagrams.md +641 -0
  206. package/bundled-skills/skills/raga-artifacts/templates/doc.html +124 -0
  207. package/bundled-skills/skills/raga-artifacts/templates/slides.html +138 -0
  208. package/dist/bundle/chunks/anthropic-messages-BMDYDGHW.js +6 -0
  209. package/dist/bundle/chunks/anthropic.js +68 -0
  210. package/dist/bundle/chunks/azure-openai-responses-Q7EZTEHK.js +2 -0
  211. package/dist/bundle/chunks/bedrock-converse-stream.js +86 -0
  212. package/dist/bundle/chunks/chunk-3MNXTBQ3.js +2 -0
  213. package/dist/bundle/chunks/chunk-3V45WARH.js +7 -0
  214. package/dist/bundle/chunks/chunk-5AGIVGSV.js +6 -0
  215. package/dist/bundle/chunks/chunk-6QGV3IWD.js +6 -0
  216. package/dist/bundle/chunks/chunk-7CBJINYJ.js +20 -0
  217. package/dist/bundle/chunks/chunk-7DDKXS2Q.js +2 -0
  218. package/dist/bundle/chunks/chunk-7ZC4UXSL.js +2 -0
  219. package/dist/bundle/chunks/chunk-CF5GWZHW.js +31 -0
  220. package/dist/bundle/chunks/chunk-ENUUAC3O.js +131 -0
  221. package/dist/bundle/chunks/chunk-F7LFZTHT.js +1591 -0
  222. package/dist/bundle/chunks/chunk-G54UBZTF.js +44 -0
  223. package/dist/bundle/chunks/chunk-H76KZMOI.js +2 -0
  224. package/dist/bundle/chunks/chunk-IXDQLPKS.js +11 -0
  225. package/dist/bundle/chunks/chunk-JLV25LHE.js +2 -0
  226. package/dist/bundle/chunks/chunk-JQDZ4Z7L.js +2 -0
  227. package/dist/bundle/chunks/chunk-JXWJOIH4.js +2 -0
  228. package/dist/bundle/chunks/chunk-KNY3PXQI.js +2 -0
  229. package/dist/bundle/chunks/chunk-L2ZPNLYD.js +2 -0
  230. package/dist/bundle/chunks/chunk-LPXNMA2W.js +2 -0
  231. package/dist/bundle/chunks/chunk-LVVZS2NO.js +12 -0
  232. package/dist/bundle/chunks/chunk-LX24DVQ5.js +2 -0
  233. package/dist/bundle/chunks/chunk-NP6TH6UT.js +64 -0
  234. package/dist/bundle/chunks/chunk-OPPYO2IE.js +2 -0
  235. package/dist/bundle/chunks/chunk-P2QCWBFM.js +9 -0
  236. package/dist/bundle/chunks/chunk-P7FPUEYA.js +2 -0
  237. package/dist/bundle/chunks/chunk-PGXDEOVV.js +2 -0
  238. package/dist/bundle/chunks/chunk-PJACZCIR.js +2 -0
  239. package/dist/bundle/chunks/chunk-PMRZO46Y.js +2 -0
  240. package/dist/bundle/chunks/chunk-PRRNXB7S.js +2 -0
  241. package/dist/bundle/chunks/chunk-Q4U25BSY.js +2 -0
  242. package/dist/bundle/chunks/chunk-RDZVAGPR.js +2 -0
  243. package/dist/bundle/chunks/chunk-RFPFZTK2.js +7 -0
  244. package/dist/bundle/chunks/chunk-RP2WKNT7.js +4 -0
  245. package/dist/bundle/chunks/chunk-S5J3UB5O.js +75 -0
  246. package/dist/bundle/chunks/chunk-TEPMHNKQ.js +2 -0
  247. package/dist/bundle/chunks/chunk-TMTOQ7H7.js +2 -0
  248. package/dist/bundle/chunks/chunk-UKVNB6C4.js +2 -0
  249. package/dist/bundle/chunks/chunk-USJZMAIR.js +2 -0
  250. package/dist/bundle/chunks/chunk-UTB4DTYQ.js +2 -0
  251. package/dist/bundle/chunks/chunk-WJGLPWUE.js +16 -0
  252. package/dist/bundle/chunks/cli-QLDCDYOR.js +51 -0
  253. package/dist/bundle/chunks/cloudflare-workers-ai-system-one-S6CT2FXS.js +2 -0
  254. package/dist/bundle/chunks/codemode-worker.js +478 -0
  255. package/dist/bundle/chunks/easter-egg-3d-NPDBBPPF.js +2 -0
  256. package/dist/bundle/chunks/execute-WPTMS4XG.js +505 -0
  257. package/dist/bundle/chunks/github-copilot.js +2 -0
  258. package/dist/bundle/chunks/google-generative-ai-35NZKG6S.js +2 -0
  259. package/dist/bundle/chunks/google-vertex-P33AHYYX.js +2 -0
  260. package/dist/bundle/chunks/https-proxy-agent-LVOO5TPL.js +13 -0
  261. package/dist/bundle/chunks/image-resize-worker.js +2 -0
  262. package/dist/bundle/chunks/jiti-loader-GL4HJFAD.js +21 -0
  263. package/dist/bundle/chunks/jiti-static-loader-2RCDI6B4.js +2 -0
  264. package/dist/bundle/chunks/kimi-coding.js +2 -0
  265. package/dist/bundle/chunks/lib-4AVRLBHM.js +9 -0
  266. package/dist/bundle/chunks/llama-cpp-classify-U4EH6TAM.js +22 -0
  267. package/dist/bundle/chunks/meta.js +2 -0
  268. package/dist/bundle/chunks/mistral-conversations-J62DPS2P.js +5 -0
  269. package/dist/bundle/chunks/multipart-parser-FMGQ7342.js +3 -0
  270. package/dist/bundle/chunks/node-AUOGOBCN.js +2 -0
  271. package/dist/bundle/chunks/node-KCMANYC2.js +16 -0
  272. package/dist/bundle/chunks/openai-chatgpt.js +68 -0
  273. package/dist/bundle/chunks/openai-codex-responses-4HXATL2M.js +10 -0
  274. package/dist/bundle/chunks/openai-codex.js +68 -0
  275. package/dist/bundle/chunks/openai-completions-75YYY35N.js +7 -0
  276. package/dist/bundle/chunks/openai-decisions-HEBEVGA2.js +5 -0
  277. package/dist/bundle/chunks/openai-responses-UWNAKTBV.js +4 -0
  278. package/dist/bundle/chunks/openrouter-images-HVOPXKHS.js +2 -0
  279. package/dist/bundle/chunks/openrouter.js +68 -0
  280. package/dist/bundle/chunks/pi-messages-DG7CALOV.js +8 -0
  281. package/dist/bundle/chunks/radius.js +68 -0
  282. package/dist/bundle/chunks/runtime-N5MUH2WA.js +2 -0
  283. package/dist/bundle/chunks/src-QKGKDFSU.js +4 -0
  284. package/dist/bundle/chunks/typesafe-system-one-24HEGHNN.js +2 -0
  285. package/dist/bundle/chunks/virtual-modules-4I6Y6DPQ.js +2 -0
  286. package/dist/bundle/chunks/xai.js +2 -0
  287. package/dist/bundle/cli-runtime.js +3 -0
  288. package/dist/bundle/cli.js +5 -0
  289. package/dist/bundle/index.js +2 -0
  290. package/dist/bundle/raga-runtime.js +3 -0
  291. package/dist/bundle/raga.js +5 -0
  292. package/dist/bundle/rpc-entry.js +3 -0
  293. package/dist/core/export-html/template.css +1085 -0
  294. package/dist/core/export-html/template.html +56 -0
  295. package/dist/core/export-html/template.js +2044 -0
  296. package/dist/core/export-html/vendor/highlight.min.js +1213 -0
  297. package/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
  298. package/dist/core/export-html/vendor/marked.min.js +79 -0
  299. package/dist/modes/interactive/assets/clankolas.png +0 -0
  300. package/dist/modes/interactive/theme/dark.json +78 -0
  301. package/dist/modes/interactive/theme/light.json +78 -0
  302. package/docs/cli-integration.md +106 -0
  303. package/docs/cli.md +343 -0
  304. package/docs/codemode.md +230 -0
  305. package/docs/compaction.md +489 -0
  306. package/docs/configuration.md +62 -0
  307. package/docs/containerization.md +183 -0
  308. package/docs/custom-provider.md +227 -0
  309. package/docs/docs.json +220 -0
  310. package/docs/environment-variables.md +101 -0
  311. package/docs/extensions.md +400 -0
  312. package/docs/how-pi-works.md +49 -0
  313. package/docs/images/doom-extension.png +0 -0
  314. package/docs/images/exy.png +0 -0
  315. package/docs/images/interactive-mode.png +0 -0
  316. package/docs/images/tree-view.png +0 -0
  317. package/docs/index.md +39 -0
  318. package/docs/json.md +226 -0
  319. package/docs/keybindings.md +195 -0
  320. package/docs/llama-cpp.md +121 -0
  321. package/docs/mcp.md +272 -0
  322. package/docs/message-types.md +279 -0
  323. package/docs/models-configuration.md +196 -0
  324. package/docs/models.md +225 -0
  325. package/docs/nvidia-rtx-llama-cpp.md +96 -0
  326. package/docs/packages.md +129 -0
  327. package/docs/prompt-templates.md +59 -0
  328. package/docs/providers.md +247 -0
  329. package/docs/quickstart.md +136 -0
  330. package/docs/rpc-commands.md +860 -0
  331. package/docs/rpc-extension-ui.md +200 -0
  332. package/docs/rpc.md +193 -0
  333. package/docs/sdk.md +149 -0
  334. package/docs/security.md +99 -0
  335. package/docs/session-format.md +293 -0
  336. package/docs/sessions.md +66 -0
  337. package/docs/settings.md +185 -0
  338. package/docs/shell-aliases.md +93 -0
  339. package/docs/skills.md +93 -0
  340. package/docs/slash-commands.md +61 -0
  341. package/docs/terminal-setup.md +233 -0
  342. package/docs/termux.md +117 -0
  343. package/docs/themes.md +138 -0
  344. package/docs/tmux.md +55 -0
  345. package/docs/tui.md +195 -0
  346. package/docs/usage.md +94 -0
  347. package/docs/virtual-models.md +114 -0
  348. package/docs/windows.md +81 -0
  349. package/examples/README.md +36 -0
  350. package/examples/extensions/README.md +214 -0
  351. package/examples/extensions/auto-commit-on-exit.ts +49 -0
  352. package/examples/extensions/bash-spawn-hook.ts +30 -0
  353. package/examples/extensions/bookmark.ts +50 -0
  354. package/examples/extensions/border-status-editor.ts +150 -0
  355. package/examples/extensions/built-in-tool-renderer.ts +225 -0
  356. package/examples/extensions/claude-rules.ts +86 -0
  357. package/examples/extensions/commands.ts +72 -0
  358. package/examples/extensions/confirm-destructive.ts +59 -0
  359. package/examples/extensions/custom-compaction.ts +117 -0
  360. package/examples/extensions/custom-footer.ts +64 -0
  361. package/examples/extensions/custom-header.ts +73 -0
  362. package/examples/extensions/custom-provider-anthropic/index.ts +617 -0
  363. package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
  364. package/examples/extensions/custom-provider-anthropic/package.json +19 -0
  365. package/examples/extensions/custom-provider-gitlab-duo/index.ts +405 -0
  366. package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
  367. package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
  368. package/examples/extensions/debug-provider.ts +90 -0
  369. package/examples/extensions/dirty-repo-guard.ts +56 -0
  370. package/examples/extensions/doom-overlay/README.md +46 -0
  371. package/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
  372. package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
  373. package/examples/extensions/doom-overlay/doom/build.sh +152 -0
  374. package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
  375. package/examples/extensions/doom-overlay/doom-component.ts +132 -0
  376. package/examples/extensions/doom-overlay/doom-engine.ts +173 -0
  377. package/examples/extensions/doom-overlay/doom-keys.ts +104 -0
  378. package/examples/extensions/doom-overlay/index.ts +74 -0
  379. package/examples/extensions/doom-overlay/wad-finder.ts +55 -0
  380. package/examples/extensions/dynamic-resources/SKILL.md +8 -0
  381. package/examples/extensions/dynamic-resources/dynamic.json +81 -0
  382. package/examples/extensions/dynamic-resources/dynamic.md +5 -0
  383. package/examples/extensions/dynamic-resources/index.ts +15 -0
  384. package/examples/extensions/dynamic-tools.ts +74 -0
  385. package/examples/extensions/entry-renderer.ts +41 -0
  386. package/examples/extensions/event-bus.ts +43 -0
  387. package/examples/extensions/file-trigger.ts +41 -0
  388. package/examples/extensions/git-checkpoint.ts +53 -0
  389. package/examples/extensions/git-merge-and-resolve.ts +115 -0
  390. package/examples/extensions/github-issue-autocomplete.ts +185 -0
  391. package/examples/extensions/gondolin/index.ts +531 -0
  392. package/examples/extensions/gondolin/package-lock.json +175 -0
  393. package/examples/extensions/gondolin/package.json +19 -0
  394. package/examples/extensions/handoff.ts +190 -0
  395. package/examples/extensions/hello.ts +26 -0
  396. package/examples/extensions/hidden-thinking-label.ts +53 -0
  397. package/examples/extensions/inline-bash.ts +94 -0
  398. package/examples/extensions/input-transform-streaming.ts +39 -0
  399. package/examples/extensions/input-transform.ts +43 -0
  400. package/examples/extensions/interactive-shell.ts +196 -0
  401. package/examples/extensions/jev-router.ts +113 -0
  402. package/examples/extensions/mac-system-theme.ts +47 -0
  403. package/examples/extensions/message-renderer.ts +59 -0
  404. package/examples/extensions/minimal-mode.ts +353 -0
  405. package/examples/extensions/modal-editor.ts +85 -0
  406. package/examples/extensions/model-status.ts +31 -0
  407. package/examples/extensions/notify.ts +57 -0
  408. package/examples/extensions/overlay-qa-tests.ts +1450 -0
  409. package/examples/extensions/overlay-test.ts +153 -0
  410. package/examples/extensions/permission-gate.ts +34 -0
  411. package/examples/extensions/pirate.ts +47 -0
  412. package/examples/extensions/plan-mode/README.md +66 -0
  413. package/examples/extensions/plan-mode/index.ts +394 -0
  414. package/examples/extensions/plan-mode/utils.ts +168 -0
  415. package/examples/extensions/preset.ts +436 -0
  416. package/examples/extensions/project-trust.ts +64 -0
  417. package/examples/extensions/prompt-customizer.ts +49 -0
  418. package/examples/extensions/protected-paths.ts +30 -0
  419. package/examples/extensions/provider-payload.ts +18 -0
  420. package/examples/extensions/qna.ts +118 -0
  421. package/examples/extensions/question.ts +286 -0
  422. package/examples/extensions/questionnaire.ts +448 -0
  423. package/examples/extensions/rainbow-editor.ts +88 -0
  424. package/examples/extensions/reload-runtime.ts +37 -0
  425. package/examples/extensions/rpc-demo.ts +118 -0
  426. package/examples/extensions/sandbox/index.ts +326 -0
  427. package/examples/extensions/sandbox/package-lock.json +92 -0
  428. package/examples/extensions/sandbox/package.json +19 -0
  429. package/examples/extensions/send-user-message.ts +97 -0
  430. package/examples/extensions/session-name.ts +27 -0
  431. package/examples/extensions/shutdown-command.ts +63 -0
  432. package/examples/extensions/snake.ts +343 -0
  433. package/examples/extensions/space-invaders.ts +560 -0
  434. package/examples/extensions/ssh.ts +220 -0
  435. package/examples/extensions/status-line.ts +32 -0
  436. package/examples/extensions/structured-output.ts +65 -0
  437. package/examples/extensions/subagent/README.md +177 -0
  438. package/examples/extensions/subagent/agents/planner.md +37 -0
  439. package/examples/extensions/subagent/agents/reviewer.md +35 -0
  440. package/examples/extensions/subagent/agents/scout.md +50 -0
  441. package/examples/extensions/subagent/agents/worker.md +24 -0
  442. package/examples/extensions/subagent/agents.ts +157 -0
  443. package/examples/extensions/subagent/index.ts +1038 -0
  444. package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
  445. package/examples/extensions/subagent/prompts/implement.md +10 -0
  446. package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
  447. package/examples/extensions/summarize.ts +199 -0
  448. package/examples/extensions/system-prompt-header.ts +17 -0
  449. package/examples/extensions/tic-tac-toe.ts +1008 -0
  450. package/examples/extensions/timed-confirm.ts +70 -0
  451. package/examples/extensions/titlebar-spinner.ts +58 -0
  452. package/examples/extensions/todo.ts +297 -0
  453. package/examples/extensions/tool-override.ts +144 -0
  454. package/examples/extensions/tools.ts +146 -0
  455. package/examples/extensions/trigger-compact.ts +50 -0
  456. package/examples/extensions/truncated-tool.ts +195 -0
  457. package/examples/extensions/widget-placement.ts +9 -0
  458. package/examples/extensions/with-deps/index.ts +32 -0
  459. package/examples/extensions/with-deps/package-lock.json +31 -0
  460. package/examples/extensions/with-deps/package.json +22 -0
  461. package/examples/extensions/working-indicator.ts +123 -0
  462. package/examples/extensions/working-message-test.ts +25 -0
  463. package/examples/rpc-client.ts +35 -0
  464. package/examples/rpc-extension-ui.ts +661 -0
  465. package/examples/sdk/01-minimal.ts +26 -0
  466. package/examples/sdk/02-custom-model.ts +49 -0
  467. package/examples/sdk/03-custom-prompt.ts +75 -0
  468. package/examples/sdk/04-skills.ts +55 -0
  469. package/examples/sdk/05-tools.ts +48 -0
  470. package/examples/sdk/06-extensions.ts +99 -0
  471. package/examples/sdk/07-context-files.ts +47 -0
  472. package/examples/sdk/08-prompt-templates.ts +51 -0
  473. package/examples/sdk/09-api-keys-and-oauth.ts +34 -0
  474. package/examples/sdk/10-settings.ts +53 -0
  475. package/examples/sdk/11-sessions.ts +52 -0
  476. package/examples/sdk/12-full-control.ts +74 -0
  477. package/examples/sdk/13-session-runtime.ts +67 -0
  478. package/examples/sdk/14-codemode-mcp.ts +61 -0
  479. package/examples/sdk/README.md +141 -0
  480. package/package.json +21 -5
  481. package/python/raga_rlm/__init__.py +352 -0
  482. package/python/raga_rlm/mlx_models.py +265 -0
  483. package/python/raga_rlm/repl.py +920 -0
  484. package/schemas/keybindings.schema.json +441 -0
  485. package/schemas/models.schema.json +1211 -0
  486. package/schemas/settings.schema.json +829 -0
  487. package/schemas/theme.schema.json +365 -0
@@ -0,0 +1,1085 @@
1
+ :root {
2
+ {{THEME_VARS}}
3
+ --body-bg: {{BODY_BG}};
4
+ --container-bg: {{CONTAINER_BG}};
5
+ --info-bg: {{INFO_BG}};
6
+ }
7
+
8
+ * { margin: 0; padding: 0; box-sizing: border-box; }
9
+
10
+ :root {
11
+ --line-height: 18px; /* 12px font * 1.5 */
12
+ --sidebar-width: 400px;
13
+ --sidebar-min-width: 240px;
14
+ --sidebar-max-width: 840px;
15
+ --sidebar-resizer-width: 6px;
16
+ }
17
+
18
+ body {
19
+ font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
20
+ font-size: 12px;
21
+ line-height: var(--line-height);
22
+ color: var(--text);
23
+ background: var(--body-bg);
24
+ }
25
+
26
+ body.sidebar-resizing {
27
+ cursor: col-resize;
28
+ user-select: none;
29
+ }
30
+
31
+ #app {
32
+ display: flex;
33
+ min-height: 100vh;
34
+ }
35
+
36
+ /* Sidebar */
37
+ #sidebar {
38
+ width: var(--sidebar-width);
39
+ min-width: var(--sidebar-width);
40
+ max-width: var(--sidebar-width);
41
+ background: var(--container-bg);
42
+ flex-shrink: 0;
43
+ display: flex;
44
+ flex-direction: column;
45
+ position: sticky;
46
+ top: 0;
47
+ height: 100vh;
48
+ border-right: 1px solid var(--dim);
49
+ }
50
+
51
+ #sidebar-resizer {
52
+ width: var(--sidebar-resizer-width);
53
+ flex-shrink: 0;
54
+ position: sticky;
55
+ top: 0;
56
+ height: 100vh;
57
+ cursor: col-resize;
58
+ touch-action: none;
59
+ background: transparent;
60
+ border-right: 1px solid transparent;
61
+ }
62
+
63
+ #sidebar-resizer:hover,
64
+ body.sidebar-resizing #sidebar-resizer {
65
+ background: var(--selectedBg);
66
+ border-right-color: var(--dim);
67
+ }
68
+
69
+ .sidebar-header {
70
+ padding: 8px 12px;
71
+ flex-shrink: 0;
72
+ }
73
+
74
+ .sidebar-controls {
75
+ padding: 8px 8px 4px 8px;
76
+ }
77
+
78
+ .sidebar-search {
79
+ width: 100%;
80
+ box-sizing: border-box;
81
+ padding: 4px 8px;
82
+ font-size: 11px;
83
+ font-family: inherit;
84
+ background: var(--body-bg);
85
+ color: var(--text);
86
+ border: 1px solid var(--dim);
87
+ border-radius: 3px;
88
+ }
89
+
90
+ .sidebar-filters {
91
+ display: flex;
92
+ padding: 4px 8px 8px 8px;
93
+ gap: 4px;
94
+ align-items: center;
95
+ flex-wrap: wrap;
96
+ }
97
+
98
+ .sidebar-search:focus {
99
+ outline: none;
100
+ border-color: var(--accent);
101
+ }
102
+
103
+ .sidebar-search::placeholder {
104
+ color: var(--muted);
105
+ }
106
+
107
+ .filter-btn {
108
+ padding: 3px 8px;
109
+ font-size: 10px;
110
+ font-family: inherit;
111
+ background: transparent;
112
+ color: var(--muted);
113
+ border: 1px solid var(--dim);
114
+ border-radius: 3px;
115
+ cursor: pointer;
116
+ }
117
+
118
+ .filter-btn:hover {
119
+ color: var(--text);
120
+ border-color: var(--text);
121
+ }
122
+
123
+ .filter-btn.active {
124
+ background: var(--accent);
125
+ color: var(--body-bg);
126
+ border-color: var(--accent);
127
+ }
128
+
129
+ .sidebar-close {
130
+ display: none;
131
+ padding: 3px 8px;
132
+ font-size: 12px;
133
+ font-family: inherit;
134
+ background: transparent;
135
+ color: var(--muted);
136
+ border: 1px solid var(--dim);
137
+ border-radius: 3px;
138
+ cursor: pointer;
139
+ margin-left: auto;
140
+ }
141
+
142
+ .sidebar-close:hover {
143
+ color: var(--text);
144
+ border-color: var(--text);
145
+ }
146
+
147
+ .tree-container {
148
+ flex: 1;
149
+ overflow: auto;
150
+ padding: 4px 0;
151
+ }
152
+
153
+ .tree-node {
154
+ padding: 0 8px;
155
+ cursor: pointer;
156
+ display: flex;
157
+ align-items: baseline;
158
+ font-size: 11px;
159
+ line-height: 13px;
160
+ white-space: nowrap;
161
+ }
162
+
163
+ .tree-node:hover {
164
+ background: var(--selectedBg);
165
+ }
166
+
167
+ .tree-node.active {
168
+ background: var(--selectedBg);
169
+ }
170
+
171
+ .tree-node.active .tree-content {
172
+ font-weight: bold;
173
+ }
174
+
175
+ .tree-node.in-path {
176
+ background: color-mix(in srgb, var(--accent) 10%, transparent);
177
+ }
178
+
179
+ .tree-node:not(.in-path) {
180
+ opacity: 0.5;
181
+ }
182
+
183
+ .tree-node:not(.in-path):hover {
184
+ opacity: 1;
185
+ }
186
+
187
+ .tree-prefix {
188
+ color: var(--muted);
189
+ flex-shrink: 0;
190
+ font-family: monospace;
191
+ white-space: pre;
192
+ }
193
+
194
+ .tree-marker {
195
+ color: var(--accent);
196
+ flex-shrink: 0;
197
+ }
198
+
199
+ .tree-content {
200
+ color: var(--text);
201
+ }
202
+
203
+ .tree-role-user {
204
+ color: var(--accent);
205
+ }
206
+
207
+ .tree-role-skill {
208
+ color: var(--customMessageLabel);
209
+ }
210
+
211
+ .tree-role-assistant {
212
+ color: var(--success);
213
+ }
214
+
215
+ .tree-role-tool {
216
+ color: var(--muted);
217
+ }
218
+
219
+ .tree-muted {
220
+ color: var(--muted);
221
+ }
222
+
223
+ .tree-error {
224
+ color: var(--error);
225
+ }
226
+
227
+ .tree-compaction {
228
+ color: var(--borderAccent);
229
+ }
230
+
231
+ .tree-branch-summary {
232
+ color: var(--warning);
233
+ }
234
+
235
+ .tree-custom-message {
236
+ color: var(--customMessageLabel);
237
+ }
238
+
239
+ .tree-status {
240
+ padding: 4px 12px;
241
+ font-size: 10px;
242
+ color: var(--muted);
243
+ flex-shrink: 0;
244
+ }
245
+
246
+ /* Main content */
247
+ #content {
248
+ flex: 1;
249
+ min-width: 0;
250
+ overflow-y: auto;
251
+ padding: var(--line-height) calc(var(--line-height) * 2);
252
+ display: flex;
253
+ flex-direction: column;
254
+ align-items: center;
255
+ }
256
+
257
+ #content > * {
258
+ width: 100%;
259
+ max-width: 800px;
260
+ }
261
+
262
+ /* Help bar */
263
+ .help-bar {
264
+ font-size: 11px;
265
+ color: var(--warning);
266
+ margin-bottom: var(--line-height);
267
+ display: flex;
268
+ align-items: center;
269
+ justify-content: space-between;
270
+ flex-wrap: wrap;
271
+ gap: 12px;
272
+ }
273
+
274
+ .help-hint {
275
+ flex: 1 1 240px;
276
+ }
277
+
278
+ .help-actions {
279
+ display: flex;
280
+ align-items: center;
281
+ flex-wrap: wrap;
282
+ gap: 8px;
283
+ }
284
+
285
+ .header-toggle-btn,
286
+ .download-json-btn {
287
+ font-size: 10px;
288
+ padding: 2px 8px;
289
+ background: var(--container-bg);
290
+ border: 1px solid var(--border);
291
+ border-radius: 3px;
292
+ color: var(--text);
293
+ cursor: pointer;
294
+ font-family: inherit;
295
+ }
296
+
297
+ .header-toggle-btn:hover,
298
+ .download-json-btn:hover {
299
+ background: var(--hover);
300
+ border-color: var(--borderAccent);
301
+ }
302
+
303
+ .header-toggle-btn[aria-pressed="true"] {
304
+ color: var(--accent);
305
+ border-color: var(--accent);
306
+ font-weight: bold;
307
+ }
308
+
309
+ /* Header */
310
+ .header {
311
+ background: var(--container-bg);
312
+ border-radius: 4px;
313
+ padding: var(--line-height);
314
+ margin-bottom: var(--line-height);
315
+ }
316
+
317
+ .header h1 {
318
+ font-size: 12px;
319
+ font-weight: bold;
320
+ color: var(--borderAccent);
321
+ margin-bottom: var(--line-height);
322
+ }
323
+
324
+ .header-info {
325
+ display: flex;
326
+ flex-direction: column;
327
+ gap: 0;
328
+ font-size: 11px;
329
+ }
330
+
331
+ .info-item {
332
+ color: var(--dim);
333
+ display: flex;
334
+ align-items: baseline;
335
+ }
336
+
337
+ .info-label {
338
+ font-weight: 600;
339
+ margin-right: 8px;
340
+ min-width: 100px;
341
+ }
342
+
343
+ .info-value {
344
+ color: var(--text);
345
+ flex: 1;
346
+ }
347
+
348
+ /* Messages */
349
+ #messages {
350
+ display: flex;
351
+ flex-direction: column;
352
+ gap: var(--line-height);
353
+ }
354
+
355
+ .message-timestamp {
356
+ font-size: 10px;
357
+ color: var(--dim);
358
+ opacity: 0.8;
359
+ }
360
+
361
+ .user-message {
362
+ background: var(--userMessageBg);
363
+ color: var(--userMessageText);
364
+ padding: var(--line-height);
365
+ border-radius: 4px;
366
+ position: relative;
367
+ }
368
+
369
+ .assistant-message {
370
+ padding: 0;
371
+ position: relative;
372
+ }
373
+
374
+ /* Copy link button - appears on hover */
375
+ .copy-link-btn {
376
+ position: absolute;
377
+ top: 8px;
378
+ right: 8px;
379
+ width: 28px;
380
+ height: 28px;
381
+ padding: 6px;
382
+ background: var(--container-bg);
383
+ border: 1px solid var(--dim);
384
+ border-radius: 4px;
385
+ color: var(--muted);
386
+ cursor: pointer;
387
+ opacity: 0;
388
+ transition: opacity 0.15s, background 0.15s, color 0.15s;
389
+ display: flex;
390
+ align-items: center;
391
+ justify-content: center;
392
+ z-index: 10;
393
+ }
394
+
395
+ .user-message:hover .copy-link-btn,
396
+ .assistant-message:hover .copy-link-btn,
397
+ .skill-user-entry:hover .copy-link-btn {
398
+ opacity: 1;
399
+ }
400
+
401
+ .copy-link-btn:hover {
402
+ background: var(--accent);
403
+ color: var(--body-bg);
404
+ border-color: var(--accent);
405
+ }
406
+
407
+ .copy-link-btn.copied {
408
+ background: var(--success, #22c55e);
409
+ color: white;
410
+ border-color: var(--success, #22c55e);
411
+ }
412
+
413
+ /* Highlight effect for deep-linked messages */
414
+ .user-message.highlight,
415
+ .assistant-message.highlight {
416
+ animation: highlight-pulse 2s ease-out;
417
+ }
418
+
419
+ @keyframes highlight-pulse {
420
+ 0% {
421
+ box-shadow: 0 0 0 3px var(--accent);
422
+ }
423
+ 100% {
424
+ box-shadow: 0 0 0 0 transparent;
425
+ }
426
+ }
427
+
428
+ .assistant-message > .message-timestamp {
429
+ padding-left: var(--line-height);
430
+ }
431
+
432
+ .assistant-text {
433
+ padding: var(--line-height);
434
+ padding-bottom: 0;
435
+ }
436
+
437
+ .message-timestamp + .assistant-text,
438
+ .message-timestamp + .thinking-block {
439
+ padding-top: 0;
440
+ }
441
+
442
+ .thinking-block + .assistant-text {
443
+ padding-top: 0;
444
+ }
445
+
446
+ .thinking-text {
447
+ padding: var(--line-height);
448
+ color: var(--thinkingText);
449
+ font-style: italic;
450
+ white-space: pre-wrap;
451
+ }
452
+
453
+ .message-timestamp + .thinking-block .thinking-text,
454
+ .message-timestamp + .thinking-block .thinking-collapsed {
455
+ padding-top: 0;
456
+ }
457
+
458
+ .thinking-collapsed {
459
+ display: none;
460
+ padding: var(--line-height);
461
+ color: var(--thinkingText);
462
+ font-style: italic;
463
+ }
464
+
465
+ /* Tool execution */
466
+ .tool-execution {
467
+ padding: var(--line-height);
468
+ border-radius: 4px;
469
+ }
470
+
471
+ .tool-execution + .tool-execution {
472
+ margin-top: var(--line-height);
473
+ }
474
+
475
+ .assistant-text + .tool-execution {
476
+ margin-top: var(--line-height);
477
+ }
478
+
479
+ .tool-execution.pending { background: var(--toolPendingBg); }
480
+ .tool-execution.success { background: var(--toolSuccessBg); }
481
+ .tool-execution.error { background: var(--toolErrorBg); }
482
+
483
+ .tool-header, .tool-name {
484
+ font-weight: bold;
485
+ }
486
+
487
+ .tool-path {
488
+ color: var(--accent);
489
+ word-break: break-all;
490
+ }
491
+
492
+ .line-numbers {
493
+ color: var(--warning);
494
+ }
495
+
496
+ .line-count {
497
+ color: var(--dim);
498
+ }
499
+
500
+ .tool-command {
501
+ font-weight: bold;
502
+ white-space: pre-wrap;
503
+ word-wrap: break-word;
504
+ overflow-wrap: break-word;
505
+ word-break: break-word;
506
+ }
507
+
508
+ .tool-output {
509
+ margin-top: var(--line-height);
510
+ color: var(--toolOutput);
511
+ word-wrap: break-word;
512
+ overflow-wrap: break-word;
513
+ word-break: break-word;
514
+ font-family: inherit;
515
+ overflow-x: auto;
516
+ }
517
+
518
+ .tool-output > div,
519
+ .output-preview > div,
520
+ .output-full > div {
521
+ margin: 0;
522
+ padding: 0;
523
+ line-height: var(--line-height);
524
+ }
525
+
526
+ .tool-output > div:not(.output-preview):not(.output-full),
527
+ .output-preview > div:not(.expand-hint),
528
+ .output-full > div:not(.expand-hint) {
529
+ white-space: pre-wrap;
530
+ }
531
+
532
+ .tool-output pre {
533
+ margin: 0;
534
+ padding: 0;
535
+ font-family: inherit;
536
+ color: inherit;
537
+ white-space: pre-wrap;
538
+ word-wrap: break-word;
539
+ overflow-wrap: break-word;
540
+ }
541
+
542
+ .tool-output code {
543
+ padding: 0;
544
+ background: none;
545
+ color: var(--text);
546
+ }
547
+
548
+ .tool-output.expandable {
549
+ cursor: pointer;
550
+ }
551
+
552
+ .tool-output.expandable:hover {
553
+ opacity: 0.9;
554
+ }
555
+
556
+ .tool-output.expandable .output-full {
557
+ display: none;
558
+ }
559
+
560
+ .tool-output.expandable.expanded .output-preview {
561
+ display: none;
562
+ }
563
+
564
+ .tool-output.expandable.expanded .output-full {
565
+ display: block;
566
+ }
567
+
568
+ .ansi-line {
569
+ white-space: pre;
570
+ }
571
+
572
+ .tool-images {
573
+ }
574
+
575
+ .tool-image {
576
+ max-width: 100%;
577
+ max-height: 500px;
578
+ border-radius: 4px;
579
+ margin: var(--line-height) 0;
580
+ }
581
+
582
+ .expand-hint {
583
+ color: var(--toolOutput);
584
+ }
585
+
586
+ /* Diff */
587
+ .tool-diff {
588
+ font-size: 11px;
589
+ overflow-x: auto;
590
+ white-space: pre;
591
+ }
592
+
593
+ .diff-added { color: var(--toolDiffAdded); }
594
+ .diff-removed { color: var(--toolDiffRemoved); }
595
+ .diff-context { color: var(--toolDiffContext); }
596
+
597
+ /* Model change */
598
+ .model-change {
599
+ padding: 0 var(--line-height);
600
+ color: var(--dim);
601
+ font-size: 11px;
602
+ }
603
+
604
+ .model-name {
605
+ color: var(--borderAccent);
606
+ font-weight: bold;
607
+ }
608
+
609
+ /* Compaction / Branch Summary - matches customMessage colors from TUI */
610
+ .compaction {
611
+ background: var(--customMessageBg);
612
+ border-radius: 4px;
613
+ padding: var(--line-height);
614
+ cursor: pointer;
615
+ }
616
+
617
+ .compaction-label {
618
+ color: var(--customMessageLabel);
619
+ font-weight: bold;
620
+ }
621
+
622
+ .compaction-collapsed {
623
+ color: var(--customMessageText);
624
+ }
625
+
626
+ .compaction-content {
627
+ display: none;
628
+ color: var(--customMessageText);
629
+ white-space: pre-wrap;
630
+ margin-top: var(--line-height);
631
+ }
632
+
633
+ .compaction.expanded .compaction-collapsed {
634
+ display: none;
635
+ }
636
+
637
+ .compaction.expanded .compaction-content {
638
+ display: block;
639
+ }
640
+
641
+ /* System prompt */
642
+ .system-prompt {
643
+ background: var(--customMessageBg);
644
+ padding: var(--line-height);
645
+ border-radius: 4px;
646
+ margin-bottom: var(--line-height);
647
+ }
648
+
649
+ .system-prompt.expandable {
650
+ cursor: pointer;
651
+ }
652
+
653
+ .system-prompt-header {
654
+ font-weight: bold;
655
+ color: var(--customMessageLabel);
656
+ }
657
+
658
+ .system-prompt-preview {
659
+ color: var(--customMessageText);
660
+ white-space: pre-wrap;
661
+ word-wrap: break-word;
662
+ font-size: 11px;
663
+ margin-top: var(--line-height);
664
+ }
665
+
666
+ .system-prompt-expand-hint {
667
+ color: var(--muted);
668
+ font-style: italic;
669
+ margin-top: 4px;
670
+ }
671
+
672
+ .system-prompt-full {
673
+ display: none;
674
+ color: var(--customMessageText);
675
+ white-space: pre-wrap;
676
+ word-wrap: break-word;
677
+ font-size: 11px;
678
+ margin-top: var(--line-height);
679
+ }
680
+
681
+ .system-prompt.expanded .system-prompt-preview,
682
+ .system-prompt.expanded .system-prompt-expand-hint {
683
+ display: none;
684
+ }
685
+
686
+ .system-prompt.expanded .system-prompt-full {
687
+ display: block;
688
+ }
689
+
690
+ .system-entry > .message-timestamp {
691
+ padding-left: var(--line-height);
692
+ margin-bottom: 4px;
693
+ }
694
+
695
+ .system-entry > :last-child {
696
+ margin-bottom: 0;
697
+ }
698
+
699
+ .system-prompt.provider-prompt {
700
+ border-left: 3px solid var(--warning);
701
+ }
702
+
703
+ .system-prompt-note {
704
+ font-size: 10px;
705
+ font-style: italic;
706
+ color: var(--muted);
707
+ margin-top: 4px;
708
+ }
709
+
710
+ /* Tools list */
711
+ .tools-list {
712
+ background: var(--customMessageBg);
713
+ padding: var(--line-height);
714
+ border-radius: 4px;
715
+ margin-bottom: var(--line-height);
716
+ }
717
+
718
+ .tools-header {
719
+ font-weight: bold;
720
+ color: var(--customMessageLabel);
721
+ margin-bottom: var(--line-height);
722
+ }
723
+
724
+ .tool-item {
725
+ font-size: 11px;
726
+ }
727
+
728
+ .tool-item-name {
729
+ font-weight: bold;
730
+ color: var(--text);
731
+ }
732
+
733
+ .tool-item-desc {
734
+ color: var(--dim);
735
+ }
736
+
737
+ .tool-params-hint {
738
+ color: var(--muted);
739
+ font-style: italic;
740
+ }
741
+
742
+ .tool-item:has(.tool-params-hint) {
743
+ cursor: pointer;
744
+ }
745
+
746
+ .tool-params-hint::after {
747
+ content: '[click to show parameters]';
748
+ }
749
+
750
+ .tool-item.params-expanded .tool-params-hint::after {
751
+ content: '[hide parameters]';
752
+ }
753
+
754
+ .tool-params-content {
755
+ display: none;
756
+ margin-top: 4px;
757
+ margin-left: 12px;
758
+ padding-left: 8px;
759
+ border-left: 1px solid var(--dim);
760
+ }
761
+
762
+ .tool-item.params-expanded .tool-params-content {
763
+ display: block;
764
+ }
765
+
766
+ .tool-param {
767
+ margin-bottom: 4px;
768
+ font-size: 11px;
769
+ }
770
+
771
+ .tool-param-name {
772
+ font-weight: bold;
773
+ color: var(--text);
774
+ }
775
+
776
+ .tool-param-type {
777
+ color: var(--dim);
778
+ font-style: italic;
779
+ }
780
+
781
+ .tool-param-required {
782
+ color: var(--warning, #e8a838);
783
+ font-size: 10px;
784
+ }
785
+
786
+ .tool-param-optional {
787
+ color: var(--dim);
788
+ font-size: 10px;
789
+ }
790
+
791
+ .tool-param-desc {
792
+ color: var(--dim);
793
+ margin-left: 8px;
794
+ }
795
+
796
+ /* Hook/custom messages */
797
+ .hook-message {
798
+ background: var(--customMessageBg);
799
+ color: var(--customMessageText);
800
+ padding: var(--line-height);
801
+ border-radius: 4px;
802
+ }
803
+
804
+ body:not(.show-hidden-messages) .hook-message-hidden {
805
+ display: none;
806
+ }
807
+
808
+ .hook-type {
809
+ color: var(--customMessageLabel);
810
+ font-weight: bold;
811
+ }
812
+
813
+ /* Skill invocation - matches compaction style (clickable, collapsed by default) */
814
+ .skill-invocation {
815
+ background: var(--customMessageBg);
816
+ border-radius: 4px;
817
+ padding: var(--line-height);
818
+ cursor: pointer;
819
+ }
820
+
821
+ .skill-invocation-label {
822
+ color: var(--customMessageLabel);
823
+ font-weight: bold;
824
+ }
825
+
826
+ .skill-invocation-collapsed {
827
+ color: var(--customMessageText);
828
+ }
829
+
830
+ .skill-invocation-content {
831
+ display: none;
832
+ color: var(--customMessageText);
833
+ margin-top: var(--line-height);
834
+ }
835
+
836
+ .skill-invocation.expanded .skill-invocation-collapsed {
837
+ display: none;
838
+ }
839
+
840
+ .skill-invocation.expanded .skill-invocation-content {
841
+ display: block;
842
+ }
843
+
844
+ .skill-invocation + .user-message {
845
+ margin-top: var(--line-height);
846
+ }
847
+
848
+ .skill-user-entry {
849
+ position: relative;
850
+ }
851
+
852
+ /* Branch summary */
853
+ .branch-summary {
854
+ background: var(--customMessageBg);
855
+ padding: var(--line-height);
856
+ border-radius: 4px;
857
+ }
858
+
859
+ .branch-summary-header {
860
+ font-weight: bold;
861
+ color: var(--borderAccent);
862
+ }
863
+
864
+ /* Error */
865
+ .error-text {
866
+ color: var(--error);
867
+ padding: 0 var(--line-height);
868
+ }
869
+ .tool-error {
870
+ color: var(--error);
871
+ }
872
+
873
+ /* Images */
874
+ .message-images {
875
+ margin-bottom: 12px;
876
+ }
877
+
878
+ .message-image {
879
+ max-width: 100%;
880
+ max-height: 400px;
881
+ border-radius: 4px;
882
+ margin: var(--line-height) 0;
883
+ }
884
+
885
+ /* Markdown content */
886
+ .markdown-content h1,
887
+ .markdown-content h2,
888
+ .markdown-content h3,
889
+ .markdown-content h4,
890
+ .markdown-content h5,
891
+ .markdown-content h6 {
892
+ color: var(--mdHeading);
893
+ margin: var(--line-height) 0 0 0;
894
+ font-weight: bold;
895
+ }
896
+
897
+ .markdown-content h1 { font-size: 1em; }
898
+ .markdown-content h2 { font-size: 1em; }
899
+ .markdown-content h3 { font-size: 1em; }
900
+ .markdown-content h4 { font-size: 1em; }
901
+ .markdown-content h5 { font-size: 1em; }
902
+ .markdown-content h6 { font-size: 1em; }
903
+ .markdown-content p { margin: 0; }
904
+ .markdown-content p + p { margin-top: var(--line-height); }
905
+
906
+ .markdown-content a {
907
+ color: var(--mdLink);
908
+ text-decoration: underline;
909
+ }
910
+
911
+ .markdown-content code {
912
+ background: rgba(128, 128, 128, 0.2);
913
+ color: var(--mdCode);
914
+ padding: 0 4px;
915
+ border-radius: 3px;
916
+ font-family: inherit;
917
+ }
918
+
919
+ .markdown-content pre {
920
+ background: transparent;
921
+ margin: var(--line-height) 0;
922
+ overflow-x: auto;
923
+ }
924
+
925
+ .markdown-content pre code {
926
+ display: block;
927
+ background: none;
928
+ color: var(--text);
929
+ }
930
+
931
+ .markdown-content blockquote {
932
+ border-left: 3px solid var(--mdQuoteBorder);
933
+ padding-left: var(--line-height);
934
+ margin: var(--line-height) 0;
935
+ color: var(--mdQuote);
936
+ font-style: italic;
937
+ }
938
+
939
+ .markdown-content ul,
940
+ .markdown-content ol {
941
+ margin: var(--line-height) 0;
942
+ padding-left: calc(var(--line-height) * 2);
943
+ }
944
+
945
+ .markdown-content li { margin: 0; }
946
+ .markdown-content li::marker { color: var(--mdListBullet); }
947
+
948
+ .markdown-content hr {
949
+ border: none;
950
+ border-top: 1px solid var(--mdHr);
951
+ margin: var(--line-height) 0;
952
+ }
953
+
954
+ .markdown-content table {
955
+ border-collapse: collapse;
956
+ margin: 0.5em 0;
957
+ width: 100%;
958
+ }
959
+
960
+ .markdown-content th,
961
+ .markdown-content td {
962
+ border: 1px solid var(--mdCodeBlockBorder);
963
+ padding: 6px 10px;
964
+ text-align: left;
965
+ }
966
+
967
+ .markdown-content th {
968
+ background: rgba(128, 128, 128, 0.1);
969
+ font-weight: bold;
970
+ }
971
+
972
+ .markdown-content img {
973
+ max-width: 100%;
974
+ border-radius: 4px;
975
+ }
976
+
977
+ /* Syntax highlighting */
978
+ .hljs { background: transparent; color: var(--text); }
979
+ .hljs-comment, .hljs-quote { color: var(--syntaxComment); }
980
+ .hljs-keyword, .hljs-selector-tag { color: var(--syntaxKeyword); }
981
+ .hljs-number, .hljs-literal { color: var(--syntaxNumber); }
982
+ .hljs-string, .hljs-doctag { color: var(--syntaxString); }
983
+ /* Function names: hljs v11 uses .hljs-title.function_ compound class */
984
+ .hljs-function, .hljs-title, .hljs-title.function_, .hljs-section, .hljs-name { color: var(--syntaxFunction); }
985
+ /* Types: hljs v11 uses .hljs-title.class_ for class names */
986
+ .hljs-type, .hljs-class, .hljs-title.class_, .hljs-built_in { color: var(--syntaxType); }
987
+ .hljs-attr, .hljs-variable, .hljs-variable.language_, .hljs-params, .hljs-property { color: var(--syntaxVariable); }
988
+ .hljs-meta, .hljs-meta .hljs-keyword, .hljs-meta .hljs-string { color: var(--syntaxKeyword); }
989
+ .hljs-operator { color: var(--syntaxOperator); }
990
+ .hljs-punctuation { color: var(--syntaxPunctuation); }
991
+ .hljs-subst { color: var(--text); }
992
+
993
+ /* Footer */
994
+ .footer {
995
+ margin-top: 48px;
996
+ padding: 20px;
997
+ text-align: center;
998
+ color: var(--dim);
999
+ font-size: 10px;
1000
+ }
1001
+
1002
+ /* Mobile */
1003
+ #hamburger {
1004
+ display: none;
1005
+ position: fixed;
1006
+ top: 10px;
1007
+ left: 10px;
1008
+ z-index: 100;
1009
+ padding: 3px 8px;
1010
+ font-size: 12px;
1011
+ font-family: inherit;
1012
+ background: transparent;
1013
+ color: var(--muted);
1014
+ border: 1px solid var(--dim);
1015
+ border-radius: 3px;
1016
+ cursor: pointer;
1017
+ }
1018
+
1019
+ #hamburger:hover {
1020
+ color: var(--text);
1021
+ border-color: var(--text);
1022
+ }
1023
+
1024
+
1025
+
1026
+ #sidebar-overlay {
1027
+ display: none;
1028
+ position: fixed;
1029
+ top: 0;
1030
+ left: 0;
1031
+ right: 0;
1032
+ bottom: 0;
1033
+ background: rgba(0, 0, 0, 0.5);
1034
+ z-index: 98;
1035
+ }
1036
+
1037
+ @media (max-width: 900px) {
1038
+ #sidebar {
1039
+ position: fixed;
1040
+ left: 0;
1041
+ width: min(var(--sidebar-width), 100vw);
1042
+ min-width: min(var(--sidebar-width), 100vw);
1043
+ max-width: min(var(--sidebar-width), 100vw);
1044
+ top: 0;
1045
+ bottom: 0;
1046
+ height: 100vh;
1047
+ z-index: 99;
1048
+ transform: translateX(-100%);
1049
+ transition: transform 0.3s;
1050
+ }
1051
+
1052
+ #sidebar.open {
1053
+ transform: translateX(0);
1054
+ }
1055
+
1056
+ #sidebar-resizer {
1057
+ display: none;
1058
+ }
1059
+
1060
+ #sidebar-overlay.open {
1061
+ display: block;
1062
+ }
1063
+
1064
+ #hamburger {
1065
+ display: block;
1066
+ }
1067
+
1068
+ .sidebar-close {
1069
+ display: block;
1070
+ }
1071
+
1072
+ #content {
1073
+ padding: var(--line-height) 16px;
1074
+ }
1075
+
1076
+ #content > * {
1077
+ max-width: 100%;
1078
+ }
1079
+ }
1080
+
1081
+ @media print {
1082
+ #sidebar, #sidebar-resizer, #sidebar-toggle { display: none !important; }
1083
+ body { background: white; color: black; }
1084
+ #content { max-width: none; }
1085
+ }