@agentxm/client-core 0.16.2 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/unstable/agent-capabilities/catalog.d.ts +7552 -2952
- package/dist/src/unstable/agent-capabilities/catalog.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/adal.d.ts +46 -24
- package/dist/src/unstable/agent-capabilities/data/agents/adal.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/adal.js +52 -24
- package/dist/src/unstable/agent-capabilities/data/agents/adal.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.d.ts +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.js +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/amp.d.ts +71 -32
- package/dist/src/unstable/agent-capabilities/data/agents/amp.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/amp.js +76 -32
- package/dist/src/unstable/agent-capabilities/data/agents/amp.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity.d.ts +90 -36
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity.js +101 -36
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/augment.d.ts +252 -34
- package/dist/src/unstable/agent-capabilities/data/agents/augment.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/augment.js +226 -34
- package/dist/src/unstable/agent-capabilities/data/agents/augment.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/claude-code.d.ts +200 -31
- package/dist/src/unstable/agent-capabilities/data/agents/claude-code.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/claude-code.js +159 -33
- package/dist/src/unstable/agent-capabilities/data/agents/claude-code.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/cline.d.ts +82 -28
- package/dist/src/unstable/agent-capabilities/data/agents/cline.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/cline.js +87 -28
- package/dist/src/unstable/agent-capabilities/data/agents/cline.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.d.ts +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.js +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.d.ts +272 -33
- package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.js +253 -33
- package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codemaker.d.ts +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/codemaker.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codemaker.js +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/codemaker.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codestudio.d.ts +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/codestudio.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codestudio.js +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/codestudio.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codex.d.ts +222 -56
- package/dist/src/unstable/agent-capabilities/data/agents/codex.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codex.js +197 -60
- package/dist/src/unstable/agent-capabilities/data/agents/codex.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/command-code.d.ts +24 -19
- package/dist/src/unstable/agent-capabilities/data/agents/command-code.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/command-code.js +24 -19
- package/dist/src/unstable/agent-capabilities/data/agents/command-code.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/continue.d.ts +36 -22
- package/dist/src/unstable/agent-capabilities/data/agents/continue.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/continue.js +39 -22
- package/dist/src/unstable/agent-capabilities/data/agents/continue.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/cortex.d.ts +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/cortex.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/cortex.js +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/cortex.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/crush.d.ts +61 -29
- package/dist/src/unstable/agent-capabilities/data/agents/crush.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/crush.js +66 -29
- package/dist/src/unstable/agent-capabilities/data/agents/crush.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/cursor.d.ts +36 -31
- package/dist/src/unstable/agent-capabilities/data/agents/cursor.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/cursor.js +37 -33
- package/dist/src/unstable/agent-capabilities/data/agents/cursor.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/deepagents.d.ts +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/deepagents.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/deepagents.js +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/deepagents.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/devin.d.ts +263 -35
- package/dist/src/unstable/agent-capabilities/data/agents/devin.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/devin.js +254 -35
- package/dist/src/unstable/agent-capabilities/data/agents/devin.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/dexto.d.ts +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/dexto.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/dexto.js +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/dexto.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/droid.d.ts +24 -19
- package/dist/src/unstable/agent-capabilities/data/agents/droid.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/droid.js +24 -19
- package/dist/src/unstable/agent-capabilities/data/agents/droid.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/firebender.d.ts +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/firebender.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/firebender.js +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/firebender.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/forgecode.d.ts +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/forgecode.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/forgecode.js +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/forgecode.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.d.ts +207 -38
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.js +212 -41
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.d.ts +30 -24
- package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.js +33 -24
- package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/goose.d.ts +37 -53
- package/dist/src/unstable/agent-capabilities/data/agents/goose.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/goose.js +37 -55
- package/dist/src/unstable/agent-capabilities/data/agents/goose.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.d.ts +59 -28
- package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.js +66 -28
- package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/hermes.d.ts +25 -19
- package/dist/src/unstable/agent-capabilities/data/agents/hermes.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/hermes.js +25 -19
- package/dist/src/unstable/agent-capabilities/data/agents/hermes.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.d.ts +34 -23
- package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.js +37 -23
- package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/junie.d.ts +71 -47
- package/dist/src/unstable/agent-capabilities/data/agents/junie.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/junie.js +84 -47
- package/dist/src/unstable/agent-capabilities/data/agents/junie.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/kilo.d.ts +90 -70
- package/dist/src/unstable/agent-capabilities/data/agents/kilo.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/kilo.js +97 -74
- package/dist/src/unstable/agent-capabilities/data/agents/kilo.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.d.ts +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.js +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.d.ts +60 -33
- package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.js +69 -33
- package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/kode.d.ts +24 -20
- package/dist/src/unstable/agent-capabilities/data/agents/kode.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/kode.js +24 -20
- package/dist/src/unstable/agent-capabilities/data/agents/kode.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.d.ts +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.js +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.d.ts +24 -20
- package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.js +24 -20
- package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/mux.d.ts +24 -19
- package/dist/src/unstable/agent-capabilities/data/agents/mux.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/mux.js +24 -19
- package/dist/src/unstable/agent-capabilities/data/agents/mux.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/neovate.d.ts +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/neovate.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/neovate.js +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/neovate.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/openclaw.d.ts +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/openclaw.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/openclaw.js +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/openclaw.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/opencode.d.ts +98 -32
- package/dist/src/unstable/agent-capabilities/data/agents/opencode.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/opencode.js +101 -32
- package/dist/src/unstable/agent-capabilities/data/agents/opencode.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/openhands.d.ts +25 -19
- package/dist/src/unstable/agent-capabilities/data/agents/openhands.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/openhands.js +25 -19
- package/dist/src/unstable/agent-capabilities/data/agents/openhands.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/pi.d.ts +30 -22
- package/dist/src/unstable/agent-capabilities/data/agents/pi.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/pi.js +30 -22
- package/dist/src/unstable/agent-capabilities/data/agents/pi.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/pochi.d.ts +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/pochi.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/pochi.js +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/pochi.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/qoder.d.ts +199 -40
- package/dist/src/unstable/agent-capabilities/data/agents/qoder.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/qoder.js +175 -43
- package/dist/src/unstable/agent-capabilities/data/agents/qoder.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.d.ts +239 -34
- package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.js +209 -34
- package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/replit.d.ts +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/replit.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/replit.js +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/replit.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/roo.d.ts +46 -64
- package/dist/src/unstable/agent-capabilities/data/agents/roo.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/roo.js +48 -67
- package/dist/src/unstable/agent-capabilities/data/agents/roo.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/rovodev.d.ts +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/rovodev.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/rovodev.js +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/rovodev.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.d.ts +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.js +24 -18
- package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.d.ts +24 -19
- package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.js +24 -19
- package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/trae.d.ts +24 -19
- package/dist/src/unstable/agent-capabilities/data/agents/trae.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/trae.js +24 -19
- package/dist/src/unstable/agent-capabilities/data/agents/trae.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/warp.d.ts +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/warp.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/warp.js +24 -17
- package/dist/src/unstable/agent-capabilities/data/agents/warp.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/windsurf.d.ts +232 -39
- package/dist/src/unstable/agent-capabilities/data/agents/windsurf.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/windsurf.js +177 -42
- package/dist/src/unstable/agent-capabilities/data/agents/windsurf.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/zencoder.d.ts +34 -23
- package/dist/src/unstable/agent-capabilities/data/agents/zencoder.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/zencoder.js +34 -23
- package/dist/src/unstable/agent-capabilities/data/agents/zencoder.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/derive.d.ts +76 -14
- package/dist/src/unstable/agent-capabilities/derive.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/derive.js +167 -38
- package/dist/src/unstable/agent-capabilities/derive.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/index.d.ts +2 -2
- package/dist/src/unstable/agent-capabilities/index.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/index.js +2 -2
- package/dist/src/unstable/agent-capabilities/index.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/schema.d.ts +638 -464
- package/dist/src/unstable/agent-capabilities/schema.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/schema.js +328 -116
- package/dist/src/unstable/agent-capabilities/schema.js.map +1 -1
- package/dist/src/unstable/agents/augment/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/augment/service.js +4 -9
- package/dist/src/unstable/agents/augment/service.js.map +1 -1
- package/dist/src/unstable/agents/codex/service.js +1 -1
- package/dist/src/unstable/agents/codex/service.js.map +1 -1
- package/dist/src/unstable/agents/gemini-cli/service.js +1 -1
- package/dist/src/unstable/agents/instructions.d.ts +3 -3
- package/dist/src/unstable/agents/instructions.d.ts.map +1 -1
- package/dist/src/unstable/agents/instructions.js +16 -4
- package/dist/src/unstable/agents/instructions.js.map +1 -1
- package/dist/src/unstable/agents/junie/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/junie/service.js +5 -0
- package/dist/src/unstable/agents/junie/service.js.map +1 -1
- package/dist/src/unstable/agents/kiro-cli/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/kiro-cli/service.js +3 -8
- package/dist/src/unstable/agents/kiro-cli/service.js.map +1 -1
- package/dist/src/unstable/agents/mcp-sync.d.ts.map +1 -1
- package/dist/src/unstable/agents/mcp-sync.js +8 -8
- package/dist/src/unstable/agents/mcp-sync.js.map +1 -1
- package/dist/src/unstable/agents/repository.d.ts.map +1 -1
- package/dist/src/unstable/agents/repository.js +63 -42
- package/dist/src/unstable/agents/repository.js.map +1 -1
- package/dist/src/unstable/app-error/cause-chain.d.ts +11 -0
- package/dist/src/unstable/app-error/cause-chain.d.ts.map +1 -0
- package/dist/src/unstable/app-error/cause-chain.js +91 -0
- package/dist/src/unstable/app-error/cause-chain.js.map +1 -0
- package/dist/src/unstable/app-error/index.d.ts +1 -0
- package/dist/src/unstable/app-error/index.d.ts.map +1 -1
- package/dist/src/unstable/app-error/index.js +1 -0
- package/dist/src/unstable/app-error/index.js.map +1 -1
- package/dist/src/unstable/app-error/render.d.ts.map +1 -1
- package/dist/src/unstable/app-error/render.js +11 -29
- package/dist/src/unstable/app-error/render.js.map +1 -1
- package/dist/src/unstable/auth/auth-client.d.ts +1 -1
- package/dist/src/unstable/auth/auth-middleware.d.ts +2 -2
- package/dist/src/unstable/auth/device-login.d.ts +1 -1
- package/dist/src/unstable/auth/guard.d.ts +1 -1
- package/dist/src/unstable/auth/loopback-login.d.ts +1 -1
- package/dist/src/unstable/auth/token-resolution.d.ts +1 -1
- package/dist/src/unstable/cli/prompt/autocomplete-multiselect.d.ts +1 -0
- package/dist/src/unstable/cli/prompt/autocomplete-multiselect.d.ts.map +1 -1
- package/dist/src/unstable/cli/prompt/autocomplete-multiselect.js +11 -1
- package/dist/src/unstable/cli/prompt/autocomplete-multiselect.js.map +1 -1
- package/dist/src/unstable/cli-runtime/handle-error.d.ts +4 -1
- package/dist/src/unstable/cli-runtime/handle-error.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/handle-error.js +13 -17
- package/dist/src/unstable/cli-runtime/handle-error.js.map +1 -1
- package/dist/src/unstable/cli-runtime/json-envelope.d.ts +17 -2
- package/dist/src/unstable/cli-runtime/json-envelope.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/json-envelope.js +10 -2
- package/dist/src/unstable/cli-runtime/json-envelope.js.map +1 -1
- package/dist/src/unstable/cli-runtime/run-cli-main.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/run-cli-main.js +29 -8
- package/dist/src/unstable/cli-runtime/run-cli-main.js.map +1 -1
- package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts +1 -1
- package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/runtime-envelope.js +2 -3
- package/dist/src/unstable/cli-runtime/runtime-envelope.js.map +1 -1
- package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +1 -1
- package/dist/src/unstable/git/detect.d.ts +7 -0
- package/dist/src/unstable/git/detect.d.ts.map +1 -0
- package/dist/src/unstable/git/detect.js +23 -0
- package/dist/src/unstable/git/detect.js.map +1 -0
- package/dist/src/unstable/git/index.d.ts +1 -0
- package/dist/src/unstable/git/index.d.ts.map +1 -1
- package/dist/src/unstable/git/index.js +1 -0
- package/dist/src/unstable/git/index.js.map +1 -1
- package/dist/src/unstable/hooks/manager.d.ts.map +1 -1
- package/dist/src/unstable/hooks/manager.js +167 -47
- package/dist/src/unstable/hooks/manager.js.map +1 -1
- package/dist/src/unstable/hooks/manifest-schema.d.ts +126 -5
- package/dist/src/unstable/hooks/manifest-schema.d.ts.map +1 -1
- package/dist/src/unstable/hooks/manifest-schema.js +74 -9
- package/dist/src/unstable/hooks/manifest-schema.js.map +1 -1
- package/dist/src/unstable/hooks/operations/new-hook.d.ts +2 -2
- package/dist/src/unstable/hooks/operations/new-hook.d.ts.map +1 -1
- package/dist/src/unstable/hooks/operations/new-hook.js +4 -2
- package/dist/src/unstable/hooks/operations/new-hook.js.map +1 -1
- package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.js +51 -0
- package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.js.map +1 -0
- package/dist/src/unstable/lint/catalog/hook.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/hook.js +2 -0
- package/dist/src/unstable/lint/catalog/hook.js.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-drift.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-drift.js +6 -3
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-drift.js.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-orphaned.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-orphaned.js +4 -1
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-orphaned.js.map +1 -1
- package/dist/src/unstable/lockfile/lockfile.d.ts +95 -95
- package/dist/src/unstable/mcps/config-writer.d.ts.map +1 -1
- package/dist/src/unstable/mcps/config-writer.js +12 -29
- package/dist/src/unstable/mcps/config-writer.js.map +1 -1
- package/dist/src/unstable/mcps/index.d.ts +1 -0
- package/dist/src/unstable/mcps/index.d.ts.map +1 -1
- package/dist/src/unstable/mcps/index.js +1 -0
- package/dist/src/unstable/mcps/index.js.map +1 -1
- package/dist/src/unstable/mcps/inspection.d.ts.map +1 -1
- package/dist/src/unstable/mcps/inspection.js +5 -4
- package/dist/src/unstable/mcps/inspection.js.map +1 -1
- package/dist/src/unstable/mcps/metadata.d.ts +26 -0
- package/dist/src/unstable/mcps/metadata.d.ts.map +1 -0
- package/dist/src/unstable/mcps/metadata.js +75 -0
- package/dist/src/unstable/mcps/metadata.js.map +1 -0
- package/dist/src/unstable/mcps/projection.d.ts.map +1 -1
- package/dist/src/unstable/mcps/projection.js +22 -4
- package/dist/src/unstable/mcps/projection.js.map +1 -1
- package/dist/src/unstable/mcps/resolution.d.ts.map +1 -1
- package/dist/src/unstable/mcps/resolution.js +18 -10
- package/dist/src/unstable/mcps/resolution.js.map +1 -1
- package/dist/src/unstable/publish/manifest-policy.d.ts +42 -2
- package/dist/src/unstable/publish/manifest-policy.d.ts.map +1 -1
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts +839 -108
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
- package/dist/src/unstable/registry/__generated__/registry-client.js +123 -10
- package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
- package/dist/src/unstable/registry/admin-client.d.ts +72 -0
- package/dist/src/unstable/registry/admin-client.d.ts.map +1 -0
- package/dist/src/unstable/registry/admin-client.js +71 -0
- package/dist/src/unstable/registry/admin-client.js.map +1 -0
- package/dist/src/unstable/registry/index.d.ts +5 -1
- package/dist/src/unstable/registry/index.d.ts.map +1 -1
- package/dist/src/unstable/registry/index.js +3 -1
- package/dist/src/unstable/registry/index.js.map +1 -1
- package/dist/src/unstable/registry/release-age-policy.d.ts +18 -0
- package/dist/src/unstable/registry/release-age-policy.d.ts.map +1 -0
- package/dist/src/unstable/registry/release-age-policy.js +41 -0
- package/dist/src/unstable/registry/release-age-policy.js.map +1 -0
- package/dist/src/unstable/registry/utils.d.ts +2 -0
- package/dist/src/unstable/registry/utils.d.ts.map +1 -1
- package/dist/src/unstable/registry/utils.js +7 -0
- package/dist/src/unstable/registry/utils.js.map +1 -1
- package/dist/src/unstable/settings/index.d.ts +2 -2
- package/dist/src/unstable/settings/index.d.ts.map +1 -1
- package/dist/src/unstable/settings/index.js +1 -1
- package/dist/src/unstable/settings/index.js.map +1 -1
- package/dist/src/unstable/settings/schema.d.ts +10 -5
- package/dist/src/unstable/settings/schema.d.ts.map +1 -1
- package/dist/src/unstable/settings/schema.js +17 -3
- package/dist/src/unstable/settings/schema.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.js +8 -7
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.js.map +1 -1
- package/dist/src/unstable/sources/provider.d.ts +3 -0
- package/dist/src/unstable/sources/provider.d.ts.map +1 -1
- package/dist/src/unstable/utils/transient-backup.d.ts +27 -0
- package/dist/src/unstable/utils/transient-backup.d.ts.map +1 -0
- package/dist/src/unstable/utils/transient-backup.js +53 -0
- package/dist/src/unstable/utils/transient-backup.js.map +1 -0
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts +9 -8
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js +30 -0
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js.map +1 -1
- package/dist/src/unstable/workspace/initialization-interaction.d.ts.map +1 -1
- package/dist/src/unstable/workspace/initialization-interaction.js +1 -0
- package/dist/src/unstable/workspace/initialization-interaction.js.map +1 -1
- package/dist/src/unstable/workspace/initialization.d.ts +28 -24
- package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
- package/dist/src/unstable/workspace/initialization.js +5 -2
- package/dist/src/unstable/workspace/initialization.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/__fixtures__/builder.d.ts +1 -1
- package/dist/src/unstable/workspace/read-model/__fixtures__/builder.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/__fixtures__/builder.js +14 -5
- package/dist/src/unstable/workspace/read-model/__fixtures__/builder.js.map +1 -1
- package/dist/src/unstable/workspace/service-interface.d.ts +3 -1
- package/dist/src/unstable/workspace/service-interface.d.ts.map +1 -1
- package/dist/src/unstable/workspace/service-interface.js.map +1 -1
- package/dist/src/unstable/workspace/service.d.ts +2 -1
- package/dist/src/unstable/workspace/service.d.ts.map +1 -1
- package/dist/src/unstable/workspace/service.js +14 -0
- package/dist/src/unstable/workspace/service.js.map +1 -1
- package/dist/src/unstable/workspace/test-stubs.d.ts.map +1 -1
- package/dist/src/unstable/workspace/test-stubs.js +1 -0
- package/dist/src/unstable/workspace/test-stubs.js.map +1 -1
- package/package.json +2 -2
- package/site-content/__generated__/schemas/hook.schema.json +166 -10
- package/site-content/__generated__/schemas/settings.schema.json +19 -3
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* @experimental This API is unstable and may change without notice.
|
|
5
5
|
*/
|
|
6
6
|
import * as Schema from "effect/Schema";
|
|
7
|
+
import * as SchemaTransformation from "effect/SchemaTransformation";
|
|
8
|
+
import { CanonicalHookEventIdSchema, CanonicalHookToolIdSchema, HookBlockOutcomeSchema, HookModifyOperationSchema, } from "../agent-capabilities/index.js";
|
|
7
9
|
import { CommonManifestBaseFields, ExtensionNameSchema, NonPackManifestFields, } from "../extensions/common.js";
|
|
8
10
|
export const HOOK_MANIFEST_FILENAME = "hook.json";
|
|
9
11
|
export const HOOK_EXTENSION_DIR = "hooks";
|
|
@@ -13,7 +15,7 @@ export const HookRuntimeSchema = Schema.Literals(["bash", "node", "python"]).ann
|
|
|
13
15
|
title: "Hook Runtime",
|
|
14
16
|
description: "Interpreter family used to execute the materialized hook entrypoint.",
|
|
15
17
|
});
|
|
16
|
-
export const
|
|
18
|
+
export const LegacyHookEventSchema = Schema.Literals([
|
|
17
19
|
"PreToolUse",
|
|
18
20
|
"PostToolUse",
|
|
19
21
|
"UserPromptSubmit",
|
|
@@ -22,21 +24,84 @@ export const HookEventSchema = Schema.Literals([
|
|
|
22
24
|
"SubagentStop",
|
|
23
25
|
"PreCompact",
|
|
24
26
|
]).annotate({
|
|
27
|
+
identifier: "LegacyHookEvent",
|
|
28
|
+
title: "Legacy Hook Event",
|
|
29
|
+
description: "Deprecated Claude-compatible hook event name accepted as a decode alias.",
|
|
30
|
+
});
|
|
31
|
+
const legacyHookEventAliases = {
|
|
32
|
+
PreToolUse: "tool.pre",
|
|
33
|
+
PostToolUse: "tool.post",
|
|
34
|
+
UserPromptSubmit: "prompt.submit",
|
|
35
|
+
SessionStart: "session.start",
|
|
36
|
+
Stop: "turn.end",
|
|
37
|
+
SubagentStop: "subagent.stop",
|
|
38
|
+
PreCompact: "compaction.pre",
|
|
39
|
+
};
|
|
40
|
+
export const HookEventSchema = CanonicalHookEventIdSchema.annotate({
|
|
25
41
|
identifier: "HookEvent",
|
|
26
42
|
title: "Hook Event",
|
|
27
|
-
description: "
|
|
43
|
+
description: "Canonical AXM hook event this extension binds to.",
|
|
44
|
+
});
|
|
45
|
+
export const HookMatchSchema = Schema.Struct({
|
|
46
|
+
tools: Schema.optional(Schema.NonEmptyArray(CanonicalHookToolIdSchema).pipe(Schema.check(Schema.isUnique()))),
|
|
47
|
+
}).annotate({
|
|
48
|
+
identifier: "HookMatch",
|
|
49
|
+
title: "Hook Match",
|
|
50
|
+
description: "Portable hook matcher expressed over AXM canonical tool IDs.",
|
|
28
51
|
});
|
|
29
|
-
export const
|
|
30
|
-
|
|
52
|
+
export const HookDecisionRequirementSchema = Schema.Union([
|
|
53
|
+
Schema.Struct({ kind: Schema.Literal("observe") }),
|
|
54
|
+
Schema.Struct({
|
|
55
|
+
kind: Schema.Literal("block"),
|
|
56
|
+
outcomes: Schema.optional(Schema.NonEmptyArray(HookBlockOutcomeSchema).pipe(Schema.check(Schema.isUnique()))),
|
|
57
|
+
}),
|
|
58
|
+
Schema.Struct({
|
|
59
|
+
kind: Schema.Literal("modify"),
|
|
60
|
+
operations: Schema.optional(Schema.NonEmptyArray(HookModifyOperationSchema).pipe(Schema.check(Schema.isUnique()))),
|
|
61
|
+
}),
|
|
62
|
+
]).annotate({
|
|
63
|
+
identifier: "HookDecisionRequirement",
|
|
64
|
+
title: "Hook Decision Requirement",
|
|
65
|
+
description: "Decision capability a hook binding requires from the target agent event.",
|
|
66
|
+
});
|
|
67
|
+
export const HookBindingTargetSchema = Schema.Struct({
|
|
68
|
+
matcherRaw: Schema.optional(Schema.NonEmptyString),
|
|
69
|
+
}).annotate({
|
|
70
|
+
identifier: "HookBindingTarget",
|
|
71
|
+
title: "Hook Binding Target",
|
|
72
|
+
description: "Target-agent-specific hook binding escape hatches.",
|
|
73
|
+
});
|
|
74
|
+
export const CanonicalHookBindingSchema = Schema.Struct({
|
|
75
|
+
on: HookEventSchema,
|
|
76
|
+
match: Schema.optional(HookMatchSchema),
|
|
77
|
+
matcherRaw: Schema.optional(Schema.NonEmptyString),
|
|
78
|
+
targets: Schema.optional(Schema.Record(Schema.String, HookBindingTargetSchema)),
|
|
79
|
+
requires: Schema.optional(Schema.Struct({
|
|
80
|
+
decision: HookDecisionRequirementSchema,
|
|
81
|
+
})),
|
|
82
|
+
}).annotate({
|
|
83
|
+
identifier: "CanonicalHookBinding",
|
|
84
|
+
title: "Canonical Hook Binding",
|
|
85
|
+
description: "Universal hook event binding expressed in AXM canonical vocabulary.",
|
|
86
|
+
});
|
|
87
|
+
const LegacyHookBindingSchema = Schema.Struct({
|
|
88
|
+
event: LegacyHookEventSchema,
|
|
31
89
|
matcher: Schema.optional(Schema.NonEmptyString),
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
:
|
|
90
|
+
});
|
|
91
|
+
export const HookBindingSchema = Schema.Union([CanonicalHookBindingSchema, LegacyHookBindingSchema])
|
|
92
|
+
.pipe(Schema.decodeTo(CanonicalHookBindingSchema, SchemaTransformation.transform({
|
|
93
|
+
decode: (binding) => "on" in binding
|
|
94
|
+
? binding
|
|
95
|
+
: {
|
|
96
|
+
on: legacyHookEventAliases[binding.event],
|
|
97
|
+
...(binding.matcher === undefined ? {} : { matcherRaw: binding.matcher }),
|
|
98
|
+
},
|
|
99
|
+
encode: (binding) => binding,
|
|
100
|
+
})))
|
|
36
101
|
.annotate({
|
|
37
102
|
identifier: "HookBinding",
|
|
38
103
|
title: "Hook Binding",
|
|
39
|
-
description: "Universal hook event binding with
|
|
104
|
+
description: "Universal hook event binding with portable canonical matching and raw native escape hatches.",
|
|
40
105
|
});
|
|
41
106
|
export const HookCapabilitiesSchema = Schema.Struct({
|
|
42
107
|
network: Schema.optional(Schema.Boolean),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-schema.js","sourceRoot":"","sources":["../../../../src/unstable/hooks/manifest-schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,MAAM,sBAAsB,GAAG,WAAW,CAAC;AAElD,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC;AAE1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,yCAAyC,CAAC;AAElF,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC;IACpF,UAAU,EAAE,aAAa;IACzB,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,sEAAsE;CACpF,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"manifest-schema.js","sourceRoot":"","sources":["../../../../src/unstable/hooks/manifest-schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,GAE1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,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C7B,WAAW,EAAE,uCAAuC;KACrD,CAAC,CACH;IACD,OAAO,EAAE,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC,CAAC;IACjG,UAAU,EAAE,MAAM,CAAC,cAAc,CAAC,IAAI,CACpC,MAAM,CAAC,WAAW,CAAC,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,CAAC,EACnE,MAAM,CAAC,QAAQ,CAAC;QACd,WAAW,EAAE,qEAAqE;QAClF,QAAQ,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,aAAa,CAAC;KACxD,CAAC,CACH;IACD,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAC5C,MAAM,CAAC,WAAW,CAAC,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,CAAC,CACnE;IACD,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAClF,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IACzC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CACtD,CAAC,CAAC,QAAQ,CAAC;IACV,UAAU,EAAE,cAAc;IAC1B,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,wHAAwH;CAC3H,CAAC,CAAC"}
|
|
@@ -21,9 +21,9 @@ export interface NewHookOperationArgs {
|
|
|
21
21
|
readonly owner: Handle;
|
|
22
22
|
/** Interpreter family for the entrypoint. */
|
|
23
23
|
readonly runtime: HookRuntime;
|
|
24
|
-
/**
|
|
24
|
+
/** Canonical hook event the scaffold binds to. */
|
|
25
25
|
readonly event: HookEvent;
|
|
26
|
-
/** Optional
|
|
26
|
+
/** Optional raw matcher (only meaningful for tool.pre/tool.post). */
|
|
27
27
|
readonly matcher: string | undefined;
|
|
28
28
|
/** Overwrite an existing hook directory/settings entry. */
|
|
29
29
|
readonly force: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-hook.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/hooks/operations/new-hook.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAIpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAIL,KAAK,SAAS,EAEd,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAM/B;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8BAA8B;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,
|
|
1
|
+
{"version":3,"file":"new-hook.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/hooks/operations/new-hook.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAIpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAIL,KAAK,SAAS,EAEd,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAM/B;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8BAA8B;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,kDAAkD;IAClD,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,qEAAqE;IACrE,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC;AA2E3E;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,EAAE,gBAAgB,CACpC,gBAAgB,EAChB,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,kBAAkB,CA6FpD,CAAC"}
|
|
@@ -26,7 +26,7 @@ const entrypointFilename = (runtime) => {
|
|
|
26
26
|
return "hook.py";
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
const matcherForBinding = (event, matcher) => event === "
|
|
29
|
+
const matcherForBinding = (event, matcher) => event === "tool.pre" || event === "tool.post" ? matcher : undefined;
|
|
30
30
|
const makeEntrypoint = (runtime, fqn) => {
|
|
31
31
|
switch (runtime) {
|
|
32
32
|
case "bash":
|
|
@@ -133,7 +133,9 @@ export const newHook = (op) => Effect.gen(function* () {
|
|
|
133
133
|
version: INITIAL_HOOK_VERSION,
|
|
134
134
|
runtime,
|
|
135
135
|
entrypoint: `src/${entrypointFile}`,
|
|
136
|
-
bindings: [
|
|
136
|
+
bindings: [
|
|
137
|
+
bindingMatcher === undefined ? { on: event } : { on: event, matcherRaw: bindingMatcher },
|
|
138
|
+
],
|
|
137
139
|
};
|
|
138
140
|
yield* fs
|
|
139
141
|
.writeFileString(path.join(canonicalPath, HOOK_MANIFEST_FILENAME), JSON.stringify(manifest, null, 2) + "\n")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-hook.js","sourceRoot":"","sources":["../../../../../src/unstable/hooks/operations/new-hook.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAI7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,GAIzB,MAAM,uBAAuB,CAAC;AA+B/B,gFAAgF;AAChF,UAAU;AACV,gFAAgF;AAEhF,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;AAExD,MAAM,kBAAkB,GAAG,CAAC,OAAoB,EAAU,EAAE;IAC1D,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,SAAS,CAAC;QACnB,KAAK,MAAM;YACT,OAAO,SAAS,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAAgB,EAAE,OAA2B,EAAsB,EAAE,CAC9F,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"new-hook.js","s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U,EAAE,cAAc,EAAE;SACzF;KACF,CAAC;IAEF,KAAK,CAAC,CAAC,EAAE;SACN,eAAe,CACd,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,sBAAsB,CAAC,EAChD,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CACzC;SACA,IAAI,CACH,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CACpB,YAAY,CAAC;QACX,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,oCAAoC;QAC5C,KAAK,EAAE,CAAC;KACT,CAAC,CACH,CACF,CAAC;IAEJ,8BAA8B;IAC9B,KAAK,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAC7F,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CACpB,YAAY,CAAC;QACX,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,mBAAmB,cAAc,EAAE;QAC3C,KAAK,EAAE,CAAC;KACT,CAAC,CACH,CACF,CAAC;IAEF,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,gBAAgB,GAAG,EAAE;KACP,CAAC;AAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matcher-raw-portability.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/hook/matcher-raw-portability.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,eAAe,CAAC;AAMnE,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,eAAe,CAiDnE,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Result from "effect/Result";
|
|
3
|
+
import * as Schema from "effect/Schema";
|
|
4
|
+
import { HookManifestSchema, HOOK_MANIFEST_FILENAME } from "../../../hooks/manifest-schema.js";
|
|
5
|
+
import { isManifestJsonParseFailure } from "../shared/manifest-json.js";
|
|
6
|
+
const RULE_ID = "hook/matcher-raw-portability";
|
|
7
|
+
const decodeHookManifest = Schema.decodeUnknownResult(HookManifestSchema);
|
|
8
|
+
export const matcherRawPortabilityRule = {
|
|
9
|
+
id: RULE_ID,
|
|
10
|
+
description: "Hook matchers use portable canonical tool matches where possible.",
|
|
11
|
+
kind: "advisory",
|
|
12
|
+
severity: "warning",
|
|
13
|
+
check: (context) => {
|
|
14
|
+
if (context.subject.hookJson === undefined ||
|
|
15
|
+
isManifestJsonParseFailure(context.subject.hookJson)) {
|
|
16
|
+
return Effect.succeed([]);
|
|
17
|
+
}
|
|
18
|
+
const decoded = decodeHookManifest(context.subject.hookJson, {
|
|
19
|
+
onExcessProperty: "ignore",
|
|
20
|
+
errors: "all",
|
|
21
|
+
});
|
|
22
|
+
if (Result.isFailure(decoded)) {
|
|
23
|
+
return Effect.succeed([]);
|
|
24
|
+
}
|
|
25
|
+
const findings = [];
|
|
26
|
+
for (const binding of decoded.success.bindings) {
|
|
27
|
+
if (binding.matcherRaw !== undefined) {
|
|
28
|
+
findings.push({
|
|
29
|
+
kind: "advisory",
|
|
30
|
+
ruleId: RULE_ID,
|
|
31
|
+
severity: "warning",
|
|
32
|
+
message: "hook.json uses matcherRaw, which is native-agent-specific and not portable. Prefer `match.tools` with canonical tool IDs.",
|
|
33
|
+
location: { file: HOOK_MANIFEST_FILENAME },
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
for (const target of Object.values(binding.targets ?? {})) {
|
|
37
|
+
if (target.matcherRaw !== undefined) {
|
|
38
|
+
findings.push({
|
|
39
|
+
kind: "advisory",
|
|
40
|
+
ruleId: RULE_ID,
|
|
41
|
+
severity: "warning",
|
|
42
|
+
message: "hook.json uses a target matcherRaw override, which is native-agent-specific and not portable.",
|
|
43
|
+
location: { file: HOOK_MANIFEST_FILENAME },
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return Effect.succeed(findings);
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=matcher-raw-portability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matcher-raw-portability.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/hook/matcher-raw-portability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAIxE,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAE/C,MAAM,kBAAkB,GAAG,MAAM,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;AAE1E,MAAM,CAAC,MAAM,yBAAyB,GAAkC;IACtE,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,mEAAmE;IAChF,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE;QACjB,IACE,OAAO,CAAC,OAAO,CAAC,QAAQ,KAAK,SAAS;YACtC,0BAA0B,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EACpD,CAAC;YACD,OAAO,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAC5B,CAAC;QAED,MAAM,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE;YAC3D,gBAAgB,EAAE,QAA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AAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/lint/catalog/hook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,eAAO,MAAM,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,eAAe,CAAC,CAM9D,CAAC"}
|
|
@@ -3,10 +3,12 @@ import { entrypointExistsRule } from "./hook/entrypoint-exists.js";
|
|
|
3
3
|
import { manifestKeysRecognizedRule } from "./hook/manifest-keys-recognized.js";
|
|
4
4
|
import { manifestPresentRule } from "./hook/manifest-present.js";
|
|
5
5
|
import { manifestSchemaValidRule } from "./hook/manifest-schema-valid.js";
|
|
6
|
+
import { matcherRawPortabilityRule } from "./hook/matcher-raw-portability.js";
|
|
6
7
|
export const hookRules = [
|
|
7
8
|
manifestPresentRule,
|
|
8
9
|
manifestSchemaValidRule,
|
|
9
10
|
manifestKeysRecognizedRule,
|
|
11
|
+
matcherRawPortabilityRule,
|
|
10
12
|
entrypointExistsRule,
|
|
11
13
|
];
|
|
12
14
|
registerLintRuleIds(hookRules.map((r) => r.id));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../../../src/unstable/lint/catalog/hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../../../src/unstable/lint/catalog/hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,MAAM,CAAC,MAAM,SAAS,GAA6C;IACjE,mBAAmB;IACnB,uBAAuB;IACvB,0BAA0B;IAC1B,yBAAyB;IACzB,oBAAoB;CACrB,CAAC;AAEF,mBAAmB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server-agent-drift.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/workspace/mcp-server-agent-drift.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp-server-agent-drift.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/workspace/mcp-server-agent-drift.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAsB,cAAc,EAAe,MAAM,eAAe,CAAC;AA+IrF,eAAO,MAAM,uBAAuB,EAAE,cAAc,CAAC,oBAAoB,CAmBxE,CAAC"}
|
|
@@ -2,14 +2,17 @@ import * as Effect from "effect/Effect";
|
|
|
2
2
|
import * as Option from "effect/Option";
|
|
3
3
|
import * as Result from "effect/Result";
|
|
4
4
|
import { AGENTS_BY_ID, } from "../../../agent-capabilities/index.js";
|
|
5
|
+
import { isAxmManagedMcpEntry } from "../../../mcps/metadata.js";
|
|
5
6
|
import { diffAgentEntry, projectExpectedEntry } from "../../../mcps/projection.js";
|
|
6
7
|
import { syncMcpServerAgentOp } from "./helpers/install-ops.js";
|
|
7
8
|
const RULE_ID = "workspace/mcp-server-agent-drift";
|
|
8
|
-
const hasMcpConfig = (capability) => capability.axm.writer !== null;
|
|
9
|
+
const hasMcpConfig = (capability) => capability.axm.writer !== null && "transports" in capability.native;
|
|
9
10
|
const isCapabilityAgentId = (agentId) => agentId in AGENTS_BY_ID;
|
|
10
11
|
const isInlineEntry = (entry) => entry.command !== undefined || entry.url !== undefined;
|
|
11
12
|
const configuredEntry = (row) => row.installationOrigin._tag === "direct" ? row.installationOrigin.declared.entry : undefined;
|
|
12
|
-
const agentActuals = (actuals) => actuals.filter((actual) => actual.origin._tag === "agent-mcp-config" &&
|
|
13
|
+
const agentActuals = (actuals) => actuals.filter((actual) => actual.origin._tag === "agent-mcp-config" &&
|
|
14
|
+
actual.config !== null &&
|
|
15
|
+
isAxmManagedMcpEntry(actual.config));
|
|
13
16
|
const configuredAgentIds = (context) => Effect.gen(function* () {
|
|
14
17
|
const settings = yield* Effect.result(context.workspace.state.settings);
|
|
15
18
|
if (Result.isFailure(settings) || Option.isNone(settings.success)) {
|
|
@@ -46,7 +49,7 @@ const checkActual = (args) => {
|
|
|
46
49
|
stdio: config.stdio,
|
|
47
50
|
remote: config.remote,
|
|
48
51
|
nativeEnabled: config.nativeEnabled,
|
|
49
|
-
envExpansion: capability.
|
|
52
|
+
envExpansion: capability.native.mcpEnvExpansion,
|
|
50
53
|
});
|
|
51
54
|
if (projected._tag !== "projected")
|
|
52
55
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server-agent-drift.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/workspace/mcp-server-agent-drift.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eA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,QAAQ,CAAC;QAClB,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAC1E,IAAI,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC;YAAE,OAAO,EAAE,CAAC;QACtC,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAClD,OAAO,iBAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC,CAAC;CACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server-agent-orphaned.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/workspace/mcp-server-agent-orphaned.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp-server-agent-orphaned.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/workspace/mcp-server-agent-orphaned.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAsB,cAAc,EAAe,MAAM,eAAe,CAAC;AAmErF,eAAO,MAAM,0BAA0B,EAAE,cAAc,CAAC,oBAAoB,CAmB3E,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Option from "effect/Option";
|
|
3
3
|
import * as Result from "effect/Result";
|
|
4
|
+
import { isAxmManagedMcpEntry } from "../../../mcps/metadata.js";
|
|
4
5
|
import { removeMcpServerAgentOp } from "./helpers/install-ops.js";
|
|
5
6
|
const RULE_ID = "workspace/mcp-server-agent-orphaned";
|
|
6
|
-
const isManagedAgentEntry = (row) => row.actual.origin._tag === "agent-mcp-config" &&
|
|
7
|
+
const isManagedAgentEntry = (row) => row.actual.origin._tag === "agent-mcp-config" &&
|
|
8
|
+
row.actual.config !== null &&
|
|
9
|
+
isAxmManagedMcpEntry(row.actual.config);
|
|
7
10
|
const configuredAgentIds = (context) => Effect.gen(function* () {
|
|
8
11
|
const settings = yield* Effect.result(context.workspace.state.settings);
|
|
9
12
|
if (Result.isFailure(settings) || Option.isNone(settings.success)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server-agent-orphaned.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/workspace/mcp-server-agent-orphaned.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp-server-agent-orphaned.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/workspace/mcp-server-agent-orphaned.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAIjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,MAAM,OAAO,GAAG,qCAAqC,CAAC;AAEtD,MAAM,mBAAmB,GAAG,CAAC,GAAuB,EAAW,EAAE,CAC/D,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,kBAAkB;IAC7C,GAAG,CAAC,MAAM,CAAC,MAAM,KAAK,IAAI;IAC1B,oBAAoB,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAE1C,MAAM,kBAAkB,GAAG,CAAC,OAA6B,EAAsC,EAAE,CAC/F,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,QAAQ,GAAG,KAAK,CAAC,C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