@openclaw/tokenjuice 2026.5.28
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 +35 -0
- package/dist/index.js +13 -0
- package/dist/runtime-api.js +2 -0
- package/dist/tool-result-middleware.js +34 -0
- package/node_modules/tokenjuice/LICENSE +21 -0
- package/node_modules/tokenjuice/README.md +311 -0
- package/node_modules/tokenjuice/SECURITY.md +50 -0
- package/node_modules/tokenjuice/dist/cli/doctor-output.d.ts +2 -0
- package/node_modules/tokenjuice/dist/cli/doctor-output.js +92 -0
- package/node_modules/tokenjuice/dist/cli/install-output.d.ts +5 -0
- package/node_modules/tokenjuice/dist/cli/install-output.js +11 -0
- package/node_modules/tokenjuice/dist/cli/main.d.ts +34 -0
- package/node_modules/tokenjuice/dist/cli/main.js +6614 -0
- package/node_modules/tokenjuice/dist/core/analysis.d.ts +88 -0
- package/node_modules/tokenjuice/dist/core/analysis.js +313 -0
- package/node_modules/tokenjuice/dist/core/artifacts.d.ts +9 -0
- package/node_modules/tokenjuice/dist/core/artifacts.js +210 -0
- package/node_modules/tokenjuice/dist/core/builtin-rules.generated.d.ts +2 -0
- package/node_modules/tokenjuice/dist/core/builtin-rules.generated.js +262 -0
- package/node_modules/tokenjuice/dist/core/classify.d.ts +18 -0
- package/node_modules/tokenjuice/dist/core/classify.js +181 -0
- package/node_modules/tokenjuice/dist/core/cli-client.d.ts +2 -0
- package/node_modules/tokenjuice/dist/core/cli-client.js +127 -0
- package/node_modules/tokenjuice/dist/core/command-identity.d.ts +9 -0
- package/node_modules/tokenjuice/dist/core/command-identity.js +201 -0
- package/node_modules/tokenjuice/dist/core/command-match.d.ts +16 -0
- package/node_modules/tokenjuice/dist/core/command-match.js +443 -0
- package/node_modules/tokenjuice/dist/core/command-shell.d.ts +18 -0
- package/node_modules/tokenjuice/dist/core/command-shell.js +291 -0
- package/node_modules/tokenjuice/dist/core/command.d.ts +5 -0
- package/node_modules/tokenjuice/dist/core/command.js +4 -0
- package/node_modules/tokenjuice/dist/core/compaction-metadata.d.ts +10 -0
- package/node_modules/tokenjuice/dist/core/compaction-metadata.js +28 -0
- package/node_modules/tokenjuice/dist/core/env.d.ts +1 -0
- package/node_modules/tokenjuice/dist/core/env.js +5 -0
- package/node_modules/tokenjuice/dist/core/execution-input.d.ts +2 -0
- package/node_modules/tokenjuice/dist/core/execution-input.js +51 -0
- package/node_modules/tokenjuice/dist/core/fixtures.d.ts +14 -0
- package/node_modules/tokenjuice/dist/core/fixtures.js +190 -0
- package/node_modules/tokenjuice/dist/core/github-actions-summary.d.ts +6 -0
- package/node_modules/tokenjuice/dist/core/github-actions-summary.js +105 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-bash-result.d.ts +33 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-bash-result.js +85 -0
- package/node_modules/tokenjuice/dist/core/integrations/rewrite-policy.d.ts +8 -0
- package/node_modules/tokenjuice/dist/core/integrations/rewrite-policy.js +25 -0
- package/node_modules/tokenjuice/dist/core/inventory-safety.d.ts +11 -0
- package/node_modules/tokenjuice/dist/core/inventory-safety.js +347 -0
- package/node_modules/tokenjuice/dist/core/json-protocol.d.ts +2 -0
- package/node_modules/tokenjuice/dist/core/json-protocol.js +131 -0
- package/node_modules/tokenjuice/dist/core/reduce-formatters.d.ts +15 -0
- package/node_modules/tokenjuice/dist/core/reduce-formatters.js +611 -0
- package/node_modules/tokenjuice/dist/core/reduce-inspection-summary.d.ts +9 -0
- package/node_modules/tokenjuice/dist/core/reduce-inspection-summary.js +125 -0
- package/node_modules/tokenjuice/dist/core/reduce-utils.d.ts +12 -0
- package/node_modules/tokenjuice/dist/core/reduce-utils.js +117 -0
- package/node_modules/tokenjuice/dist/core/reduce.d.ts +5 -0
- package/node_modules/tokenjuice/dist/core/reduce.js +511 -0
- package/node_modules/tokenjuice/dist/core/rules.d.ts +22 -0
- package/node_modules/tokenjuice/dist/core/rules.js +265 -0
- package/node_modules/tokenjuice/dist/core/source.d.ts +6 -0
- package/node_modules/tokenjuice/dist/core/source.js +113 -0
- package/node_modules/tokenjuice/dist/core/text.d.ts +23 -0
- package/node_modules/tokenjuice/dist/core/text.js +204 -0
- package/node_modules/tokenjuice/dist/core/time.d.ts +2 -0
- package/node_modules/tokenjuice/dist/core/time.js +82 -0
- package/node_modules/tokenjuice/dist/core/validate-rules.d.ts +10 -0
- package/node_modules/tokenjuice/dist/core/validate-rules.js +198 -0
- package/node_modules/tokenjuice/dist/core/wrap.d.ts +2 -0
- package/node_modules/tokenjuice/dist/core/wrap.js +104 -0
- package/node_modules/tokenjuice/dist/hosts/adal/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/adal/index.js +157 -0
- package/node_modules/tokenjuice/dist/hosts/aether/index.d.ts +30 -0
- package/node_modules/tokenjuice/dist/hosts/aether/index.js +671 -0
- package/node_modules/tokenjuice/dist/hosts/agent-layer/index.d.ts +25 -0
- package/node_modules/tokenjuice/dist/hosts/agent-layer/index.js +173 -0
- package/node_modules/tokenjuice/dist/hosts/agentinit/index.d.ts +27 -0
- package/node_modules/tokenjuice/dist/hosts/agentinit/index.js +252 -0
- package/node_modules/tokenjuice/dist/hosts/agentlink/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/agentlink/index.js +310 -0
- package/node_modules/tokenjuice/dist/hosts/agentloom/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/agentloom/index.js +161 -0
- package/node_modules/tokenjuice/dist/hosts/agents-cli/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/agents-cli/index.js +136 -0
- package/node_modules/tokenjuice/dist/hosts/agents-md/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/agents-md/index.js +240 -0
- package/node_modules/tokenjuice/dist/hosts/agentsge/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/agentsge/index.js +119 -0
- package/node_modules/tokenjuice/dist/hosts/agentsmesh/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/agentsmesh/index.js +337 -0
- package/node_modules/tokenjuice/dist/hosts/ai-memory-protocol/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/ai-memory-protocol/index.js +392 -0
- package/node_modules/tokenjuice/dist/hosts/aictl/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/aictl/index.js +271 -0
- package/node_modules/tokenjuice/dist/hosts/aider/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/aider/index.js +79 -0
- package/node_modules/tokenjuice/dist/hosts/amazon-q/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/amazon-q/index.js +169 -0
- package/node_modules/tokenjuice/dist/hosts/amp/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/amp/index.js +306 -0
- package/node_modules/tokenjuice/dist/hosts/antigravity/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/antigravity/index.js +172 -0
- package/node_modules/tokenjuice/dist/hosts/anywhere-agents/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/anywhere-agents/index.js +260 -0
- package/node_modules/tokenjuice/dist/hosts/augment/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/augment/index.js +171 -0
- package/node_modules/tokenjuice/dist/hosts/avante/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/avante/index.js +68 -0
- package/node_modules/tokenjuice/dist/hosts/baz/index.d.ts +25 -0
- package/node_modules/tokenjuice/dist/hosts/baz/index.js +286 -0
- package/node_modules/tokenjuice/dist/hosts/bito/index.d.ts +28 -0
- package/node_modules/tokenjuice/dist/hosts/bito/index.js +363 -0
- package/node_modules/tokenjuice/dist/hosts/blackbox/index.d.ts +25 -0
- package/node_modules/tokenjuice/dist/hosts/blackbox/index.js +305 -0
- package/node_modules/tokenjuice/dist/hosts/blocks/index.d.ts +25 -0
- package/node_modules/tokenjuice/dist/hosts/blocks/index.js +317 -0
- package/node_modules/tokenjuice/dist/hosts/bob/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/bob/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/builder/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/builder/index.js +177 -0
- package/node_modules/tokenjuice/dist/hosts/charlie/index.d.ts +25 -0
- package/node_modules/tokenjuice/dist/hosts/charlie/index.js +275 -0
- package/node_modules/tokenjuice/dist/hosts/claude-code/index.d.ts +30 -0
- package/node_modules/tokenjuice/dist/hosts/claude-code/index.js +364 -0
- package/node_modules/tokenjuice/dist/hosts/clawdbot/index.d.ts +25 -0
- package/node_modules/tokenjuice/dist/hosts/clawdbot/index.js +320 -0
- package/node_modules/tokenjuice/dist/hosts/cline/index.d.ts +27 -0
- package/node_modules/tokenjuice/dist/hosts/cline/index.js +156 -0
- package/node_modules/tokenjuice/dist/hosts/codeant/index.d.ts +25 -0
- package/node_modules/tokenjuice/dist/hosts/codeant/index.js +370 -0
- package/node_modules/tokenjuice/dist/hosts/codebuddy/index.d.ts +29 -0
- package/node_modules/tokenjuice/dist/hosts/codebuddy/index.js +379 -0
- package/node_modules/tokenjuice/dist/hosts/codebuff/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/codebuff/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/codegen/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/codegen/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/coder-agents/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/coder-agents/index.js +339 -0
- package/node_modules/tokenjuice/dist/hosts/coderabbit/index.d.ts +25 -0
- package/node_modules/tokenjuice/dist/hosts/coderabbit/index.js +599 -0
- package/node_modules/tokenjuice/dist/hosts/codex/index.d.ts +93 -0
- package/node_modules/tokenjuice/dist/hosts/codex/index.js +945 -0
- package/node_modules/tokenjuice/dist/hosts/command-code/index.d.ts +29 -0
- package/node_modules/tokenjuice/dist/hosts/command-code/index.js +366 -0
- package/node_modules/tokenjuice/dist/hosts/continue/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/continue/index.js +81 -0
- package/node_modules/tokenjuice/dist/hosts/copilot-agent/index.d.ts +29 -0
- package/node_modules/tokenjuice/dist/hosts/copilot-agent/index.js +497 -0
- package/node_modules/tokenjuice/dist/hosts/copilot-cli/index.d.ts +31 -0
- package/node_modules/tokenjuice/dist/hosts/copilot-cli/index.js +428 -0
- package/node_modules/tokenjuice/dist/hosts/crush/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/crush/index.js +135 -0
- package/node_modules/tokenjuice/dist/hosts/cursor/index.d.ts +30 -0
- package/node_modules/tokenjuice/dist/hosts/cursor/index.js +293 -0
- package/node_modules/tokenjuice/dist/hosts/deepagents/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/deepagents/index.js +157 -0
- package/node_modules/tokenjuice/dist/hosts/devin/index.d.ts +31 -0
- package/node_modules/tokenjuice/dist/hosts/devin/index.js +283 -0
- package/node_modules/tokenjuice/dist/hosts/docker-agent/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/docker-agent/index.js +206 -0
- package/node_modules/tokenjuice/dist/hosts/dot-agents/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/dot-agents/index.js +171 -0
- package/node_modules/tokenjuice/dist/hosts/droid/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/droid/index.js +313 -0
- package/node_modules/tokenjuice/dist/hosts/eca/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/eca/index.js +347 -0
- package/node_modules/tokenjuice/dist/hosts/elyra/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/elyra/index.js +382 -0
- package/node_modules/tokenjuice/dist/hosts/firebase-studio/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/firebase-studio/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/forgecode/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/forgecode/index.js +273 -0
- package/node_modules/tokenjuice/dist/hosts/gemini-cli/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/gemini-cli/index.js +234 -0
- package/node_modules/tokenjuice/dist/hosts/gitlab-duo/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/gitlab-duo/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/goose/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/goose/index.js +288 -0
- package/node_modules/tokenjuice/dist/hosts/gptme/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/gptme/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/greptile/index.d.ts +25 -0
- package/node_modules/tokenjuice/dist/hosts/greptile/index.js +299 -0
- package/node_modules/tokenjuice/dist/hosts/grok-build/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/grok-build/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/grok-cli/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/grok-cli/index.js +262 -0
- package/node_modules/tokenjuice/dist/hosts/jean2/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/jean2/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/jetbrains-ai/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/jetbrains-ai/index.js +202 -0
- package/node_modules/tokenjuice/dist/hosts/jules/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/jules/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/junie/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/junie/index.js +68 -0
- package/node_modules/tokenjuice/dist/hosts/kilo/index.d.ts +30 -0
- package/node_modules/tokenjuice/dist/hosts/kilo/index.js +497 -0
- package/node_modules/tokenjuice/dist/hosts/kimi/index.d.ts +29 -0
- package/node_modules/tokenjuice/dist/hosts/kimi/index.js +255 -0
- package/node_modules/tokenjuice/dist/hosts/kiro/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/kiro/index.js +116 -0
- package/node_modules/tokenjuice/dist/hosts/knowns/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/knowns/index.js +273 -0
- package/node_modules/tokenjuice/dist/hosts/leanctl/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/leanctl/index.js +317 -0
- package/node_modules/tokenjuice/dist/hosts/localcode/index.d.ts +31 -0
- package/node_modules/tokenjuice/dist/hosts/localcode/index.js +539 -0
- package/node_modules/tokenjuice/dist/hosts/mcp-agent/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/mcp-agent/index.js +302 -0
- package/node_modules/tokenjuice/dist/hosts/mini-swe-agent/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/mini-swe-agent/index.js +226 -0
- package/node_modules/tokenjuice/dist/hosts/mistral-vibe/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/mistral-vibe/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/mux/index.d.ts +28 -0
- package/node_modules/tokenjuice/dist/hosts/mux/index.js +411 -0
- package/node_modules/tokenjuice/dist/hosts/novakit/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/novakit/index.js +273 -0
- package/node_modules/tokenjuice/dist/hosts/ona/index.d.ts +41 -0
- package/node_modules/tokenjuice/dist/hosts/ona/index.js +596 -0
- package/node_modules/tokenjuice/dist/hosts/open-interpreter/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/open-interpreter/index.js +348 -0
- package/node_modules/tokenjuice/dist/hosts/openclaw/extension.d.ts +8 -0
- package/node_modules/tokenjuice/dist/hosts/openclaw/extension.js +104 -0
- package/node_modules/tokenjuice/dist/hosts/openclaw/index.d.ts +1 -0
- package/node_modules/tokenjuice/dist/hosts/openclaw/index.js +1 -0
- package/node_modules/tokenjuice/dist/hosts/opencode/extension/runtime.d.ts +17 -0
- package/node_modules/tokenjuice/dist/hosts/opencode/extension/runtime.js +9094 -0
- package/node_modules/tokenjuice/dist/hosts/opencode/index.d.ts +21 -0
- package/node_modules/tokenjuice/dist/hosts/opencode/index.js +163 -0
- package/node_modules/tokenjuice/dist/hosts/openhands/index.d.ts +28 -0
- package/node_modules/tokenjuice/dist/hosts/openhands/index.js +211 -0
- package/node_modules/tokenjuice/dist/hosts/openwebui/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/openwebui/index.js +245 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/pi-types.d.ts +79 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/pi-types.js +3 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/runtime.d.ts +5 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/runtime.js +9372 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/settings.d.ts +1 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/settings.js +26 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/status-panel.d.ts +3 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/status-panel.js +72 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/status.d.ts +20 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/status.js +58 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/tool-result.d.ts +4 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/tool-result.js +24 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/utils.d.ts +1 -0
- package/node_modules/tokenjuice/dist/hosts/pi/extension/utils.js +6 -0
- package/node_modules/tokenjuice/dist/hosts/pi/index.d.ts +26 -0
- package/node_modules/tokenjuice/dist/hosts/pi/index.js +228 -0
- package/node_modules/tokenjuice/dist/hosts/pi-go/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/pi-go/index.js +352 -0
- package/node_modules/tokenjuice/dist/hosts/plandex/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/plandex/index.js +164 -0
- package/node_modules/tokenjuice/dist/hosts/qoder/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/qoder/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/qodo/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/qodo/index.js +584 -0
- package/node_modules/tokenjuice/dist/hosts/qwen-code/index.d.ts +28 -0
- package/node_modules/tokenjuice/dist/hosts/qwen-code/index.js +276 -0
- package/node_modules/tokenjuice/dist/hosts/replit/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/replit/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/roo/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/roo/index.js +101 -0
- package/node_modules/tokenjuice/dist/hosts/rovo/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/rovo/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/ruler/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/ruler/index.js +157 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hook-command-doctor.d.ts +19 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hook-command-doctor.js +32 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hook-command.d.ts +5 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hook-command.js +94 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hook-doctor.d.ts +212 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hook-doctor.js +270 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hook-output.d.ts +4 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hook-output.js +15 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hooks-json-file.d.ts +18 -0
- package/node_modules/tokenjuice/dist/hosts/shared/hooks-json-file.js +108 -0
- package/node_modules/tokenjuice/dist/hosts/shared/host-command.d.ts +10 -0
- package/node_modules/tokenjuice/dist/hosts/shared/host-command.js +70 -0
- package/node_modules/tokenjuice/dist/hosts/shared/instruction-doctor.d.ts +16 -0
- package/node_modules/tokenjuice/dist/hosts/shared/instruction-doctor.js +13 -0
- package/node_modules/tokenjuice/dist/hosts/shared/instruction-file.d.ts +29 -0
- package/node_modules/tokenjuice/dist/hosts/shared/instruction-file.js +121 -0
- package/node_modules/tokenjuice/dist/hosts/shared/instruction-guidance.d.ts +7 -0
- package/node_modules/tokenjuice/dist/hosts/shared/instruction-guidance.js +12 -0
- package/node_modules/tokenjuice/dist/hosts/shared/marker-instructions.d.ts +32 -0
- package/node_modules/tokenjuice/dist/hosts/shared/marker-instructions.js +100 -0
- package/node_modules/tokenjuice/dist/hosts/shared/pre-tool-wrap.d.ts +91 -0
- package/node_modules/tokenjuice/dist/hosts/shared/pre-tool-wrap.js +186 -0
- package/node_modules/tokenjuice/dist/hosts/shared/tool-result.d.ts +15 -0
- package/node_modules/tokenjuice/dist/hosts/shared/tool-result.js +52 -0
- package/node_modules/tokenjuice/dist/hosts/stagewise/index.d.ts +25 -0
- package/node_modules/tokenjuice/dist/hosts/stagewise/index.js +468 -0
- package/node_modules/tokenjuice/dist/hosts/swe-agent/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/swe-agent/index.js +223 -0
- package/node_modules/tokenjuice/dist/hosts/tabby/index.d.ts +24 -0
- package/node_modules/tokenjuice/dist/hosts/tabby/index.js +469 -0
- package/node_modules/tokenjuice/dist/hosts/tabnine/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/tabnine/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/trae/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/trae/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/uipath/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/uipath/index.js +155 -0
- package/node_modules/tokenjuice/dist/hosts/vscode-copilot/index.d.ts +32 -0
- package/node_modules/tokenjuice/dist/hosts/vscode-copilot/index.js +416 -0
- package/node_modules/tokenjuice/dist/hosts/warp/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/warp/index.js +181 -0
- package/node_modules/tokenjuice/dist/hosts/windsurf/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/windsurf/index.js +99 -0
- package/node_modules/tokenjuice/dist/hosts/zed/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/zed/index.js +68 -0
- package/node_modules/tokenjuice/dist/hosts/zencoder/index.d.ts +23 -0
- package/node_modules/tokenjuice/dist/hosts/zencoder/index.js +227 -0
- package/node_modules/tokenjuice/dist/index.d.ts +214 -0
- package/node_modules/tokenjuice/dist/index.js +113 -0
- package/node_modules/tokenjuice/dist/rules/archive/tar.json +30 -0
- package/node_modules/tokenjuice/dist/rules/archive/unzip.json +30 -0
- package/node_modules/tokenjuice/dist/rules/archive/zip.json +30 -0
- package/node_modules/tokenjuice/dist/rules/build/cmake.json +35 -0
- package/node_modules/tokenjuice/dist/rules/build/dotnet.json +36 -0
- package/node_modules/tokenjuice/dist/rules/build/esbuild.json +35 -0
- package/node_modules/tokenjuice/dist/rules/build/go-build.json +31 -0
- package/node_modules/tokenjuice/dist/rules/build/gradle.json +35 -0
- package/node_modules/tokenjuice/dist/rules/build/maven.json +35 -0
- package/node_modules/tokenjuice/dist/rules/build/msbuild.json +35 -0
- package/node_modules/tokenjuice/dist/rules/build/pnpm-build.json +44 -0
- package/node_modules/tokenjuice/dist/rules/build/swift-build.json +56 -0
- package/node_modules/tokenjuice/dist/rules/build/tsc.json +74 -0
- package/node_modules/tokenjuice/dist/rules/build/tsdown.json +35 -0
- package/node_modules/tokenjuice/dist/rules/build/vite.json +42 -0
- package/node_modules/tokenjuice/dist/rules/build/webpack.json +51 -0
- package/node_modules/tokenjuice/dist/rules/build/xcodebuild.json +80 -0
- package/node_modules/tokenjuice/dist/rules/cloud/aws.json +30 -0
- package/node_modules/tokenjuice/dist/rules/cloud/az.json +30 -0
- package/node_modules/tokenjuice/dist/rules/cloud/flyctl.json +30 -0
- package/node_modules/tokenjuice/dist/rules/cloud/gcloud.json +30 -0
- package/node_modules/tokenjuice/dist/rules/cloud/gh.json +30 -0
- package/node_modules/tokenjuice/dist/rules/cloud/vercel.json +30 -0
- package/node_modules/tokenjuice/dist/rules/database/mongosh.json +30 -0
- package/node_modules/tokenjuice/dist/rules/database/mysql.json +30 -0
- package/node_modules/tokenjuice/dist/rules/database/psql.json +30 -0
- package/node_modules/tokenjuice/dist/rules/database/redis-cli.json +30 -0
- package/node_modules/tokenjuice/dist/rules/database/sqlite3.json +30 -0
- package/node_modules/tokenjuice/dist/rules/devops/docker-build.json +53 -0
- package/node_modules/tokenjuice/dist/rules/devops/docker-compose.json +44 -0
- package/node_modules/tokenjuice/dist/rules/devops/docker-images.json +30 -0
- package/node_modules/tokenjuice/dist/rules/devops/docker-logs.json +43 -0
- package/node_modules/tokenjuice/dist/rules/devops/docker-ps.json +30 -0
- package/node_modules/tokenjuice/dist/rules/devops/helm.json +35 -0
- package/node_modules/tokenjuice/dist/rules/devops/kubectl-describe.json +45 -0
- package/node_modules/tokenjuice/dist/rules/devops/kubectl-get.json +35 -0
- package/node_modules/tokenjuice/dist/rules/devops/kubectl-logs.json +43 -0
- package/node_modules/tokenjuice/dist/rules/devops/pulumi.json +35 -0
- package/node_modules/tokenjuice/dist/rules/devops/terraform.json +35 -0
- package/node_modules/tokenjuice/dist/rules/devops/terragrunt.json +35 -0
- package/node_modules/tokenjuice/dist/rules/filesystem/fd.json +33 -0
- package/node_modules/tokenjuice/dist/rules/filesystem/find.json +42 -0
- package/node_modules/tokenjuice/dist/rules/filesystem/git-ls-files.json +35 -0
- package/node_modules/tokenjuice/dist/rules/filesystem/ls.json +29 -0
- package/node_modules/tokenjuice/dist/rules/filesystem/rg-files.json +34 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/archive/tar.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/archive/unzip.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/archive/zip.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/cmake.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/dotnet.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/esbuild.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/go-build.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/gradle.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/maven.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/msbuild.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/pnpm-build-failure.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/pnpm-build.fixture.json +18 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/swift-build.fixture.json +29 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/tsc.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/tsdown.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/vite.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/webpack.fixture.json +20 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/build/xcodebuild.fixture.json +27 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/cloud/aws.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/cloud/az.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/cloud/flyctl.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/cloud/gcloud.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/cloud/gh.fixture.json +17 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/cloud/vercel.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/database/mongosh.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/database/mysql.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/database/psql.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/database/redis-cli.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/database/sqlite3.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/docker-build.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/docker-compose.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/docker-images.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/docker-logs.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/docker-ps.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/helm.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/kubectl-describe.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/kubectl-get.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/kubectl-logs.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/pulumi.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/terraform.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/devops/terragrunt.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/filesystem/fd.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/filesystem/find.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/filesystem/git-ls-files.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/filesystem/ls.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/filesystem/rg-files.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/generic/fallback.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/generic/help.fixture.json +17 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/git/branch.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/git/diff-name-only.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/git/diff-stat.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/git/diff.fixture.json +26 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/git/log-oneline.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/git/remote-v.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/git/show.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/git/stash-list.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/git/status.fixture.json +17 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/git/worktree-list.fixture.json +17 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/install/bun-install-up-to-date.fixture.json +19 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/install/bun-install.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/install/npm-ci-up-to-date.fixture.json +19 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/install/npm-ci.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/install/npm-install-up-to-date.fixture.json +19 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/install/npm-install.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/install/pnpm-install-up-to-date.fixture.json +19 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/install/pnpm-install.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/install/yarn-install-up-to-date.fixture.json +19 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/install/yarn-install.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/lint/biome.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/lint/eslint.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/lint/oxlint.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/lint/prettier-check.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/media/ffmpeg.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/media/mediainfo.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/network/curl.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/network/dig.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/network/nslookup.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/network/ping.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/network/ssh.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/network/traceroute.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/network/wget.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/observability/free.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/observability/htop.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/observability/iostat.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/observability/top.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/observability/vmstat.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/openclaw/sessions-history.fixture.json +33 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/package/apt-install.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/package/apt-upgrade.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/package/brew-install.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/package/brew-upgrade.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/package/composer.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/package/dnf-install.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/package/fnm.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/package/npm-ls.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/package/yum-install.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/search/git-grep.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/search/grep.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/search/rg.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/service/journalctl.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/service/launchctl.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/service/lsof.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/service/netstat.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/service/pm2.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/service/service.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/service/ss.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/service/systemctl-status.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/system/df.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/system/du.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/system/file.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/system/ps.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/task/env.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/task/just.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/task/make.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/task/mise.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/task/node.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/task/php.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/task/python.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/task/ruby.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/task/uv.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/bun-test.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/cargo-test.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/go-test.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/jest.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/mocha.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/npm-test.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/playwright.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/pnpm-test.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/pytest.fixture.json +19 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/rspec.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/swift-test.fixture.json +30 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/vitest.fixture.json +15 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/tests/yarn-test.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/text/wc.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/transfer/rsync.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/fixtures/transfer/scp.fixture.json +16 -0
- package/node_modules/tokenjuice/dist/rules/generic/fallback.json +32 -0
- package/node_modules/tokenjuice/dist/rules/generic/help.json +25 -0
- package/node_modules/tokenjuice/dist/rules/git/branch.json +29 -0
- package/node_modules/tokenjuice/dist/rules/git/diff-name-only.json +29 -0
- package/node_modules/tokenjuice/dist/rules/git/diff-stat.json +37 -0
- package/node_modules/tokenjuice/dist/rules/git/diff.json +65 -0
- package/node_modules/tokenjuice/dist/rules/git/log-oneline.json +30 -0
- package/node_modules/tokenjuice/dist/rules/git/remote-v.json +29 -0
- package/node_modules/tokenjuice/dist/rules/git/show.json +50 -0
- package/node_modules/tokenjuice/dist/rules/git/stash-list.json +30 -0
- package/node_modules/tokenjuice/dist/rules/git/status.json +54 -0
- package/node_modules/tokenjuice/dist/rules/git/worktree-list.json +31 -0
- package/node_modules/tokenjuice/dist/rules/install/bun-install.json +43 -0
- package/node_modules/tokenjuice/dist/rules/install/npm-ci.json +49 -0
- package/node_modules/tokenjuice/dist/rules/install/npm-install.json +49 -0
- package/node_modules/tokenjuice/dist/rules/install/pnpm-install.json +43 -0
- package/node_modules/tokenjuice/dist/rules/install/yarn-install.json +42 -0
- package/node_modules/tokenjuice/dist/rules/lint/biome.json +35 -0
- package/node_modules/tokenjuice/dist/rules/lint/eslint.json +45 -0
- package/node_modules/tokenjuice/dist/rules/lint/oxlint.json +35 -0
- package/node_modules/tokenjuice/dist/rules/lint/prettier-check.json +34 -0
- package/node_modules/tokenjuice/dist/rules/media/ffmpeg.json +30 -0
- package/node_modules/tokenjuice/dist/rules/media/mediainfo.json +30 -0
- package/node_modules/tokenjuice/dist/rules/network/curl.json +30 -0
- package/node_modules/tokenjuice/dist/rules/network/dig.json +30 -0
- package/node_modules/tokenjuice/dist/rules/network/nslookup.json +30 -0
- package/node_modules/tokenjuice/dist/rules/network/ping.json +35 -0
- package/node_modules/tokenjuice/dist/rules/network/ssh.json +30 -0
- package/node_modules/tokenjuice/dist/rules/network/traceroute.json +30 -0
- package/node_modules/tokenjuice/dist/rules/network/wget.json +30 -0
- package/node_modules/tokenjuice/dist/rules/observability/free.json +30 -0
- package/node_modules/tokenjuice/dist/rules/observability/htop.json +30 -0
- package/node_modules/tokenjuice/dist/rules/observability/iostat.json +30 -0
- package/node_modules/tokenjuice/dist/rules/observability/top.json +30 -0
- package/node_modules/tokenjuice/dist/rules/observability/vmstat.json +30 -0
- package/node_modules/tokenjuice/dist/rules/openclaw/sessions-history.json +59 -0
- package/node_modules/tokenjuice/dist/rules/package/apt-install.json +36 -0
- package/node_modules/tokenjuice/dist/rules/package/apt-upgrade.json +36 -0
- package/node_modules/tokenjuice/dist/rules/package/brew-install.json +31 -0
- package/node_modules/tokenjuice/dist/rules/package/brew-upgrade.json +31 -0
- package/node_modules/tokenjuice/dist/rules/package/composer.json +35 -0
- package/node_modules/tokenjuice/dist/rules/package/dnf-install.json +31 -0
- package/node_modules/tokenjuice/dist/rules/package/fnm.json +35 -0
- package/node_modules/tokenjuice/dist/rules/package/npm-ls.json +31 -0
- package/node_modules/tokenjuice/dist/rules/package/yum-install.json +31 -0
- package/node_modules/tokenjuice/dist/rules/search/git-grep.json +30 -0
- package/node_modules/tokenjuice/dist/rules/search/grep.json +38 -0
- package/node_modules/tokenjuice/dist/rules/search/rg.json +38 -0
- package/node_modules/tokenjuice/dist/rules/service/journalctl.json +42 -0
- package/node_modules/tokenjuice/dist/rules/service/launchctl.json +41 -0
- package/node_modules/tokenjuice/dist/rules/service/lsof.json +29 -0
- package/node_modules/tokenjuice/dist/rules/service/netstat.json +29 -0
- package/node_modules/tokenjuice/dist/rules/service/pm2.json +35 -0
- package/node_modules/tokenjuice/dist/rules/service/service.json +46 -0
- package/node_modules/tokenjuice/dist/rules/service/ss.json +29 -0
- package/node_modules/tokenjuice/dist/rules/service/systemctl-status.json +45 -0
- package/node_modules/tokenjuice/dist/rules/system/df.json +29 -0
- package/node_modules/tokenjuice/dist/rules/system/du.json +29 -0
- package/node_modules/tokenjuice/dist/rules/system/file.json +30 -0
- package/node_modules/tokenjuice/dist/rules/system/ps.json +29 -0
- package/node_modules/tokenjuice/dist/rules/task/env.json +31 -0
- package/node_modules/tokenjuice/dist/rules/task/just.json +30 -0
- package/node_modules/tokenjuice/dist/rules/task/make.json +30 -0
- package/node_modules/tokenjuice/dist/rules/task/mise.json +35 -0
- package/node_modules/tokenjuice/dist/rules/task/node.json +30 -0
- package/node_modules/tokenjuice/dist/rules/task/php.json +30 -0
- package/node_modules/tokenjuice/dist/rules/task/python.json +30 -0
- package/node_modules/tokenjuice/dist/rules/task/ruby.json +30 -0
- package/node_modules/tokenjuice/dist/rules/task/uv.json +35 -0
- package/node_modules/tokenjuice/dist/rules/tests/bun-test.json +56 -0
- package/node_modules/tokenjuice/dist/rules/tests/cargo-test.json +41 -0
- package/node_modules/tokenjuice/dist/rules/tests/go-test.json +49 -0
- package/node_modules/tokenjuice/dist/rules/tests/jest.json +41 -0
- package/node_modules/tokenjuice/dist/rules/tests/mocha.json +35 -0
- package/node_modules/tokenjuice/dist/rules/tests/npm-test.json +56 -0
- package/node_modules/tokenjuice/dist/rules/tests/playwright.json +37 -0
- package/node_modules/tokenjuice/dist/rules/tests/pnpm-test.json +56 -0
- package/node_modules/tokenjuice/dist/rules/tests/pytest.json +54 -0
- package/node_modules/tokenjuice/dist/rules/tests/rspec.json +31 -0
- package/node_modules/tokenjuice/dist/rules/tests/swift-test.json +66 -0
- package/node_modules/tokenjuice/dist/rules/tests/vitest.json +56 -0
- package/node_modules/tokenjuice/dist/rules/tests/yarn-test.json +56 -0
- package/node_modules/tokenjuice/dist/rules/text/wc.json +35 -0
- package/node_modules/tokenjuice/dist/rules/tokenjuice-rule.schema.json +155 -0
- package/node_modules/tokenjuice/dist/rules/transfer/rsync.json +30 -0
- package/node_modules/tokenjuice/dist/rules/transfer/scp.json +30 -0
- package/node_modules/tokenjuice/dist/types.d.ts +212 -0
- package/node_modules/tokenjuice/dist/types.js +1 -0
- package/node_modules/tokenjuice/package.json +80 -0
- package/npm-shrinkwrap.json +39 -0
- package/openclaw.plugin.json +16 -0
- package/package.json +55 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "filesystem/find",
|
|
3
|
+
"family": "filesystem-find",
|
|
4
|
+
"description": "Compact find output while preserving matches and failure context.",
|
|
5
|
+
"match": {
|
|
6
|
+
"toolNames": ["exec"],
|
|
7
|
+
"argv0": ["find"]
|
|
8
|
+
},
|
|
9
|
+
"transforms": {
|
|
10
|
+
"stripAnsi": true,
|
|
11
|
+
"dedupeAdjacent": true,
|
|
12
|
+
"trimEmptyEdges": true
|
|
13
|
+
},
|
|
14
|
+
"filters": {
|
|
15
|
+
"keepPatterns": [
|
|
16
|
+
"^\\./.+",
|
|
17
|
+
"^/.+",
|
|
18
|
+
"Permission denied",
|
|
19
|
+
"No such file"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"summarize": {
|
|
23
|
+
"head": 8,
|
|
24
|
+
"tail": 6
|
|
25
|
+
},
|
|
26
|
+
"failure": {
|
|
27
|
+
"preserveOnFailure": true,
|
|
28
|
+
"head": 12,
|
|
29
|
+
"tail": 10
|
|
30
|
+
},
|
|
31
|
+
"counters": [
|
|
32
|
+
{
|
|
33
|
+
"name": "match",
|
|
34
|
+
"pattern": "^(?!find: ).+\\S.*$"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "permission denied",
|
|
38
|
+
"pattern": "Permission denied",
|
|
39
|
+
"flags": "i"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "filesystem/git-ls-files",
|
|
3
|
+
"family": "filesystem-inventory",
|
|
4
|
+
"description": "Compact git ls-files output while preserving tracked path samples.",
|
|
5
|
+
"match": {
|
|
6
|
+
"toolNames": ["exec"],
|
|
7
|
+
"argv0": ["git"],
|
|
8
|
+
"gitSubcommands": ["ls-files"]
|
|
9
|
+
},
|
|
10
|
+
"transforms": {
|
|
11
|
+
"stripAnsi": true,
|
|
12
|
+
"dedupeAdjacent": true,
|
|
13
|
+
"trimEmptyEdges": true
|
|
14
|
+
},
|
|
15
|
+
"summarize": {
|
|
16
|
+
"head": 8,
|
|
17
|
+
"tail": 6
|
|
18
|
+
},
|
|
19
|
+
"failure": {
|
|
20
|
+
"preserveOnFailure": true,
|
|
21
|
+
"head": 12,
|
|
22
|
+
"tail": 10
|
|
23
|
+
},
|
|
24
|
+
"counters": [
|
|
25
|
+
{
|
|
26
|
+
"name": "path",
|
|
27
|
+
"pattern": "^(?!fatal: ).+\\S.*$"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "error",
|
|
31
|
+
"pattern": "fatal:|error:",
|
|
32
|
+
"flags": "i"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "filesystem/ls",
|
|
3
|
+
"family": "filesystem-listing",
|
|
4
|
+
"description": "Compact ls output for directory listings.",
|
|
5
|
+
"match": {
|
|
6
|
+
"toolNames": ["exec"],
|
|
7
|
+
"argv0": ["ls"]
|
|
8
|
+
},
|
|
9
|
+
"transforms": {
|
|
10
|
+
"stripAnsi": true,
|
|
11
|
+
"dedupeAdjacent": true,
|
|
12
|
+
"trimEmptyEdges": true
|
|
13
|
+
},
|
|
14
|
+
"summarize": {
|
|
15
|
+
"head": 8,
|
|
16
|
+
"tail": 6
|
|
17
|
+
},
|
|
18
|
+
"failure": {
|
|
19
|
+
"preserveOnFailure": true,
|
|
20
|
+
"head": 12,
|
|
21
|
+
"tail": 10
|
|
22
|
+
},
|
|
23
|
+
"counters": [
|
|
24
|
+
{
|
|
25
|
+
"name": "item",
|
|
26
|
+
"pattern": "^(?!total\\s+\\d+).+\\S.*$"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "filesystem/rg-files",
|
|
3
|
+
"family": "filesystem-inventory",
|
|
4
|
+
"description": "Compact rg --files output while preserving path samples and errors.",
|
|
5
|
+
"match": {
|
|
6
|
+
"toolNames": ["exec"],
|
|
7
|
+
"argv0": ["rg"],
|
|
8
|
+
"argvIncludes": [["--files"]]
|
|
9
|
+
},
|
|
10
|
+
"transforms": {
|
|
11
|
+
"stripAnsi": true,
|
|
12
|
+
"dedupeAdjacent": true,
|
|
13
|
+
"trimEmptyEdges": true
|
|
14
|
+
},
|
|
15
|
+
"summarize": {
|
|
16
|
+
"head": 8,
|
|
17
|
+
"tail": 6
|
|
18
|
+
},
|
|
19
|
+
"failure": {
|
|
20
|
+
"preserveOnFailure": true,
|
|
21
|
+
"head": 12,
|
|
22
|
+
"tail": 10
|
|
23
|
+
},
|
|
24
|
+
"counters": [
|
|
25
|
+
{
|
|
26
|
+
"name": "path",
|
|
27
|
+
"pattern": "^(?!rg: ).+\\S.*$"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "error",
|
|
31
|
+
"pattern": "^rg: "
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "archive-tar-basic",
|
|
3
|
+
"ruleId": "archive/tar",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["tar", "-czf", "build.tar.gz", "dist"],
|
|
7
|
+
"command": "tar -czf build.tar.gz dist",
|
|
8
|
+
"combinedText": "dist/\ndist/index.js\ndist/cli/main.js\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "archive/tar",
|
|
13
|
+
"family": "archive-cli",
|
|
14
|
+
"contains": ["dist/index.js", "dist/cli/main.js"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "archive-unzip-basic",
|
|
3
|
+
"ruleId": "archive/unzip",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["unzip", "release.zip"],
|
|
7
|
+
"command": "unzip release.zip",
|
|
8
|
+
"combinedText": "Archive: release.zip\n inflating: dist/index.js\n inflating: dist/cli/main.js\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "archive/unzip",
|
|
13
|
+
"family": "archive-cli",
|
|
14
|
+
"contains": ["Archive: release.zip", "dist/cli/main.js"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "archive-zip-basic",
|
|
3
|
+
"ruleId": "archive/zip",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["zip", "-r", "release.zip", "dist"],
|
|
7
|
+
"command": "zip -r release.zip dist",
|
|
8
|
+
"combinedText": " adding: dist/ (stored 0%)\n adding: dist/index.js (deflated 72%)\n adding: dist/cli/main.js (deflated 69%)\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "archive/zip",
|
|
13
|
+
"family": "archive-cli",
|
|
14
|
+
"contains": ["adding: dist/index.js", "adding: dist/cli/main.js"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-cmake-basic",
|
|
3
|
+
"ruleId": "build/cmake",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["cmake", "--build", "build"],
|
|
7
|
+
"command": "cmake --build build",
|
|
8
|
+
"combinedText": "[ 25%] Building CXX object src/CMakeFiles/app.dir/main.cpp.o\n[ 50%] Linking CXX executable app\nCMake Error at CMakeLists.txt:42 (target_link_libraries):\n Target \"missing\" not found.\nFAILED: app\n",
|
|
9
|
+
"exitCode": 1
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "build/cmake",
|
|
13
|
+
"family": "build-native",
|
|
14
|
+
"contains": ["CMake Error", "FAILED: app"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-dotnet-basic",
|
|
3
|
+
"ruleId": "build/dotnet",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["dotnet", "build"],
|
|
7
|
+
"command": "dotnet build",
|
|
8
|
+
"combinedText": "Determining projects to restore...\nAll projects are up-to-date for restore.\nControllers/HomeController.cs(12,18): error CS0103: The name 'missing' does not exist in the current context [/repo/App.csproj]\nBuild FAILED.\n 0 Warning(s)\n 1 Error(s)\n",
|
|
9
|
+
"exitCode": 1
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "build/dotnet",
|
|
13
|
+
"family": "build-dotnet",
|
|
14
|
+
"contains": ["error CS0103", "Build FAILED"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-esbuild-basic",
|
|
3
|
+
"ruleId": "build/esbuild",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"command": "pnpm esbuild src/index.ts",
|
|
7
|
+
"combinedText": "✘ [ERROR] Could not resolve \"left-pad\"\n1 error\n",
|
|
8
|
+
"exitCode": 1
|
|
9
|
+
},
|
|
10
|
+
"expect": {
|
|
11
|
+
"matchedReducer": "build/esbuild",
|
|
12
|
+
"family": "build-bundler",
|
|
13
|
+
"contains": ["error", "Could not resolve"]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-go-build-basic",
|
|
3
|
+
"ruleId": "build/go-build",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["go", "build", "./cmd/api"],
|
|
7
|
+
"command": "go build ./cmd/api",
|
|
8
|
+
"combinedText": "# github.com/example/api/cmd/api\ncmd/api/main.go:19:7: undefined: startSever\n",
|
|
9
|
+
"exitCode": 1
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "build/go-build",
|
|
13
|
+
"family": "build-go",
|
|
14
|
+
"contains": ["github.com/example/api", "undefined: startSever"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-gradle-basic",
|
|
3
|
+
"ruleId": "build/gradle",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["./gradlew", "build"],
|
|
7
|
+
"command": "./gradlew build",
|
|
8
|
+
"combinedText": "> Task :compileJava\n> Task :test FAILED\n\nFAILURE: Build failed with an exception.\n* What went wrong:\nExecution failed for task ':test'.\n> There were failing tests. See the report at: build/reports/tests/test/index.html\n",
|
|
9
|
+
"exitCode": 1
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "build/gradle",
|
|
13
|
+
"family": "build-jvm",
|
|
14
|
+
"contains": ["Execution failed for task ':test'", "FAILURE: Build failed"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-maven-basic",
|
|
3
|
+
"ruleId": "build/maven",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["mvn", "test"],
|
|
7
|
+
"command": "mvn test",
|
|
8
|
+
"combinedText": "[INFO] Scanning for projects...\n[INFO] --- maven-surefire-plugin:test (default-test) @ api ---\n[ERROR] Tests run: 12, Failures: 1, Errors: 0, Skipped: 0\n[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.5:test on project api: There are test failures.\n[INFO] BUILD FAILURE\n",
|
|
9
|
+
"exitCode": 1
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "build/maven",
|
|
13
|
+
"family": "build-jvm",
|
|
14
|
+
"contains": ["[ERROR] Tests run", "BUILD FAILURE"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-msbuild-basic",
|
|
3
|
+
"ruleId": "build/msbuild",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["msbuild", "App.sln"],
|
|
7
|
+
"command": "msbuild App.sln",
|
|
8
|
+
"combinedText": "Microsoft (R) Build Engine version 17.10.0\nProgram.cs(8,13): error CS0246: The type or namespace name 'Widget' could not be found [App.csproj]\nBuild FAILED.\n 0 Warning(s)\n 1 Error(s)\n",
|
|
9
|
+
"exitCode": 1
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "build/msbuild",
|
|
13
|
+
"family": "build-dotnet",
|
|
14
|
+
"contains": ["error CS0246", "Build FAILED"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-pnpm-build-failure",
|
|
3
|
+
"ruleId": "build/pnpm-build",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["pnpm", "build"],
|
|
7
|
+
"command": "pnpm build",
|
|
8
|
+
"combinedText": "> tokenjuice@0.6.0 build /repo\n> rm -rf dist && tsc -p tsconfig.json\n\nsrc/index.ts(12,3): error TS2322: Type 'number' is not assignable to type 'string'.\nFound 1 error in src/index.ts:12\n",
|
|
9
|
+
"exitCode": 2
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "build/pnpm-build",
|
|
13
|
+
"family": "build-script",
|
|
14
|
+
"contains": ["error TS2322", "Found 1 error"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-pnpm-build-basic",
|
|
3
|
+
"ruleId": "build/pnpm-build",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["pnpm", "build"],
|
|
7
|
+
"command": "pnpm build",
|
|
8
|
+
"combinedText": "> tokenjuice@0.6.0 build /repo\n> rm -rf dist && pnpm generate:builtin-rules && tsc -p tsconfig.json\n\n> tokenjuice@0.6.0 generate:builtin-rules /repo\n> node scripts/generate-builtin-rules.mjs\n\nDone in 2.4s\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "build/pnpm-build",
|
|
13
|
+
"family": "build-script",
|
|
14
|
+
"inlineText": "pnpm build: ok",
|
|
15
|
+
"previewText": "pnpm build: ok",
|
|
16
|
+
"contains": ["pnpm build: ok"]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-swift-build-failure-basic",
|
|
3
|
+
"ruleId": "build/swift-build",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["swift", "build"],
|
|
7
|
+
"command": "swift build",
|
|
8
|
+
"combinedText": "[0/1] Planning build\nBuilding for debugging...\n[0/5] Write sources\n[1/5] Write swift-version--A1B2C3.txt\n[3/5] Emitting module TokenJuice\n/repo/Sources/App/main.swift:18:7: warning: initialization of immutable value 'unused' was never used; consider replacing with assignment to '_' or removing it\n/repo/Sources/App/main.swift:22:18: error: cannot find 'missingSymbol' in scope\nerror: emit-module command failed with exit code 1 (use -v to see invocation)\n",
|
|
9
|
+
"exitCode": 1
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "build/swift-build",
|
|
13
|
+
"family": "build",
|
|
14
|
+
"facts": {
|
|
15
|
+
"error": 2,
|
|
16
|
+
"warning": 1
|
|
17
|
+
},
|
|
18
|
+
"contains": [
|
|
19
|
+
"exit 1",
|
|
20
|
+
"/repo/Sources/App/main.swift:18:7: warning: initialization of immutable value 'unused' was never used",
|
|
21
|
+
"/repo/Sources/App/main.swift:22:18: error: cannot find 'missingSymbol' in scope",
|
|
22
|
+
"error: emit-module command failed with exit code 1"
|
|
23
|
+
],
|
|
24
|
+
"excludes": [
|
|
25
|
+
"[3/5] Emitting module TokenJuice",
|
|
26
|
+
"Building for debugging..."
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-tsc-basic",
|
|
3
|
+
"ruleId": "build/tsc",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"command": "pnpm tsc --noEmit",
|
|
7
|
+
"combinedText": "src/index.ts(1,1): error TS2322: Type 'string' is not assignable to type 'number'.\nFound 1 error.\n",
|
|
8
|
+
"exitCode": 2
|
|
9
|
+
},
|
|
10
|
+
"expect": {
|
|
11
|
+
"matchedReducer": "build/tsc",
|
|
12
|
+
"family": "build-typescript",
|
|
13
|
+
"contains": ["exit 2", "TS2322"]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-tsdown-basic",
|
|
3
|
+
"ruleId": "build/tsdown",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"command": "pnpm tsdown",
|
|
7
|
+
"combinedText": "error: Failed to resolve entry ./src/index.ts\nBuild failed\n",
|
|
8
|
+
"exitCode": 1
|
|
9
|
+
},
|
|
10
|
+
"expect": {
|
|
11
|
+
"matchedReducer": "build/tsdown",
|
|
12
|
+
"family": "build-bundler",
|
|
13
|
+
"contains": ["error", "Failed to resolve"]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-vite-basic",
|
|
3
|
+
"ruleId": "build/vite",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"command": "pnpm vite build",
|
|
7
|
+
"combinedText": "vite v5.4.0 building for production...\n✓ 120 modules transformed.\nerror during build:\nCould not resolve entry module\n",
|
|
8
|
+
"exitCode": 1
|
|
9
|
+
},
|
|
10
|
+
"expect": {
|
|
11
|
+
"matchedReducer": "build/vite",
|
|
12
|
+
"family": "build-bundler",
|
|
13
|
+
"contains": ["error", "Could not resolve entry module"]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-webpack-basic",
|
|
3
|
+
"ruleId": "build/webpack",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"command": "pnpm webpack",
|
|
7
|
+
"combinedText": "ERROR in ./src/index.ts\nModule not found: Error: Can't resolve 'left-pad'\nwebpack 5.0.0 compiled with 1 error\n",
|
|
8
|
+
"exitCode": 1
|
|
9
|
+
},
|
|
10
|
+
"expect": {
|
|
11
|
+
"matchedReducer": "build/webpack",
|
|
12
|
+
"family": "build-bundler",
|
|
13
|
+
"facts": {
|
|
14
|
+
"error": 3,
|
|
15
|
+
"warning": 0,
|
|
16
|
+
"asset": 0
|
|
17
|
+
},
|
|
18
|
+
"contains": ["error", "Can't resolve"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "build-xcodebuild-failure-basic",
|
|
3
|
+
"ruleId": "build/xcodebuild",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"command": "bash -lc 'cd apps/ios && xcodebuild -project App.xcodeproj -scheme App build'",
|
|
7
|
+
"combinedText": "Command line invocation:\n /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project App.xcodeproj -scheme App build\n\nResolve Package Graph\nFetching from https://github.com/apple/swift-syntax\nFetching from https://github.com/pointfreeco/swift-snapshot-testing (cached)\n\nSwiftCompile normal arm64 Compiling\\ Foo.swift /repo/apps/ios/Sources/Foo.swift (in target 'App' from project 'App')\n/repo/apps/ios/Sources/Foo.swift:17:12: error: cannot find 'missingSymbol' in scope\n/repo/apps/ios/Sources/Bar.swift:4:9: warning: initialization of immutable value 'unused' was never used\nnote: Building targets in dependency order\n\nThe following build commands failed:\n\tSwiftCompile normal arm64 /repo/apps/ios/Sources/Foo.swift\n\tBuilding project App with scheme App\n(2 failures)\n** BUILD FAILED **\n",
|
|
8
|
+
"exitCode": 65
|
|
9
|
+
},
|
|
10
|
+
"expect": {
|
|
11
|
+
"matchedReducer": "build/xcodebuild",
|
|
12
|
+
"family": "build-xcode",
|
|
13
|
+
"contains": [
|
|
14
|
+
"error",
|
|
15
|
+
"warning",
|
|
16
|
+
"failed command",
|
|
17
|
+
"/repo/apps/ios/Sources/Foo.swift:17:12: error: cannot find 'missingSymbol' in scope",
|
|
18
|
+
"/repo/apps/ios/Sources/Bar.swift:4:9: warning: initialization of immutable value 'unused' was never used",
|
|
19
|
+
"The following build commands failed:",
|
|
20
|
+
"** BUILD FAILED **"
|
|
21
|
+
],
|
|
22
|
+
"excludes": [
|
|
23
|
+
"Fetching from https://github.com/apple/swift-syntax",
|
|
24
|
+
"SwiftCompile normal arm64 Compiling\\ Foo.swift"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "cloud-aws-basic",
|
|
3
|
+
"ruleId": "cloud/aws",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["aws", "s3", "ls"],
|
|
7
|
+
"command": "aws s3 ls",
|
|
8
|
+
"combinedText": "2026-04-14 12:11:00 app-backups\n2026-04-14 12:11:12 static-assets\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "cloud/aws",
|
|
13
|
+
"family": "cloud-cli",
|
|
14
|
+
"contains": ["app-backups", "static-assets"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "cloud-az-basic",
|
|
3
|
+
"ruleId": "cloud/az",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["az", "group", "list", "--output", "table"],
|
|
7
|
+
"command": "az group list --output table",
|
|
8
|
+
"combinedText": "Name Location Status\n---------------- ---------- ---------\nrg-prod westeurope Succeeded\nrg-staging uksouth Succeeded\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "cloud/az",
|
|
13
|
+
"family": "cloud-cli",
|
|
14
|
+
"contains": ["rg-prod", "rg-staging"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "cloud-flyctl-basic",
|
|
3
|
+
"ruleId": "cloud/flyctl",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["flyctl", "status"],
|
|
7
|
+
"command": "flyctl status",
|
|
8
|
+
"combinedText": "App\n Name = tokenjuice\n Owner = personal\n Hostname = tokenjuice.fly.dev\nMachines\nPROCESS ID VERSION REGION STATE ROLE CHECKS\napp 9083d3e8f3d248 18 lhr started web 2 total, 2 passing\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "cloud/flyctl",
|
|
13
|
+
"family": "deploy-cli",
|
|
14
|
+
"contains": ["tokenjuice.fly.dev", "2 total, 2 passing"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "cloud-gcloud-basic",
|
|
3
|
+
"ruleId": "cloud/gcloud",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["gcloud", "compute", "instances", "list"],
|
|
7
|
+
"command": "gcloud compute instances list",
|
|
8
|
+
"combinedText": "NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS\napi-prod europe-west2-a e2-standard-2 10.0.0.4 34.89.1.10 RUNNING\nworker-prod europe-west2-b e2-standard-4 10.0.0.5 34.89.1.11 RUNNING\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "cloud/gcloud",
|
|
13
|
+
"family": "cloud-cli",
|
|
14
|
+
"contains": ["api-prod", "worker-prod"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "cloud-gh-basic",
|
|
3
|
+
"ruleId": "cloud/gh",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["gh", "issue", "list", "--json", "number,title,url,comments,updatedAt,labels"],
|
|
7
|
+
"command": "gh issue list -R openclaw/openclaw --limit 2 --json number,title,url,comments,updatedAt,labels --jq '.[] | {number,title,url,comments:(.comments|length),updatedAt,labels:[.labels[].name]}'",
|
|
8
|
+
"combinedText": "{\"number\":67473,\"title\":\"[Bug]: Auto-compaction (threshold-based) never fires in embedded runner\",\"url\":\"https://github.com/openclaw/openclaw/issues/67473\",\"comments\":0,\"updatedAt\":\"2026-04-16T01:52:50Z\",\"labels\":[\"bug\",\"bug:behavior\"]}\n{\"number\":67469,\"title\":\"[Bug]: google-gemini-cli replies stop being persisted to OpenClaw session transcripts / WebUI history\",\"url\":\"https://github.com/openclaw/openclaw/issues/67469\",\"comments\":1,\"updatedAt\":\"2026-04-16T02:06:50Z\",\"labels\":[\"bug\",\"regression\"]}\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "cloud/gh",
|
|
13
|
+
"family": "developer-cli",
|
|
14
|
+
"contains": ["#67473", "{bug, bug:behavior}", "2026-04-16"],
|
|
15
|
+
"excludes": ["\"number\":67473", "\"title\":\"[Bug]"]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "cloud-vercel-basic",
|
|
3
|
+
"ruleId": "cloud/vercel",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["vercel", "deploy", "--prod"],
|
|
7
|
+
"command": "vercel deploy --prod",
|
|
8
|
+
"combinedText": "Vercel CLI 38.0.0\nDeploying tokenjuice\nInspect: https://vercel.com/vincentkoc/tokenjuice/abc123\nProduction: https://tokenjuice.vercel.app\nQueued\nBuilding\nCompleting\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "cloud/vercel",
|
|
13
|
+
"family": "deploy-cli",
|
|
14
|
+
"contains": ["Production: https://tokenjuice.vercel.app", "Inspect: https://vercel.com"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "database-mongosh-basic",
|
|
3
|
+
"ruleId": "database/mongosh",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["mongosh", "--quiet"],
|
|
7
|
+
"command": "mongosh --quiet",
|
|
8
|
+
"combinedText": "test> db.users.find({}, { email: 1 }).limit(2)\n[\n { _id: ObjectId('1'), email: 'a@example.com' },\n { _id: ObjectId('2'), email: 'b@example.com' }\n]\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "database/mongosh",
|
|
13
|
+
"family": "database-cli",
|
|
14
|
+
"contains": ["a@example.com", "b@example.com"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "database-mysql-basic",
|
|
3
|
+
"ruleId": "database/mysql",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["mysql", "-e", "show databases;"],
|
|
7
|
+
"command": "mysql -e \"show databases;\"",
|
|
8
|
+
"combinedText": "Database\ninformation_schema\nmysql\napp_prod\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "database/mysql",
|
|
13
|
+
"family": "database-cli",
|
|
14
|
+
"contains": ["Database", "app_prod"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "database-psql-basic",
|
|
3
|
+
"ruleId": "database/psql",
|
|
4
|
+
"input": {
|
|
5
|
+
"toolName": "exec",
|
|
6
|
+
"argv": ["psql", "-c", "\\dt"],
|
|
7
|
+
"command": "psql -c \"\\dt\"",
|
|
8
|
+
"combinedText": " List of relations\n Schema | Name | Type | Owner\n--------+-----------------+-------+---------\n public | migrations | table | vincent\n public | users | table | vincent\n",
|
|
9
|
+
"exitCode": 0
|
|
10
|
+
},
|
|
11
|
+
"expect": {
|
|
12
|
+
"matchedReducer": "database/psql",
|
|
13
|
+
"family": "database-cli",
|
|
14
|
+
"contains": ["List of relations", "public | users"]
|
|
15
|
+
}
|
|
16
|
+
}
|