@openclaw/tokenjuice 2026.11.5-beta.4 → 2026.11.10-beta.1

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 (361) hide show
  1. package/README.md +1 -1
  2. package/dist/.source-module-urls/e1cd11006f37307698d3ccaa0b9377541a8f8fcd96acf7a0d93ee391c8c5abfa.json +1 -1
  3. package/dist/index.js +1 -2
  4. package/dist/tool-result-middleware.js +33 -19
  5. package/node_modules/tokenjuice/README.md +71 -272
  6. package/node_modules/tokenjuice/dist/cli/command-types.d.ts +36 -0
  7. package/node_modules/tokenjuice/dist/cli/command-types.js +1 -0
  8. package/node_modules/tokenjuice/dist/cli/doctor-commands.d.ts +2 -0
  9. package/node_modules/tokenjuice/dist/cli/doctor-commands.js +674 -0
  10. package/node_modules/tokenjuice/dist/cli/doctor-output.d.ts +2 -1
  11. package/node_modules/tokenjuice/dist/cli/doctor-output.js +9 -0
  12. package/node_modules/tokenjuice/dist/cli/host-command.d.ts +4 -0
  13. package/node_modules/tokenjuice/dist/cli/host-command.js +19 -0
  14. package/node_modules/tokenjuice/dist/cli/install-commands.d.ts +2 -0
  15. package/node_modules/tokenjuice/dist/cli/install-commands.js +1263 -0
  16. package/node_modules/tokenjuice/dist/cli/main.d.ts +2 -33
  17. package/node_modules/tokenjuice/dist/cli/main.js +255 -5950
  18. package/node_modules/tokenjuice/dist/cli/uninstall-commands.d.ts +2 -0
  19. package/node_modules/tokenjuice/dist/cli/uninstall-commands.js +554 -0
  20. package/node_modules/tokenjuice/dist/core/bounded-jsonl.js +15 -3
  21. package/node_modules/tokenjuice/dist/core/bounded-text-file.d.ts +3 -0
  22. package/node_modules/tokenjuice/dist/core/bounded-text-file.js +32 -0
  23. package/node_modules/tokenjuice/dist/core/classify.d.ts +0 -5
  24. package/node_modules/tokenjuice/dist/core/classify.js +1 -1
  25. package/node_modules/tokenjuice/dist/core/command-identity.d.ts +0 -2
  26. package/node_modules/tokenjuice/dist/core/command-identity.js +2 -2
  27. package/node_modules/tokenjuice/dist/core/command-match.d.ts +0 -3
  28. package/node_modules/tokenjuice/dist/core/command-match.js +88 -8
  29. package/node_modules/tokenjuice/dist/core/command.d.ts +0 -1
  30. package/node_modules/tokenjuice/dist/core/compaction-metadata.d.ts +1 -1
  31. package/node_modules/tokenjuice/dist/core/env.d.ts +1 -0
  32. package/node_modules/tokenjuice/dist/core/env.js +8 -0
  33. package/node_modules/tokenjuice/dist/core/integrations/compact-bash-result.d.ts +7 -3
  34. package/node_modules/tokenjuice/dist/core/integrations/compact-bash-result.js +190 -10
  35. package/node_modules/tokenjuice/dist/core/integrations/compact-copilot-result.d.ts +6 -0
  36. package/node_modules/tokenjuice/dist/core/integrations/compact-copilot-result.js +50 -0
  37. package/node_modules/tokenjuice/dist/core/integrations/compact-deepseek-result.d.ts +7 -0
  38. package/node_modules/tokenjuice/dist/core/integrations/compact-deepseek-result.js +46 -0
  39. package/node_modules/tokenjuice/dist/core/integrations/compact-framework-result.d.ts +11 -0
  40. package/node_modules/tokenjuice/dist/core/integrations/compact-framework-result.js +19 -0
  41. package/node_modules/tokenjuice/dist/core/integrations/compact-opencode-v2-result.d.ts +2 -0
  42. package/node_modules/tokenjuice/dist/core/integrations/compact-opencode-v2-result.js +39 -0
  43. package/node_modules/tokenjuice/dist/core/integrations/compact-qoder-result.d.ts +2 -0
  44. package/node_modules/tokenjuice/dist/core/integrations/compact-qoder-result.js +34 -0
  45. package/node_modules/tokenjuice/dist/core/integrations/openclaw-command.d.ts +2 -0
  46. package/node_modules/tokenjuice/dist/core/integrations/openclaw-command.js +13 -0
  47. package/node_modules/tokenjuice/dist/core/integrations/rewrite-cline-input.d.ts +4 -0
  48. package/node_modules/tokenjuice/dist/core/integrations/rewrite-cline-input.js +18 -0
  49. package/node_modules/tokenjuice/dist/core/inventory-safety.d.ts +0 -1
  50. package/node_modules/tokenjuice/dist/core/inventory-safety.js +1 -1
  51. package/node_modules/tokenjuice/dist/core/record-fields.d.ts +1 -0
  52. package/node_modules/tokenjuice/dist/core/record-fields.js +9 -0
  53. package/node_modules/tokenjuice/dist/core/reduce-inspection-summary.d.ts +2 -1
  54. package/node_modules/tokenjuice/dist/core/reduce-inspection-summary.js +7 -94
  55. package/node_modules/tokenjuice/dist/core/simple-yaml-frontmatter.d.ts +9 -0
  56. package/node_modules/tokenjuice/dist/core/simple-yaml-frontmatter.js +125 -0
  57. package/node_modules/tokenjuice/dist/core/source.d.ts +0 -1
  58. package/node_modules/tokenjuice/dist/core/source.js +14 -4
  59. package/node_modules/tokenjuice/dist/core/structural-markers.d.ts +11 -0
  60. package/node_modules/tokenjuice/dist/core/structural-markers.js +49 -0
  61. package/node_modules/tokenjuice/dist/core/text.d.ts +0 -1
  62. package/node_modules/tokenjuice/dist/core/text.js +0 -3
  63. package/node_modules/tokenjuice/dist/core/toml-structure.d.ts +2 -0
  64. package/node_modules/tokenjuice/dist/core/toml-structure.js +83 -0
  65. package/node_modules/tokenjuice/dist/core/validate-rules.d.ts +2 -2
  66. package/node_modules/tokenjuice/dist/core/wrap.js +1 -1
  67. package/node_modules/tokenjuice/dist/hosts/adal/index.d.ts +5 -17
  68. package/node_modules/tokenjuice/dist/hosts/adal/index.js +15 -125
  69. package/node_modules/tokenjuice/dist/hosts/aether/index.d.ts +2 -7
  70. package/node_modules/tokenjuice/dist/hosts/aether/index.js +17 -155
  71. package/node_modules/tokenjuice/dist/hosts/agent-layer/index.d.ts +2 -9
  72. package/node_modules/tokenjuice/dist/hosts/agent-layer/index.js +10 -64
  73. package/node_modules/tokenjuice/dist/hosts/agentinit/index.d.ts +2 -8
  74. package/node_modules/tokenjuice/dist/hosts/agentinit/index.js +15 -111
  75. package/node_modules/tokenjuice/dist/hosts/agentlink/index.d.ts +2 -8
  76. package/node_modules/tokenjuice/dist/hosts/agentlink/index.js +14 -97
  77. package/node_modules/tokenjuice/dist/hosts/agentloom/index.d.ts +2 -9
  78. package/node_modules/tokenjuice/dist/hosts/agentloom/index.js +11 -52
  79. package/node_modules/tokenjuice/dist/hosts/agents-cli/index.d.ts +2 -8
  80. package/node_modules/tokenjuice/dist/hosts/agents-cli/index.js +10 -41
  81. package/node_modules/tokenjuice/dist/hosts/agents-md/index.d.ts +5 -16
  82. package/node_modules/tokenjuice/dist/hosts/agents-md/index.js +16 -128
  83. package/node_modules/tokenjuice/dist/hosts/agentsge/index.d.ts +2 -9
  84. package/node_modules/tokenjuice/dist/hosts/agentsge/index.js +11 -52
  85. package/node_modules/tokenjuice/dist/hosts/agentsmesh/index.d.ts +2 -8
  86. package/node_modules/tokenjuice/dist/hosts/agentsmesh/index.js +10 -53
  87. package/node_modules/tokenjuice/dist/hosts/ai-memory-protocol/index.d.ts +2 -8
  88. package/node_modules/tokenjuice/dist/hosts/ai-memory-protocol/index.js +13 -42
  89. package/node_modules/tokenjuice/dist/hosts/aictl/index.d.ts +5 -16
  90. package/node_modules/tokenjuice/dist/hosts/aictl/index.js +17 -128
  91. package/node_modules/tokenjuice/dist/hosts/aider/index.d.ts +2 -9
  92. package/node_modules/tokenjuice/dist/hosts/aider/index.js +6 -18
  93. package/node_modules/tokenjuice/dist/hosts/amazon-q/index.d.ts +2 -9
  94. package/node_modules/tokenjuice/dist/hosts/amazon-q/index.js +31 -105
  95. package/node_modules/tokenjuice/dist/hosts/amp/index.d.ts +2 -9
  96. package/node_modules/tokenjuice/dist/hosts/amp/index.js +11 -72
  97. package/node_modules/tokenjuice/dist/hosts/ante/index.d.ts +11 -0
  98. package/node_modules/tokenjuice/dist/hosts/ante/index.js +76 -0
  99. package/node_modules/tokenjuice/dist/hosts/antigravity/index.d.ts +2 -9
  100. package/node_modules/tokenjuice/dist/hosts/antigravity/index.js +29 -117
  101. package/node_modules/tokenjuice/dist/hosts/anywhere-agents/index.d.ts +2 -8
  102. package/node_modules/tokenjuice/dist/hosts/anywhere-agents/index.js +14 -97
  103. package/node_modules/tokenjuice/dist/hosts/augment/index.d.ts +2 -9
  104. package/node_modules/tokenjuice/dist/hosts/augment/index.js +29 -117
  105. package/node_modules/tokenjuice/dist/hosts/avante/index.d.ts +5 -17
  106. package/node_modules/tokenjuice/dist/hosts/avante/index.js +5 -27
  107. package/node_modules/tokenjuice/dist/hosts/baz/index.d.ts +2 -8
  108. package/node_modules/tokenjuice/dist/hosts/baz/index.js +17 -132
  109. package/node_modules/tokenjuice/dist/hosts/bito/index.d.ts +2 -8
  110. package/node_modules/tokenjuice/dist/hosts/bito/index.js +11 -108
  111. package/node_modules/tokenjuice/dist/hosts/blackbox/index.d.ts +2 -8
  112. package/node_modules/tokenjuice/dist/hosts/blackbox/index.js +16 -157
  113. package/node_modules/tokenjuice/dist/hosts/blocks/index.d.ts +2 -8
  114. package/node_modules/tokenjuice/dist/hosts/blocks/index.js +16 -157
  115. package/node_modules/tokenjuice/dist/hosts/bob/index.d.ts +5 -17
  116. package/node_modules/tokenjuice/dist/hosts/bob/index.js +13 -123
  117. package/node_modules/tokenjuice/dist/hosts/builder/index.d.ts +2 -9
  118. package/node_modules/tokenjuice/dist/hosts/builder/index.js +34 -131
  119. package/node_modules/tokenjuice/dist/hosts/charlie/index.d.ts +5 -16
  120. package/node_modules/tokenjuice/dist/hosts/charlie/index.js +16 -140
  121. package/node_modules/tokenjuice/dist/hosts/claude-code/index.js +12 -49
  122. package/node_modules/tokenjuice/dist/hosts/clawdbot/index.d.ts +2 -8
  123. package/node_modules/tokenjuice/dist/hosts/clawdbot/index.js +48 -235
  124. package/node_modules/tokenjuice/dist/hosts/cline/index.d.ts +6 -13
  125. package/node_modules/tokenjuice/dist/hosts/cline/index.js +134 -135
  126. package/node_modules/tokenjuice/dist/hosts/codeant/index.d.ts +5 -16
  127. package/node_modules/tokenjuice/dist/hosts/codeant/index.js +12 -123
  128. package/node_modules/tokenjuice/dist/hosts/codebuddy/index.js +14 -58
  129. package/node_modules/tokenjuice/dist/hosts/codebuff/index.d.ts +5 -17
  130. package/node_modules/tokenjuice/dist/hosts/codebuff/index.js +13 -123
  131. package/node_modules/tokenjuice/dist/hosts/codegen/index.d.ts +5 -17
  132. package/node_modules/tokenjuice/dist/hosts/codegen/index.js +13 -123
  133. package/node_modules/tokenjuice/dist/hosts/coder-agents/index.d.ts +2 -8
  134. package/node_modules/tokenjuice/dist/hosts/coder-agents/index.js +25 -193
  135. package/node_modules/tokenjuice/dist/hosts/coderabbit/index.d.ts +2 -8
  136. package/node_modules/tokenjuice/dist/hosts/coderabbit/index.js +16 -173
  137. package/node_modules/tokenjuice/dist/hosts/codex/index.d.ts +3 -4
  138. package/node_modules/tokenjuice/dist/hosts/codex/index.js +26 -58
  139. package/node_modules/tokenjuice/dist/hosts/command-code/index.d.ts +6 -13
  140. package/node_modules/tokenjuice/dist/hosts/command-code/index.js +87 -331
  141. package/node_modules/tokenjuice/dist/hosts/continue/index.d.ts +2 -9
  142. package/node_modules/tokenjuice/dist/hosts/continue/index.js +6 -18
  143. package/node_modules/tokenjuice/dist/hosts/copilot-agent/index.d.ts +2 -11
  144. package/node_modules/tokenjuice/dist/hosts/copilot-agent/index.js +15 -166
  145. package/node_modules/tokenjuice/dist/hosts/copilot-cli/index.d.ts +2 -11
  146. package/node_modules/tokenjuice/dist/hosts/copilot-cli/index.js +24 -196
  147. package/node_modules/tokenjuice/dist/hosts/copilot-sdk/index.d.ts +12 -0
  148. package/node_modules/tokenjuice/dist/hosts/copilot-sdk/index.js +15 -0
  149. package/node_modules/tokenjuice/dist/hosts/crush/index.d.ts +2 -9
  150. package/node_modules/tokenjuice/dist/hosts/crush/index.js +6 -18
  151. package/node_modules/tokenjuice/dist/hosts/cursor/index.js +7 -8
  152. package/node_modules/tokenjuice/dist/hosts/deepagents/index.d.ts +5 -17
  153. package/node_modules/tokenjuice/dist/hosts/deepagents/index.js +15 -125
  154. package/node_modules/tokenjuice/dist/hosts/deepseek-harness/bundle/cordis.patch.yml +3 -0
  155. package/node_modules/tokenjuice/dist/hosts/deepseek-harness/bundle/index.js +9656 -0
  156. package/node_modules/tokenjuice/dist/hosts/deepseek-harness/bundle/package.json +18 -0
  157. package/node_modules/tokenjuice/dist/hosts/deepseek-harness/runtime.d.ts +7 -0
  158. package/node_modules/tokenjuice/dist/hosts/deepseek-harness/runtime.js +23 -0
  159. package/node_modules/tokenjuice/dist/hosts/devin/index.d.ts +2 -11
  160. package/node_modules/tokenjuice/dist/hosts/devin/index.js +7 -9
  161. package/node_modules/tokenjuice/dist/hosts/docker-agent/index.d.ts +2 -7
  162. package/node_modules/tokenjuice/dist/hosts/docker-agent/index.js +19 -99
  163. package/node_modules/tokenjuice/dist/hosts/dot-agents/index.d.ts +2 -8
  164. package/node_modules/tokenjuice/dist/hosts/dot-agents/index.js +12 -41
  165. package/node_modules/tokenjuice/dist/hosts/droid/index.d.ts +5 -12
  166. package/node_modules/tokenjuice/dist/hosts/droid/index.js +106 -211
  167. package/node_modules/tokenjuice/dist/hosts/eca/index.d.ts +2 -8
  168. package/node_modules/tokenjuice/dist/hosts/eca/index.js +26 -190
  169. package/node_modules/tokenjuice/dist/hosts/elyra/index.d.ts +2 -8
  170. package/node_modules/tokenjuice/dist/hosts/elyra/index.js +26 -190
  171. package/node_modules/tokenjuice/dist/hosts/firebase-studio/index.d.ts +2 -9
  172. package/node_modules/tokenjuice/dist/hosts/firebase-studio/index.js +16 -123
  173. package/node_modules/tokenjuice/dist/hosts/forgecode/index.d.ts +5 -16
  174. package/node_modules/tokenjuice/dist/hosts/forgecode/index.js +20 -161
  175. package/node_modules/tokenjuice/dist/hosts/gemini-cli/index.d.ts +5 -12
  176. package/node_modules/tokenjuice/dist/hosts/gemini-cli/index.js +87 -94
  177. package/node_modules/tokenjuice/dist/hosts/gitlab-duo/index.d.ts +2 -9
  178. package/node_modules/tokenjuice/dist/hosts/gitlab-duo/index.js +17 -123
  179. package/node_modules/tokenjuice/dist/hosts/goose/index.d.ts +2 -9
  180. package/node_modules/tokenjuice/dist/hosts/goose/index.js +34 -77
  181. package/node_modules/tokenjuice/dist/hosts/gptme/index.d.ts +5 -17
  182. package/node_modules/tokenjuice/dist/hosts/gptme/index.js +13 -123
  183. package/node_modules/tokenjuice/dist/hosts/greptile/index.d.ts +2 -8
  184. package/node_modules/tokenjuice/dist/hosts/greptile/index.js +18 -156
  185. package/node_modules/tokenjuice/dist/hosts/grok-bot/index.d.ts +2 -8
  186. package/node_modules/tokenjuice/dist/hosts/grok-bot/index.js +14 -110
  187. package/node_modules/tokenjuice/dist/hosts/grok-build/index.d.ts +5 -17
  188. package/node_modules/tokenjuice/dist/hosts/grok-build/index.js +13 -113
  189. package/node_modules/tokenjuice/dist/hosts/grok-cli/index.d.ts +7 -14
  190. package/node_modules/tokenjuice/dist/hosts/grok-cli/index.js +32 -188
  191. package/node_modules/tokenjuice/dist/hosts/hermes/bundle/__init__.py +1 -0
  192. package/node_modules/tokenjuice/dist/hosts/hermes/bundle/plugin.yaml +7 -0
  193. package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/README.md +29 -0
  194. package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/__init__.py +3 -0
  195. package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/bridge.py +39 -0
  196. package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/fastmcp.py +24 -0
  197. package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/hermes.py +13 -0
  198. package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/langchain.py +38 -0
  199. package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/plugin.yaml +7 -0
  200. package/node_modules/tokenjuice/dist/hosts/jean2/index.d.ts +5 -17
  201. package/node_modules/tokenjuice/dist/hosts/jean2/index.js +13 -123
  202. package/node_modules/tokenjuice/dist/hosts/jetbrains-ai/index.d.ts +2 -9
  203. package/node_modules/tokenjuice/dist/hosts/jetbrains-ai/index.js +33 -133
  204. package/node_modules/tokenjuice/dist/hosts/jules/index.d.ts +5 -17
  205. package/node_modules/tokenjuice/dist/hosts/jules/index.js +13 -123
  206. package/node_modules/tokenjuice/dist/hosts/junie/index.d.ts +5 -17
  207. package/node_modules/tokenjuice/dist/hosts/junie/index.js +5 -27
  208. package/node_modules/tokenjuice/dist/hosts/kilo/index.d.ts +2 -8
  209. package/node_modules/tokenjuice/dist/hosts/kilo/index.js +6 -18
  210. package/node_modules/tokenjuice/dist/hosts/kimi/index.d.ts +7 -13
  211. package/node_modules/tokenjuice/dist/hosts/kimi/index.js +38 -156
  212. package/node_modules/tokenjuice/dist/hosts/kiro/index.d.ts +2 -9
  213. package/node_modules/tokenjuice/dist/hosts/kiro/index.js +6 -18
  214. package/node_modules/tokenjuice/dist/hosts/knowns/index.d.ts +5 -16
  215. package/node_modules/tokenjuice/dist/hosts/knowns/index.js +35 -203
  216. package/node_modules/tokenjuice/dist/hosts/leanctl/index.d.ts +5 -16
  217. package/node_modules/tokenjuice/dist/hosts/leanctl/index.js +15 -156
  218. package/node_modules/tokenjuice/dist/hosts/localcode/index.d.ts +2 -7
  219. package/node_modules/tokenjuice/dist/hosts/localcode/index.js +10 -68
  220. package/node_modules/tokenjuice/dist/hosts/mastra/index.d.ts +28 -0
  221. package/node_modules/tokenjuice/dist/hosts/mastra/index.js +26 -0
  222. package/node_modules/tokenjuice/dist/hosts/mcp-agent/index.d.ts +2 -7
  223. package/node_modules/tokenjuice/dist/hosts/mcp-agent/index.js +15 -109
  224. package/node_modules/tokenjuice/dist/hosts/mini-swe-agent/index.d.ts +2 -7
  225. package/node_modules/tokenjuice/dist/hosts/mini-swe-agent/index.js +21 -110
  226. package/node_modules/tokenjuice/dist/hosts/mistral-vibe/index.d.ts +5 -17
  227. package/node_modules/tokenjuice/dist/hosts/mistral-vibe/index.js +13 -123
  228. package/node_modules/tokenjuice/dist/hosts/mux/index.d.ts +6 -13
  229. package/node_modules/tokenjuice/dist/hosts/mux/index.js +54 -349
  230. package/node_modules/tokenjuice/dist/hosts/novakit/index.d.ts +5 -16
  231. package/node_modules/tokenjuice/dist/hosts/novakit/index.js +35 -203
  232. package/node_modules/tokenjuice/dist/hosts/ona/index.d.ts +2 -8
  233. package/node_modules/tokenjuice/dist/hosts/ona/index.js +19 -283
  234. package/node_modules/tokenjuice/dist/hosts/open-interpreter/index.d.ts +2 -9
  235. package/node_modules/tokenjuice/dist/hosts/open-interpreter/index.js +11 -66
  236. package/node_modules/tokenjuice/dist/hosts/openclaw/extension.js +6 -5
  237. package/node_modules/tokenjuice/dist/hosts/opencode/extension/runtime.js +540 -363
  238. package/node_modules/tokenjuice/dist/hosts/opencode/index.js +8 -54
  239. package/node_modules/tokenjuice/dist/hosts/opencode/v2/bundle/index.js +9648 -0
  240. package/node_modules/tokenjuice/dist/hosts/opencode/v2/index.d.ts +37 -0
  241. package/node_modules/tokenjuice/dist/hosts/opencode/v2/index.js +97 -0
  242. package/node_modules/tokenjuice/dist/hosts/opencode/v2/runtime.d.ts +13 -0
  243. package/node_modules/tokenjuice/dist/hosts/opencode/v2/runtime.js +23 -0
  244. package/node_modules/tokenjuice/dist/hosts/openhands/index.d.ts +7 -14
  245. package/node_modules/tokenjuice/dist/hosts/openhands/index.js +111 -186
  246. package/node_modules/tokenjuice/dist/hosts/openwebui/index.d.ts +2 -7
  247. package/node_modules/tokenjuice/dist/hosts/openwebui/index.js +2 -24
  248. package/node_modules/tokenjuice/dist/hosts/pi/extension/pi-types.d.ts +3 -2
  249. package/node_modules/tokenjuice/dist/hosts/pi/extension/runtime.d.ts +2 -1
  250. package/node_modules/tokenjuice/dist/hosts/pi/extension/runtime.js +545 -359
  251. package/node_modules/tokenjuice/dist/hosts/pi/extension/status-panel.d.ts +1 -1
  252. package/node_modules/tokenjuice/dist/hosts/pi/extension/status.d.ts +1 -1
  253. package/node_modules/tokenjuice/dist/hosts/pi/extension/tool-result.d.ts +1 -1
  254. package/node_modules/tokenjuice/dist/hosts/pi/index.d.ts +1 -0
  255. package/node_modules/tokenjuice/dist/hosts/pi/index.js +5 -53
  256. package/node_modules/tokenjuice/dist/hosts/pi-go/index.d.ts +2 -8
  257. package/node_modules/tokenjuice/dist/hosts/pi-go/index.js +26 -190
  258. package/node_modules/tokenjuice/dist/hosts/plandex/index.d.ts +2 -9
  259. package/node_modules/tokenjuice/dist/hosts/plandex/index.js +10 -41
  260. package/node_modules/tokenjuice/dist/hosts/qoder/hook-install.d.ts +22 -0
  261. package/node_modules/tokenjuice/dist/hosts/qoder/hook-install.js +105 -0
  262. package/node_modules/tokenjuice/dist/hosts/qoder/hook.d.ts +1 -0
  263. package/node_modules/tokenjuice/dist/hosts/qoder/hook.js +22 -0
  264. package/node_modules/tokenjuice/dist/hosts/qoder/index.d.ts +5 -17
  265. package/node_modules/tokenjuice/dist/hosts/qoder/index.js +13 -113
  266. package/node_modules/tokenjuice/dist/hosts/qoderwork/index.d.ts +36 -0
  267. package/node_modules/tokenjuice/dist/hosts/qoderwork/index.js +20 -0
  268. package/node_modules/tokenjuice/dist/hosts/qodo/index.d.ts +2 -8
  269. package/node_modules/tokenjuice/dist/hosts/qodo/index.js +20 -290
  270. package/node_modules/tokenjuice/dist/hosts/qwen-code/index.d.ts +6 -13
  271. package/node_modules/tokenjuice/dist/hosts/qwen-code/index.js +60 -165
  272. package/node_modules/tokenjuice/dist/hosts/qwenwork/index.d.ts +36 -0
  273. package/node_modules/tokenjuice/dist/hosts/qwenwork/index.js +20 -0
  274. package/node_modules/tokenjuice/dist/hosts/replit/index.d.ts +5 -17
  275. package/node_modules/tokenjuice/dist/hosts/replit/index.js +13 -123
  276. package/node_modules/tokenjuice/dist/hosts/roo/index.d.ts +5 -17
  277. package/node_modules/tokenjuice/dist/hosts/roo/index.js +5 -31
  278. package/node_modules/tokenjuice/dist/hosts/rovo/index.d.ts +5 -17
  279. package/node_modules/tokenjuice/dist/hosts/rovo/index.js +13 -123
  280. package/node_modules/tokenjuice/dist/hosts/ruler/index.d.ts +2 -9
  281. package/node_modules/tokenjuice/dist/hosts/ruler/index.js +10 -64
  282. package/node_modules/tokenjuice/dist/hosts/shared/bundle-runtime.d.ts +2 -0
  283. package/node_modules/tokenjuice/dist/hosts/shared/bundle-runtime.js +56 -0
  284. package/node_modules/tokenjuice/dist/hosts/shared/hook-command-doctor.d.ts +3 -8
  285. package/node_modules/tokenjuice/dist/hosts/shared/hook-command-doctor.js +3 -3
  286. package/node_modules/tokenjuice/dist/hosts/shared/hook-doctor.d.ts +112 -101
  287. package/node_modules/tokenjuice/dist/hosts/shared/hook-doctor.js +10 -0
  288. package/node_modules/tokenjuice/dist/hosts/shared/hook-output.d.ts +0 -1
  289. package/node_modules/tokenjuice/dist/hosts/shared/hook-output.js +1 -1
  290. package/node_modules/tokenjuice/dist/hosts/shared/hooks-json-file.d.ts +15 -0
  291. package/node_modules/tokenjuice/dist/hosts/shared/hooks-json-file.js +93 -0
  292. package/node_modules/tokenjuice/dist/hosts/shared/host-command.d.ts +1 -1
  293. package/node_modules/tokenjuice/dist/hosts/shared/host-command.js +4 -4
  294. package/node_modules/tokenjuice/dist/hosts/shared/instruction-doctor.d.ts +4 -0
  295. package/node_modules/tokenjuice/dist/hosts/shared/instruction-file.d.ts +26 -6
  296. package/node_modules/tokenjuice/dist/hosts/shared/instruction-file.js +125 -5
  297. package/node_modules/tokenjuice/dist/hosts/shared/instruction-guidance.d.ts +7 -0
  298. package/node_modules/tokenjuice/dist/hosts/shared/instruction-guidance.js +24 -0
  299. package/node_modules/tokenjuice/dist/hosts/shared/managed-skill.d.ts +42 -0
  300. package/node_modules/tokenjuice/dist/hosts/shared/managed-skill.js +87 -0
  301. package/node_modules/tokenjuice/dist/hosts/shared/marker-instruction-doctor.d.ts +29 -0
  302. package/node_modules/tokenjuice/dist/hosts/shared/marker-instruction-doctor.js +72 -0
  303. package/node_modules/tokenjuice/dist/hosts/shared/marker-instructions.d.ts +12 -0
  304. package/node_modules/tokenjuice/dist/hosts/shared/marker-instructions.js +43 -0
  305. package/node_modules/tokenjuice/dist/hosts/shared/owned-instruction-doctor.d.ts +9 -0
  306. package/node_modules/tokenjuice/dist/hosts/shared/owned-instruction-doctor.js +17 -0
  307. package/node_modules/tokenjuice/dist/hosts/shared/path-ancestors.d.ts +14 -0
  308. package/node_modules/tokenjuice/dist/hosts/shared/path-ancestors.js +117 -0
  309. package/node_modules/tokenjuice/dist/hosts/shared/pre-tool-wrap.d.ts +7 -7
  310. package/node_modules/tokenjuice/dist/hosts/shared/pre-tool-wrap.js +13 -48
  311. package/node_modules/tokenjuice/dist/hosts/shared/private-config-file.d.ts +2 -0
  312. package/node_modules/tokenjuice/dist/hosts/shared/private-config-file.js +36 -0
  313. package/node_modules/tokenjuice/dist/hosts/shared/project-root.d.ts +5 -0
  314. package/node_modules/tokenjuice/dist/hosts/shared/project-root.js +33 -0
  315. package/node_modules/tokenjuice/dist/hosts/shared/project-skill-doctor.d.ts +14 -0
  316. package/node_modules/tokenjuice/dist/hosts/shared/project-skill-doctor.js +62 -0
  317. package/node_modules/tokenjuice/dist/hosts/shared/restorable-rule.d.ts +15 -0
  318. package/node_modules/tokenjuice/dist/hosts/shared/restorable-rule.js +64 -0
  319. package/node_modules/tokenjuice/dist/hosts/shared/restorable-skill.d.ts +15 -0
  320. package/node_modules/tokenjuice/dist/hosts/shared/restorable-skill.js +48 -0
  321. package/node_modules/tokenjuice/dist/hosts/shared/settings-file.d.ts +5 -1
  322. package/node_modules/tokenjuice/dist/hosts/shared/settings-file.js +33 -5
  323. package/node_modules/tokenjuice/dist/hosts/shared/skill-frontmatter.d.ts +5 -0
  324. package/node_modules/tokenjuice/dist/hosts/shared/skill-frontmatter.js +18 -0
  325. package/node_modules/tokenjuice/dist/hosts/stagewise/index.d.ts +2 -8
  326. package/node_modules/tokenjuice/dist/hosts/stagewise/index.js +50 -377
  327. package/node_modules/tokenjuice/dist/hosts/swe-agent/index.d.ts +2 -7
  328. package/node_modules/tokenjuice/dist/hosts/swe-agent/index.js +20 -88
  329. package/node_modules/tokenjuice/dist/hosts/tabby/index.d.ts +2 -8
  330. package/node_modules/tokenjuice/dist/hosts/tabby/index.js +13 -190
  331. package/node_modules/tokenjuice/dist/hosts/tabnine/index.d.ts +5 -17
  332. package/node_modules/tokenjuice/dist/hosts/tabnine/index.js +13 -123
  333. package/node_modules/tokenjuice/dist/hosts/trae/index.d.ts +2 -9
  334. package/node_modules/tokenjuice/dist/hosts/trae/index.js +17 -123
  335. package/node_modules/tokenjuice/dist/hosts/uipath/index.d.ts +5 -17
  336. package/node_modules/tokenjuice/dist/hosts/uipath/index.js +13 -123
  337. package/node_modules/tokenjuice/dist/hosts/vscode-copilot/index.d.ts +2 -11
  338. package/node_modules/tokenjuice/dist/hosts/vscode-copilot/index.js +15 -101
  339. package/node_modules/tokenjuice/dist/hosts/warp/index.d.ts +5 -17
  340. package/node_modules/tokenjuice/dist/hosts/warp/index.js +14 -116
  341. package/node_modules/tokenjuice/dist/hosts/windsurf/index.d.ts +2 -9
  342. package/node_modules/tokenjuice/dist/hosts/windsurf/index.js +6 -18
  343. package/node_modules/tokenjuice/dist/hosts/zed/index.d.ts +5 -17
  344. package/node_modules/tokenjuice/dist/hosts/zed/index.js +5 -27
  345. package/node_modules/tokenjuice/dist/hosts/zencoder/index.d.ts +2 -9
  346. package/node_modules/tokenjuice/dist/hosts/zencoder/index.js +42 -139
  347. package/node_modules/tokenjuice/dist/index.d.ts +20 -4
  348. package/node_modules/tokenjuice/dist/index.js +14 -4
  349. package/node_modules/tokenjuice/dist/python/LICENSE +21 -0
  350. package/node_modules/tokenjuice/dist/python/README.md +38 -0
  351. package/node_modules/tokenjuice/dist/python/pyproject.toml +30 -0
  352. package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/README.md +29 -0
  353. package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/__init__.py +3 -0
  354. package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/bridge.py +39 -0
  355. package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/fastmcp.py +24 -0
  356. package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/hermes.py +13 -0
  357. package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/langchain.py +38 -0
  358. package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/plugin.yaml +7 -0
  359. package/node_modules/tokenjuice/dist/types.d.ts +9 -8
  360. package/node_modules/tokenjuice/package.json +32 -11
  361. package/package.json +5 -5
