@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.
- package/README.md +1 -1
- package/dist/.source-module-urls/e1cd11006f37307698d3ccaa0b9377541a8f8fcd96acf7a0d93ee391c8c5abfa.json +1 -1
- package/dist/index.js +1 -2
- package/dist/tool-result-middleware.js +33 -19
- package/node_modules/tokenjuice/README.md +71 -272
- package/node_modules/tokenjuice/dist/cli/command-types.d.ts +36 -0
- package/node_modules/tokenjuice/dist/cli/command-types.js +1 -0
- package/node_modules/tokenjuice/dist/cli/doctor-commands.d.ts +2 -0
- package/node_modules/tokenjuice/dist/cli/doctor-commands.js +674 -0
- package/node_modules/tokenjuice/dist/cli/doctor-output.d.ts +2 -1
- package/node_modules/tokenjuice/dist/cli/doctor-output.js +9 -0
- package/node_modules/tokenjuice/dist/cli/host-command.d.ts +4 -0
- package/node_modules/tokenjuice/dist/cli/host-command.js +19 -0
- package/node_modules/tokenjuice/dist/cli/install-commands.d.ts +2 -0
- package/node_modules/tokenjuice/dist/cli/install-commands.js +1263 -0
- package/node_modules/tokenjuice/dist/cli/main.d.ts +2 -33
- package/node_modules/tokenjuice/dist/cli/main.js +255 -5950
- package/node_modules/tokenjuice/dist/cli/uninstall-commands.d.ts +2 -0
- package/node_modules/tokenjuice/dist/cli/uninstall-commands.js +554 -0
- package/node_modules/tokenjuice/dist/core/bounded-jsonl.js +15 -3
- package/node_modules/tokenjuice/dist/core/bounded-text-file.d.ts +3 -0
- package/node_modules/tokenjuice/dist/core/bounded-text-file.js +32 -0
- package/node_modules/tokenjuice/dist/core/classify.d.ts +0 -5
- package/node_modules/tokenjuice/dist/core/classify.js +1 -1
- package/node_modules/tokenjuice/dist/core/command-identity.d.ts +0 -2
- package/node_modules/tokenjuice/dist/core/command-identity.js +2 -2
- package/node_modules/tokenjuice/dist/core/command-match.d.ts +0 -3
- package/node_modules/tokenjuice/dist/core/command-match.js +88 -8
- package/node_modules/tokenjuice/dist/core/command.d.ts +0 -1
- package/node_modules/tokenjuice/dist/core/compaction-metadata.d.ts +1 -1
- package/node_modules/tokenjuice/dist/core/env.d.ts +1 -0
- package/node_modules/tokenjuice/dist/core/env.js +8 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-bash-result.d.ts +7 -3
- package/node_modules/tokenjuice/dist/core/integrations/compact-bash-result.js +190 -10
- package/node_modules/tokenjuice/dist/core/integrations/compact-copilot-result.d.ts +6 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-copilot-result.js +50 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-deepseek-result.d.ts +7 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-deepseek-result.js +46 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-framework-result.d.ts +11 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-framework-result.js +19 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-opencode-v2-result.d.ts +2 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-opencode-v2-result.js +39 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-qoder-result.d.ts +2 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-qoder-result.js +34 -0
- package/node_modules/tokenjuice/dist/core/integrations/openclaw-command.d.ts +2 -0
- package/node_modules/tokenjuice/dist/core/integrations/openclaw-command.js +13 -0
- package/node_modules/tokenjuice/dist/core/integrations/rewrite-cline-input.d.ts +4 -0
- package/node_modules/tokenjuice/dist/core/integrations/rewrite-cline-input.js +18 -0
- package/node_modules/tokenjuice/dist/core/inventory-safety.d.ts +0 -1
- package/node_modules/tokenjuice/dist/core/inventory-safety.js +1 -1
- package/node_modules/tokenjuice/dist/core/record-fields.d.ts +1 -0
- package/node_modules/tokenjuice/dist/core/record-fields.js +9 -0
- package/node_modules/tokenjuice/dist/core/reduce-inspection-summary.d.ts +2 -1
- package/node_modules/tokenjuice/dist/core/reduce-inspection-summary.js +7 -94
- package/node_modules/tokenjuice/dist/core/simple-yaml-frontmatter.d.ts +9 -0
- package/node_modules/tokenjuice/dist/core/simple-yaml-frontmatter.js +125 -0
- package/node_modules/tokenjuice/dist/core/source.d.ts +0 -1
- package/node_modules/tokenjuice/dist/core/source.js +14 -4
- package/node_modules/tokenjuice/dist/core/structural-markers.d.ts +11 -0
- package/node_modules/tokenjuice/dist/core/structural-markers.js +49 -0
- package/node_modules/tokenjuice/dist/core/text.d.ts +0 -1
- package/node_modules/tokenjuice/dist/core/text.js +0 -3
- package/node_modules/tokenjuice/dist/core/toml-structure.d.ts +2 -0
- package/node_modules/tokenjuice/dist/core/toml-structure.js +83 -0
- package/node_modules/tokenjuice/dist/core/validate-rules.d.ts +2 -2
- package/node_modules/tokenjuice/dist/core/wrap.js +1 -1
- package/node_modules/tokenjuice/dist/hosts/adal/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/adal/index.js +15 -125
- package/node_modules/tokenjuice/dist/hosts/aether/index.d.ts +2 -7
- package/node_modules/tokenjuice/dist/hosts/aether/index.js +17 -155
- package/node_modules/tokenjuice/dist/hosts/agent-layer/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/agent-layer/index.js +10 -64
- package/node_modules/tokenjuice/dist/hosts/agentinit/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/agentinit/index.js +15 -111
- package/node_modules/tokenjuice/dist/hosts/agentlink/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/agentlink/index.js +14 -97
- package/node_modules/tokenjuice/dist/hosts/agentloom/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/agentloom/index.js +11 -52
- package/node_modules/tokenjuice/dist/hosts/agents-cli/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/agents-cli/index.js +10 -41
- package/node_modules/tokenjuice/dist/hosts/agents-md/index.d.ts +5 -16
- package/node_modules/tokenjuice/dist/hosts/agents-md/index.js +16 -128
- package/node_modules/tokenjuice/dist/hosts/agentsge/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/agentsge/index.js +11 -52
- package/node_modules/tokenjuice/dist/hosts/agentsmesh/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/agentsmesh/index.js +10 -53
- package/node_modules/tokenjuice/dist/hosts/ai-memory-protocol/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/ai-memory-protocol/index.js +13 -42
- package/node_modules/tokenjuice/dist/hosts/aictl/index.d.ts +5 -16
- package/node_modules/tokenjuice/dist/hosts/aictl/index.js +17 -128
- package/node_modules/tokenjuice/dist/hosts/aider/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/aider/index.js +6 -18
- package/node_modules/tokenjuice/dist/hosts/amazon-q/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/amazon-q/index.js +31 -105
- package/node_modules/tokenjuice/dist/hosts/amp/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/amp/index.js +11 -72
- package/node_modules/tokenjuice/dist/hosts/ante/index.d.ts +11 -0
- package/node_modules/tokenjuice/dist/hosts/ante/index.js +76 -0
- package/node_modules/tokenjuice/dist/hosts/antigravity/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/antigravity/index.js +29 -117
- package/node_modules/tokenjuice/dist/hosts/anywhere-agents/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/anywhere-agents/index.js +14 -97
- package/node_modules/tokenjuice/dist/hosts/augment/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/augment/index.js +29 -117
- package/node_modules/tokenjuice/dist/hosts/avante/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/avante/index.js +5 -27
- package/node_modules/tokenjuice/dist/hosts/baz/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/baz/index.js +17 -132
- package/node_modules/tokenjuice/dist/hosts/bito/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/bito/index.js +11 -108
- package/node_modules/tokenjuice/dist/hosts/blackbox/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/blackbox/index.js +16 -157
- package/node_modules/tokenjuice/dist/hosts/blocks/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/blocks/index.js +16 -157
- package/node_modules/tokenjuice/dist/hosts/bob/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/bob/index.js +13 -123
- package/node_modules/tokenjuice/dist/hosts/builder/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/builder/index.js +34 -131
- package/node_modules/tokenjuice/dist/hosts/charlie/index.d.ts +5 -16
- package/node_modules/tokenjuice/dist/hosts/charlie/index.js +16 -140
- package/node_modules/tokenjuice/dist/hosts/claude-code/index.js +12 -49
- package/node_modules/tokenjuice/dist/hosts/clawdbot/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/clawdbot/index.js +48 -235
- package/node_modules/tokenjuice/dist/hosts/cline/index.d.ts +6 -13
- package/node_modules/tokenjuice/dist/hosts/cline/index.js +134 -135
- package/node_modules/tokenjuice/dist/hosts/codeant/index.d.ts +5 -16
- package/node_modules/tokenjuice/dist/hosts/codeant/index.js +12 -123
- package/node_modules/tokenjuice/dist/hosts/codebuddy/index.js +14 -58
- package/node_modules/tokenjuice/dist/hosts/codebuff/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/codebuff/index.js +13 -123
- package/node_modules/tokenjuice/dist/hosts/codegen/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/codegen/index.js +13 -123
- package/node_modules/tokenjuice/dist/hosts/coder-agents/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/coder-agents/index.js +25 -193
- package/node_modules/tokenjuice/dist/hosts/coderabbit/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/coderabbit/index.js +16 -173
- package/node_modules/tokenjuice/dist/hosts/codex/index.d.ts +3 -4
- package/node_modules/tokenjuice/dist/hosts/codex/index.js +26 -58
- package/node_modules/tokenjuice/dist/hosts/command-code/index.d.ts +6 -13
- package/node_modules/tokenjuice/dist/hosts/command-code/index.js +87 -331
- package/node_modules/tokenjuice/dist/hosts/continue/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/continue/index.js +6 -18
- package/node_modules/tokenjuice/dist/hosts/copilot-agent/index.d.ts +2 -11
- package/node_modules/tokenjuice/dist/hosts/copilot-agent/index.js +15 -166
- package/node_modules/tokenjuice/dist/hosts/copilot-cli/index.d.ts +2 -11
- package/node_modules/tokenjuice/dist/hosts/copilot-cli/index.js +24 -196
- package/node_modules/tokenjuice/dist/hosts/copilot-sdk/index.d.ts +12 -0
- package/node_modules/tokenjuice/dist/hosts/copilot-sdk/index.js +15 -0
- package/node_modules/tokenjuice/dist/hosts/crush/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/crush/index.js +6 -18
- package/node_modules/tokenjuice/dist/hosts/cursor/index.js +7 -8
- package/node_modules/tokenjuice/dist/hosts/deepagents/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/deepagents/index.js +15 -125
- package/node_modules/tokenjuice/dist/hosts/deepseek-harness/bundle/cordis.patch.yml +3 -0
- package/node_modules/tokenjuice/dist/hosts/deepseek-harness/bundle/index.js +9656 -0
- package/node_modules/tokenjuice/dist/hosts/deepseek-harness/bundle/package.json +18 -0
- package/node_modules/tokenjuice/dist/hosts/deepseek-harness/runtime.d.ts +7 -0
- package/node_modules/tokenjuice/dist/hosts/deepseek-harness/runtime.js +23 -0
- package/node_modules/tokenjuice/dist/hosts/devin/index.d.ts +2 -11
- package/node_modules/tokenjuice/dist/hosts/devin/index.js +7 -9
- package/node_modules/tokenjuice/dist/hosts/docker-agent/index.d.ts +2 -7
- package/node_modules/tokenjuice/dist/hosts/docker-agent/index.js +19 -99
- package/node_modules/tokenjuice/dist/hosts/dot-agents/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/dot-agents/index.js +12 -41
- package/node_modules/tokenjuice/dist/hosts/droid/index.d.ts +5 -12
- package/node_modules/tokenjuice/dist/hosts/droid/index.js +106 -211
- package/node_modules/tokenjuice/dist/hosts/eca/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/eca/index.js +26 -190
- package/node_modules/tokenjuice/dist/hosts/elyra/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/elyra/index.js +26 -190
- package/node_modules/tokenjuice/dist/hosts/firebase-studio/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/firebase-studio/index.js +16 -123
- package/node_modules/tokenjuice/dist/hosts/forgecode/index.d.ts +5 -16
- package/node_modules/tokenjuice/dist/hosts/forgecode/index.js +20 -161
- package/node_modules/tokenjuice/dist/hosts/gemini-cli/index.d.ts +5 -12
- package/node_modules/tokenjuice/dist/hosts/gemini-cli/index.js +87 -94
- package/node_modules/tokenjuice/dist/hosts/gitlab-duo/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/gitlab-duo/index.js +17 -123
- package/node_modules/tokenjuice/dist/hosts/goose/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/goose/index.js +34 -77
- package/node_modules/tokenjuice/dist/hosts/gptme/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/gptme/index.js +13 -123
- package/node_modules/tokenjuice/dist/hosts/greptile/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/greptile/index.js +18 -156
- package/node_modules/tokenjuice/dist/hosts/grok-bot/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/grok-bot/index.js +14 -110
- package/node_modules/tokenjuice/dist/hosts/grok-build/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/grok-build/index.js +13 -113
- package/node_modules/tokenjuice/dist/hosts/grok-cli/index.d.ts +7 -14
- package/node_modules/tokenjuice/dist/hosts/grok-cli/index.js +32 -188
- package/node_modules/tokenjuice/dist/hosts/hermes/bundle/__init__.py +1 -0
- package/node_modules/tokenjuice/dist/hosts/hermes/bundle/plugin.yaml +7 -0
- package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/README.md +29 -0
- package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/__init__.py +3 -0
- package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/bridge.py +39 -0
- package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/fastmcp.py +24 -0
- package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/hermes.py +13 -0
- package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/langchain.py +38 -0
- package/node_modules/tokenjuice/dist/hosts/hermes/bundle/tokenjuice_integrations/plugin.yaml +7 -0
- package/node_modules/tokenjuice/dist/hosts/jean2/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/jean2/index.js +13 -123
- package/node_modules/tokenjuice/dist/hosts/jetbrains-ai/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/jetbrains-ai/index.js +33 -133
- package/node_modules/tokenjuice/dist/hosts/jules/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/jules/index.js +13 -123
- package/node_modules/tokenjuice/dist/hosts/junie/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/junie/index.js +5 -27
- package/node_modules/tokenjuice/dist/hosts/kilo/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/kilo/index.js +6 -18
- package/node_modules/tokenjuice/dist/hosts/kimi/index.d.ts +7 -13
- package/node_modules/tokenjuice/dist/hosts/kimi/index.js +38 -156
- package/node_modules/tokenjuice/dist/hosts/kiro/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/kiro/index.js +6 -18
- package/node_modules/tokenjuice/dist/hosts/knowns/index.d.ts +5 -16
- package/node_modules/tokenjuice/dist/hosts/knowns/index.js +35 -203
- package/node_modules/tokenjuice/dist/hosts/leanctl/index.d.ts +5 -16
- package/node_modules/tokenjuice/dist/hosts/leanctl/index.js +15 -156
- package/node_modules/tokenjuice/dist/hosts/localcode/index.d.ts +2 -7
- package/node_modules/tokenjuice/dist/hosts/localcode/index.js +10 -68
- package/node_modules/tokenjuice/dist/hosts/mastra/index.d.ts +28 -0
- package/node_modules/tokenjuice/dist/hosts/mastra/index.js +26 -0
- package/node_modules/tokenjuice/dist/hosts/mcp-agent/index.d.ts +2 -7
- package/node_modules/tokenjuice/dist/hosts/mcp-agent/index.js +15 -109
- package/node_modules/tokenjuice/dist/hosts/mini-swe-agent/index.d.ts +2 -7
- package/node_modules/tokenjuice/dist/hosts/mini-swe-agent/index.js +21 -110
- package/node_modules/tokenjuice/dist/hosts/mistral-vibe/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/mistral-vibe/index.js +13 -123
- package/node_modules/tokenjuice/dist/hosts/mux/index.d.ts +6 -13
- package/node_modules/tokenjuice/dist/hosts/mux/index.js +54 -349
- package/node_modules/tokenjuice/dist/hosts/novakit/index.d.ts +5 -16
- package/node_modules/tokenjuice/dist/hosts/novakit/index.js +35 -203
- package/node_modules/tokenjuice/dist/hosts/ona/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/ona/index.js +19 -283
- package/node_modules/tokenjuice/dist/hosts/open-interpreter/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/open-interpreter/index.js +11 -66
- package/node_modules/tokenjuice/dist/hosts/openclaw/extension.js +6 -5
- package/node_modules/tokenjuice/dist/hosts/opencode/extension/runtime.js +540 -363
- package/node_modules/tokenjuice/dist/hosts/opencode/index.js +8 -54
- package/node_modules/tokenjuice/dist/hosts/opencode/v2/bundle/index.js +9648 -0
- package/node_modules/tokenjuice/dist/hosts/opencode/v2/index.d.ts +37 -0
- package/node_modules/tokenjuice/dist/hosts/opencode/v2/index.js +97 -0
- package/node_modules/tokenjuice/dist/hosts/opencode/v2/runtime.d.ts +13 -0
- package/node_modules/tokenjuice/dist/hosts/opencode/v2/runtime.js +23 -0
- package/node_modules/tokenjuice/dist/hosts/openhands/index.d.ts +7 -14
- package/node_modules/tokenjuice/dist/hosts/openhands/index.js +111 -186
- package/node_modules/tokenjuice/dist/hosts/openwebui/index.d.ts +2 -7
- package/node_modules/tokenjuice/dist/hosts/openwebui/index.js +2 -24
- package/node_modules/tokenjuice/dist/hosts/pi/extension/pi-types.d.ts +3 -2
- package/node_modules/tokenjuice/dist/hosts/pi/extension/runtime.d.ts +2 -1
- package/node_modules/tokenjuice/dist/hosts/pi/extension/runtime.js +545 -359
- package/node_modules/tokenjuice/dist/hosts/pi/extension/status-panel.d.ts +1 -1
- package/node_modules/tokenjuice/dist/hosts/pi/extension/status.d.ts +1 -1
- package/node_modules/tokenjuice/dist/hosts/pi/extension/tool-result.d.ts +1 -1
- package/node_modules/tokenjuice/dist/hosts/pi/index.d.ts +1 -0
- package/node_modules/tokenjuice/dist/hosts/pi/index.js +5 -53
- package/node_modules/tokenjuice/dist/hosts/pi-go/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/pi-go/index.js +26 -190
- package/node_modules/tokenjuice/dist/hosts/plandex/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/plandex/index.js +10 -41
- package/node_modules/tokenjuice/dist/hosts/qoder/hook-install.d.ts +22 -0
- package/node_modules/tokenjuice/dist/hosts/qoder/hook-install.js +105 -0
- package/node_modules/tokenjuice/dist/hosts/qoder/hook.d.ts +1 -0
- package/node_modules/tokenjuice/dist/hosts/qoder/hook.js +22 -0
- package/node_modules/tokenjuice/dist/hosts/qoder/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/qoder/index.js +13 -113
- package/node_modules/tokenjuice/dist/hosts/qoderwork/index.d.ts +36 -0
- package/node_modules/tokenjuice/dist/hosts/qoderwork/index.js +20 -0
- package/node_modules/tokenjuice/dist/hosts/qodo/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/qodo/index.js +20 -290
- package/node_modules/tokenjuice/dist/hosts/qwen-code/index.d.ts +6 -13
- package/node_modules/tokenjuice/dist/hosts/qwen-code/index.js +60 -165
- package/node_modules/tokenjuice/dist/hosts/qwenwork/index.d.ts +36 -0
- package/node_modules/tokenjuice/dist/hosts/qwenwork/index.js +20 -0
- package/node_modules/tokenjuice/dist/hosts/replit/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/replit/index.js +13 -123
- package/node_modules/tokenjuice/dist/hosts/roo/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/roo/index.js +5 -31
- package/node_modules/tokenjuice/dist/hosts/rovo/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/rovo/index.js +13 -123
- package/node_modules/tokenjuice/dist/hosts/ruler/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/ruler/index.js +10 -64
- package/node_modules/tokenjuice/dist/hosts/shared/bundle-runtime.d.ts +2 -0
- package/node_modules/tokenjuice/dist/hosts/shared/bundle-runtime.js +56 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hook-command-doctor.d.ts +3 -8
- package/node_modules/tokenjuice/dist/hosts/shared/hook-command-doctor.js +3 -3
- package/node_modules/tokenjuice/dist/hosts/shared/hook-doctor.d.ts +112 -101
- package/node_modules/tokenjuice/dist/hosts/shared/hook-doctor.js +10 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hook-output.d.ts +0 -1
- package/node_modules/tokenjuice/dist/hosts/shared/hook-output.js +1 -1
- package/node_modules/tokenjuice/dist/hosts/shared/hooks-json-file.d.ts +15 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hooks-json-file.js +93 -0
- package/node_modules/tokenjuice/dist/hosts/shared/host-command.d.ts +1 -1
- package/node_modules/tokenjuice/dist/hosts/shared/host-command.js +4 -4
- package/node_modules/tokenjuice/dist/hosts/shared/instruction-doctor.d.ts +4 -0
- package/node_modules/tokenjuice/dist/hosts/shared/instruction-file.d.ts +26 -6
- package/node_modules/tokenjuice/dist/hosts/shared/instruction-file.js +125 -5
- package/node_modules/tokenjuice/dist/hosts/shared/instruction-guidance.d.ts +7 -0
- package/node_modules/tokenjuice/dist/hosts/shared/instruction-guidance.js +24 -0
- package/node_modules/tokenjuice/dist/hosts/shared/managed-skill.d.ts +42 -0
- package/node_modules/tokenjuice/dist/hosts/shared/managed-skill.js +87 -0
- package/node_modules/tokenjuice/dist/hosts/shared/marker-instruction-doctor.d.ts +29 -0
- package/node_modules/tokenjuice/dist/hosts/shared/marker-instruction-doctor.js +72 -0
- package/node_modules/tokenjuice/dist/hosts/shared/marker-instructions.d.ts +12 -0
- package/node_modules/tokenjuice/dist/hosts/shared/marker-instructions.js +43 -0
- package/node_modules/tokenjuice/dist/hosts/shared/owned-instruction-doctor.d.ts +9 -0
- package/node_modules/tokenjuice/dist/hosts/shared/owned-instruction-doctor.js +17 -0
- package/node_modules/tokenjuice/dist/hosts/shared/path-ancestors.d.ts +14 -0
- package/node_modules/tokenjuice/dist/hosts/shared/path-ancestors.js +117 -0
- package/node_modules/tokenjuice/dist/hosts/shared/pre-tool-wrap.d.ts +7 -7
- package/node_modules/tokenjuice/dist/hosts/shared/pre-tool-wrap.js +13 -48
- package/node_modules/tokenjuice/dist/hosts/shared/private-config-file.d.ts +2 -0
- package/node_modules/tokenjuice/dist/hosts/shared/private-config-file.js +36 -0
- package/node_modules/tokenjuice/dist/hosts/shared/project-root.d.ts +5 -0
- package/node_modules/tokenjuice/dist/hosts/shared/project-root.js +33 -0
- package/node_modules/tokenjuice/dist/hosts/shared/project-skill-doctor.d.ts +14 -0
- package/node_modules/tokenjuice/dist/hosts/shared/project-skill-doctor.js +62 -0
- package/node_modules/tokenjuice/dist/hosts/shared/restorable-rule.d.ts +15 -0
- package/node_modules/tokenjuice/dist/hosts/shared/restorable-rule.js +64 -0
- package/node_modules/tokenjuice/dist/hosts/shared/restorable-skill.d.ts +15 -0
- package/node_modules/tokenjuice/dist/hosts/shared/restorable-skill.js +48 -0
- package/node_modules/tokenjuice/dist/hosts/shared/settings-file.d.ts +5 -1
- package/node_modules/tokenjuice/dist/hosts/shared/settings-file.js +33 -5
- package/node_modules/tokenjuice/dist/hosts/shared/skill-frontmatter.d.ts +5 -0
- package/node_modules/tokenjuice/dist/hosts/shared/skill-frontmatter.js +18 -0
- package/node_modules/tokenjuice/dist/hosts/stagewise/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/stagewise/index.js +50 -377
- package/node_modules/tokenjuice/dist/hosts/swe-agent/index.d.ts +2 -7
- package/node_modules/tokenjuice/dist/hosts/swe-agent/index.js +20 -88
- package/node_modules/tokenjuice/dist/hosts/tabby/index.d.ts +2 -8
- package/node_modules/tokenjuice/dist/hosts/tabby/index.js +13 -190
- package/node_modules/tokenjuice/dist/hosts/tabnine/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/tabnine/index.js +13 -123
- package/node_modules/tokenjuice/dist/hosts/trae/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/trae/index.js +17 -123
- package/node_modules/tokenjuice/dist/hosts/uipath/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/uipath/index.js +13 -123
- package/node_modules/tokenjuice/dist/hosts/vscode-copilot/index.d.ts +2 -11
- package/node_modules/tokenjuice/dist/hosts/vscode-copilot/index.js +15 -101
- package/node_modules/tokenjuice/dist/hosts/warp/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/warp/index.js +14 -116
- package/node_modules/tokenjuice/dist/hosts/windsurf/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/windsurf/index.js +6 -18
- package/node_modules/tokenjuice/dist/hosts/zed/index.d.ts +5 -17
- package/node_modules/tokenjuice/dist/hosts/zed/index.js +5 -27
- package/node_modules/tokenjuice/dist/hosts/zencoder/index.d.ts +2 -9
- package/node_modules/tokenjuice/dist/hosts/zencoder/index.js +42 -139
- package/node_modules/tokenjuice/dist/index.d.ts +20 -4
- package/node_modules/tokenjuice/dist/index.js +14 -4
- package/node_modules/tokenjuice/dist/python/LICENSE +21 -0
- package/node_modules/tokenjuice/dist/python/README.md +38 -0
- package/node_modules/tokenjuice/dist/python/pyproject.toml +30 -0
- package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/README.md +29 -0
- package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/__init__.py +3 -0
- package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/bridge.py +39 -0
- package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/fastmcp.py +24 -0
- package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/hermes.py +13 -0
- package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/langchain.py +38 -0
- package/node_modules/tokenjuice/dist/python/tokenjuice_integrations/plugin.yaml +7 -0
- package/node_modules/tokenjuice/dist/types.d.ts +9 -8
- package/node_modules/tokenjuice/package.json +32 -11
- package/package.json +5 -5
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
import { uninstallOpenCodeV2Extension } from "../hosts/opencode/v2/index.js";
|
|
2
|
+
import { uninstallQoderHook } from "../hosts/qoder/hook-install.js";
|
|
3
|
+
import { uninstallQwenWorkSkill } from "../hosts/qwenwork/index.js";
|
|
4
|
+
import { uninstallQoderWorkSkill } from "../hosts/qoderwork/index.js";
|
|
5
|
+
// Per-target handlers for `tokenjuice uninstall <target>`.
|
|
6
|
+
// Each handler is keyed by the target name and its aliases in uninstallCommands.
|
|
7
|
+
import { dirname } from "node:path";
|
|
8
|
+
import { uninstallAdalInstructions } from "../hosts/adal/index.js";
|
|
9
|
+
import { uninstallAetherPrompt } from "../hosts/aether/index.js";
|
|
10
|
+
import { uninstallAictlInstructions } from "../hosts/aictl/index.js";
|
|
11
|
+
import { uninstallAiMemoryProtocolMemory } from "../hosts/ai-memory-protocol/index.js";
|
|
12
|
+
import { uninstallAgentLayerInstructions } from "../hosts/agent-layer/index.js";
|
|
13
|
+
import { uninstallAgentInitInstructions } from "../hosts/agentinit/index.js";
|
|
14
|
+
import { uninstallAgentlinkInstructions } from "../hosts/agentlink/index.js";
|
|
15
|
+
import { uninstallAgentloomRule } from "../hosts/agentloom/index.js";
|
|
16
|
+
import { uninstallAgentsCliMemory } from "../hosts/agents-cli/index.js";
|
|
17
|
+
import { uninstallAgentsMdInstructions } from "../hosts/agents-md/index.js";
|
|
18
|
+
import { uninstallAgentsGeRule } from "../hosts/agentsge/index.js";
|
|
19
|
+
import { uninstallAgentsMeshRule } from "../hosts/agentsmesh/index.js";
|
|
20
|
+
import { uninstallAmazonQRule } from "../hosts/amazon-q/index.js";
|
|
21
|
+
import { uninstallAmpInstructions } from "../hosts/amp/index.js";
|
|
22
|
+
import { uninstallAiderConvention } from "../hosts/aider/index.js";
|
|
23
|
+
import { uninstallAntigravityRule } from "../hosts/antigravity/index.js";
|
|
24
|
+
import { uninstallAnywhereAgentsInstructions } from "../hosts/anywhere-agents/index.js";
|
|
25
|
+
import { uninstallAugmentRule } from "../hosts/augment/index.js";
|
|
26
|
+
import { uninstallAvanteInstructions } from "../hosts/avante/index.js";
|
|
27
|
+
import { uninstallBazSkill } from "../hosts/baz/index.js";
|
|
28
|
+
import { uninstallBitoGuidelines } from "../hosts/bito/index.js";
|
|
29
|
+
import { uninstallBlackboxSkill } from "../hosts/blackbox/index.js";
|
|
30
|
+
import { uninstallBlocksSkill } from "../hosts/blocks/index.js";
|
|
31
|
+
import { uninstallClawdbotSkill } from "../hosts/clawdbot/index.js";
|
|
32
|
+
import { uninstallBobInstructions } from "../hosts/bob/index.js";
|
|
33
|
+
import { uninstallBuilderRule } from "../hosts/builder/index.js";
|
|
34
|
+
import { uninstallCharlieInstructions } from "../hosts/charlie/index.js";
|
|
35
|
+
import { uninstallClaudeCodeHook } from "../hosts/claude-code/index.js";
|
|
36
|
+
import { uninstallClineHook } from "../hosts/cline/index.js";
|
|
37
|
+
import { uninstallCodeAntInstructions } from "../hosts/codeant/index.js";
|
|
38
|
+
import { uninstallCodebuffInstructions } from "../hosts/codebuff/index.js";
|
|
39
|
+
import { uninstallCodegenInstructions } from "../hosts/codegen/index.js";
|
|
40
|
+
import { uninstallCoderAgentsSkill } from "../hosts/coder-agents/index.js";
|
|
41
|
+
import { uninstallCodeRabbitConfig } from "../hosts/coderabbit/index.js";
|
|
42
|
+
import { uninstallCodeBuddyHook } from "../hosts/codebuddy/index.js";
|
|
43
|
+
import { uninstallCommandCodeHook } from "../hosts/command-code/index.js";
|
|
44
|
+
import { uninstallContinueRule } from "../hosts/continue/index.js";
|
|
45
|
+
import { uninstallCodexHook } from "../hosts/codex/index.js";
|
|
46
|
+
import { uninstallCopilotAgentHook } from "../hosts/copilot-agent/index.js";
|
|
47
|
+
import { uninstallCopilotCliHook } from "../hosts/copilot-cli/index.js";
|
|
48
|
+
import { uninstallCrushSkill } from "../hosts/crush/index.js";
|
|
49
|
+
import { uninstallCursorHook } from "../hosts/cursor/index.js";
|
|
50
|
+
import { uninstallDeepAgentsInstructions } from "../hosts/deepagents/index.js";
|
|
51
|
+
import { uninstallDevinHook } from "../hosts/devin/index.js";
|
|
52
|
+
import { uninstallDotAgentsRule } from "../hosts/dot-agents/index.js";
|
|
53
|
+
import { uninstallDockerAgentPrompt } from "../hosts/docker-agent/index.js";
|
|
54
|
+
import { uninstallDroidHook } from "../hosts/droid/index.js";
|
|
55
|
+
import { uninstallEcaSkill } from "../hosts/eca/index.js";
|
|
56
|
+
import { uninstallElyraSkill } from "../hosts/elyra/index.js";
|
|
57
|
+
import { uninstallFirebaseStudioRule } from "../hosts/firebase-studio/index.js";
|
|
58
|
+
import { uninstallForgeCodeInstructions } from "../hosts/forgecode/index.js";
|
|
59
|
+
import { uninstallGeminiCliHook } from "../hosts/gemini-cli/index.js";
|
|
60
|
+
import { uninstallGitLabDuoRule } from "../hosts/gitlab-duo/index.js";
|
|
61
|
+
import { uninstallGooseHints } from "../hosts/goose/index.js";
|
|
62
|
+
import { uninstallGreptileRule } from "../hosts/greptile/index.js";
|
|
63
|
+
import { uninstallGrokBuildInstructions } from "../hosts/grok-build/index.js";
|
|
64
|
+
import { uninstallGrokBotRule } from "../hosts/grok-bot/index.js";
|
|
65
|
+
import { uninstallGrokCliHook } from "../hosts/grok-cli/index.js";
|
|
66
|
+
import { uninstallGptmeInstructions } from "../hosts/gptme/index.js";
|
|
67
|
+
import { uninstallJean2Instructions } from "../hosts/jean2/index.js";
|
|
68
|
+
import { uninstallJetBrainsAiRule } from "../hosts/jetbrains-ai/index.js";
|
|
69
|
+
import { uninstallJunieInstructions } from "../hosts/junie/index.js";
|
|
70
|
+
import { uninstallJulesInstructions } from "../hosts/jules/index.js";
|
|
71
|
+
import { uninstallLeanCtlInstructions } from "../hosts/leanctl/index.js";
|
|
72
|
+
import { uninstallKimiHook } from "../hosts/kimi/index.js";
|
|
73
|
+
import { uninstallKiroSteering } from "../hosts/kiro/index.js";
|
|
74
|
+
import { uninstallKiloRule } from "../hosts/kilo/index.js";
|
|
75
|
+
import { uninstallKnownsInstructions } from "../hosts/knowns/index.js";
|
|
76
|
+
import { uninstallLocalCodePlugin } from "../hosts/localcode/index.js";
|
|
77
|
+
import { uninstallMcpAgentDefinition } from "../hosts/mcp-agent/index.js";
|
|
78
|
+
import { uninstallMiniSweAgentConfig } from "../hosts/mini-swe-agent/index.js";
|
|
79
|
+
import { uninstallSweAgentConfig } from "../hosts/swe-agent/index.js";
|
|
80
|
+
import { uninstallStagewiseSkill } from "../hosts/stagewise/index.js";
|
|
81
|
+
import { uninstallMistralVibeInstructions } from "../hosts/mistral-vibe/index.js";
|
|
82
|
+
import { uninstallMuxHook } from "../hosts/mux/index.js";
|
|
83
|
+
import { uninstallNovaKitInstructions } from "../hosts/novakit/index.js";
|
|
84
|
+
import { uninstallOnaSkill } from "../hosts/ona/index.js";
|
|
85
|
+
import { uninstallOpenCodeExtension } from "../hosts/opencode/index.js";
|
|
86
|
+
import { uninstallOpenInterpreterInstructions } from "../hosts/open-interpreter/index.js";
|
|
87
|
+
import { uninstallOpenHandsHook } from "../hosts/openhands/index.js";
|
|
88
|
+
import { uninstallOpenWebUITool } from "../hosts/openwebui/index.js";
|
|
89
|
+
import { uninstallPiExtension } from "../hosts/pi/index.js";
|
|
90
|
+
import { uninstallPiGoSkill } from "../hosts/pi-go/index.js";
|
|
91
|
+
import { uninstallPlandexConvention } from "../hosts/plandex/index.js";
|
|
92
|
+
import { uninstallQodoReviewConfig } from "../hosts/qodo/index.js";
|
|
93
|
+
import { uninstallQoderInstructions } from "../hosts/qoder/index.js";
|
|
94
|
+
import { uninstallAnteInstructions } from "../hosts/ante/index.js";
|
|
95
|
+
import { uninstallQwenCodeHook } from "../hosts/qwen-code/index.js";
|
|
96
|
+
import { uninstallReplitInstructions } from "../hosts/replit/index.js";
|
|
97
|
+
import { uninstallRooInstructions } from "../hosts/roo/index.js";
|
|
98
|
+
import { uninstallRovoInstructions } from "../hosts/rovo/index.js";
|
|
99
|
+
import { uninstallRulerRule } from "../hosts/ruler/index.js";
|
|
100
|
+
import { uninstallTabbySystemPrompt } from "../hosts/tabby/index.js";
|
|
101
|
+
import { uninstallTabnineInstructions } from "../hosts/tabnine/index.js";
|
|
102
|
+
import { uninstallTraeRule } from "../hosts/trae/index.js";
|
|
103
|
+
import { uninstallUiPathInstructions } from "../hosts/uipath/index.js";
|
|
104
|
+
import { uninstallVscodeCopilotHook } from "../hosts/vscode-copilot/index.js";
|
|
105
|
+
import { uninstallWarpInstructions } from "../hosts/warp/index.js";
|
|
106
|
+
import { uninstallWindsurfRule } from "../hosts/windsurf/index.js";
|
|
107
|
+
import { uninstallZedInstructions } from "../hosts/zed/index.js";
|
|
108
|
+
import { uninstallZencoderRule } from "../hosts/zencoder/index.js";
|
|
109
|
+
import { shellQuote } from "../hosts/shared/hook-command.js";
|
|
110
|
+
import { createFileUninstallCommand, createHostCommand } from "./host-command.js";
|
|
111
|
+
const uninstallAdalCommand = createFileUninstallCommand("adal", "instructions", "instructionsPath", () => uninstallAdalInstructions());
|
|
112
|
+
const uninstallAetherCommand = createHostCommand(() => uninstallAetherPrompt(), (result) => {
|
|
113
|
+
process.stdout.write(`removed aether prompt: ${result.removed ? "yes" : "no"}\n`);
|
|
114
|
+
process.stdout.write(`prompt path: ${result.promptPath}\n`);
|
|
115
|
+
process.stdout.write(`settings path: ${result.settingsPath}\n`);
|
|
116
|
+
process.stdout.write(`prompt refs removed: ${result.promptsRemoved}\n`);
|
|
117
|
+
process.stdout.write("enable: tokenjuice install aether\n");
|
|
118
|
+
});
|
|
119
|
+
const uninstallAiderCommand = createFileUninstallCommand("aider", "convention", "conventionPath", () => uninstallAiderConvention());
|
|
120
|
+
const uninstallAictlCommand = createFileUninstallCommand("aictl", "instructions", "instructionsPath", () => uninstallAictlInstructions());
|
|
121
|
+
const uninstallAiMemoryProtocolCommand = createHostCommand(() => uninstallAiMemoryProtocolMemory(), (result) => {
|
|
122
|
+
process.stdout.write(`removed ai-memory-protocol memory: ${result.removed ? "yes" : "no"}\n`);
|
|
123
|
+
process.stdout.write(`memory path: ${result.memoryPath}\n`);
|
|
124
|
+
process.stdout.write(`rebuild: MEMORY_DIR=${shellQuote(dirname(dirname(result.memoryPath)))} memory rebuild\n`);
|
|
125
|
+
process.stdout.write("enable: tokenjuice install ai-memory-protocol\n");
|
|
126
|
+
});
|
|
127
|
+
const uninstallAgentLayerCommand = createHostCommand(() => uninstallAgentLayerInstructions(), (result) => {
|
|
128
|
+
process.stdout.write(`removed agent-layer instructions: ${result.removed ? "yes" : "no"}\n`);
|
|
129
|
+
process.stdout.write(`instructions path: ${result.instructionsPath}\n`);
|
|
130
|
+
process.stdout.write(`sync: ${result.syncCommand}\n`);
|
|
131
|
+
process.stdout.write("enable: tokenjuice install agent-layer\n");
|
|
132
|
+
});
|
|
133
|
+
const uninstallAgentinitCommand = createHostCommand(() => uninstallAgentInitInstructions(), (result) => {
|
|
134
|
+
process.stdout.write(`removed agentinit instructions: ${result.removed ? "yes" : "no"}\n`);
|
|
135
|
+
process.stdout.write(`instructions path: ${result.instructionsPath}\n`);
|
|
136
|
+
process.stdout.write(`sync: ${result.syncCommand}\n`);
|
|
137
|
+
process.stdout.write("enable: tokenjuice install agentinit\n");
|
|
138
|
+
});
|
|
139
|
+
const uninstallAgentlinkCommand = createHostCommand(() => uninstallAgentlinkInstructions(), (result) => {
|
|
140
|
+
process.stdout.write(`removed agentlink instructions: ${result.removed ? "yes" : "no"}\n`);
|
|
141
|
+
process.stdout.write(`instructions path: ${result.instructionsPath}\n`);
|
|
142
|
+
process.stdout.write(`sync: ${result.syncCommand}\n`);
|
|
143
|
+
process.stdout.write("enable: tokenjuice install agentlink\n");
|
|
144
|
+
});
|
|
145
|
+
const uninstallAgentloomCommand = createHostCommand(() => uninstallAgentloomRule(), (result) => {
|
|
146
|
+
process.stdout.write(`removed agentloom rule: ${result.removed ? "yes" : "no"}\n`);
|
|
147
|
+
process.stdout.write(`rule path: ${result.rulePath}\n`);
|
|
148
|
+
process.stdout.write(`sync: ${result.syncCommand}\n`);
|
|
149
|
+
process.stdout.write("enable: tokenjuice install agentloom\n");
|
|
150
|
+
});
|
|
151
|
+
const uninstallAgentsCliCommand = createHostCommand(() => uninstallAgentsCliMemory(), (result) => {
|
|
152
|
+
process.stdout.write(`removed agents-cli memory: ${result.removed ? "yes" : "no"}\n`);
|
|
153
|
+
process.stdout.write(`memory path: ${result.instructionsPath}\n`);
|
|
154
|
+
process.stdout.write(`sync: ${result.syncCommand}\n`);
|
|
155
|
+
process.stdout.write("enable: tokenjuice install agents-cli\n");
|
|
156
|
+
});
|
|
157
|
+
const uninstallAgentsMdCommand = createFileUninstallCommand("agents-md", "instructions", "instructionsPath", () => uninstallAgentsMdInstructions());
|
|
158
|
+
const uninstallAgentsgeCommand = createFileUninstallCommand("agentsge", "rule", "rulePath", () => uninstallAgentsGeRule());
|
|
159
|
+
const uninstallAgentsmeshCommand = createHostCommand(() => uninstallAgentsMeshRule(), (result) => {
|
|
160
|
+
process.stdout.write(`removed agentsmesh rule: ${result.removed ? "yes" : "no"}\n`);
|
|
161
|
+
process.stdout.write(`rule path: ${result.rulePath}\n`);
|
|
162
|
+
process.stdout.write(`generate: ${result.syncCommand}\n`);
|
|
163
|
+
process.stdout.write("enable: tokenjuice install agentsmesh\n");
|
|
164
|
+
});
|
|
165
|
+
const uninstallAmazonQCommand = createFileUninstallCommand("amazon-q", "rule", "rulePath", () => uninstallAmazonQRule());
|
|
166
|
+
const uninstallAmpCommand = createHostCommand(() => uninstallAmpInstructions(), (result) => {
|
|
167
|
+
process.stdout.write(`removed amp instructions: ${result.removed ? "yes" : "no"}\n`);
|
|
168
|
+
process.stdout.write(`instructions path: ${result.instructionsPath}\n`);
|
|
169
|
+
if (result.removedPaths && result.removedPaths.length > 1) {
|
|
170
|
+
process.stdout.write("removed paths:\n");
|
|
171
|
+
for (const path of result.removedPaths) {
|
|
172
|
+
process.stdout.write(`- ${path}\n`);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
process.stdout.write("enable: tokenjuice install amp\n");
|
|
176
|
+
});
|
|
177
|
+
const uninstallAntigravityCommand = createFileUninstallCommand("antigravity", "rule", "rulePath", () => uninstallAntigravityRule());
|
|
178
|
+
const uninstallAnywhereAgentsCommand = createHostCommand(() => uninstallAnywhereAgentsInstructions(), (result) => {
|
|
179
|
+
process.stdout.write(`removed anywhere-agents instructions: ${result.removed ? "yes" : "no"}\n`);
|
|
180
|
+
process.stdout.write(`instructions path: ${result.instructionsPath}\n`);
|
|
181
|
+
process.stdout.write(`sync: ${result.syncCommand}\n`);
|
|
182
|
+
process.stdout.write("enable: tokenjuice install anywhere-agents\n");
|
|
183
|
+
});
|
|
184
|
+
const uninstallAugmentCommand = createFileUninstallCommand("augment", "rule", "rulePath", () => uninstallAugmentRule());
|
|
185
|
+
const uninstallAvanteCommand = createFileUninstallCommand("avante", "instructions", "instructionsPath", () => uninstallAvanteInstructions());
|
|
186
|
+
const uninstallBazCommand = createFileUninstallCommand("baz", "skill", "skillPath", () => uninstallBazSkill());
|
|
187
|
+
const uninstallBitoCommand = createHostCommand(() => uninstallBitoGuidelines(), (result) => {
|
|
188
|
+
process.stdout.write(`removed bito custom guidelines: ${result.removed ? "yes" : "no"}\n`);
|
|
189
|
+
process.stdout.write(`config path: ${result.configPath}\n`);
|
|
190
|
+
process.stdout.write(`guidelines path: ${result.guidelinesPath}\n`);
|
|
191
|
+
process.stdout.write("enable: tokenjuice install bito\n");
|
|
192
|
+
});
|
|
193
|
+
const uninstallBlackboxCommand = createFileUninstallCommand("blackbox", "skill", "skillPath", () => uninstallBlackboxSkill());
|
|
194
|
+
const uninstallBlocksCommand = createFileUninstallCommand("blocks", "skill", "skillPath", () => uninstallBlocksSkill());
|
|
195
|
+
const uninstallClawdbotCommand = createFileUninstallCommand("clawdbot", "skill", "skillPath", () => uninstallClawdbotSkill());
|
|
196
|
+
const uninstallBobCommand = createFileUninstallCommand("bob", "instructions", "instructionsPath", () => uninstallBobInstructions());
|
|
197
|
+
const uninstallBuilderCommand = createFileUninstallCommand("builder", "rule", "rulePath", () => uninstallBuilderRule());
|
|
198
|
+
const uninstallCharlieCommand = createFileUninstallCommand("charlie", "instructions", "instructionsPath", () => uninstallCharlieInstructions());
|
|
199
|
+
const uninstallCodexCommand = createHostCommand(() => uninstallCodexHook(), (result) => {
|
|
200
|
+
process.stdout.write(`removed codex hook: ${result.hooksPath}\n`);
|
|
201
|
+
process.stdout.write(`removed entries: ${result.removed}\n`);
|
|
202
|
+
process.stdout.write(`writer: ${result.writer} (${result.fragmentId})\n`);
|
|
203
|
+
if (result.backupPath) {
|
|
204
|
+
process.stdout.write(`backup: ${result.backupPath}\n`);
|
|
205
|
+
}
|
|
206
|
+
process.stdout.write("enable: tokenjuice install codex\n");
|
|
207
|
+
});
|
|
208
|
+
const uninstallClaudeCodeCommand = createHostCommand(() => uninstallClaudeCodeHook(), (result) => {
|
|
209
|
+
process.stdout.write(`removed claude-code hook: ${result.removed ? "yes" : "no"}\n`);
|
|
210
|
+
process.stdout.write(`settings path: ${result.settingsPath}\n`);
|
|
211
|
+
if (result.backupPath) {
|
|
212
|
+
process.stdout.write(`backup: ${result.backupPath}\n`);
|
|
213
|
+
}
|
|
214
|
+
process.stdout.write("enable: tokenjuice install claude-code\n");
|
|
215
|
+
});
|
|
216
|
+
const uninstallClineCommand = createFileUninstallCommand("cline", "hook", "hookPath", () => uninstallClineHook());
|
|
217
|
+
const uninstallCodeantCommand = createFileUninstallCommand("codeant", "instructions", "instructionsPath", () => uninstallCodeAntInstructions());
|
|
218
|
+
const uninstallCodebuffCommand = createFileUninstallCommand("codebuff", "instructions", "instructionsPath", () => uninstallCodebuffInstructions());
|
|
219
|
+
const uninstallCodegenCommand = createFileUninstallCommand("codegen", "instructions", "instructionsPath", () => uninstallCodegenInstructions());
|
|
220
|
+
const uninstallCoderAgentsCommand = createFileUninstallCommand("coder-agents", "skill", "skillPath", () => uninstallCoderAgentsSkill());
|
|
221
|
+
const uninstallCodebuddyCommand = createHostCommand(() => uninstallCodeBuddyHook(), (result) => {
|
|
222
|
+
process.stdout.write(`removed codebuddy hook: ${result.removed ? "yes" : "no"}\n`);
|
|
223
|
+
process.stdout.write(`settings path: ${result.settingsPath}\n`);
|
|
224
|
+
if (result.backupPath) {
|
|
225
|
+
process.stdout.write(`backup: ${result.backupPath}\n`);
|
|
226
|
+
}
|
|
227
|
+
process.stdout.write("enable: tokenjuice install codebuddy\n");
|
|
228
|
+
});
|
|
229
|
+
const uninstallCommandCodeCommand = createHostCommand(() => uninstallCommandCodeHook(), (result) => {
|
|
230
|
+
process.stdout.write(`removed command-code entries: ${result.removed}\n`);
|
|
231
|
+
process.stdout.write(`settings path: ${result.settingsPath}\n`);
|
|
232
|
+
process.stdout.write("use: tokenjuice wrap -- <command>\n");
|
|
233
|
+
});
|
|
234
|
+
const uninstallPiGoCommand = createFileUninstallCommand("pi-go", "skill", "skillPath", () => uninstallPiGoSkill());
|
|
235
|
+
const uninstallContinueCommand = createFileUninstallCommand("continue", "rule", "rulePath", () => uninstallContinueRule());
|
|
236
|
+
const uninstallCopilotAgentCommand = createHostCommand(() => uninstallCopilotAgentHook(), (result) => {
|
|
237
|
+
process.stdout.write(`removed copilot-agent entries: ${result.removed}\n`);
|
|
238
|
+
process.stdout.write(`hook path: ${result.hooksPath}\n`);
|
|
239
|
+
if (result.deletedFile) {
|
|
240
|
+
process.stdout.write("deleted empty hook file: yes\n");
|
|
241
|
+
}
|
|
242
|
+
process.stdout.write("enable: tokenjuice install copilot-agent\n");
|
|
243
|
+
});
|
|
244
|
+
const uninstallCrushCommand = createFileUninstallCommand("crush", "skill", "skillPath", () => uninstallCrushSkill());
|
|
245
|
+
const uninstallCursorCommand = createHostCommand(() => uninstallCursorHook(), (result) => {
|
|
246
|
+
process.stdout.write(`removed cursor hook: ${result.removed ? "yes" : "no"}\n`);
|
|
247
|
+
process.stdout.write(`hooks path: ${result.hooksPath}\n`);
|
|
248
|
+
if (result.backupPath) {
|
|
249
|
+
process.stdout.write(`backup: ${result.backupPath}\n`);
|
|
250
|
+
}
|
|
251
|
+
process.stdout.write("enable: tokenjuice install cursor\n");
|
|
252
|
+
});
|
|
253
|
+
const uninstallFirebaseStudioCommand = createFileUninstallCommand("firebase-studio", "rules", "rulePath", () => uninstallFirebaseStudioRule());
|
|
254
|
+
const uninstallForgecodeCommand = createFileUninstallCommand("forgecode", "instructions", "instructionsPath", () => uninstallForgeCodeInstructions());
|
|
255
|
+
const uninstallGeminiCliCommand = createHostCommand(() => uninstallGeminiCliHook(), (result) => {
|
|
256
|
+
process.stdout.write(`removed gemini-cli entries: ${result.removed}\n`);
|
|
257
|
+
process.stdout.write(`settings path: ${result.settingsPath}\n`);
|
|
258
|
+
process.stdout.write("enable: tokenjuice install gemini-cli\n");
|
|
259
|
+
});
|
|
260
|
+
const uninstallGitlabDuoCommand = createFileUninstallCommand("gitlab-duo", "rule", "rulePath", () => uninstallGitLabDuoRule());
|
|
261
|
+
const uninstallGrokCliCommand = createHostCommand(() => uninstallGrokCliHook(), (result) => {
|
|
262
|
+
process.stdout.write(`removed grok-cli entries: ${result.removed}\n`);
|
|
263
|
+
process.stdout.write(`settings path: ${result.settingsPath}\n`);
|
|
264
|
+
process.stdout.write("enable: tokenjuice install grok-cli\n");
|
|
265
|
+
});
|
|
266
|
+
const uninstallGptmeCommand = createFileUninstallCommand("gptme", "instructions", "instructionsPath", () => uninstallGptmeInstructions());
|
|
267
|
+
const uninstallJean2Command = createFileUninstallCommand("jean2", "instructions", "instructionsPath", () => uninstallJean2Instructions());
|
|
268
|
+
const uninstallGrokBuildCommand = createFileUninstallCommand("grok-build", "instructions", "instructionsPath", () => uninstallGrokBuildInstructions());
|
|
269
|
+
const uninstallGrokBotCommand = createHostCommand(() => uninstallGrokBotRule(), (result) => {
|
|
270
|
+
process.stdout.write(`removed grok-bot rule: ${result.removed ? "yes" : "no"}\n`);
|
|
271
|
+
process.stdout.write(`rule path: ${result.rulePath}\n`);
|
|
272
|
+
process.stdout.write(`restored backup: ${result.restoredBackup ? "yes" : "no"}\n`);
|
|
273
|
+
process.stdout.write("enable: tokenjuice install grok-bot\n");
|
|
274
|
+
});
|
|
275
|
+
const uninstallGooseCommand = createFileUninstallCommand("goose", "hints", "hintsPath", () => uninstallGooseHints());
|
|
276
|
+
const uninstallGreptileCommand = createFileUninstallCommand("greptile", "rule", "rulePath", () => uninstallGreptileRule());
|
|
277
|
+
const uninstallQodoCommand = createHostCommand(() => uninstallQodoReviewConfig(), (result) => {
|
|
278
|
+
process.stdout.write(`removed qodo review config: ${result.removed ? "yes" : "no"}\n`);
|
|
279
|
+
process.stdout.write(`config path: ${result.configPath}\n`);
|
|
280
|
+
process.stdout.write("enable: tokenjuice install qodo\n");
|
|
281
|
+
});
|
|
282
|
+
const uninstallCoderabbitCommand = createHostCommand(() => uninstallCodeRabbitConfig(), (result) => {
|
|
283
|
+
process.stdout.write(`removed coderabbit review config: ${result.removed ? "yes" : "no"}\n`);
|
|
284
|
+
process.stdout.write(`config path: ${result.configPath}\n`);
|
|
285
|
+
process.stdout.write("enable: tokenjuice install coderabbit\n");
|
|
286
|
+
});
|
|
287
|
+
const uninstallJetbrainsAiCommand = createFileUninstallCommand("jetbrains-ai", "rule", "rulePath", () => uninstallJetBrainsAiRule());
|
|
288
|
+
const uninstallJunieCommand = createFileUninstallCommand("junie", "instructions", "instructionsPath", () => uninstallJunieInstructions());
|
|
289
|
+
const uninstallJulesCommand = createFileUninstallCommand("jules", "instructions", "instructionsPath", () => uninstallJulesInstructions());
|
|
290
|
+
const uninstallLeanctlCommand = createFileUninstallCommand("leanctl", "instructions", "instructionsPath", () => uninstallLeanCtlInstructions());
|
|
291
|
+
const uninstallKimiCommand = createHostCommand(() => uninstallKimiHook(), (result) => {
|
|
292
|
+
process.stdout.write(`removed kimi entries: ${result.removed}\n`);
|
|
293
|
+
process.stdout.write(`config path: ${result.configPath}\n`);
|
|
294
|
+
process.stdout.write("enable: tokenjuice install kimi\n");
|
|
295
|
+
});
|
|
296
|
+
const uninstallLocalcodeCommand = createHostCommand(() => uninstallLocalCodePlugin(), (result) => {
|
|
297
|
+
process.stdout.write(`removed localcode plugin: ${result.removed ? "yes" : "no"}\n`);
|
|
298
|
+
process.stdout.write(`plugin dir: ${result.pluginDir}\n`);
|
|
299
|
+
process.stdout.write(`manifest path: ${result.manifestPath}\n`);
|
|
300
|
+
process.stdout.write(`entrypoint path: ${result.indexPath}\n`);
|
|
301
|
+
process.stdout.write("enable: tokenjuice install localcode\n");
|
|
302
|
+
});
|
|
303
|
+
const uninstallKiroCommand = createFileUninstallCommand("kiro", "steering", "steeringPath", () => uninstallKiroSteering());
|
|
304
|
+
const uninstallKiloCommand = createHostCommand(() => uninstallKiloRule(), (result) => {
|
|
305
|
+
process.stdout.write(`removed kilo rule: ${result.removed ? "yes" : "no"}\n`);
|
|
306
|
+
process.stdout.write(`rule path: ${result.rulePath}\n`);
|
|
307
|
+
process.stdout.write(`config path: ${result.configPath}\n`);
|
|
308
|
+
process.stdout.write(`removed kilo config entry: ${result.configUpdated ? "yes" : "no"}\n`);
|
|
309
|
+
process.stdout.write("enable: tokenjuice install kilo\n");
|
|
310
|
+
});
|
|
311
|
+
const uninstallMistralVibeCommand = createFileUninstallCommand("mistral-vibe", "instructions", "instructionsPath", () => uninstallMistralVibeInstructions());
|
|
312
|
+
const uninstallMcpAgentCommand = createHostCommand(() => uninstallMcpAgentDefinition(), (result) => {
|
|
313
|
+
process.stdout.write(`removed mcp-agent definition: ${result.removed ? "yes" : "no"}\n`);
|
|
314
|
+
process.stdout.write(`agent path: ${result.agentPath}\n`);
|
|
315
|
+
process.stdout.write("enable: tokenjuice install mcp-agent\n");
|
|
316
|
+
});
|
|
317
|
+
const uninstallMiniSweAgentCommand = createFileUninstallCommand("mini-swe-agent", "config", "configPath", () => uninstallMiniSweAgentConfig());
|
|
318
|
+
const uninstallSweAgentCommand = createFileUninstallCommand("swe-agent", "config", "configPath", () => uninstallSweAgentConfig());
|
|
319
|
+
const uninstallStagewiseCommand = createFileUninstallCommand("stagewise", "skill", "skillPath", () => uninstallStagewiseSkill());
|
|
320
|
+
const uninstallMuxCommand = createFileUninstallCommand("mux", "hook", "hookPath", () => uninstallMuxHook());
|
|
321
|
+
const uninstallNovakitCommand = createFileUninstallCommand("novakit", "instructions", "instructionsPath", () => uninstallNovaKitInstructions());
|
|
322
|
+
const uninstallKnownsCommand = createFileUninstallCommand("knowns", "instructions", "instructionsPath", () => uninstallKnownsInstructions());
|
|
323
|
+
const uninstallOnaCommand = createFileUninstallCommand("ona", "skill", "skillPath", () => uninstallOnaSkill());
|
|
324
|
+
const uninstallWarpCommand = createFileUninstallCommand("warp", "instructions", "instructionsPath", () => uninstallWarpInstructions());
|
|
325
|
+
const uninstallOpenhandsCommand = createHostCommand(() => uninstallOpenHandsHook(), (result) => {
|
|
326
|
+
process.stdout.write(`removed openhands entries: ${result.removed}\n`);
|
|
327
|
+
process.stdout.write(`hooks path: ${result.hooksPath}\n`);
|
|
328
|
+
process.stdout.write("use: tokenjuice wrap -- <command>\n");
|
|
329
|
+
});
|
|
330
|
+
const uninstallOpenInterpreterCommand = createFileUninstallCommand("open-interpreter", "instructions", "instructionsPath", () => uninstallOpenInterpreterInstructions());
|
|
331
|
+
const uninstallOpenwebuiCommand = createHostCommand(() => uninstallOpenWebUITool(), (result) => {
|
|
332
|
+
process.stdout.write(`removed openwebui tool source: ${result.removed ? "yes" : "no"}\n`);
|
|
333
|
+
process.stdout.write(`tool path: ${result.toolPath}\n`);
|
|
334
|
+
process.stdout.write("enable: tokenjuice install openwebui\n");
|
|
335
|
+
});
|
|
336
|
+
const uninstallPiCommand = createHostCommand(() => uninstallPiExtension(), (result) => {
|
|
337
|
+
process.stdout.write(`removed pi extension: ${result.removed ? "yes" : "no"}\n`);
|
|
338
|
+
process.stdout.write(`extension path: ${result.extensionPath}\n`);
|
|
339
|
+
if (result.backupPath) {
|
|
340
|
+
process.stdout.write(`backup: ${result.backupPath}\n`);
|
|
341
|
+
}
|
|
342
|
+
if (result.restoredBackup) {
|
|
343
|
+
process.stdout.write("restored backup: yes\n");
|
|
344
|
+
}
|
|
345
|
+
process.stdout.write("enable: tokenjuice install pi\n");
|
|
346
|
+
});
|
|
347
|
+
const uninstallOpencodeV2Command = createHostCommand(() => uninstallOpenCodeV2Extension(), (result) => {
|
|
348
|
+
process.stdout.write(`removed opencode-v2 extension: ${result.removed ? "yes" : "no"}\n`);
|
|
349
|
+
process.stdout.write(`extension path: ${result.extensionPath}\n`);
|
|
350
|
+
});
|
|
351
|
+
const uninstallOpencodeCommand = createHostCommand(() => uninstallOpenCodeExtension(), (result) => {
|
|
352
|
+
process.stdout.write(`removed opencode extension: ${result.removed ? "yes" : "missing"}\n`);
|
|
353
|
+
process.stdout.write(`extension path: ${result.extensionPath}\n`);
|
|
354
|
+
process.stdout.write("enable: tokenjuice install opencode\n");
|
|
355
|
+
});
|
|
356
|
+
const uninstallPlandexCommand = createFileUninstallCommand("plandex", "convention", "conventionPath", () => uninstallPlandexConvention());
|
|
357
|
+
const uninstallAnteCommand = createFileUninstallCommand("ante", "instructions", "instructionsPath", () => uninstallAnteInstructions());
|
|
358
|
+
const uninstallQoderCommand = createFileUninstallCommand("qoder", "instructions", "instructionsPath", () => uninstallQoderInstructions());
|
|
359
|
+
const uninstallReplitCommand = createFileUninstallCommand("replit", "instructions", "instructionsPath", () => uninstallReplitInstructions());
|
|
360
|
+
const uninstallQoderCliCommand = createHostCommand(() => uninstallQoderHook(), (result) => {
|
|
361
|
+
process.stdout.write(`removed qoder-cli entries: ${result.removed}\n`);
|
|
362
|
+
process.stdout.write(`settings path: ${result.settingsPath}\n`);
|
|
363
|
+
process.stdout.write("enable: tokenjuice install qoder-cli\n");
|
|
364
|
+
});
|
|
365
|
+
const uninstallQoderWorkCommand = createHostCommand(() => uninstallQoderWorkSkill(), (result) => {
|
|
366
|
+
process.stdout.write(`removed qoderwork skill: ${result.removed ? "yes" : "no"}\n`);
|
|
367
|
+
process.stdout.write(`skill path: ${result.skillPath}\n`);
|
|
368
|
+
});
|
|
369
|
+
const uninstallQwenWorkCommand = createHostCommand(() => uninstallQwenWorkSkill(), (result) => {
|
|
370
|
+
process.stdout.write(`removed qwenwork skill: ${result.removed ? "yes" : "no"}\n`);
|
|
371
|
+
process.stdout.write(`skill path: ${result.skillPath}\n`);
|
|
372
|
+
});
|
|
373
|
+
const uninstallQwenCodeCommand = createHostCommand(() => uninstallQwenCodeHook(), (result) => {
|
|
374
|
+
process.stdout.write(`removed qwen-code entries: ${result.removed}\n`);
|
|
375
|
+
process.stdout.write(`settings path: ${result.settingsPath}\n`);
|
|
376
|
+
process.stdout.write("enable: tokenjuice install qwen-code\n");
|
|
377
|
+
});
|
|
378
|
+
const uninstallRooCommand = createFileUninstallCommand("roo", "rules", "instructionsPath", () => uninstallRooInstructions());
|
|
379
|
+
const uninstallRovoCommand = createFileUninstallCommand("rovo", "instructions", "instructionsPath", () => uninstallRovoInstructions());
|
|
380
|
+
const uninstallRulerCommand = createFileUninstallCommand("ruler", "rule", "rulePath", () => uninstallRulerRule());
|
|
381
|
+
const uninstallTabnineCommand = createFileUninstallCommand("tabnine", "instructions", "instructionsPath", () => uninstallTabnineInstructions());
|
|
382
|
+
const uninstallTabbyCommand = createHostCommand(() => uninstallTabbySystemPrompt(), (result) => {
|
|
383
|
+
process.stdout.write(`removed tabby system prompt: ${result.removed ? "yes" : "no"}\n`);
|
|
384
|
+
process.stdout.write(`config path: ${result.configPath}\n`);
|
|
385
|
+
process.stdout.write("enable: tokenjuice install tabby\n");
|
|
386
|
+
});
|
|
387
|
+
const uninstallTraeCommand = createFileUninstallCommand("trae", "rule", "rulePath", () => uninstallTraeRule());
|
|
388
|
+
const uninstallUipathCommand = createFileUninstallCommand("uipath", "instructions", "instructionsPath", () => uninstallUiPathInstructions());
|
|
389
|
+
const uninstallVscodeCopilotCommand = createHostCommand(() => uninstallVscodeCopilotHook(), (result) => {
|
|
390
|
+
process.stdout.write(`removed vscode-copilot entries: ${result.removed}\n`);
|
|
391
|
+
process.stdout.write(`hooks path: ${result.hooksPath}${result.deletedFile ? " (file deleted)" : ""}\n`);
|
|
392
|
+
process.stdout.write("enable: tokenjuice install vscode-copilot\n");
|
|
393
|
+
});
|
|
394
|
+
const uninstallWindsurfCommand = createFileUninstallCommand("windsurf", "rule", "rulePath", () => uninstallWindsurfRule());
|
|
395
|
+
const uninstallCopilotCliCommand = createHostCommand(() => uninstallCopilotCliHook(), (result) => {
|
|
396
|
+
process.stdout.write(`removed copilot-cli entries: ${result.removed}\n`);
|
|
397
|
+
process.stdout.write(`hooks path: ${result.hooksPath}${result.deletedFile ? " (file deleted)" : ""}\n`);
|
|
398
|
+
process.stdout.write("enable: tokenjuice install copilot-cli\n");
|
|
399
|
+
});
|
|
400
|
+
const uninstallDeepagentsCommand = createFileUninstallCommand("deepagents", "instructions", "instructionsPath", () => uninstallDeepAgentsInstructions());
|
|
401
|
+
const uninstallDevinCommand = createHostCommand(() => uninstallDevinHook(), (result) => {
|
|
402
|
+
process.stdout.write(`removed devin entries: ${result.removed}\n`);
|
|
403
|
+
process.stdout.write(`hooks path: ${result.hooksPath}${result.deletedFile ? " (file deleted)" : ""}\n`);
|
|
404
|
+
process.stdout.write("enable: tokenjuice install devin\n");
|
|
405
|
+
});
|
|
406
|
+
const uninstallDotAgentsCommand = createHostCommand(() => uninstallDotAgentsRule(), (result) => {
|
|
407
|
+
process.stdout.write(`removed dot-agents rule: ${result.removed ? "yes" : "no"}\n`);
|
|
408
|
+
process.stdout.write(`rule path: ${result.rulePath}\n`);
|
|
409
|
+
process.stdout.write(`sync: ${result.syncCommand}\n`);
|
|
410
|
+
process.stdout.write("enable: tokenjuice install dot-agents\n");
|
|
411
|
+
});
|
|
412
|
+
const uninstallDockerAgentCommand = createFileUninstallCommand("docker-agent", "prompt", "promptPath", () => uninstallDockerAgentPrompt());
|
|
413
|
+
const uninstallEcaCommand = createHostCommand(() => uninstallEcaSkill(), (result) => {
|
|
414
|
+
process.stdout.write(`removed ECA skill: ${result.removed ? "yes" : "no"}\n`);
|
|
415
|
+
process.stdout.write(`skill path: ${result.skillPath}\n`);
|
|
416
|
+
process.stdout.write("enable: tokenjuice install eca\n");
|
|
417
|
+
});
|
|
418
|
+
const uninstallElyraCommand = createHostCommand(() => uninstallElyraSkill(), (result) => {
|
|
419
|
+
process.stdout.write(`removed Elyra skill: ${result.removed ? "yes" : "no"}\n`);
|
|
420
|
+
process.stdout.write(`skill path: ${result.skillPath}\n`);
|
|
421
|
+
process.stdout.write("enable: tokenjuice install elyra\n");
|
|
422
|
+
});
|
|
423
|
+
const uninstallDroidCommand = createHostCommand(() => uninstallDroidHook(), (result) => {
|
|
424
|
+
process.stdout.write(`removed droid entries: ${result.removed}\n`);
|
|
425
|
+
process.stdout.write(`settings path: ${result.settingsPath}\n`);
|
|
426
|
+
process.stdout.write("enable: tokenjuice install droid\n");
|
|
427
|
+
});
|
|
428
|
+
const uninstallZedCommand = createFileUninstallCommand("zed", "rules", "instructionsPath", () => uninstallZedInstructions());
|
|
429
|
+
const uninstallZencoderCommand = createFileUninstallCommand("zencoder", "rule", "rulePath", () => uninstallZencoderRule());
|
|
430
|
+
export const uninstallCommands = new Map([
|
|
431
|
+
["adal", uninstallAdalCommand],
|
|
432
|
+
["aether", uninstallAetherCommand],
|
|
433
|
+
["aider", uninstallAiderCommand],
|
|
434
|
+
["aictl", uninstallAictlCommand],
|
|
435
|
+
["ai-memory-protocol", uninstallAiMemoryProtocolCommand],
|
|
436
|
+
["aimemoryprotocol", uninstallAiMemoryProtocolCommand],
|
|
437
|
+
["agent-layer", uninstallAgentLayerCommand],
|
|
438
|
+
["agentinit", uninstallAgentinitCommand],
|
|
439
|
+
["agent-init", uninstallAgentinitCommand],
|
|
440
|
+
["agentlink", uninstallAgentlinkCommand],
|
|
441
|
+
["agentloom", uninstallAgentloomCommand],
|
|
442
|
+
["agents-cli", uninstallAgentsCliCommand],
|
|
443
|
+
["agents-md", uninstallAgentsMdCommand],
|
|
444
|
+
["agentsmd", uninstallAgentsMdCommand],
|
|
445
|
+
["agentsge", uninstallAgentsgeCommand],
|
|
446
|
+
["agentsmesh", uninstallAgentsmeshCommand],
|
|
447
|
+
["amazon-q", uninstallAmazonQCommand],
|
|
448
|
+
["amp", uninstallAmpCommand],
|
|
449
|
+
["antigravity", uninstallAntigravityCommand],
|
|
450
|
+
["anywhere-agents", uninstallAnywhereAgentsCommand],
|
|
451
|
+
["augment", uninstallAugmentCommand],
|
|
452
|
+
["avante", uninstallAvanteCommand],
|
|
453
|
+
["baz", uninstallBazCommand],
|
|
454
|
+
["bito", uninstallBitoCommand],
|
|
455
|
+
["blackbox", uninstallBlackboxCommand],
|
|
456
|
+
["blocks", uninstallBlocksCommand],
|
|
457
|
+
["clawdbot", uninstallClawdbotCommand],
|
|
458
|
+
["bob", uninstallBobCommand],
|
|
459
|
+
["builder", uninstallBuilderCommand],
|
|
460
|
+
["charlie", uninstallCharlieCommand],
|
|
461
|
+
["codex", uninstallCodexCommand],
|
|
462
|
+
["claude-code", uninstallClaudeCodeCommand],
|
|
463
|
+
["cline", uninstallClineCommand],
|
|
464
|
+
["codeant", uninstallCodeantCommand],
|
|
465
|
+
["codebuff", uninstallCodebuffCommand],
|
|
466
|
+
["codegen", uninstallCodegenCommand],
|
|
467
|
+
["coder-agents", uninstallCoderAgentsCommand],
|
|
468
|
+
["coderagents", uninstallCoderAgentsCommand],
|
|
469
|
+
["codebuddy", uninstallCodebuddyCommand],
|
|
470
|
+
["command-code", uninstallCommandCodeCommand],
|
|
471
|
+
["commandcode", uninstallCommandCodeCommand],
|
|
472
|
+
["pi-go", uninstallPiGoCommand],
|
|
473
|
+
["pigo", uninstallPiGoCommand],
|
|
474
|
+
["continue", uninstallContinueCommand],
|
|
475
|
+
["copilot-agent", uninstallCopilotAgentCommand],
|
|
476
|
+
["crush", uninstallCrushCommand],
|
|
477
|
+
["cursor", uninstallCursorCommand],
|
|
478
|
+
["firebase-studio", uninstallFirebaseStudioCommand],
|
|
479
|
+
["forgecode", uninstallForgecodeCommand],
|
|
480
|
+
["forge-code", uninstallForgecodeCommand],
|
|
481
|
+
["gemini-cli", uninstallGeminiCliCommand],
|
|
482
|
+
["gitlab-duo", uninstallGitlabDuoCommand],
|
|
483
|
+
["grok-cli", uninstallGrokCliCommand],
|
|
484
|
+
["gptme", uninstallGptmeCommand],
|
|
485
|
+
["jean2", uninstallJean2Command],
|
|
486
|
+
["grok-build", uninstallGrokBuildCommand],
|
|
487
|
+
["grok-bot", uninstallGrokBotCommand],
|
|
488
|
+
["grokbot", uninstallGrokBotCommand],
|
|
489
|
+
["goose", uninstallGooseCommand],
|
|
490
|
+
["greptile", uninstallGreptileCommand],
|
|
491
|
+
["qodo", uninstallQodoCommand],
|
|
492
|
+
["coderabbit", uninstallCoderabbitCommand],
|
|
493
|
+
["jetbrains-ai", uninstallJetbrainsAiCommand],
|
|
494
|
+
["junie", uninstallJunieCommand],
|
|
495
|
+
["jules", uninstallJulesCommand],
|
|
496
|
+
["leanctl", uninstallLeanctlCommand],
|
|
497
|
+
["kimi", uninstallKimiCommand],
|
|
498
|
+
["localcode", uninstallLocalcodeCommand],
|
|
499
|
+
["local-code", uninstallLocalcodeCommand],
|
|
500
|
+
["kiro", uninstallKiroCommand],
|
|
501
|
+
["kilo", uninstallKiloCommand],
|
|
502
|
+
["mistral-vibe", uninstallMistralVibeCommand],
|
|
503
|
+
["mistralvibe", uninstallMistralVibeCommand],
|
|
504
|
+
["mcp-agent", uninstallMcpAgentCommand],
|
|
505
|
+
["mcpagent", uninstallMcpAgentCommand],
|
|
506
|
+
["mini-swe-agent", uninstallMiniSweAgentCommand],
|
|
507
|
+
["mini-sweagent", uninstallMiniSweAgentCommand],
|
|
508
|
+
["swe-agent", uninstallSweAgentCommand],
|
|
509
|
+
["sweagent", uninstallSweAgentCommand],
|
|
510
|
+
["stagewise", uninstallStagewiseCommand],
|
|
511
|
+
["mux", uninstallMuxCommand],
|
|
512
|
+
["novakit", uninstallNovakitCommand],
|
|
513
|
+
["knowns", uninstallKnownsCommand],
|
|
514
|
+
["ona", uninstallOnaCommand],
|
|
515
|
+
["warp", uninstallWarpCommand],
|
|
516
|
+
["openhands", uninstallOpenhandsCommand],
|
|
517
|
+
["open-interpreter", uninstallOpenInterpreterCommand],
|
|
518
|
+
["openinterpreter", uninstallOpenInterpreterCommand],
|
|
519
|
+
["openwebui", uninstallOpenwebuiCommand],
|
|
520
|
+
["pi", uninstallPiCommand],
|
|
521
|
+
["opencode", uninstallOpencodeCommand],
|
|
522
|
+
["opencode-v2", uninstallOpencodeV2Command],
|
|
523
|
+
["plandex", uninstallPlandexCommand],
|
|
524
|
+
["ante", uninstallAnteCommand],
|
|
525
|
+
["qoder", uninstallQoderCommand],
|
|
526
|
+
["qoder-cli", uninstallQoderCliCommand],
|
|
527
|
+
["replit", uninstallReplitCommand],
|
|
528
|
+
["replit-agent", uninstallReplitCommand],
|
|
529
|
+
["qwen-code", uninstallQwenCodeCommand],
|
|
530
|
+
["qwenwork", uninstallQwenWorkCommand],
|
|
531
|
+
["qoderwork", uninstallQoderWorkCommand],
|
|
532
|
+
["roo", uninstallRooCommand],
|
|
533
|
+
["rovo", uninstallRovoCommand],
|
|
534
|
+
["rovo-dev", uninstallRovoCommand],
|
|
535
|
+
["ruler", uninstallRulerCommand],
|
|
536
|
+
["tabnine", uninstallTabnineCommand],
|
|
537
|
+
["tabby", uninstallTabbyCommand],
|
|
538
|
+
["trae", uninstallTraeCommand],
|
|
539
|
+
["uipath", uninstallUipathCommand],
|
|
540
|
+
["vscode-copilot", uninstallVscodeCopilotCommand],
|
|
541
|
+
["windsurf", uninstallWindsurfCommand],
|
|
542
|
+
["copilot-cli", uninstallCopilotCliCommand],
|
|
543
|
+
["deepagents", uninstallDeepagentsCommand],
|
|
544
|
+
["devin", uninstallDevinCommand],
|
|
545
|
+
["dot-agents", uninstallDotAgentsCommand],
|
|
546
|
+
["docker-agent", uninstallDockerAgentCommand],
|
|
547
|
+
["dockeragent", uninstallDockerAgentCommand],
|
|
548
|
+
["cagent", uninstallDockerAgentCommand],
|
|
549
|
+
["eca", uninstallEcaCommand],
|
|
550
|
+
["elyra", uninstallElyraCommand],
|
|
551
|
+
["droid", uninstallDroidCommand],
|
|
552
|
+
["zed", uninstallZedCommand],
|
|
553
|
+
["zencoder", uninstallZencoderCommand],
|
|
554
|
+
]);
|
|
@@ -9,6 +9,18 @@ const MAX_SHARD_COUNT = 100;
|
|
|
9
9
|
const MAX_STORE_FILES = 10_000;
|
|
10
10
|
const MAX_SEGMENT_BYTES = 64 * 1024 * 1024;
|
|
11
11
|
const DIRECTORY_ENTRY_SLACK = 256;
|
|
12
|
+
async function closeDirectoryHandle(directoryHandle) {
|
|
13
|
+
const close = directoryHandle.close;
|
|
14
|
+
if (typeof close !== "function") {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
await close.call(directoryHandle);
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
// Best-effort close; some runtimes (e.g. Bun) omit Dir.close.
|
|
22
|
+
}
|
|
23
|
+
}
|
|
12
24
|
const DEFAULT_RETENTION_DAYS = 14;
|
|
13
25
|
const DEFAULT_SHARD_COUNT = 8;
|
|
14
26
|
const DEFAULT_MAX_SEGMENT_BYTES = 1024 * 1024;
|
|
@@ -129,7 +141,7 @@ async function pruneExpiredSegments(directory, prefix, retentionDays, maxFiles,
|
|
|
129
141
|
}
|
|
130
142
|
}
|
|
131
143
|
finally {
|
|
132
|
-
await directoryHandle
|
|
144
|
+
await closeDirectoryHandle(directoryHandle);
|
|
133
145
|
}
|
|
134
146
|
}
|
|
135
147
|
async function countOwnedSegments(directory, prefix, maxFiles) {
|
|
@@ -151,7 +163,7 @@ async function countOwnedSegments(directory, prefix, maxFiles) {
|
|
|
151
163
|
}
|
|
152
164
|
}
|
|
153
165
|
finally {
|
|
154
|
-
await directoryHandle
|
|
166
|
+
await closeDirectoryHandle(directoryHandle);
|
|
155
167
|
}
|
|
156
168
|
return { count, complete: true };
|
|
157
169
|
}
|
|
@@ -299,7 +311,7 @@ export async function readBoundedJsonlPage(directory, prefix, validate, options
|
|
|
299
311
|
}
|
|
300
312
|
}
|
|
301
313
|
finally {
|
|
302
|
-
await directoryHandle
|
|
314
|
+
await closeDirectoryHandle(directoryHandle);
|
|
303
315
|
}
|
|
304
316
|
names.sort().reverse();
|
|
305
317
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { constants } from "node:fs";
|
|
2
|
+
import { open } from "node:fs/promises";
|
|
3
|
+
export async function readBoundedTextFile(path, maxBytes, options = {}) {
|
|
4
|
+
if (!Number.isSafeInteger(maxBytes) || maxBytes < 0) {
|
|
5
|
+
throw new RangeError("maxBytes must be a non-negative safe integer");
|
|
6
|
+
}
|
|
7
|
+
const file = await open(path, options.regularFileOnly ? constants.O_RDONLY | constants.O_NONBLOCK : "r");
|
|
8
|
+
try {
|
|
9
|
+
const details = await file.stat();
|
|
10
|
+
if ((options.regularFileOnly && !details.isFile()) || details.size > maxBytes) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
const chunks = [];
|
|
14
|
+
let totalBytes = 0;
|
|
15
|
+
for (;;) {
|
|
16
|
+
// Read one byte beyond the limit to detect growth after the descriptor stat.
|
|
17
|
+
const buffer = Buffer.allocUnsafe(Math.min(64 * 1024, maxBytes - totalBytes + 1));
|
|
18
|
+
const { bytesRead } = await file.read(buffer, 0, buffer.length, null);
|
|
19
|
+
if (bytesRead === 0) {
|
|
20
|
+
return Buffer.concat(chunks, totalBytes).toString("utf8");
|
|
21
|
+
}
|
|
22
|
+
totalBytes += bytesRead;
|
|
23
|
+
if (totalBytes > maxBytes) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
chunks.push(buffer.subarray(0, bytesRead));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
finally {
|
|
30
|
+
await file.close();
|
|
31
|
+
}
|
|
32
|
+
}
|