@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,674 @@
|
|
|
1
|
+
import { doctorOpenCodeV2Extension } from "../hosts/opencode/v2/index.js";
|
|
2
|
+
import { doctorQoderHook } from "../hosts/qoder/hook-install.js";
|
|
3
|
+
import { doctorQwenWorkSkill } from "../hosts/qwenwork/index.js";
|
|
4
|
+
import { doctorQoderWorkSkill } from "../hosts/qoderwork/index.js";
|
|
5
|
+
// Per-target handlers for `tokenjuice doctor <target>` (hosts plus `doctor hooks`).
|
|
6
|
+
// Each handler is keyed by the target name and its aliases in doctorCommands.
|
|
7
|
+
import { doctorAdalInstructions } from "../hosts/adal/index.js";
|
|
8
|
+
import { doctorAetherPrompt } from "../hosts/aether/index.js";
|
|
9
|
+
import { doctorAictlInstructions } from "../hosts/aictl/index.js";
|
|
10
|
+
import { doctorAiMemoryProtocolMemory } from "../hosts/ai-memory-protocol/index.js";
|
|
11
|
+
import { doctorAgentLayerInstructions } from "../hosts/agent-layer/index.js";
|
|
12
|
+
import { doctorAgentInitInstructions } from "../hosts/agentinit/index.js";
|
|
13
|
+
import { doctorAgentlinkInstructions } from "../hosts/agentlink/index.js";
|
|
14
|
+
import { doctorAgentloomRule } from "../hosts/agentloom/index.js";
|
|
15
|
+
import { doctorAgentsCliMemory } from "../hosts/agents-cli/index.js";
|
|
16
|
+
import { doctorAgentsMdInstructions } from "../hosts/agents-md/index.js";
|
|
17
|
+
import { doctorAgentsGeRule } from "../hosts/agentsge/index.js";
|
|
18
|
+
import { doctorAgentsMeshRule } from "../hosts/agentsmesh/index.js";
|
|
19
|
+
import { doctorAmazonQRule } from "../hosts/amazon-q/index.js";
|
|
20
|
+
import { doctorAmpInstructions } from "../hosts/amp/index.js";
|
|
21
|
+
import { doctorAiderConvention } from "../hosts/aider/index.js";
|
|
22
|
+
import { doctorAntigravityRule } from "../hosts/antigravity/index.js";
|
|
23
|
+
import { doctorAnywhereAgentsInstructions } from "../hosts/anywhere-agents/index.js";
|
|
24
|
+
import { doctorAugmentRule } from "../hosts/augment/index.js";
|
|
25
|
+
import { doctorAvanteInstructions } from "../hosts/avante/index.js";
|
|
26
|
+
import { doctorBazSkill } from "../hosts/baz/index.js";
|
|
27
|
+
import { doctorBitoGuidelines } from "../hosts/bito/index.js";
|
|
28
|
+
import { doctorBlackboxSkill } from "../hosts/blackbox/index.js";
|
|
29
|
+
import { doctorBlocksSkill } from "../hosts/blocks/index.js";
|
|
30
|
+
import { doctorClawdbotSkill } from "../hosts/clawdbot/index.js";
|
|
31
|
+
import { doctorBobInstructions } from "../hosts/bob/index.js";
|
|
32
|
+
import { doctorBuilderRule } from "../hosts/builder/index.js";
|
|
33
|
+
import { doctorCharlieInstructions } from "../hosts/charlie/index.js";
|
|
34
|
+
import { doctorClaudeCodeHook } from "../hosts/claude-code/index.js";
|
|
35
|
+
import { doctorClineHook } from "../hosts/cline/index.js";
|
|
36
|
+
import { doctorCodeAntInstructions } from "../hosts/codeant/index.js";
|
|
37
|
+
import { doctorCodebuffInstructions } from "../hosts/codebuff/index.js";
|
|
38
|
+
import { doctorCodegenInstructions } from "../hosts/codegen/index.js";
|
|
39
|
+
import { doctorCoderAgentsSkill } from "../hosts/coder-agents/index.js";
|
|
40
|
+
import { doctorCodeRabbitConfig } from "../hosts/coderabbit/index.js";
|
|
41
|
+
import { doctorCodeBuddyHook } from "../hosts/codebuddy/index.js";
|
|
42
|
+
import { doctorCommandCodeHook } from "../hosts/command-code/index.js";
|
|
43
|
+
import { doctorContinueRule } from "../hosts/continue/index.js";
|
|
44
|
+
import { doctorCodexHook } from "../hosts/codex/index.js";
|
|
45
|
+
import { doctorCopilotAgentHook } from "../hosts/copilot-agent/index.js";
|
|
46
|
+
import { doctorCopilotCliHook, getCopilotCliInstructionsSnippet } from "../hosts/copilot-cli/index.js";
|
|
47
|
+
import { doctorCrushSkill } from "../hosts/crush/index.js";
|
|
48
|
+
import { doctorCursorHook } from "../hosts/cursor/index.js";
|
|
49
|
+
import { doctorDeepAgentsInstructions } from "../hosts/deepagents/index.js";
|
|
50
|
+
import { doctorDevinHook } from "../hosts/devin/index.js";
|
|
51
|
+
import { doctorDotAgentsRule } from "../hosts/dot-agents/index.js";
|
|
52
|
+
import { doctorDockerAgentPrompt } from "../hosts/docker-agent/index.js";
|
|
53
|
+
import { doctorDroidHook } from "../hosts/droid/index.js";
|
|
54
|
+
import { doctorEcaSkill } from "../hosts/eca/index.js";
|
|
55
|
+
import { doctorElyraSkill } from "../hosts/elyra/index.js";
|
|
56
|
+
import { doctorFirebaseStudioRule } from "../hosts/firebase-studio/index.js";
|
|
57
|
+
import { doctorForgeCodeInstructions } from "../hosts/forgecode/index.js";
|
|
58
|
+
import { doctorGeminiCliHook } from "../hosts/gemini-cli/index.js";
|
|
59
|
+
import { doctorGitLabDuoRule } from "../hosts/gitlab-duo/index.js";
|
|
60
|
+
import { doctorGooseHints } from "../hosts/goose/index.js";
|
|
61
|
+
import { doctorGreptileRule } from "../hosts/greptile/index.js";
|
|
62
|
+
import { doctorGrokBuildInstructions } from "../hosts/grok-build/index.js";
|
|
63
|
+
import { doctorGrokBotRule } from "../hosts/grok-bot/index.js";
|
|
64
|
+
import { doctorGrokCliHook } from "../hosts/grok-cli/index.js";
|
|
65
|
+
import { doctorGptmeInstructions } from "../hosts/gptme/index.js";
|
|
66
|
+
import { doctorJean2Instructions } from "../hosts/jean2/index.js";
|
|
67
|
+
import { doctorJetBrainsAiRule } from "../hosts/jetbrains-ai/index.js";
|
|
68
|
+
import { doctorJunieInstructions } from "../hosts/junie/index.js";
|
|
69
|
+
import { doctorJulesInstructions } from "../hosts/jules/index.js";
|
|
70
|
+
import { doctorLeanCtlInstructions } from "../hosts/leanctl/index.js";
|
|
71
|
+
import { doctorKimiHook } from "../hosts/kimi/index.js";
|
|
72
|
+
import { doctorKiroSteering } from "../hosts/kiro/index.js";
|
|
73
|
+
import { doctorKiloRule } from "../hosts/kilo/index.js";
|
|
74
|
+
import { doctorKnownsInstructions } from "../hosts/knowns/index.js";
|
|
75
|
+
import { doctorLocalCodePlugin } from "../hosts/localcode/index.js";
|
|
76
|
+
import { doctorMcpAgentDefinition } from "../hosts/mcp-agent/index.js";
|
|
77
|
+
import { doctorMiniSweAgentConfig } from "../hosts/mini-swe-agent/index.js";
|
|
78
|
+
import { doctorSweAgentConfig } from "../hosts/swe-agent/index.js";
|
|
79
|
+
import { doctorStagewiseSkill } from "../hosts/stagewise/index.js";
|
|
80
|
+
import { doctorMistralVibeInstructions } from "../hosts/mistral-vibe/index.js";
|
|
81
|
+
import { doctorMuxHook } from "../hosts/mux/index.js";
|
|
82
|
+
import { doctorNovaKitInstructions } from "../hosts/novakit/index.js";
|
|
83
|
+
import { doctorOnaSkill } from "../hosts/ona/index.js";
|
|
84
|
+
import { doctorOpenCodeExtension } from "../hosts/opencode/index.js";
|
|
85
|
+
import { doctorOpenInterpreterInstructions } from "../hosts/open-interpreter/index.js";
|
|
86
|
+
import { doctorOpenHandsHook } from "../hosts/openhands/index.js";
|
|
87
|
+
import { doctorOpenWebUITool } from "../hosts/openwebui/index.js";
|
|
88
|
+
import { doctorPiExtension } from "../hosts/pi/index.js";
|
|
89
|
+
import { doctorPiGoSkill } from "../hosts/pi-go/index.js";
|
|
90
|
+
import { doctorPlandexConvention } from "../hosts/plandex/index.js";
|
|
91
|
+
import { doctorQodoReviewConfig } from "../hosts/qodo/index.js";
|
|
92
|
+
import { doctorQoderInstructions } from "../hosts/qoder/index.js";
|
|
93
|
+
import { doctorAnteInstructions } from "../hosts/ante/index.js";
|
|
94
|
+
import { doctorQwenCodeHook } from "../hosts/qwen-code/index.js";
|
|
95
|
+
import { doctorReplitInstructions } from "../hosts/replit/index.js";
|
|
96
|
+
import { doctorRooInstructions } from "../hosts/roo/index.js";
|
|
97
|
+
import { doctorRovoInstructions } from "../hosts/rovo/index.js";
|
|
98
|
+
import { doctorRulerRule } from "../hosts/ruler/index.js";
|
|
99
|
+
import { doctorTabbySystemPrompt } from "../hosts/tabby/index.js";
|
|
100
|
+
import { doctorTabnineInstructions } from "../hosts/tabnine/index.js";
|
|
101
|
+
import { doctorTraeRule } from "../hosts/trae/index.js";
|
|
102
|
+
import { doctorUiPathInstructions } from "../hosts/uipath/index.js";
|
|
103
|
+
import { doctorVscodeCopilotHook, getVscodeCopilotInstructionsSnippet } from "../hosts/vscode-copilot/index.js";
|
|
104
|
+
import { doctorWarpInstructions } from "../hosts/warp/index.js";
|
|
105
|
+
import { doctorWindsurfRule } from "../hosts/windsurf/index.js";
|
|
106
|
+
import { doctorZedInstructions } from "../hosts/zed/index.js";
|
|
107
|
+
import { doctorZencoderRule } from "../hosts/zencoder/index.js";
|
|
108
|
+
import { doctorInstalledHooks } from "../hosts/shared/hook-doctor.js";
|
|
109
|
+
import { formatHookDoctorReport, writeDoctorList } from "./doctor-output.js";
|
|
110
|
+
import { createHostCommand } from "./host-command.js";
|
|
111
|
+
function createDoctorCommand(run, writeText) {
|
|
112
|
+
return createHostCommand(run, writeText, (report) => report.status === "broken" ? 1 : 0);
|
|
113
|
+
}
|
|
114
|
+
function createFileDoctorCommand(label, pathKey, run, showMissingPaths = false) {
|
|
115
|
+
return createDoctorCommand(run, (report) => {
|
|
116
|
+
process.stdout.write(`${label} path: ${report[pathKey]}\n`);
|
|
117
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
118
|
+
writeDoctorList("issues", report.issues);
|
|
119
|
+
if (showMissingPaths) {
|
|
120
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
121
|
+
}
|
|
122
|
+
writeDoctorList("advisories", report.advisories);
|
|
123
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
const doctorHooksCommand = createDoctorCommand((args) => doctorInstalledHooks({ local: args.local }), (report) => {
|
|
127
|
+
process.stdout.write(formatHookDoctorReport(report));
|
|
128
|
+
});
|
|
129
|
+
const doctorAdalCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorAdalInstructions());
|
|
130
|
+
const doctorAetherCommand = createDoctorCommand(() => doctorAetherPrompt(), (report) => {
|
|
131
|
+
process.stdout.write(`prompt path: ${report.promptPath}\n`);
|
|
132
|
+
process.stdout.write(`settings path: ${report.settingsPath}\n`);
|
|
133
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
134
|
+
writeDoctorList("issues", report.issues);
|
|
135
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
136
|
+
writeDoctorList("advisories", report.advisories);
|
|
137
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
138
|
+
});
|
|
139
|
+
const doctorAiderCommand = createFileDoctorCommand("convention", "conventionPath", () => doctorAiderConvention());
|
|
140
|
+
const doctorAictlCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorAictlInstructions(), true);
|
|
141
|
+
const doctorAiMemoryProtocolCommand = createFileDoctorCommand("memory", "memoryPath", () => doctorAiMemoryProtocolMemory(), true);
|
|
142
|
+
const doctorAgentLayerCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorAgentLayerInstructions());
|
|
143
|
+
const doctorAgentinitCommand = createDoctorCommand(() => doctorAgentInitInstructions(), (report) => {
|
|
144
|
+
process.stdout.write(`instructions path: ${report.instructionsPath}\n`);
|
|
145
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
146
|
+
writeDoctorList("issues", report.issues);
|
|
147
|
+
writeDoctorList("advisories", report.advisories);
|
|
148
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
149
|
+
process.stdout.write(`sync: ${report.syncCommand}\n`);
|
|
150
|
+
});
|
|
151
|
+
const doctorAgentlinkCommand = createDoctorCommand(() => doctorAgentlinkInstructions(), (report) => {
|
|
152
|
+
process.stdout.write(`instructions path: ${report.instructionsPath}\n`);
|
|
153
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
154
|
+
writeDoctorList("issues", report.issues);
|
|
155
|
+
writeDoctorList("advisories", report.advisories);
|
|
156
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
157
|
+
process.stdout.write(`sync: ${report.syncCommand}\n`);
|
|
158
|
+
});
|
|
159
|
+
const doctorAgentloomCommand = createFileDoctorCommand("rule", "rulePath", () => doctorAgentloomRule());
|
|
160
|
+
const doctorAgentsCliCommand = createDoctorCommand(() => doctorAgentsCliMemory(), (report) => {
|
|
161
|
+
process.stdout.write(`memory path: ${report.instructionsPath}\n`);
|
|
162
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
163
|
+
writeDoctorList("issues", report.issues);
|
|
164
|
+
writeDoctorList("advisories", report.advisories);
|
|
165
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
166
|
+
process.stdout.write(`sync: ${report.syncCommand}\n`);
|
|
167
|
+
});
|
|
168
|
+
const doctorAgentsMdCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorAgentsMdInstructions());
|
|
169
|
+
const doctorAgentsgeCommand = createFileDoctorCommand("rule", "rulePath", () => doctorAgentsGeRule());
|
|
170
|
+
const doctorAgentsmeshCommand = createFileDoctorCommand("rule", "rulePath", () => doctorAgentsMeshRule(), true);
|
|
171
|
+
const doctorAmazonQCommand = createFileDoctorCommand("rule", "rulePath", () => doctorAmazonQRule(), true);
|
|
172
|
+
const doctorAmpCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorAmpInstructions());
|
|
173
|
+
const doctorAntigravityCommand = createFileDoctorCommand("rule", "rulePath", () => doctorAntigravityRule());
|
|
174
|
+
const doctorAnywhereAgentsCommand = createDoctorCommand(() => doctorAnywhereAgentsInstructions(), (report) => {
|
|
175
|
+
process.stdout.write(`instructions path: ${report.instructionsPath}\n`);
|
|
176
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
177
|
+
writeDoctorList("issues", report.issues);
|
|
178
|
+
writeDoctorList("advisories", report.advisories);
|
|
179
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
180
|
+
process.stdout.write(`sync: ${report.syncCommand}\n`);
|
|
181
|
+
});
|
|
182
|
+
const doctorAugmentCommand = createFileDoctorCommand("rule", "rulePath", () => doctorAugmentRule());
|
|
183
|
+
const doctorAvanteCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorAvanteInstructions());
|
|
184
|
+
const doctorBazCommand = createFileDoctorCommand("skill", "skillPath", () => doctorBazSkill(), true);
|
|
185
|
+
const doctorBitoCommand = createDoctorCommand(() => doctorBitoGuidelines(), (report) => {
|
|
186
|
+
process.stdout.write(`config path: ${report.configPath}\n`);
|
|
187
|
+
process.stdout.write(`guidelines path: ${report.guidelinesPath}\n`);
|
|
188
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
189
|
+
writeDoctorList("issues", report.issues);
|
|
190
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
191
|
+
writeDoctorList("advisories", report.advisories);
|
|
192
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
193
|
+
});
|
|
194
|
+
const doctorBlackboxCommand = createFileDoctorCommand("skill", "skillPath", () => doctorBlackboxSkill(), true);
|
|
195
|
+
const doctorBlocksCommand = createFileDoctorCommand("skill", "skillPath", () => doctorBlocksSkill(), true);
|
|
196
|
+
const doctorClawdbotCommand = createFileDoctorCommand("skill", "skillPath", () => doctorClawdbotSkill(), true);
|
|
197
|
+
const doctorBobCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorBobInstructions());
|
|
198
|
+
const doctorBuilderCommand = createFileDoctorCommand("rule", "rulePath", () => doctorBuilderRule());
|
|
199
|
+
const doctorCharlieCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorCharlieInstructions());
|
|
200
|
+
const doctorCodexCommand = createDoctorCommand((args) => doctorCodexHook(undefined, {
|
|
201
|
+
local: args.local,
|
|
202
|
+
...(args.noOmit ? { noOmit: true } : {}),
|
|
203
|
+
}), (report) => {
|
|
204
|
+
process.stdout.write(`hooks path: ${report.hooksPath}\n`);
|
|
205
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
206
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
207
|
+
if (report.detectedCommand) {
|
|
208
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
209
|
+
}
|
|
210
|
+
writeDoctorList("issues", report.issues);
|
|
211
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
212
|
+
if (report.featureFlag.enabled) {
|
|
213
|
+
const source = report.featureFlag.key ? `[features].${report.featureFlag.key}` : "default-on";
|
|
214
|
+
process.stdout.write(`feature flag: hooks enabled via ${source} (${report.featureFlag.configPath})\n`);
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
const where = report.featureFlag.configExists
|
|
218
|
+
? `${report.featureFlag.configPath} (missing or disabled)`
|
|
219
|
+
: `no ${report.featureFlag.configPath}`;
|
|
220
|
+
process.stdout.write(`feature flag: hooks disabled — ${where}\n`);
|
|
221
|
+
process.stdout.write(` ${report.featureFlag.fixHint}\n`);
|
|
222
|
+
}
|
|
223
|
+
if (report.runtimeConfig.configExists) {
|
|
224
|
+
process.stdout.write(`codex config: approval_policy=${report.runtimeConfig.approvalPolicy ?? "(default)"}, sandbox_mode=${report.runtimeConfig.sandboxMode ?? "(default)"}, approvals_reviewer=${report.runtimeConfig.approvalsReviewer ?? "(default)"}\n`);
|
|
225
|
+
}
|
|
226
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
227
|
+
});
|
|
228
|
+
const doctorPiCommand = createDoctorCommand(() => doctorPiExtension(), (report) => {
|
|
229
|
+
process.stdout.write(`extension path: ${report.extensionPath}\n`);
|
|
230
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
231
|
+
writeDoctorList("issues", report.issues);
|
|
232
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
233
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
234
|
+
});
|
|
235
|
+
const doctorPiGoCommand = createFileDoctorCommand("skill", "skillPath", () => doctorPiGoSkill(), true);
|
|
236
|
+
const doctorOpencodeV2Command = createDoctorCommand((args) => doctorOpenCodeV2Extension({ local: args.local }), (report) => {
|
|
237
|
+
process.stdout.write(`extension path: ${report.extensionPath}\n`);
|
|
238
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
239
|
+
writeDoctorList("issues", report.issues);
|
|
240
|
+
writeDoctorList("advisories", report.advisories);
|
|
241
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
242
|
+
});
|
|
243
|
+
const doctorOpencodeCommand = createDoctorCommand(() => doctorOpenCodeExtension(), (report) => {
|
|
244
|
+
process.stdout.write(`extension path: ${report.extensionPath}\n`);
|
|
245
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
246
|
+
writeDoctorList("issues", report.issues);
|
|
247
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
248
|
+
});
|
|
249
|
+
const doctorPlandexCommand = createFileDoctorCommand("convention", "conventionPath", () => doctorPlandexConvention());
|
|
250
|
+
const doctorAnteCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorAnteInstructions(), true);
|
|
251
|
+
const doctorQoderCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorQoderInstructions(), true);
|
|
252
|
+
const doctorReplitCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorReplitInstructions(), true);
|
|
253
|
+
const doctorQoderCliCommand = createDoctorCommand((args) => doctorQoderHook(undefined, { local: args.local }), (report) => {
|
|
254
|
+
process.stdout.write(`settings path: ${report.settingsPath}\n`);
|
|
255
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
256
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
257
|
+
if (report.detectedCommand) {
|
|
258
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
259
|
+
}
|
|
260
|
+
writeDoctorList("issues", report.issues);
|
|
261
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
262
|
+
writeDoctorList("advisories", report.advisories);
|
|
263
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
264
|
+
});
|
|
265
|
+
const doctorQoderWorkCommand = createFileDoctorCommand("skill", "skillPath", () => doctorQoderWorkSkill());
|
|
266
|
+
const doctorQwenWorkCommand = createFileDoctorCommand("skill", "skillPath", () => doctorQwenWorkSkill());
|
|
267
|
+
const doctorQwenCodeCommand = createDoctorCommand((args) => doctorQwenCodeHook(undefined, { local: args.local }), (report) => {
|
|
268
|
+
process.stdout.write(`settings path: ${report.settingsPath}\n`);
|
|
269
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
270
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
271
|
+
if (report.detectedCommand) {
|
|
272
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
273
|
+
}
|
|
274
|
+
writeDoctorList("issues", report.issues);
|
|
275
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
276
|
+
writeDoctorList("advisories", report.advisories);
|
|
277
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
278
|
+
});
|
|
279
|
+
const doctorCommandCodeCommand = createDoctorCommand((args) => doctorCommandCodeHook(undefined, { local: args.local }), (report) => {
|
|
280
|
+
process.stdout.write(`settings path: ${report.settingsPath}\n`);
|
|
281
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
282
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
283
|
+
if (report.detectedCommand) {
|
|
284
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
285
|
+
}
|
|
286
|
+
writeDoctorList("issues", report.issues);
|
|
287
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
288
|
+
writeDoctorList("advisories", report.advisories);
|
|
289
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
290
|
+
});
|
|
291
|
+
const doctorCrushCommand = createFileDoctorCommand("skill", "skillPath", () => doctorCrushSkill(), true);
|
|
292
|
+
const doctorCursorCommand = createDoctorCommand((args) => doctorCursorHook(undefined, { local: args.local }), (report) => {
|
|
293
|
+
process.stdout.write(`hooks path: ${report.hooksPath}\n`);
|
|
294
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
295
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
296
|
+
if (report.detectedCommand) {
|
|
297
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
298
|
+
}
|
|
299
|
+
writeDoctorList("issues", report.issues);
|
|
300
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
301
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
302
|
+
});
|
|
303
|
+
const doctorDeepagentsCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorDeepAgentsInstructions());
|
|
304
|
+
const doctorDevinCommand = createDoctorCommand((args) => doctorDevinHook(undefined, { local: args.local }), (report) => {
|
|
305
|
+
process.stdout.write(`hooks path: ${report.hooksPath}\n`);
|
|
306
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
307
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
308
|
+
if (report.detectedCommand) {
|
|
309
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
310
|
+
}
|
|
311
|
+
writeDoctorList("issues", report.issues);
|
|
312
|
+
writeDoctorList("advisories", report.advisories);
|
|
313
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
314
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
315
|
+
});
|
|
316
|
+
const doctorDotAgentsCommand = createDoctorCommand(() => doctorDotAgentsRule(), (report) => {
|
|
317
|
+
process.stdout.write(`rule path: ${report.rulePath}\n`);
|
|
318
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
319
|
+
writeDoctorList("issues", report.issues);
|
|
320
|
+
writeDoctorList("advisories", report.advisories);
|
|
321
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
322
|
+
process.stdout.write(`sync: ${report.syncCommand}\n`);
|
|
323
|
+
});
|
|
324
|
+
const doctorDockerAgentCommand = createFileDoctorCommand("prompt", "promptPath", () => doctorDockerAgentPrompt());
|
|
325
|
+
const doctorCopilotAgentCommand = createDoctorCommand((args) => doctorCopilotAgentHook(undefined, { local: args.local }), (report) => {
|
|
326
|
+
process.stdout.write(`hooks path: ${report.hooksPath}\n`);
|
|
327
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
328
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
329
|
+
if (report.detectedCommand) {
|
|
330
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
331
|
+
}
|
|
332
|
+
writeDoctorList("issues", report.issues);
|
|
333
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
334
|
+
writeDoctorList("advisories", report.advisories);
|
|
335
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
336
|
+
});
|
|
337
|
+
const doctorEcaCommand = createFileDoctorCommand("skill", "skillPath", () => doctorEcaSkill(), true);
|
|
338
|
+
const doctorElyraCommand = createFileDoctorCommand("skill", "skillPath", () => doctorElyraSkill(), true);
|
|
339
|
+
const doctorFirebaseStudioCommand = createFileDoctorCommand("rules", "rulePath", () => doctorFirebaseStudioRule(), true);
|
|
340
|
+
const doctorForgecodeCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorForgeCodeInstructions(), true);
|
|
341
|
+
const doctorGeminiCliCommand = createDoctorCommand((args) => doctorGeminiCliHook(undefined, { local: args.local }), (report) => {
|
|
342
|
+
process.stdout.write(`settings path: ${report.settingsPath}\n`);
|
|
343
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
344
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
345
|
+
if (report.detectedCommand) {
|
|
346
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
347
|
+
}
|
|
348
|
+
writeDoctorList("issues", report.issues);
|
|
349
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
350
|
+
writeDoctorList("advisories", report.advisories);
|
|
351
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
352
|
+
});
|
|
353
|
+
const doctorGitlabDuoCommand = createFileDoctorCommand("rule", "rulePath", () => doctorGitLabDuoRule(), true);
|
|
354
|
+
const doctorGrokCliCommand = createDoctorCommand((args) => doctorGrokCliHook(undefined, { local: args.local }), (report) => {
|
|
355
|
+
process.stdout.write(`settings path: ${report.settingsPath}\n`);
|
|
356
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
357
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
358
|
+
if (report.detectedCommand) {
|
|
359
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
360
|
+
}
|
|
361
|
+
writeDoctorList("issues", report.issues);
|
|
362
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
363
|
+
writeDoctorList("advisories", report.advisories);
|
|
364
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
365
|
+
});
|
|
366
|
+
const doctorGptmeCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorGptmeInstructions());
|
|
367
|
+
const doctorJean2Command = createFileDoctorCommand("instructions", "instructionsPath", () => doctorJean2Instructions());
|
|
368
|
+
const doctorGrokBuildCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorGrokBuildInstructions(), true);
|
|
369
|
+
const doctorGrokBotCommand = createFileDoctorCommand("rule", "rulePath", () => doctorGrokBotRule(), true);
|
|
370
|
+
const doctorGooseCommand = createFileDoctorCommand("hints", "hintsPath", () => doctorGooseHints());
|
|
371
|
+
const doctorGreptileCommand = createFileDoctorCommand("rule", "rulePath", () => doctorGreptileRule(), true);
|
|
372
|
+
const doctorQodoCommand = createFileDoctorCommand("config", "configPath", () => doctorQodoReviewConfig(), true);
|
|
373
|
+
const doctorCoderabbitCommand = createFileDoctorCommand("config", "configPath", () => doctorCodeRabbitConfig(), true);
|
|
374
|
+
const doctorJetbrainsAiCommand = createFileDoctorCommand("rule", "rulePath", () => doctorJetBrainsAiRule());
|
|
375
|
+
const doctorJunieCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorJunieInstructions());
|
|
376
|
+
const doctorJulesCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorJulesInstructions());
|
|
377
|
+
const doctorLeanctlCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorLeanCtlInstructions());
|
|
378
|
+
const doctorKimiCommand = createDoctorCommand((args) => doctorKimiHook(undefined, { local: args.local }), (report) => {
|
|
379
|
+
process.stdout.write(`config path: ${report.configPath}\n`);
|
|
380
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
381
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
382
|
+
if (report.detectedCommand) {
|
|
383
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
384
|
+
}
|
|
385
|
+
writeDoctorList("issues", report.issues);
|
|
386
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
387
|
+
writeDoctorList("advisories", report.advisories);
|
|
388
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
389
|
+
});
|
|
390
|
+
const doctorLocalcodeCommand = createDoctorCommand(() => doctorLocalCodePlugin(), (report) => {
|
|
391
|
+
process.stdout.write(`plugin dir: ${report.pluginDir}\n`);
|
|
392
|
+
process.stdout.write(`manifest path: ${report.manifestPath}\n`);
|
|
393
|
+
process.stdout.write(`entrypoint path: ${report.indexPath}\n`);
|
|
394
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
395
|
+
writeDoctorList("issues", report.issues);
|
|
396
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
397
|
+
writeDoctorList("advisories", report.advisories);
|
|
398
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
399
|
+
});
|
|
400
|
+
const doctorOpenhandsCommand = createDoctorCommand((args) => doctorOpenHandsHook(undefined, { local: args.local }), (report) => {
|
|
401
|
+
process.stdout.write(`hooks path: ${report.hooksPath}\n`);
|
|
402
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
403
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
404
|
+
if (report.detectedCommand) {
|
|
405
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
406
|
+
}
|
|
407
|
+
writeDoctorList("issues", report.issues);
|
|
408
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
409
|
+
writeDoctorList("advisories", report.advisories);
|
|
410
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
411
|
+
});
|
|
412
|
+
const doctorOpenwebuiCommand = createFileDoctorCommand("tool", "toolPath", () => doctorOpenWebUITool());
|
|
413
|
+
const doctorMcpAgentCommand = createFileDoctorCommand("agent", "agentPath", () => doctorMcpAgentDefinition());
|
|
414
|
+
const doctorMiniSweAgentCommand = createFileDoctorCommand("config", "configPath", () => doctorMiniSweAgentConfig());
|
|
415
|
+
const doctorSweAgentCommand = createFileDoctorCommand("config", "configPath", () => doctorSweAgentConfig());
|
|
416
|
+
const doctorStagewiseCommand = createFileDoctorCommand("skill", "skillPath", () => doctorStagewiseSkill(), true);
|
|
417
|
+
const doctorOpenInterpreterCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorOpenInterpreterInstructions());
|
|
418
|
+
async function doctorVscodeCopilotCommand(args) {
|
|
419
|
+
if (args.printInstructions) {
|
|
420
|
+
process.stdout.write(getVscodeCopilotInstructionsSnippet());
|
|
421
|
+
return 0;
|
|
422
|
+
}
|
|
423
|
+
const report = await doctorVscodeCopilotHook(undefined, { local: args.local });
|
|
424
|
+
if (args.format === "json") {
|
|
425
|
+
process.stdout.write(`${JSON.stringify(report, null, 2)}\n`);
|
|
426
|
+
return report.status === "broken" ? 1 : 0;
|
|
427
|
+
}
|
|
428
|
+
process.stdout.write(`hooks path: ${report.hooksPath}\n`);
|
|
429
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
430
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
431
|
+
if (report.detectedCommand) {
|
|
432
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
433
|
+
}
|
|
434
|
+
writeDoctorList("issues", report.issues);
|
|
435
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
436
|
+
writeDoctorList("advisories", report.advisories);
|
|
437
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
438
|
+
return report.status === "broken" ? 1 : 0;
|
|
439
|
+
}
|
|
440
|
+
const doctorZedCommand = createFileDoctorCommand("rules", "instructionsPath", () => doctorZedInstructions());
|
|
441
|
+
const doctorZencoderCommand = createFileDoctorCommand("rule", "rulePath", () => doctorZencoderRule());
|
|
442
|
+
const doctorRooCommand = createFileDoctorCommand("rules", "instructionsPath", () => doctorRooInstructions());
|
|
443
|
+
const doctorRovoCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorRovoInstructions());
|
|
444
|
+
const doctorRulerCommand = createFileDoctorCommand("rule", "rulePath", () => doctorRulerRule());
|
|
445
|
+
const doctorTabnineCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorTabnineInstructions());
|
|
446
|
+
const doctorTabbyCommand = createFileDoctorCommand("config", "configPath", () => doctorTabbySystemPrompt());
|
|
447
|
+
const doctorTraeCommand = createFileDoctorCommand("rule", "rulePath", () => doctorTraeRule());
|
|
448
|
+
const doctorUipathCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorUiPathInstructions());
|
|
449
|
+
const doctorKiloCommand = createDoctorCommand(() => doctorKiloRule(), (report) => {
|
|
450
|
+
process.stdout.write(`rule path: ${report.rulePath}\n`);
|
|
451
|
+
process.stdout.write(`config path: ${report.configPath}\n`);
|
|
452
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
453
|
+
writeDoctorList("issues", report.issues);
|
|
454
|
+
writeDoctorList("advisories", report.advisories);
|
|
455
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
456
|
+
});
|
|
457
|
+
const doctorMistralVibeCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorMistralVibeInstructions(), true);
|
|
458
|
+
const doctorMuxCommand = createDoctorCommand((args) => doctorMuxHook(undefined, { local: args.local }), (report) => {
|
|
459
|
+
process.stdout.write(`hook path: ${report.hookPath}\n`);
|
|
460
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
461
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
462
|
+
if (report.detectedCommand) {
|
|
463
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
464
|
+
}
|
|
465
|
+
writeDoctorList("issues", report.issues);
|
|
466
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
467
|
+
writeDoctorList("advisories", report.advisories);
|
|
468
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
469
|
+
});
|
|
470
|
+
const doctorNovakitCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorNovaKitInstructions(), true);
|
|
471
|
+
const doctorKnownsCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorKnownsInstructions(), true);
|
|
472
|
+
const doctorOnaCommand = createFileDoctorCommand("skill", "skillPath", () => doctorOnaSkill());
|
|
473
|
+
const doctorWarpCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorWarpInstructions(), true);
|
|
474
|
+
const doctorKiroCommand = createFileDoctorCommand("steering", "steeringPath", () => doctorKiroSteering());
|
|
475
|
+
const doctorWindsurfCommand = createFileDoctorCommand("rule", "rulePath", () => doctorWindsurfRule());
|
|
476
|
+
async function doctorCopilotCliCommand(args) {
|
|
477
|
+
if (args.printInstructions) {
|
|
478
|
+
process.stdout.write(getCopilotCliInstructionsSnippet());
|
|
479
|
+
return 0;
|
|
480
|
+
}
|
|
481
|
+
const report = await doctorCopilotCliHook(undefined, { local: args.local });
|
|
482
|
+
if (args.format === "json") {
|
|
483
|
+
process.stdout.write(`${JSON.stringify(report, null, 2)}\n`);
|
|
484
|
+
return report.status === "broken" ? 1 : 0;
|
|
485
|
+
}
|
|
486
|
+
process.stdout.write(`hooks path: ${report.hooksPath}\n`);
|
|
487
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
488
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
489
|
+
if (report.detectedCommand) {
|
|
490
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
491
|
+
}
|
|
492
|
+
writeDoctorList("issues", report.issues);
|
|
493
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
494
|
+
writeDoctorList("advisories", report.advisories);
|
|
495
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
496
|
+
return report.status === "broken" ? 1 : 0;
|
|
497
|
+
}
|
|
498
|
+
const doctorClaudeCodeCommand = createDoctorCommand((args) => doctorClaudeCodeHook(undefined, { local: args.local }), (report) => {
|
|
499
|
+
process.stdout.write(`settings path: ${report.settingsPath}\n`);
|
|
500
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
501
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
502
|
+
if (report.detectedCommand) {
|
|
503
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
504
|
+
}
|
|
505
|
+
writeDoctorList("issues", report.issues);
|
|
506
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
507
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
508
|
+
});
|
|
509
|
+
const doctorClineCommand = createDoctorCommand((args) => doctorClineHook(undefined, { local: args.local }), (report) => {
|
|
510
|
+
process.stdout.write(`hook path: ${report.hookPath}\n`);
|
|
511
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
512
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
513
|
+
if (report.detectedCommand) {
|
|
514
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
515
|
+
}
|
|
516
|
+
writeDoctorList("issues", report.issues);
|
|
517
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
518
|
+
writeDoctorList("advisories", report.advisories);
|
|
519
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
520
|
+
});
|
|
521
|
+
const doctorCodebuffCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorCodebuffInstructions());
|
|
522
|
+
const doctorCodeantCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorCodeAntInstructions());
|
|
523
|
+
const doctorCodegenCommand = createFileDoctorCommand("instructions", "instructionsPath", () => doctorCodegenInstructions());
|
|
524
|
+
const doctorCoderAgentsCommand = createFileDoctorCommand("skill", "skillPath", () => doctorCoderAgentsSkill(), true);
|
|
525
|
+
const doctorCodebuddyCommand = createDoctorCommand((args) => doctorCodeBuddyHook(undefined, { local: args.local }), (report) => {
|
|
526
|
+
process.stdout.write(`settings path: ${report.settingsPath}\n`);
|
|
527
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
528
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
529
|
+
if (report.detectedCommand) {
|
|
530
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
531
|
+
}
|
|
532
|
+
writeDoctorList("issues", report.issues);
|
|
533
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
534
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
535
|
+
});
|
|
536
|
+
const doctorContinueCommand = createFileDoctorCommand("rule", "rulePath", () => doctorContinueRule());
|
|
537
|
+
const doctorDroidCommand = createDoctorCommand((args) => doctorDroidHook(undefined, { local: args.local }), (report) => {
|
|
538
|
+
process.stdout.write(`settings path: ${report.settingsPath}\n`);
|
|
539
|
+
process.stdout.write(`health: ${report.status}\n`);
|
|
540
|
+
process.stdout.write(`expected command: ${report.expectedCommand}\n`);
|
|
541
|
+
if (report.detectedCommand) {
|
|
542
|
+
process.stdout.write(`configured command: ${report.detectedCommand}\n`);
|
|
543
|
+
}
|
|
544
|
+
writeDoctorList("issues", report.issues);
|
|
545
|
+
writeDoctorList("advisories", report.advisories);
|
|
546
|
+
writeDoctorList("missing paths", report.missingPaths);
|
|
547
|
+
process.stdout.write(`repair: ${report.fixCommand}\n`);
|
|
548
|
+
});
|
|
549
|
+
export const doctorCommands = new Map([
|
|
550
|
+
["hooks", doctorHooksCommand],
|
|
551
|
+
["adal", doctorAdalCommand],
|
|
552
|
+
["aether", doctorAetherCommand],
|
|
553
|
+
["aider", doctorAiderCommand],
|
|
554
|
+
["aictl", doctorAictlCommand],
|
|
555
|
+
["ai-memory-protocol", doctorAiMemoryProtocolCommand],
|
|
556
|
+
["aimemoryprotocol", doctorAiMemoryProtocolCommand],
|
|
557
|
+
["agent-layer", doctorAgentLayerCommand],
|
|
558
|
+
["agentinit", doctorAgentinitCommand],
|
|
559
|
+
["agent-init", doctorAgentinitCommand],
|
|
560
|
+
["agentlink", doctorAgentlinkCommand],
|
|
561
|
+
["agentloom", doctorAgentloomCommand],
|
|
562
|
+
["agents-cli", doctorAgentsCliCommand],
|
|
563
|
+
["agents-md", doctorAgentsMdCommand],
|
|
564
|
+
["agentsmd", doctorAgentsMdCommand],
|
|
565
|
+
["agentsge", doctorAgentsgeCommand],
|
|
566
|
+
["agentsmesh", doctorAgentsmeshCommand],
|
|
567
|
+
["amazon-q", doctorAmazonQCommand],
|
|
568
|
+
["amp", doctorAmpCommand],
|
|
569
|
+
["antigravity", doctorAntigravityCommand],
|
|
570
|
+
["anywhere-agents", doctorAnywhereAgentsCommand],
|
|
571
|
+
["augment", doctorAugmentCommand],
|
|
572
|
+
["avante", doctorAvanteCommand],
|
|
573
|
+
["baz", doctorBazCommand],
|
|
574
|
+
["bito", doctorBitoCommand],
|
|
575
|
+
["blackbox", doctorBlackboxCommand],
|
|
576
|
+
["blocks", doctorBlocksCommand],
|
|
577
|
+
["clawdbot", doctorClawdbotCommand],
|
|
578
|
+
["bob", doctorBobCommand],
|
|
579
|
+
["builder", doctorBuilderCommand],
|
|
580
|
+
["charlie", doctorCharlieCommand],
|
|
581
|
+
["codex", doctorCodexCommand],
|
|
582
|
+
["pi", doctorPiCommand],
|
|
583
|
+
["pi-go", doctorPiGoCommand],
|
|
584
|
+
["pigo", doctorPiGoCommand],
|
|
585
|
+
["opencode", doctorOpencodeCommand],
|
|
586
|
+
["opencode-v2", doctorOpencodeV2Command],
|
|
587
|
+
["plandex", doctorPlandexCommand],
|
|
588
|
+
["ante", doctorAnteCommand],
|
|
589
|
+
["qoder", doctorQoderCommand],
|
|
590
|
+
["qoder-cli", doctorQoderCliCommand],
|
|
591
|
+
["replit", doctorReplitCommand],
|
|
592
|
+
["replit-agent", doctorReplitCommand],
|
|
593
|
+
["qwen-code", doctorQwenCodeCommand],
|
|
594
|
+
["qwenwork", doctorQwenWorkCommand],
|
|
595
|
+
["qoderwork", doctorQoderWorkCommand],
|
|
596
|
+
["command-code", doctorCommandCodeCommand],
|
|
597
|
+
["commandcode", doctorCommandCodeCommand],
|
|
598
|
+
["crush", doctorCrushCommand],
|
|
599
|
+
["cursor", doctorCursorCommand],
|
|
600
|
+
["deepagents", doctorDeepagentsCommand],
|
|
601
|
+
["devin", doctorDevinCommand],
|
|
602
|
+
["dot-agents", doctorDotAgentsCommand],
|
|
603
|
+
["docker-agent", doctorDockerAgentCommand],
|
|
604
|
+
["dockeragent", doctorDockerAgentCommand],
|
|
605
|
+
["cagent", doctorDockerAgentCommand],
|
|
606
|
+
["copilot-agent", doctorCopilotAgentCommand],
|
|
607
|
+
["eca", doctorEcaCommand],
|
|
608
|
+
["elyra", doctorElyraCommand],
|
|
609
|
+
["firebase-studio", doctorFirebaseStudioCommand],
|
|
610
|
+
["forgecode", doctorForgecodeCommand],
|
|
611
|
+
["forge-code", doctorForgecodeCommand],
|
|
612
|
+
["gemini-cli", doctorGeminiCliCommand],
|
|
613
|
+
["gitlab-duo", doctorGitlabDuoCommand],
|
|
614
|
+
["grok-cli", doctorGrokCliCommand],
|
|
615
|
+
["gptme", doctorGptmeCommand],
|
|
616
|
+
["jean2", doctorJean2Command],
|
|
617
|
+
["grok-build", doctorGrokBuildCommand],
|
|
618
|
+
["grok-bot", doctorGrokBotCommand],
|
|
619
|
+
["grokbot", doctorGrokBotCommand],
|
|
620
|
+
["goose", doctorGooseCommand],
|
|
621
|
+
["greptile", doctorGreptileCommand],
|
|
622
|
+
["qodo", doctorQodoCommand],
|
|
623
|
+
["coderabbit", doctorCoderabbitCommand],
|
|
624
|
+
["jetbrains-ai", doctorJetbrainsAiCommand],
|
|
625
|
+
["junie", doctorJunieCommand],
|
|
626
|
+
["jules", doctorJulesCommand],
|
|
627
|
+
["leanctl", doctorLeanctlCommand],
|
|
628
|
+
["kimi", doctorKimiCommand],
|
|
629
|
+
["localcode", doctorLocalcodeCommand],
|
|
630
|
+
["local-code", doctorLocalcodeCommand],
|
|
631
|
+
["openhands", doctorOpenhandsCommand],
|
|
632
|
+
["openwebui", doctorOpenwebuiCommand],
|
|
633
|
+
["mcp-agent", doctorMcpAgentCommand],
|
|
634
|
+
["mcpagent", doctorMcpAgentCommand],
|
|
635
|
+
["mini-swe-agent", doctorMiniSweAgentCommand],
|
|
636
|
+
["mini-sweagent", doctorMiniSweAgentCommand],
|
|
637
|
+
["swe-agent", doctorSweAgentCommand],
|
|
638
|
+
["sweagent", doctorSweAgentCommand],
|
|
639
|
+
["stagewise", doctorStagewiseCommand],
|
|
640
|
+
["open-interpreter", doctorOpenInterpreterCommand],
|
|
641
|
+
["openinterpreter", doctorOpenInterpreterCommand],
|
|
642
|
+
["vscode-copilot", doctorVscodeCopilotCommand],
|
|
643
|
+
["zed", doctorZedCommand],
|
|
644
|
+
["zencoder", doctorZencoderCommand],
|
|
645
|
+
["roo", doctorRooCommand],
|
|
646
|
+
["rovo", doctorRovoCommand],
|
|
647
|
+
["rovo-dev", doctorRovoCommand],
|
|
648
|
+
["ruler", doctorRulerCommand],
|
|
649
|
+
["tabnine", doctorTabnineCommand],
|
|
650
|
+
["tabby", doctorTabbyCommand],
|
|
651
|
+
["trae", doctorTraeCommand],
|
|
652
|
+
["uipath", doctorUipathCommand],
|
|
653
|
+
["kilo", doctorKiloCommand],
|
|
654
|
+
["mistral-vibe", doctorMistralVibeCommand],
|
|
655
|
+
["mistralvibe", doctorMistralVibeCommand],
|
|
656
|
+
["mux", doctorMuxCommand],
|
|
657
|
+
["novakit", doctorNovakitCommand],
|
|
658
|
+
["knowns", doctorKnownsCommand],
|
|
659
|
+
["ona", doctorOnaCommand],
|
|
660
|
+
["warp", doctorWarpCommand],
|
|
661
|
+
["kiro", doctorKiroCommand],
|
|
662
|
+
["windsurf", doctorWindsurfCommand],
|
|
663
|
+
["copilot-cli", doctorCopilotCliCommand],
|
|
664
|
+
["claude-code", doctorClaudeCodeCommand],
|
|
665
|
+
["cline", doctorClineCommand],
|
|
666
|
+
["codebuff", doctorCodebuffCommand],
|
|
667
|
+
["codeant", doctorCodeantCommand],
|
|
668
|
+
["codegen", doctorCodegenCommand],
|
|
669
|
+
["coder-agents", doctorCoderAgentsCommand],
|
|
670
|
+
["coderagents", doctorCoderAgentsCommand],
|
|
671
|
+
["codebuddy", doctorCodebuddyCommand],
|
|
672
|
+
["continue", doctorContinueCommand],
|
|
673
|
+
["droid", doctorDroidCommand],
|
|
674
|
+
]);
|