@@ -0,0 +1,1263 @@
1
+ import { installOpenCodeV2Extension } from "../hosts/opencode/v2/index.js";
2
+ import { installQoderHook } from "../hosts/qoder/hook-install.js";
3
+ import { installQwenWorkSkill } from "../hosts/qwenwork/index.js";
4
+ import { installQoderWorkSkill } from "../hosts/qoderwork/index.js";
5
+ // Per-target handlers for `tokenjuice install <target>`.
6
+ // Each handler is keyed by the target name and its aliases in installCommands.
7
+ import { dirname, relative } from "node:path";
8
+ import { installAdalInstructions } from "../hosts/adal/index.js";
9
+ import { installAetherPrompt } from "../hosts/aether/index.js";
10
+ import { installAictlInstructions } from "../hosts/aictl/index.js";
11
+ import { installAiMemoryProtocolMemory } from "../hosts/ai-memory-protocol/index.js";
12
+ import { installAgentLayerInstructions } from "../hosts/agent-layer/index.js";
13
+ import { installAgentInitInstructions } from "../hosts/agentinit/index.js";
14
+ import { installAgentlinkInstructions } from "../hosts/agentlink/index.js";
15
+ import { installAgentloomRule } from "../hosts/agentloom/index.js";
16
+ import { installAgentsCliMemory } from "../hosts/agents-cli/index.js";
17
+ import { installAgentsMdInstructions } from "../hosts/agents-md/index.js";
18
+ import { installAgentsGeRule } from "../hosts/agentsge/index.js";
19
+ import { installAgentsMeshRule } from "../hosts/agentsmesh/index.js";
20
+ import { installAmazonQRule } from "../hosts/amazon-q/index.js";
21
+ import { installAmpInstructions } from "../hosts/amp/index.js";
22
+ import { installAiderConvention } from "../hosts/aider/index.js";
23
+ import { installAntigravityRule } from "../hosts/antigravity/index.js";
24
+ import { installAnywhereAgentsInstructions } from "../hosts/anywhere-agents/index.js";
25
+ import { installAugmentRule } from "../hosts/augment/index.js";
26
+ import { installAvanteInstructions } from "../hosts/avante/index.js";
27
+ import { installBazSkill } from "../hosts/baz/index.js";
28
+ import { installBitoGuidelines } from "../hosts/bito/index.js";
29
+ import { installBlackboxSkill } from "../hosts/blackbox/index.js";
30
+ import { installBlocksSkill } from "../hosts/blocks/index.js";
31
+ import { installClawdbotSkill } from "../hosts/clawdbot/index.js";
32
+ import { installBobInstructions } from "../hosts/bob/index.js";
33
+ import { installBuilderRule } from "../hosts/builder/index.js";
34
+ import { installCharlieInstructions } from "../hosts/charlie/index.js";
35
+ import { installClaudeCodeHook } from "../hosts/claude-code/index.js";
36
+ import { installClineHook } from "../hosts/cline/index.js";
37
+ import { installCodeAntInstructions } from "../hosts/codeant/index.js";
38
+ import { installCodebuffInstructions } from "../hosts/codebuff/index.js";
39
+ import { installCodegenInstructions } from "../hosts/codegen/index.js";
40
+ import { installCoderAgentsSkill } from "../hosts/coder-agents/index.js";
41
+ import { installCodeRabbitConfig } from "../hosts/coderabbit/index.js";
42
+ import { installCodeBuddyHook } from "../hosts/codebuddy/index.js";
43
+ import { installCommandCodeHook } from "../hosts/command-code/index.js";
44
+ import { installContinueRule } from "../hosts/continue/index.js";
45
+ import { installCodexHook } from "../hosts/codex/index.js";
46
+ import { installCopilotAgentHook } from "../hosts/copilot-agent/index.js";
47
+ import { installCopilotCliHook } from "../hosts/copilot-cli/index.js";
48
+ import { installCrushSkill } from "../hosts/crush/index.js";
49
+ import { installCursorHook } from "../hosts/cursor/index.js";
50
+ import { installDeepAgentsInstructions } from "../hosts/deepagents/index.js";
51
+ import { installDevinHook } from "../hosts/devin/index.js";
52
+ import { installDotAgentsRule } from "../hosts/dot-agents/index.js";
53
+ import { installDockerAgentPrompt } from "../hosts/docker-agent/index.js";
54
+ import { installDroidHook } from "../hosts/droid/index.js";
55
+ import { installEcaSkill } from "../hosts/eca/index.js";
56
+ import { installElyraSkill } from "../hosts/elyra/index.js";
57
+ import { installFirebaseStudioRule } from "../hosts/firebase-studio/index.js";
58
+ import { installForgeCodeInstructions } from "../hosts/forgecode/index.js";
59
+ import { installGeminiCliHook } from "../hosts/gemini-cli/index.js";
60
+ import { installGitLabDuoRule } from "../hosts/gitlab-duo/index.js";
61
+ import { installGooseHints } from "../hosts/goose/index.js";
62
+ import { installGreptileRule } from "../hosts/greptile/index.js";
63
+ import { installGrokBuildInstructions } from "../hosts/grok-build/index.js";
64
+ import { installGrokBotRule } from "../hosts/grok-bot/index.js";
65
+ import { installGrokCliHook } from "../hosts/grok-cli/index.js";
66
+ import { installGptmeInstructions } from "../hosts/gptme/index.js";
67
+ import { installJean2Instructions } from "../hosts/jean2/index.js";
68
+ import { installJetBrainsAiRule } from "../hosts/jetbrains-ai/index.js";
69
+ import { installJunieInstructions } from "../hosts/junie/index.js";
70
+ import { installJulesInstructions } from "../hosts/jules/index.js";
71
+ import { installLeanCtlInstructions } from "../hosts/leanctl/index.js";
72
+ import { installKimiHook } from "../hosts/kimi/index.js";
73
+ import { installKiroSteering } from "../hosts/kiro/index.js";
74
+ import { installKiloRule } from "../hosts/kilo/index.js";
75
+ import { installKnownsInstructions } from "../hosts/knowns/index.js";
76
+ import { installLocalCodePlugin } from "../hosts/localcode/index.js";
77
+ import { installMcpAgentDefinition } from "../hosts/mcp-agent/index.js";
78
+ import { installMiniSweAgentConfig } from "../hosts/mini-swe-agent/index.js";
79
+ import { installSweAgentConfig } from "../hosts/swe-agent/index.js";
80
+ import { installStagewiseSkill } from "../hosts/stagewise/index.js";
81
+ import { installMistralVibeInstructions } from "../hosts/mistral-vibe/index.js";
82
+ import { installMuxHook } from "../hosts/mux/index.js";
83
+ import { installNovaKitInstructions } from "../hosts/novakit/index.js";
84
+ import { installOnaSkill } from "../hosts/ona/index.js";
85
+ import { installOpenCodeExtension } from "../hosts/opencode/index.js";
86
+ import { installOpenInterpreterInstructions } from "../hosts/open-interpreter/index.js";
87
+ import { installOpenHandsHook } from "../hosts/openhands/index.js";
88
+ import { installOpenWebUITool } from "../hosts/openwebui/index.js";
89
+ import { installPiExtension } from "../hosts/pi/index.js";
90
+ import { installPiGoSkill } from "../hosts/pi-go/index.js";
91
+ import { installPlandexConvention } from "../hosts/plandex/index.js";
92
+ import { installQodoReviewConfig } from "../hosts/qodo/index.js";
93
+ import { installQoderInstructions } from "../hosts/qoder/index.js";
94
+ import { installAnteInstructions } from "../hosts/ante/index.js";
95
+ import { installQwenCodeHook } from "../hosts/qwen-code/index.js";
96
+ import { installReplitInstructions } from "../hosts/replit/index.js";
97
+ import { installRooInstructions } from "../hosts/roo/index.js";
98
+ import { installRovoInstructions } from "../hosts/rovo/index.js";
99
+ import { installRulerRule } from "../hosts/ruler/index.js";
100
+ import { installTabbySystemPrompt } from "../hosts/tabby/index.js";
101
+ import { installTabnineInstructions } from "../hosts/tabnine/index.js";
102
+ import { installTraeRule } from "../hosts/trae/index.js";
103
+ import { installUiPathInstructions } from "../hosts/uipath/index.js";
104
+ import { installVscodeCopilotHook } from "../hosts/vscode-copilot/index.js";
105
+ import { installWarpInstructions } from "../hosts/warp/index.js";
106
+ import { installWindsurfRule } from "../hosts/windsurf/index.js";
107
+ import { installZedInstructions } from "../hosts/zed/index.js";
108
+ import { installZencoderRule } from "../hosts/zencoder/index.js";
109
+ import { shellQuote } from "../hosts/shared/hook-command.js";
110
+ import { formatCodeBuddyInstallSuccess, formatInstallSuccess } from "./install-output.js";
111
+ import { createHostCommand } from "./host-command.js";
112
+ function formatPlandexLoadCommand(conventionPath) {
113
+ const loadPath = relative(process.cwd(), conventionPath) || "PLANDEX.tokenjuice.md";
114
+ return `plandex load ${shellQuote(loadPath)}`;
115
+ }
116
+ function createFileInstallCommand(run, options) {
117
+ return createHostCommand(run, (result) => {
118
+ const details = [
119
+ { label: options.pathLabel, value: result[options.pathKey] },
120
+ { label: "Beta", value: options.beta },
121
+ { label: "Verify", value: `tokenjuice doctor ${options.target}` },
122
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
123
+ ];
124
+ if (result.backupPath) {
125
+ details.push({ label: "Backup", value: result.backupPath });
126
+ }
127
+ process.stdout.write(formatInstallSuccess(options.target, options.noun, details));
128
+ });
129
+ }
130
+ const installAdalCommand = createFileInstallCommand(() => installAdalInstructions(), {
131
+ target: "adal",
132
+ noun: "instructions",
133
+ pathLabel: "Instructions",
134
+ pathKey: "instructionsPath",
135
+ beta: "instruction-based guidance; AdaL CLI still owns command execution",
136
+ });
137
+ const installAetherCommand = createHostCommand(() => installAetherPrompt(), (result) => {
138
+ const details = [
139
+ { label: "Prompt", value: result.promptPath },
140
+ { label: "Settings", value: result.settingsPath },
141
+ { label: "Beta", value: "Aether prompt source; adds .aether/tokenjuice.md to configured agent prompts" },
142
+ { label: "Verify", value: "tokenjuice doctor aether" },
143
+ { label: "Prompt check", value: "aether show-prompt -a <agent>" },
144
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
145
+ ];
146
+ if (result.backupPath) {
147
+ details.push({ label: "Backup", value: result.backupPath });
148
+ }
149
+ if (result.settingsBackupPath) {
150
+ details.push({ label: "Settings backup", value: result.settingsBackupPath });
151
+ }
152
+ details.push({ label: "Agents updated", value: String(result.agentsUpdated) });
153
+ process.stdout.write(formatInstallSuccess("aether", "prompt", details));
154
+ });
155
+ const installAiderCommand = createFileInstallCommand(() => installAiderConvention(), {
156
+ target: "aider",
157
+ noun: "convention",
158
+ pathLabel: "Convention",
159
+ pathKey: "conventionPath",
160
+ beta: "convention-based guidance; load it with aider --read CONVENTIONS.tokenjuice.md",
161
+ });
162
+ const installAictlCommand = createFileInstallCommand(() => installAictlInstructions(), {
163
+ target: "aictl",
164
+ noun: "instructions",
165
+ pathLabel: "Instructions",
166
+ pathKey: "instructionsPath",
167
+ beta: "AICTL.md project prompt guidance; aictl still owns command execution",
168
+ });
169
+ const installAiMemoryProtocolCommand = createHostCommand(() => installAiMemoryProtocolMemory(), (result) => {
170
+ const memoryDir = dirname(dirname(result.memoryPath));
171
+ const details = [
172
+ { label: "Memory", value: result.memoryPath },
173
+ { label: "Beta", value: "RST preference memory; AI Memory Protocol still owns recall and MCP serving" },
174
+ { label: "Workspace", value: "requires memory init .memories --install first" },
175
+ { label: "Rebuild", value: `MEMORY_DIR=${shellQuote(memoryDir)} memory rebuild` },
176
+ { label: "Verify", value: "tokenjuice doctor ai-memory-protocol" },
177
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
178
+ ];
179
+ if (result.backupPath) {
180
+ details.push({ label: "Backup", value: result.backupPath });
181
+ }
182
+ process.stdout.write(formatInstallSuccess("ai-memory-protocol", "memory", details));
183
+ });
184
+ const installAgentLayerCommand = createHostCommand(() => installAgentLayerInstructions(), (result) => {
185
+ const details = [
186
+ { label: "Instructions", value: result.instructionsPath },
187
+ { label: "Beta", value: "Agent Layer source instructions; requires an initialized al project" },
188
+ { label: "Init", value: "al init" },
189
+ { label: "Sync", value: "al sync" },
190
+ { label: "Verify", value: "tokenjuice doctor agent-layer" },
191
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
192
+ ];
193
+ if (result.backupPath) {
194
+ details.push({ label: "Backup", value: result.backupPath });
195
+ }
196
+ process.stdout.write(formatInstallSuccess("agent-layer", "instructions", details));
197
+ });
198
+ const installAgentinitCommand = createHostCommand(() => installAgentInitInstructions(), (result) => {
199
+ const details = [
200
+ { label: "Instructions", value: result.instructionsPath },
201
+ { label: "Beta", value: "AgentInit source AGENTS.md guidance; run agentinit sync to propagate it" },
202
+ { label: "Sync", value: result.syncCommand },
203
+ { label: "Verify", value: "tokenjuice doctor agentinit" },
204
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
205
+ ];
206
+ if (result.backupPath) {
207
+ details.push({ label: "Backup", value: result.backupPath });
208
+ }
209
+ process.stdout.write(formatInstallSuccess("agentinit", "instructions", details));
210
+ });
211
+ const installAgentlinkCommand = createHostCommand(() => installAgentlinkInstructions(), (result) => {
212
+ const details = [
213
+ { label: "Instructions", value: result.instructionsPath },
214
+ { label: "Beta", value: "source AGENTS.md guidance; run agentlink sync to repair downstream symlinks" },
215
+ { label: "Sync", value: result.syncCommand },
216
+ { label: "Verify", value: "tokenjuice doctor agentlink" },
217
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
218
+ ];
219
+ if (result.backupPath) {
220
+ details.push({ label: "Backup", value: result.backupPath });
221
+ }
222
+ process.stdout.write(formatInstallSuccess("agentlink", "instructions", details));
223
+ });
224
+ const installAgentloomCommand = createHostCommand(() => installAgentloomRule(), (result) => {
225
+ const details = [
226
+ { label: "Rule", value: result.rulePath },
227
+ { label: "Beta", value: "Agentloom source rule; run agentloom sync to propagate it" },
228
+ { label: "Sync", value: "agentloom sync" },
229
+ { label: "Verify", value: "tokenjuice doctor agentloom" },
230
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
231
+ ];
232
+ if (result.backupPath) {
233
+ details.push({ label: "Backup", value: result.backupPath });
234
+ }
235
+ process.stdout.write(formatInstallSuccess("agentloom", "rule", details));
236
+ });
237
+ const installAgentsCliCommand = createHostCommand(() => installAgentsCliMemory(), (result) => {
238
+ const details = [
239
+ { label: "Memory", value: result.instructionsPath },
240
+ { label: "Beta", value: "agents-cli memory source; run agents sync to propagate it" },
241
+ { label: "Sync", value: result.syncCommand },
242
+ { label: "Verify", value: "tokenjuice doctor agents-cli" },
243
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
244
+ ];
245
+ if (result.backupPath) {
246
+ details.push({ label: "Backup", value: result.backupPath });
247
+ }
248
+ process.stdout.write(formatInstallSuccess("agents-cli", "memory", details));
249
+ });
250
+ const installAgentsMdCommand = createFileInstallCommand(() => installAgentsMdInstructions(), {
251
+ target: "agents-md",
252
+ noun: "instructions",
253
+ pathLabel: "Instructions",
254
+ pathKey: "instructionsPath",
255
+ beta: "generic AGENTS.md guidance; the active agent still owns command execution",
256
+ });
257
+ const installAgentsgeCommand = createHostCommand(() => installAgentsGeRule(), (result) => {
258
+ const details = [
259
+ { label: "Rule", value: result.rulePath },
260
+ { label: "Beta", value: "agents.ge source rule; run agents sync to propagate it" },
261
+ { label: "Sync", value: "agents sync" },
262
+ { label: "Verify", value: "tokenjuice doctor agentsge" },
263
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
264
+ ];
265
+ if (result.backupPath) {
266
+ details.push({ label: "Backup", value: result.backupPath });
267
+ }
268
+ process.stdout.write(formatInstallSuccess("agentsge", "rule", details));
269
+ });
270
+ const installAgentsmeshCommand = createHostCommand(() => installAgentsMeshRule(), (result) => {
271
+ const details = [
272
+ { label: "Rule", value: result.rulePath },
273
+ { label: "Beta", value: "AgentsMesh source rule; requires an initialized agentsmesh project" },
274
+ { label: "Init", value: "agentsmesh init" },
275
+ { label: "Generate", value: result.syncCommand },
276
+ { label: "Verify", value: "tokenjuice doctor agentsmesh" },
277
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
278
+ ];
279
+ if (result.backupPath) {
280
+ details.push({ label: "Backup", value: result.backupPath });
281
+ }
282
+ process.stdout.write(formatInstallSuccess("agentsmesh", "rule", details));
283
+ });
284
+ const installAmazonQCommand = createHostCommand(() => installAmazonQRule(), (result) => {
285
+ const details = [
286
+ { label: "Rule", value: result.rulePath },
287
+ { label: "Beta", value: "rule-based Amazon Q/Kiro compatibility guidance" },
288
+ { label: "Load", value: "add file://.amazonq/rules/**/*.md to the active agent resources" },
289
+ { label: "Verify", value: "tokenjuice doctor amazon-q" },
290
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
291
+ ];
292
+ if (result.backupPath) {
293
+ details.push({ label: "Backup", value: result.backupPath });
294
+ }
295
+ process.stdout.write(formatInstallSuccess("amazon-q", "rule", details));
296
+ });
297
+ const installAmpCommand = createHostCommand(() => installAmpInstructions(), (result) => {
298
+ const details = [
299
+ { label: "Instructions", value: result.instructionsPath },
300
+ { label: "Beta", value: "instruction-based guidance; Amp still owns command execution" },
301
+ { label: "Verify", value: "tokenjuice doctor amp" },
302
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
303
+ ];
304
+ if (result.backupPath) {
305
+ details.push({ label: "Backup", value: result.backupPath });
306
+ }
307
+ if (result.instructionsPaths && result.instructionsPaths.length > 1) {
308
+ details.push({ label: "Updated paths", value: result.instructionsPaths.join(", ") });
309
+ }
310
+ process.stdout.write(formatInstallSuccess("amp", "instructions", details));
311
+ });
312
+ const installAntigravityCommand = createFileInstallCommand(() => installAntigravityRule(), {
313
+ target: "antigravity",
314
+ noun: "rule",
315
+ pathLabel: "Rule",
316
+ pathKey: "rulePath",
317
+ beta: "rule-based guidance; Antigravity still owns command execution",
318
+ });
319
+ const installAnywhereAgentsCommand = createHostCommand(() => installAnywhereAgentsInstructions(), (result) => {
320
+ const details = [
321
+ { label: "Instructions", value: result.instructionsPath },
322
+ { label: "Beta", value: "AGENTS.local.md guidance; run anywhere-agents to regenerate downstream files" },
323
+ { label: "Sync", value: result.syncCommand },
324
+ { label: "Verify", value: "tokenjuice doctor anywhere-agents" },
325
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
326
+ ];
327
+ if (result.backupPath) {
328
+ details.push({ label: "Backup", value: result.backupPath });
329
+ }
330
+ process.stdout.write(formatInstallSuccess("anywhere-agents", "instructions", details));
331
+ });
332
+ const installAugmentCommand = createFileInstallCommand(() => installAugmentRule(), {
333
+ target: "augment",
334
+ noun: "rule",
335
+ pathLabel: "Rule",
336
+ pathKey: "rulePath",
337
+ beta: "rule-based guidance; Augment still owns command execution",
338
+ });
339
+ const installAvanteCommand = createFileInstallCommand(() => installAvanteInstructions(), {
340
+ target: "avante",
341
+ noun: "instructions",
342
+ pathLabel: "Instructions",
343
+ pathKey: "instructionsPath",
344
+ beta: "instruction-based guidance; Avante still owns command execution",
345
+ });
346
+ const installBazCommand = createFileInstallCommand(() => installBazSkill(), {
347
+ target: "baz",
348
+ noun: "skill",
349
+ pathLabel: "Skill",
350
+ pathKey: "skillPath",
351
+ beta: "workspace skill guidance; Baz still owns review, fixer, and shell execution",
352
+ });
353
+ const installBitoCommand = createHostCommand(() => installBitoGuidelines(), (result) => {
354
+ const details = [
355
+ { label: "Config", value: result.configPath },
356
+ { label: "Guidelines", value: result.guidelinesPath },
357
+ { label: "Beta", value: "custom-guidelines guidance; Bito still owns PR review and tools" },
358
+ { label: "Verify", value: "tokenjuice doctor bito" },
359
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
360
+ ];
361
+ if (result.configBackupPath) {
362
+ details.push({ label: "Config backup", value: result.configBackupPath });
363
+ }
364
+ if (result.guidelinesBackupPath) {
365
+ details.push({ label: "Guidelines backup", value: result.guidelinesBackupPath });
366
+ }
367
+ process.stdout.write(formatInstallSuccess("bito", "custom guidelines", details));
368
+ });
369
+ const installBlackboxCommand = createFileInstallCommand(() => installBlackboxSkill(), {
370
+ target: "blackbox",
371
+ noun: "skill",
372
+ pathLabel: "Skill",
373
+ pathKey: "skillPath",
374
+ beta: "workspace skill guidance; Blackbox still owns shell execution",
375
+ });
376
+ const installBlocksCommand = createFileInstallCommand(() => installBlocksSkill(), {
377
+ target: "blocks",
378
+ noun: "skill",
379
+ pathLabel: "Skill",
380
+ pathKey: "skillPath",
381
+ beta: "workspace skill guidance; Blocks still owns shell execution",
382
+ });
383
+ const installClawdbotCommand = createFileInstallCommand(() => installClawdbotSkill(), {
384
+ target: "clawdbot",
385
+ noun: "skill",
386
+ pathLabel: "Skill",
387
+ pathKey: "skillPath",
388
+ beta: "workspace skill guidance; Clawdbot still owns shell execution",
389
+ });
390
+ const installBobCommand = createFileInstallCommand(() => installBobInstructions(), {
391
+ target: "bob",
392
+ noun: "instructions",
393
+ pathLabel: "Instructions",
394
+ pathKey: "instructionsPath",
395
+ beta: "instruction-based guidance; IBM Bob still owns command execution",
396
+ });
397
+ const installBuilderCommand = createFileInstallCommand(() => installBuilderRule(), {
398
+ target: "builder",
399
+ noun: "rule",
400
+ pathLabel: "Rule",
401
+ pathKey: "rulePath",
402
+ beta: "rule-based guidance; Builder still owns command execution",
403
+ });
404
+ const installCharlieCommand = createFileInstallCommand(() => installCharlieInstructions(), {
405
+ target: "charlie",
406
+ noun: "instructions",
407
+ pathLabel: "Instructions",
408
+ pathKey: "instructionsPath",
409
+ beta: "AGENTS.md-based guidance; Charlie still owns command execution",
410
+ });
411
+ const installCodexCommand = createHostCommand((args) => installCodexHook(undefined, {
412
+ local: args.local,
413
+ ...(args.noOmit ? { noOmit: true } : {}),
414
+ }), (result, args) => {
415
+ const details = [
416
+ { label: "Hook", value: result.hooksPath },
417
+ { label: "Command", value: result.command },
418
+ { label: "Writer", value: `${result.writer} (${result.fragmentId})` },
419
+ ];
420
+ if (result.featureFlag.enabled) {
421
+ const source = result.featureFlag.key ? `[features].${result.featureFlag.key}` : "default-on";
422
+ details.push({ label: "Feature flag", value: `hooks enabled via ${source} (${result.featureFlag.configPath})` });
423
+ }
424
+ else {
425
+ const where = result.featureFlag.configExists
426
+ ? `${result.featureFlag.configPath} (missing or disabled)`
427
+ : `no ${result.featureFlag.configPath}`;
428
+ details.push({ label: "Feature flag", value: `hooks disabled - ${where}` });
429
+ details.push({ label: "Enable", value: result.featureFlag.fixHint });
430
+ }
431
+ if (result.backupPath) {
432
+ details.push({ label: "Backup", value: result.backupPath });
433
+ }
434
+ details.push({ label: "Verify", value: `tokenjuice doctor hooks${args.local ? " --local" : ""}` });
435
+ details.push({ label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" });
436
+ process.stdout.write(formatInstallSuccess("codex", "hook", details));
437
+ });
438
+ const installClaudeCodeCommand = createHostCommand((args) => installClaudeCodeHook(undefined, { local: args.local }), (result, args) => {
439
+ const details = [
440
+ { label: "Hook", value: result.settingsPath },
441
+ { label: "Command", value: result.command },
442
+ ];
443
+ if (result.backupPath) {
444
+ details.push({ label: "Backup", value: result.backupPath });
445
+ }
446
+ details.push({ label: "Verify", value: `tokenjuice doctor hooks${args.local ? " --local" : ""}` });
447
+ process.stdout.write(formatInstallSuccess("claude-code", "hook", details));
448
+ });
449
+ const installClineCommand = createHostCommand((args) => installClineHook(undefined, { local: args.local }), (result, args) => {
450
+ const details = [
451
+ { label: "Hook", value: result.hookPath },
452
+ { label: "Command", value: result.command },
453
+ { label: "Beta", value: "PreToolUse wrapping; restart Cline after install" },
454
+ { label: "Verify", value: `tokenjuice doctor cline${args.local ? " --local" : ""}` },
455
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
456
+ ];
457
+ process.stdout.write(formatInstallSuccess("cline", "hook", details));
458
+ });
459
+ const installCodeantCommand = createFileInstallCommand(() => installCodeAntInstructions(), {
460
+ target: "codeant",
461
+ noun: "instructions",
462
+ pathLabel: "Instructions",
463
+ pathKey: "instructionsPath",
464
+ beta: "instructions-based guidance; CodeAnt still owns review and fixes",
465
+ });
466
+ const installCodebuffCommand = createFileInstallCommand(() => installCodebuffInstructions(), {
467
+ target: "codebuff",
468
+ noun: "instructions",
469
+ pathLabel: "Instructions",
470
+ pathKey: "instructionsPath",
471
+ beta: "instruction-based guidance; Codebuff still owns command execution",
472
+ });
473
+ const installCodegenCommand = createFileInstallCommand(() => installCodegenInstructions(), {
474
+ target: "codegen",
475
+ noun: "instructions",
476
+ pathLabel: "Instructions",
477
+ pathKey: "instructionsPath",
478
+ beta: "rule-file guidance; Codegen still owns command execution",
479
+ });
480
+ const installCoderAgentsCommand = createFileInstallCommand(() => installCoderAgentsSkill(), {
481
+ target: "coder-agents",
482
+ noun: "skill",
483
+ pathLabel: "Skill",
484
+ pathKey: "skillPath",
485
+ beta: "workspace skill guidance; Coder Agents still owns shell execution",
486
+ });
487
+ const installCodebuddyCommand = createHostCommand((args) => installCodeBuddyHook(undefined, { local: args.local }), (result, args) => {
488
+ process.stdout.write(formatCodeBuddyInstallSuccess({ ...result, local: args.local }));
489
+ });
490
+ const installCommandCodeCommand = async (args) => {
491
+ await installCommandCodeHook(undefined, { local: args.local });
492
+ return 0;
493
+ };
494
+ const installContinueCommand = createFileInstallCommand(() => installContinueRule(), {
495
+ target: "continue",
496
+ noun: "rule",
497
+ pathLabel: "Rule",
498
+ pathKey: "rulePath",
499
+ beta: "rule-based guidance; Continue still owns command execution",
500
+ });
501
+ const installCopilotAgentCommand = createHostCommand((args) => installCopilotAgentHook(undefined, { local: args.local }), (result, args) => {
502
+ const details = [
503
+ { label: "Hook", value: result.hooksPath },
504
+ { label: "Command", value: result.command },
505
+ { label: "Beta", value: "repo-level PostToolUse hook for Copilot coding agent bash output" },
506
+ { label: "Verify", value: `tokenjuice doctor copilot-agent${args.local ? " --local" : ""}` },
507
+ { label: "Cloud agent", value: "ensure tokenjuice is available in PATH before Copilot cloud agent hooks run" },
508
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
509
+ ];
510
+ if (result.backupPath) {
511
+ details.push({ label: "Backup", value: result.backupPath });
512
+ }
513
+ process.stdout.write(formatInstallSuccess("copilot-agent", "hook", details));
514
+ });
515
+ const installCrushCommand = createFileInstallCommand(() => installCrushSkill(), {
516
+ target: "crush",
517
+ noun: "skill",
518
+ pathLabel: "Skill",
519
+ pathKey: "skillPath",
520
+ beta: "project-local Agent Skill; Crush still owns command execution",
521
+ });
522
+ const installCursorCommand = createHostCommand((args) => installCursorHook(undefined, { local: args.local }), (result, args) => {
523
+ const details = [
524
+ { label: "Hook", value: result.hooksPath },
525
+ { label: "Command", value: result.command },
526
+ ];
527
+ if (result.backupPath) {
528
+ details.push({ label: "Backup", value: result.backupPath });
529
+ }
530
+ details.push({ label: "Verify", value: `tokenjuice doctor hooks${args.local ? " --local" : ""}` });
531
+ details.push({ label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" });
532
+ process.stdout.write(formatInstallSuccess("cursor", "hook", details));
533
+ });
534
+ const installDeepagentsCommand = createFileInstallCommand(() => installDeepAgentsInstructions(), {
535
+ target: "deepagents",
536
+ noun: "instructions",
537
+ pathLabel: "Instructions",
538
+ pathKey: "instructionsPath",
539
+ beta: "instruction-based guidance; Deep Agents Code still owns command execution",
540
+ });
541
+ const installDevinCommand = createHostCommand((args) => installDevinHook(undefined, { local: args.local }), (result, args) => {
542
+ const details = [
543
+ { label: "Hook", value: result.hooksPath },
544
+ { label: "Command", value: result.command },
545
+ { label: "Beta", value: "project-local PreToolUse hook rewrites exec commands before Devin runs them" },
546
+ { label: "Verify", value: `tokenjuice doctor devin${args.local ? " --local" : ""}` },
547
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
548
+ ];
549
+ if (result.backupPath) {
550
+ details.push({ label: "Backup", value: result.backupPath });
551
+ }
552
+ process.stdout.write(formatInstallSuccess("devin", "hook", details));
553
+ });
554
+ const installDotAgentsCommand = createHostCommand(() => installDotAgentsRule(), (result) => {
555
+ const details = [
556
+ { label: "Rule", value: result.rulePath },
557
+ { label: "Beta", value: "dot-agents global rule; run dot-agents sync to propagate it" },
558
+ { label: "Sync", value: result.syncCommand },
559
+ { label: "Verify", value: "tokenjuice doctor dot-agents" },
560
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
561
+ ];
562
+ if (result.backupPath) {
563
+ details.push({ label: "Backup", value: result.backupPath });
564
+ }
565
+ process.stdout.write(formatInstallSuccess("dot-agents", "rule", details));
566
+ });
567
+ const installDockerAgentCommand = createHostCommand(() => installDockerAgentPrompt(), (result) => {
568
+ const details = [
569
+ { label: "Prompt", value: result.promptPath },
570
+ { label: "Beta", value: "prompt-file guidance; Docker Agent still owns command execution" },
571
+ { label: "Load", value: "add .docker-agent/tokenjuice.md to agents.<name>.add_prompt_files" },
572
+ { label: "Verify", value: "tokenjuice doctor docker-agent" },
573
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
574
+ ];
575
+ if (result.backupPath) {
576
+ details.push({ label: "Backup", value: result.backupPath });
577
+ }
578
+ process.stdout.write(formatInstallSuccess("docker-agent", "prompt", details));
579
+ });
580
+ const installEcaCommand = createFileInstallCommand(() => installEcaSkill(), {
581
+ target: "eca",
582
+ noun: "skill",
583
+ pathLabel: "Skill",
584
+ pathKey: "skillPath",
585
+ beta: "project skill guidance; ECA still owns shell execution",
586
+ });
587
+ const installElyraCommand = createFileInstallCommand(() => installElyraSkill(), {
588
+ target: "elyra",
589
+ noun: "skill",
590
+ pathLabel: "Skill",
591
+ pathKey: "skillPath",
592
+ beta: "project skill guidance; Elyra still owns shell execution",
593
+ });
594
+ const installFirebaseStudioCommand = createFileInstallCommand(() => installFirebaseStudioRule(), {
595
+ target: "firebase-studio",
596
+ noun: "rules",
597
+ pathLabel: "Rules",
598
+ pathKey: "rulePath",
599
+ beta: "rule-based guidance; Gemini in Firebase still owns command execution",
600
+ });
601
+ const installForgecodeCommand = createFileInstallCommand(() => installForgeCodeInstructions(), {
602
+ target: "forgecode",
603
+ noun: "instructions",
604
+ pathLabel: "Instructions",
605
+ pathKey: "instructionsPath",
606
+ beta: "ForgeCode AGENTS.md guidance; ForgeCode still owns command execution",
607
+ });
608
+ const installGeminiCliCommand = createHostCommand((args) => installGeminiCliHook(undefined, { local: args.local }), (result, args) => {
609
+ const details = [
610
+ { label: "Hook", value: result.settingsPath },
611
+ { label: "Command", value: result.command },
612
+ { label: "Beta", value: "BeforeTool wrapping; Gemini CLI retains permission policy" },
613
+ { label: "Verify", value: `tokenjuice doctor gemini-cli${args.local ? " --local" : ""}` },
614
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
615
+ ];
616
+ if (result.backupPath) {
617
+ details.push({ label: "Backup", value: result.backupPath });
618
+ }
619
+ process.stdout.write(formatInstallSuccess("gemini-cli", "hook", details));
620
+ });
621
+ const installGitlabDuoCommand = createFileInstallCommand(() => installGitLabDuoRule(), {
622
+ target: "gitlab-duo",
623
+ noun: "rule",
624
+ pathLabel: "Rule",
625
+ pathKey: "rulePath",
626
+ beta: "custom-rules guidance; GitLab Duo still owns command execution",
627
+ });
628
+ const installGrokCliCommand = createHostCommand((args) => installGrokCliHook(undefined, { local: args.local }), (result, args) => {
629
+ const details = [
630
+ { label: "Hook", value: result.settingsPath },
631
+ { label: "Command", value: result.command },
632
+ { label: "Beta", value: "user-level PostToolUse hook; compacted context is injected alongside original output" },
633
+ { label: "Verify", value: `tokenjuice doctor grok-cli${args.local ? " --local" : ""}` },
634
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
635
+ ];
636
+ if (result.backupPath) {
637
+ details.push({ label: "Backup", value: result.backupPath });
638
+ }
639
+ process.stdout.write(formatInstallSuccess("grok-cli", "hook", details));
640
+ });
641
+ const installGptmeCommand = createFileInstallCommand(() => installGptmeInstructions(), {
642
+ target: "gptme",
643
+ noun: "instructions",
644
+ pathLabel: "Instructions",
645
+ pathKey: "instructionsPath",
646
+ beta: "instruction-based guidance; gptme still owns command execution",
647
+ });
648
+ const installJean2Command = createFileInstallCommand(() => installJean2Instructions(), {
649
+ target: "jean2",
650
+ noun: "instructions",
651
+ pathLabel: "Instructions",
652
+ pathKey: "instructionsPath",
653
+ beta: "instruction-file guidance; Jean2 still owns command execution",
654
+ });
655
+ const installGrokBuildCommand = createFileInstallCommand(() => installGrokBuildInstructions(), {
656
+ target: "grok-build",
657
+ noun: "instructions",
658
+ pathLabel: "Instructions",
659
+ pathKey: "instructionsPath",
660
+ beta: "instruction-based guidance; Grok Build still owns command execution",
661
+ });
662
+ const installGrokBotCommand = createFileInstallCommand(() => installGrokBotRule(), {
663
+ target: "grok-bot",
664
+ noun: "rule",
665
+ pathLabel: "Rule",
666
+ pathKey: "rulePath",
667
+ beta: ".cursor/rules guidance; Grok Bot still owns execution and output delivery",
668
+ });
669
+ const installGooseCommand = createHostCommand(() => installGooseHints(), (result) => {
670
+ const details = [
671
+ { label: "Hints", value: result.hintsPath },
672
+ { label: "Beta", value: "hints-based guidance; Goose still owns command execution" },
673
+ { label: "Reload", value: "restart Goose so the updated .goosehints file is loaded" },
674
+ { label: "Verify", value: "tokenjuice doctor goose" },
675
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
676
+ ];
677
+ if (result.backupPath) {
678
+ details.push({ label: "Backup", value: result.backupPath });
679
+ }
680
+ process.stdout.write(formatInstallSuccess("goose", "hints", details));
681
+ });
682
+ const installGreptileCommand = createFileInstallCommand(() => installGreptileRule(), {
683
+ target: "greptile",
684
+ noun: "rule",
685
+ pathLabel: "Rule",
686
+ pathKey: "rulePath",
687
+ beta: "rules-based guidance; Greptile still owns PR review and runtime inspection",
688
+ });
689
+ const installQodoCommand = createFileInstallCommand(() => installQodoReviewConfig(), {
690
+ target: "qodo",
691
+ noun: "review config",
692
+ pathLabel: "Config",
693
+ pathKey: "configPath",
694
+ beta: "review-guideline guidance; Qodo still owns PR review and CI feedback",
695
+ });
696
+ const installCoderabbitCommand = createFileInstallCommand(() => installCodeRabbitConfig(), {
697
+ target: "coderabbit",
698
+ noun: "review config",
699
+ pathLabel: "Config",
700
+ pathKey: "configPath",
701
+ beta: "path-instruction guidance; CodeRabbit still owns PR review and tools",
702
+ });
703
+ const installJetbrainsAiCommand = createFileInstallCommand(() => installJetBrainsAiRule(), {
704
+ target: "jetbrains-ai",
705
+ noun: "rule",
706
+ pathLabel: "Rule",
707
+ pathKey: "rulePath",
708
+ beta: "rule-based guidance; JetBrains AI Assistant still owns command execution",
709
+ });
710
+ const installJunieCommand = createFileInstallCommand(() => installJunieInstructions(), {
711
+ target: "junie",
712
+ noun: "instructions",
713
+ pathLabel: "Instructions",
714
+ pathKey: "instructionsPath",
715
+ beta: "instruction-based guidance; Junie still owns command execution",
716
+ });
717
+ const installJulesCommand = createFileInstallCommand(() => installJulesInstructions(), {
718
+ target: "jules",
719
+ noun: "instructions",
720
+ pathLabel: "Instructions",
721
+ pathKey: "instructionsPath",
722
+ beta: "instruction-based guidance; Jules still owns command execution",
723
+ });
724
+ const installLeanctlCommand = createFileInstallCommand(() => installLeanCtlInstructions(), {
725
+ target: "leanctl",
726
+ noun: "instructions",
727
+ pathLabel: "Instructions",
728
+ pathKey: "instructionsPath",
729
+ beta: "project instruction guidance; LeanCTL still owns command execution",
730
+ });
731
+ const installKimiCommand = createHostCommand((args) => installKimiHook(undefined, { local: args.local }), (result, args) => {
732
+ const details = [
733
+ { label: "Config", value: result.configPath },
734
+ { label: "Command", value: result.command },
735
+ { label: "Beta", value: "PostToolUse Shell hook; compacted context is injected alongside original output" },
736
+ { label: "Verify", value: `tokenjuice doctor kimi${args.local ? " --local" : ""}` },
737
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
738
+ ];
739
+ if (result.backupPath) {
740
+ details.push({ label: "Backup", value: result.backupPath });
741
+ }
742
+ process.stdout.write(formatInstallSuccess("kimi", "hook", details));
743
+ });
744
+ const installLocalcodeCommand = createHostCommand(() => installLocalCodePlugin(), (result) => {
745
+ const details = [
746
+ { label: "Plugin", value: result.pluginDir },
747
+ { label: "Manifest", value: result.manifestPath },
748
+ { label: "Entrypoint", value: result.indexPath },
749
+ { label: "Tool", value: "tokenjuice_compact_terminal_output" },
750
+ { label: "Command", value: "/tokenjuice" },
751
+ { label: "Beta", value: "plugin tool/command; compacts provided output only" },
752
+ { label: "Verify", value: "tokenjuice doctor localcode" },
753
+ ];
754
+ if (result.manifestBackupPath) {
755
+ details.push({ label: "Manifest backup", value: result.manifestBackupPath });
756
+ }
757
+ if (result.indexBackupPath) {
758
+ details.push({ label: "Entrypoint backup", value: result.indexBackupPath });
759
+ }
760
+ process.stdout.write(formatInstallSuccess("localcode", "plugin", details));
761
+ });
762
+ const installKiroCommand = createFileInstallCommand(() => installKiroSteering(), {
763
+ target: "kiro",
764
+ noun: "steering",
765
+ pathLabel: "Steering",
766
+ pathKey: "steeringPath",
767
+ beta: "steering-based guidance; Kiro still owns command execution",
768
+ });
769
+ const installKiloCommand = createHostCommand(() => installKiloRule(), (result) => {
770
+ const details = [
771
+ { label: "Rule", value: result.rulePath },
772
+ { label: "Config", value: result.configPath },
773
+ { label: "Beta", value: "rule-based guidance; Kilo Code still owns command execution" },
774
+ { label: "Verify", value: "tokenjuice doctor kilo" },
775
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
776
+ ];
777
+ if (result.backupPath) {
778
+ details.push({ label: "Backup", value: result.backupPath });
779
+ }
780
+ if (result.configBackupPath) {
781
+ details.push({ label: "Config backup", value: result.configBackupPath });
782
+ }
783
+ process.stdout.write(formatInstallSuccess("kilo", "rule", details));
784
+ });
785
+ const installMcpAgentCommand = createHostCommand(() => installMcpAgentDefinition(), (result) => {
786
+ const details = [
787
+ { label: "Agent", value: result.agentPath },
788
+ { label: "Beta", value: "agent-file guidance; mcp-agent still owns command execution" },
789
+ { label: "Load", value: "enable .mcp-agent/agents in mcp_agent.config.yaml agents.search_paths" },
790
+ { label: "Verify", value: "tokenjuice doctor mcp-agent" },
791
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
792
+ ];
793
+ if (result.backupPath) {
794
+ details.push({ label: "Backup", value: result.backupPath });
795
+ }
796
+ process.stdout.write(formatInstallSuccess("mcp-agent", "agent", details));
797
+ });
798
+ const installMistralVibeCommand = createFileInstallCommand(() => installMistralVibeInstructions(), {
799
+ target: "mistral-vibe",
800
+ noun: "instructions",
801
+ pathLabel: "Instructions",
802
+ pathKey: "instructionsPath",
803
+ beta: "instruction-based guidance; Mistral Vibe still owns command execution",
804
+ });
805
+ const installMiniSweAgentCommand = createHostCommand(() => installMiniSweAgentConfig(), (result) => {
806
+ const details = [
807
+ { label: "Config", value: result.configPath },
808
+ { label: "Beta", value: "config-fragment guidance; mini-SWE-agent still owns command execution" },
809
+ { label: "Load", value: "mini -c mini.yaml -c .mini-swe-agent/tokenjuice.yaml" },
810
+ { label: "Verify", value: "tokenjuice doctor mini-swe-agent" },
811
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
812
+ ];
813
+ if (result.backupPath) {
814
+ details.push({ label: "Backup", value: result.backupPath });
815
+ }
816
+ process.stdout.write(formatInstallSuccess("mini-swe-agent", "config", details));
817
+ });
818
+ const installSweAgentCommand = createHostCommand(() => installSweAgentConfig(), (result) => {
819
+ const details = [
820
+ { label: "Config", value: result.configPath },
821
+ { label: "Beta", value: "config-fragment guidance; SWE-agent still owns command execution" },
822
+ { label: "Load", value: "sweagent run --config config/default.yaml --config .swe-agent/tokenjuice.yaml" },
823
+ { label: "Verify", value: "tokenjuice doctor swe-agent" },
824
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
825
+ ];
826
+ if (result.backupPath) {
827
+ details.push({ label: "Backup", value: result.backupPath });
828
+ }
829
+ process.stdout.write(formatInstallSuccess("swe-agent", "config", details));
830
+ });
831
+ const installStagewiseCommand = createFileInstallCommand(() => installStagewiseSkill(), {
832
+ target: "stagewise",
833
+ noun: "skill",
834
+ pathLabel: "Skill",
835
+ pathKey: "skillPath",
836
+ beta: "workspace skill guidance; Stagewise still owns shell execution",
837
+ });
838
+ const installMuxCommand = createHostCommand((args) => installMuxHook(undefined, { local: args.local }), (result, args) => {
839
+ const details = [
840
+ { label: "Hook", value: result.hookPath },
841
+ { label: "Command", value: result.command },
842
+ { label: "Beta", value: "project-local tool_post hook; compacted context is injected alongside original output" },
843
+ { label: "Verify", value: `tokenjuice doctor mux${args.local ? " --local" : ""}` },
844
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
845
+ ];
846
+ if (result.backupPath) {
847
+ details.push({ label: "Backup", value: result.backupPath });
848
+ }
849
+ process.stdout.write(formatInstallSuccess("mux", "hook", details));
850
+ });
851
+ const installNovakitCommand = createFileInstallCommand(() => installNovaKitInstructions(), {
852
+ target: "novakit",
853
+ noun: "instructions",
854
+ pathLabel: "Instructions",
855
+ pathKey: "instructionsPath",
856
+ beta: "NOVAKIT.md guidance; NovaKit still owns command execution",
857
+ });
858
+ const installKnownsCommand = createFileInstallCommand(() => installKnownsInstructions(), {
859
+ target: "knowns",
860
+ noun: "instructions",
861
+ pathLabel: "Instructions",
862
+ pathKey: "instructionsPath",
863
+ beta: "KNOWNS.md guidance; Knowns still owns MCP/project memory",
864
+ });
865
+ const installOnaCommand = createFileInstallCommand(() => installOnaSkill(), {
866
+ target: "ona",
867
+ noun: "skill",
868
+ pathLabel: "Skill",
869
+ pathKey: "skillPath",
870
+ beta: "workspace skill guidance; Ona still owns command execution",
871
+ });
872
+ const installWarpCommand = createFileInstallCommand(() => installWarpInstructions(), {
873
+ target: "warp",
874
+ noun: "instructions",
875
+ pathLabel: "Instructions",
876
+ pathKey: "instructionsPath",
877
+ beta: "instruction-based guidance; Warp still owns command execution",
878
+ });
879
+ const installOpenhandsCommand = async (args) => {
880
+ await installOpenHandsHook(undefined, { local: args.local });
881
+ return 0;
882
+ };
883
+ const installOpenInterpreterCommand = createFileInstallCommand(() => installOpenInterpreterInstructions(), {
884
+ target: "open-interpreter",
885
+ noun: "instructions",
886
+ pathLabel: "Instructions",
887
+ pathKey: "instructionsPath",
888
+ beta: "instruction-based guidance; Open Interpreter still owns command execution",
889
+ });
890
+ const installOpenwebuiCommand = createHostCommand(() => installOpenWebUITool(), (result) => {
891
+ const details = [
892
+ { label: "Tool source", value: result.toolPath },
893
+ { label: "Beta", value: "Workspace Tool export; review and import manually in Open WebUI" },
894
+ { label: "Safety", value: "compacts provided output only; does not execute user commands" },
895
+ { label: "Verify", value: "tokenjuice doctor openwebui" },
896
+ ];
897
+ if (result.backupPath) {
898
+ details.push({ label: "Backup", value: result.backupPath });
899
+ }
900
+ process.stdout.write(formatInstallSuccess("openwebui", "tool source", details));
901
+ });
902
+ const installPlandexCommand = createHostCommand(() => installPlandexConvention(), (result) => {
903
+ const details = [
904
+ { label: "Convention", value: result.conventionPath },
905
+ { label: "Beta", value: "context-based guidance; Plandex still owns command execution" },
906
+ { label: "Load", value: formatPlandexLoadCommand(result.conventionPath) },
907
+ { label: "Verify", value: "tokenjuice doctor plandex" },
908
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
909
+ ];
910
+ if (result.backupPath) {
911
+ details.push({ label: "Backup", value: result.backupPath });
912
+ }
913
+ process.stdout.write(formatInstallSuccess("plandex", "convention", details));
914
+ });
915
+ const installAnteCommand = createFileInstallCommand(() => installAnteInstructions(), {
916
+ target: "ante",
917
+ noun: "instructions",
918
+ pathLabel: "Instructions",
919
+ pathKey: "instructionsPath",
920
+ beta: "instruction-based guidance; Ante still owns command execution",
921
+ });
922
+ const installQoderCommand = createFileInstallCommand(() => installQoderInstructions(), {
923
+ target: "qoder",
924
+ noun: "instructions",
925
+ pathLabel: "Instructions",
926
+ pathKey: "instructionsPath",
927
+ beta: "instruction-based guidance; Qoder still owns command execution",
928
+ });
929
+ const installReplitCommand = createFileInstallCommand(() => installReplitInstructions(), {
930
+ target: "replit",
931
+ noun: "instructions",
932
+ pathLabel: "Instructions",
933
+ pathKey: "instructionsPath",
934
+ beta: "instruction-based guidance; Replit Agent still owns command execution",
935
+ });
936
+ const installQoderCliCommand = createHostCommand((args) => installQoderHook(undefined, { local: args.local }), (result, args) => {
937
+ const details = [
938
+ { label: "Hook", value: result.settingsPath },
939
+ { label: "Command", value: result.command },
940
+ { label: "Beta", value: "synchronous Bash output replacement; verify live Qoder CLI behavior" },
941
+ { label: "Verify", value: `tokenjuice doctor qoder-cli${args.local ? " --local" : ""}` },
942
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
943
+ ];
944
+ if (result.backupPath) {
945
+ details.push({ label: "Backup", value: result.backupPath });
946
+ }
947
+ process.stdout.write(formatInstallSuccess("qoder-cli", "hook", details));
948
+ });
949
+ const installQoderWorkCommand = createHostCommand(() => installQoderWorkSkill(), (result) => {
950
+ process.stdout.write(formatInstallSuccess("qoderwork", "skill", [
951
+ { label: "Skill", value: result.skillPath },
952
+ { label: "Beta", value: "guidance skill; verify discovery and execution inside QoderWork" },
953
+ { label: "Verify", value: "tokenjuice doctor qoderwork" },
954
+ ...(result.backupPath ? [{ label: "Backup", value: result.backupPath }] : []),
955
+ ]));
956
+ });
957
+ const installQwenWorkCommand = createHostCommand(() => installQwenWorkSkill(), (result) => {
958
+ process.stdout.write(formatInstallSuccess("qwenwork", "skill", [
959
+ { label: "Skill", value: result.skillPath },
960
+ { label: "Beta", value: "guidance skill; verify discovery and execution inside QwenWork" },
961
+ { label: "Verify", value: "tokenjuice doctor qwenwork" },
962
+ ...(result.backupPath ? [{ label: "Backup", value: result.backupPath }] : []),
963
+ ]));
964
+ });
965
+ const installQwenCodeCommand = createHostCommand((args) => installQwenCodeHook(undefined, { local: args.local }), (result, args) => {
966
+ const details = [
967
+ { label: "Hook", value: result.settingsPath },
968
+ { label: "Command", value: result.command },
969
+ { label: "Beta", value: "project-local PreToolUse wrapping; Qwen Code retains permission policy" },
970
+ { label: "Verify", value: `tokenjuice doctor qwen-code${args.local ? " --local" : ""}` },
971
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
972
+ ];
973
+ if (result.backupPath) {
974
+ details.push({ label: "Backup", value: result.backupPath });
975
+ }
976
+ process.stdout.write(formatInstallSuccess("qwen-code", "hook", details));
977
+ });
978
+ const installPiCommand = createHostCommand((args) => installPiExtension(undefined, {
979
+ local: args.local,
980
+ skipCommandNames: args.skipCommandNames,
981
+ }), (result, args) => {
982
+ const details = [
983
+ { label: "Extension", value: result.extensionPath },
984
+ ];
985
+ if (result.backupPath) {
986
+ details.push({ label: "Backup", value: result.backupPath });
987
+ }
988
+ if (args.skipCommandNames.length > 0) {
989
+ details.push({ label: "Skipped commands", value: [...new Set(args.skipCommandNames)].join(", ") });
990
+ }
991
+ details.push({ label: "Reload", value: "/reload" });
992
+ details.push({ label: "Usage in pi", value: "/tj status | /tj on | /tj off | /tj raw-next" });
993
+ process.stdout.write(formatInstallSuccess("pi", "extension", details));
994
+ });
995
+ const installPiGoCommand = createFileInstallCommand(() => installPiGoSkill(), {
996
+ target: "pi-go",
997
+ noun: "skill",
998
+ pathLabel: "Skill",
999
+ pathKey: "skillPath",
1000
+ beta: "project skill guidance; pi-go still owns shell execution",
1001
+ });
1002
+ const installOpencodeV2Command = createHostCommand((args) => installOpenCodeV2Extension({ local: args.local }), (result) => {
1003
+ process.stdout.write(formatInstallSuccess("opencode-v2", "extension", [
1004
+ { label: "Extension", value: result.extensionPath },
1005
+ { label: "Verify", value: "tokenjuice doctor opencode-v2" },
1006
+ { label: "Beta", value: "V2 shell output replacement; verify loading in a fresh session" },
1007
+ ...(result.backupPath ? [{ label: "Backup", value: result.backupPath }] : []),
1008
+ ]));
1009
+ });
1010
+ const installOpencodeCommand = createHostCommand((args) => installOpenCodeExtension(undefined, { local: args.local }), (result) => {
1011
+ const details = [
1012
+ { label: "Extension", value: result.extensionPath },
1013
+ ];
1014
+ if (result.backupPath) {
1015
+ details.push({ label: "Backup", value: result.backupPath });
1016
+ }
1017
+ details.push({ label: "Reload", value: "restart opencode (the plugin is auto-loaded on session start)" });
1018
+ details.push({ label: "Verify", value: "tokenjuice doctor opencode" });
1019
+ process.stdout.write(formatInstallSuccess("opencode", "extension", details));
1020
+ });
1021
+ const installRooCommand = createFileInstallCommand(() => installRooInstructions(), {
1022
+ target: "roo",
1023
+ noun: "rules",
1024
+ pathLabel: "Rules",
1025
+ pathKey: "instructionsPath",
1026
+ beta: "rule-based guidance; Roo Code still owns command execution",
1027
+ });
1028
+ const installRovoCommand = createFileInstallCommand(() => installRovoInstructions(), {
1029
+ target: "rovo",
1030
+ noun: "instructions",
1031
+ pathLabel: "Instructions",
1032
+ pathKey: "instructionsPath",
1033
+ beta: "instruction-based guidance; Rovo Dev CLI still owns command execution",
1034
+ });
1035
+ const installRulerCommand = createHostCommand(() => installRulerRule(), (result) => {
1036
+ const details = [
1037
+ { label: "Rule", value: result.rulePath },
1038
+ { label: "Beta", value: "rule-based guidance; run ruler apply to propagate it" },
1039
+ { label: "Apply", value: "ruler apply" },
1040
+ { label: "Verify", value: "tokenjuice doctor ruler" },
1041
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
1042
+ ];
1043
+ if (result.backupPath) {
1044
+ details.push({ label: "Backup", value: result.backupPath });
1045
+ }
1046
+ process.stdout.write(formatInstallSuccess("ruler", "rule", details));
1047
+ });
1048
+ const installTabnineCommand = createFileInstallCommand(() => installTabnineInstructions(), {
1049
+ target: "tabnine",
1050
+ noun: "instructions",
1051
+ pathLabel: "Instructions",
1052
+ pathKey: "instructionsPath",
1053
+ beta: "instruction-based guidance; Tabnine CLI still owns command execution",
1054
+ });
1055
+ const installTabbyCommand = createFileInstallCommand(() => installTabbySystemPrompt(), {
1056
+ target: "tabby",
1057
+ noun: "system prompt",
1058
+ pathLabel: "Config",
1059
+ pathKey: "configPath",
1060
+ beta: "system-prompt guidance; Tabby still owns command execution",
1061
+ });
1062
+ const installTraeCommand = createFileInstallCommand(() => installTraeRule(), {
1063
+ target: "trae",
1064
+ noun: "rule",
1065
+ pathLabel: "Rule",
1066
+ pathKey: "rulePath",
1067
+ beta: "rule-based guidance; Trae still owns command execution",
1068
+ });
1069
+ const installUipathCommand = createFileInstallCommand(() => installUiPathInstructions(), {
1070
+ target: "uipath",
1071
+ noun: "instructions",
1072
+ pathLabel: "Instructions",
1073
+ pathKey: "instructionsPath",
1074
+ beta: "instruction-file guidance; the active coding agent still owns command execution",
1075
+ });
1076
+ const installVscodeCopilotCommand = createHostCommand((args) => installVscodeCopilotHook(undefined, { local: args.local }), (result, args) => {
1077
+ const details = [
1078
+ { label: "Hook", value: result.hooksPath },
1079
+ { label: "Command", value: result.command },
1080
+ ];
1081
+ if (result.backupPath) {
1082
+ details.push({ label: "Backup", value: result.backupPath });
1083
+ }
1084
+ if (result.migratedFromPath) {
1085
+ details.push({ label: "Migrated", value: result.migratedFromPath });
1086
+ }
1087
+ details.push({ label: "Enable", value: "turn on chat.useHooks in VS Code settings and trust the workspace" });
1088
+ details.push({ label: "Guidance", value: "tokenjuice doctor vscode-copilot --print-instructions" });
1089
+ details.push({ label: "Verify", value: `tokenjuice doctor vscode-copilot${args.local ? " --local" : ""}` });
1090
+ details.push({ label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" });
1091
+ process.stdout.write(formatInstallSuccess("vscode-copilot", "hook", details));
1092
+ });
1093
+ const installWindsurfCommand = createFileInstallCommand(() => installWindsurfRule(), {
1094
+ target: "windsurf",
1095
+ noun: "rule",
1096
+ pathLabel: "Rule",
1097
+ pathKey: "rulePath",
1098
+ beta: "rule-based guidance; Windsurf still owns command execution",
1099
+ });
1100
+ const installCopilotCliCommand = createHostCommand((args) => installCopilotCliHook(undefined, { local: args.local }), (result, args) => {
1101
+ const details = [
1102
+ { label: "Hook", value: result.hooksPath },
1103
+ { label: "Command", value: result.command },
1104
+ ];
1105
+ if (result.backupPath) {
1106
+ details.push({ label: "Backup", value: result.backupPath });
1107
+ }
1108
+ details.push({ label: "Guidance", value: "tokenjuice doctor copilot-cli --print-instructions" });
1109
+ details.push({ label: "Verify", value: `tokenjuice doctor copilot-cli${args.local ? " --local" : ""}` });
1110
+ details.push({ label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" });
1111
+ process.stdout.write(formatInstallSuccess("copilot-cli", "hook", details));
1112
+ });
1113
+ const installDroidCommand = createHostCommand((args) => installDroidHook(undefined, { local: args.local }), (result, args) => {
1114
+ const details = [
1115
+ { label: "Hook", value: result.settingsPath },
1116
+ { label: "Command", value: result.command },
1117
+ { label: "Verify", value: `tokenjuice doctor droid${args.local ? " --local" : ""}` },
1118
+ { label: "Escape hatch", value: "tokenjuice wrap --raw -- <command>" },
1119
+ ];
1120
+ if (result.backupPath) {
1121
+ details.push({ label: "Backup", value: result.backupPath });
1122
+ }
1123
+ process.stdout.write(formatInstallSuccess("droid", "hook", details));
1124
+ });
1125
+ const installZedCommand = createFileInstallCommand(() => installZedInstructions(), {
1126
+ target: "zed",
1127
+ noun: "rules",
1128
+ pathLabel: "Rules",
1129
+ pathKey: "instructionsPath",
1130
+ beta: "rule-based guidance; Zed still owns command execution",
1131
+ });
1132
+ const installZencoderCommand = createFileInstallCommand(() => installZencoderRule(), {
1133
+ target: "zencoder",
1134
+ noun: "rule",
1135
+ pathLabel: "Rule",
1136
+ pathKey: "rulePath",
1137
+ beta: "rule-based guidance; Zencoder still owns command execution",
1138
+ });
1139
+ export const installCommands = new Map([
1140
+ ["adal", installAdalCommand],
1141
+ ["aether", installAetherCommand],
1142
+ ["aider", installAiderCommand],
1143
+ ["aictl", installAictlCommand],
1144
+ ["ai-memory-protocol", installAiMemoryProtocolCommand],
1145
+ ["aimemoryprotocol", installAiMemoryProtocolCommand],
1146
+ ["agent-layer", installAgentLayerCommand],
1147
+ ["agentinit", installAgentinitCommand],
1148
+ ["agent-init", installAgentinitCommand],
1149
+ ["agentlink", installAgentlinkCommand],
1150
+ ["agentloom", installAgentloomCommand],
1151
+ ["agents-cli", installAgentsCliCommand],
1152
+ ["agents-md", installAgentsMdCommand],
1153
+ ["agentsmd", installAgentsMdCommand],
1154
+ ["agentsge", installAgentsgeCommand],
1155
+ ["agentsmesh", installAgentsmeshCommand],
1156
+ ["amazon-q", installAmazonQCommand],
1157
+ ["amp", installAmpCommand],
1158
+ ["antigravity", installAntigravityCommand],
1159
+ ["anywhere-agents", installAnywhereAgentsCommand],
1160
+ ["augment", installAugmentCommand],
1161
+ ["avante", installAvanteCommand],
1162
+ ["baz", installBazCommand],
1163
+ ["bito", installBitoCommand],
1164
+ ["blackbox", installBlackboxCommand],
1165
+ ["blocks", installBlocksCommand],
1166
+ ["clawdbot", installClawdbotCommand],
1167
+ ["bob", installBobCommand],
1168
+ ["builder", installBuilderCommand],
1169
+ ["charlie", installCharlieCommand],
1170
+ ["codex", installCodexCommand],
1171
+ ["claude-code", installClaudeCodeCommand],
1172
+ ["cline", installClineCommand],
1173
+ ["codeant", installCodeantCommand],
1174
+ ["codebuff", installCodebuffCommand],
1175
+ ["codegen", installCodegenCommand],
1176
+ ["coder-agents", installCoderAgentsCommand],
1177
+ ["coderagents", installCoderAgentsCommand],
1178
+ ["codebuddy", installCodebuddyCommand],
1179
+ ["command-code", installCommandCodeCommand],
1180
+ ["commandcode", installCommandCodeCommand],
1181
+ ["continue", installContinueCommand],
1182
+ ["copilot-agent", installCopilotAgentCommand],
1183
+ ["crush", installCrushCommand],
1184
+ ["cursor", installCursorCommand],
1185
+ ["deepagents", installDeepagentsCommand],
1186
+ ["devin", installDevinCommand],
1187
+ ["dot-agents", installDotAgentsCommand],
1188
+ ["docker-agent", installDockerAgentCommand],
1189
+ ["dockeragent", installDockerAgentCommand],
1190
+ ["cagent", installDockerAgentCommand],
1191
+ ["eca", installEcaCommand],
1192
+ ["elyra", installElyraCommand],
1193
+ ["firebase-studio", installFirebaseStudioCommand],
1194
+ ["forgecode", installForgecodeCommand],
1195
+ ["forge-code", installForgecodeCommand],
1196
+ ["gemini-cli", installGeminiCliCommand],
1197
+ ["gitlab-duo", installGitlabDuoCommand],
1198
+ ["grok-cli", installGrokCliCommand],
1199
+ ["gptme", installGptmeCommand],
1200
+ ["jean2", installJean2Command],
1201
+ ["grok-build", installGrokBuildCommand],
1202
+ ["grok-bot", installGrokBotCommand],
1203
+ ["grokbot", installGrokBotCommand],
1204
+ ["goose", installGooseCommand],
1205
+ ["greptile", installGreptileCommand],
1206
+ ["qodo", installQodoCommand],
1207
+ ["coderabbit", installCoderabbitCommand],
1208
+ ["jetbrains-ai", installJetbrainsAiCommand],
1209
+ ["junie", installJunieCommand],
1210
+ ["jules", installJulesCommand],
1211
+ ["leanctl", installLeanctlCommand],
1212
+ ["kimi", installKimiCommand],
1213
+ ["localcode", installLocalcodeCommand],
1214
+ ["local-code", installLocalcodeCommand],
1215
+ ["kiro", installKiroCommand],
1216
+ ["kilo", installKiloCommand],
1217
+ ["mcp-agent", installMcpAgentCommand],
1218
+ ["mcpagent", installMcpAgentCommand],
1219
+ ["mistral-vibe", installMistralVibeCommand],
1220
+ ["mistralvibe", installMistralVibeCommand],
1221
+ ["mini-swe-agent", installMiniSweAgentCommand],
1222
+ ["mini-sweagent", installMiniSweAgentCommand],
1223
+ ["swe-agent", installSweAgentCommand],
1224
+ ["sweagent", installSweAgentCommand],
1225
+ ["stagewise", installStagewiseCommand],
1226
+ ["mux", installMuxCommand],
1227
+ ["novakit", installNovakitCommand],
1228
+ ["knowns", installKnownsCommand],
1229
+ ["ona", installOnaCommand],
1230
+ ["warp", installWarpCommand],
1231
+ ["openhands", installOpenhandsCommand],
1232
+ ["open-interpreter", installOpenInterpreterCommand],
1233
+ ["openinterpreter", installOpenInterpreterCommand],
1234
+ ["openwebui", installOpenwebuiCommand],
1235
+ ["plandex", installPlandexCommand],
1236
+ ["ante", installAnteCommand],
1237
+ ["qoder", installQoderCommand],
1238
+ ["qoder-cli", installQoderCliCommand],
1239
+ ["replit", installReplitCommand],
1240
+ ["replit-agent", installReplitCommand],
1241
+ ["qwen-code", installQwenCodeCommand],
1242
+ ["qwenwork", installQwenWorkCommand],
1243
+ ["qoderwork", installQoderWorkCommand],
1244
+ ["pi", installPiCommand],
1245
+ ["pi-go", installPiGoCommand],
1246
+ ["pigo", installPiGoCommand],
1247
+ ["opencode", installOpencodeCommand],
1248
+ ["opencode-v2", installOpencodeV2Command],
1249
+ ["roo", installRooCommand],
1250
+ ["rovo", installRovoCommand],
1251
+ ["rovo-dev", installRovoCommand],
1252
+ ["ruler", installRulerCommand],
1253
+ ["tabnine", installTabnineCommand],
1254
+ ["tabby", installTabbyCommand],
1255
+ ["trae", installTraeCommand],
1256
+ ["uipath", installUipathCommand],
1257
+ ["vscode-copilot", installVscodeCopilotCommand],
1258
+ ["windsurf", installWindsurfCommand],
1259
+ ["copilot-cli", installCopilotCliCommand],
1260
+ ["droid", installDroidCommand],
1261
+ ["zed", installZedCommand],
1262
+ ["zencoder", installZencoderCommand],
1263
+ ]);