@humain/terminal 0.0.6 → 0.0.7
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/CHANGELOG.md +52 -0
- package/README.md +10 -4
- package/dist/bundle/chunks/anthropic-messages-GDMGYAZB.js +6 -0
- package/dist/bundle/chunks/anthropic.js +75 -0
- package/dist/bundle/chunks/azure-openai-responses-ZN52D6YC.js +2 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +77 -0
- package/dist/bundle/chunks/chunk-3D3G2X5U.js +6 -0
- package/dist/bundle/chunks/chunk-3VI4HD7D.js +31 -0
- package/dist/bundle/chunks/chunk-6R7UI4IY.js +2 -0
- package/dist/bundle/chunks/chunk-72KO4OMP.js +2 -0
- package/dist/bundle/chunks/chunk-7DDKXS2Q.js +2 -0
- package/dist/bundle/chunks/chunk-ARF4OE6X.js +105 -0
- package/dist/bundle/chunks/chunk-BOW22LW6.js +42 -0
- package/dist/bundle/chunks/chunk-BZQ53VGE.js +70 -0
- package/dist/bundle/chunks/chunk-CBHC6EL7.js +133 -0
- package/dist/bundle/chunks/chunk-D7XAASZM.js +4 -0
- package/dist/bundle/chunks/chunk-ECWELYBH.js +17 -0
- package/dist/bundle/chunks/chunk-GMWCTUPB.js +2 -0
- package/dist/bundle/chunks/chunk-H2O6VOXT.js +11 -0
- package/dist/bundle/chunks/chunk-HNVPY4LZ.js +5995 -0
- package/dist/bundle/chunks/chunk-JUUC5AZY.js +2 -0
- package/dist/bundle/chunks/chunk-JXWJOIH4.js +2 -0
- package/dist/bundle/chunks/chunk-L2ZPNLYD.js +2 -0
- package/dist/bundle/chunks/chunk-LVVZS2NO.js +12 -0
- package/dist/bundle/chunks/chunk-M2GYSCCG.js +44 -0
- package/dist/bundle/chunks/chunk-MA4UUCYX.js +18 -0
- package/dist/bundle/chunks/chunk-PGXDEOVV.js +2 -0
- package/dist/bundle/chunks/chunk-PJACZCIR.js +2 -0
- package/dist/bundle/chunks/chunk-PRRNXB7S.js +2 -0
- package/dist/bundle/chunks/chunk-SGTGQNNP.js +4 -0
- package/dist/bundle/chunks/chunk-TEPMHNKQ.js +2 -0
- package/dist/bundle/chunks/chunk-TXBQIIIO.js +2 -0
- package/dist/bundle/chunks/chunk-WJZ4KLGL.js +2 -0
- package/dist/bundle/chunks/chunk-XNGRGP62.js +2 -0
- package/dist/bundle/chunks/dist-7DSXV2TY.js +9 -0
- package/dist/bundle/chunks/dist-BXEVYJIO.js +7 -0
- package/dist/bundle/chunks/es-P2KNSZYR.js +9 -0
- package/dist/bundle/chunks/es5-FGTJ7ZFW.js +2 -0
- package/dist/bundle/chunks/event-streams-JOSQQSII.js +2 -0
- package/dist/bundle/chunks/extract-2L7ZVN7F.js +106 -0
- package/dist/bundle/chunks/github-copilot.js +2 -0
- package/dist/bundle/chunks/google-generative-ai-XT7NQJ2E.js +2 -0
- package/dist/bundle/chunks/google-vertex-IDQ6Z53W.js +2 -0
- package/dist/bundle/chunks/image-resize-worker.js +2 -0
- package/dist/bundle/chunks/kimi-coding.js +2 -0
- package/dist/bundle/chunks/mistral-conversations-HHDZ4FHR.js +5 -0
- package/dist/bundle/chunks/multipart-parser-FMGQ7342.js +3 -0
- package/dist/bundle/chunks/node-XY3CBY3C.js +294 -0
- package/dist/bundle/chunks/node-ZHY4LHC7.js +15 -0
- package/dist/bundle/chunks/openai-codex-responses-HRVCDY54.js +8 -0
- package/dist/bundle/chunks/openai-codex.js +75 -0
- package/dist/bundle/chunks/openai-completions-6QBYTBXY.js +7 -0
- package/dist/bundle/chunks/openai-responses-4MWLJHIK.js +2 -0
- package/dist/bundle/chunks/openrouter-images-Y2PCWAQH.js +2 -0
- package/dist/bundle/chunks/openrouter.js +75 -0
- package/dist/bundle/chunks/pdfjs-UKQT3OWY.js +107 -0
- package/dist/bundle/chunks/pi-messages-57K43J6J.js +8 -0
- package/dist/bundle/chunks/promise-J5TGSM32.js +2 -0
- package/dist/bundle/chunks/radius.js +75 -0
- package/dist/bundle/chunks/src-QKGKDFSU.js +4 -0
- package/dist/bundle/chunks/undici-D6ABF53Q.js +2 -0
- package/dist/bundle/chunks/webapi-AFS5FDJJ.js +5 -0
- package/dist/bundle/chunks/xai.js +2 -0
- package/dist/bundle/cli.js +3 -0
- package/dist/bundle/client.js +2 -0
- package/dist/bundle/index.js +2 -0
- package/dist/bundle/rpc-entry.js +3 -0
- package/dist/cli/args.d.ts +1 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +29 -9
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/file-processor.d.ts.map +1 -1
- package/dist/cli/file-processor.js +2 -1
- package/dist/cli/file-processor.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +19 -11
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session.d.ts +50 -14
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +163 -95
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +6 -7
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +3 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +4 -3
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +41 -32
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/defaults.d.ts +1 -0
- package/dist/core/defaults.d.ts.map +1 -1
- package/dist/core/defaults.js +9 -0
- package/dist/core/defaults.js.map +1 -1
- package/dist/core/extensions/index.d.ts +2 -2
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +115 -48
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/types.d.ts +38 -9
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js +3 -0
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts +1 -1
- package/dist/core/footer-data-provider.js +1 -1
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/keybindings.d.ts +20 -19
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +26 -5
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/model-config.d.ts +5 -0
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +3 -1
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-resolver.d.ts +1 -0
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +14 -8
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/models-store.d.ts.map +1 -1
- package/dist/core/models-store.js +2 -1
- package/dist/core/models-store.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +22 -14
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/pi-manifest.d.ts.map +1 -1
- package/dist/core/pi-manifest.js +2 -1
- package/dist/core/pi-manifest.js.map +1 -1
- package/dist/core/remote-catalog-provider.d.ts.map +1 -1
- package/dist/core/remote-catalog-provider.js +2 -1
- package/dist/core/remote-catalog-provider.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +3 -2
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/sdk.d.ts +2 -2
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +10 -3
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-export.d.ts +4 -0
- package/dist/core/session-export.d.ts.map +1 -0
- package/dist/core/session-export.js +32 -0
- package/dist/core/session-export.js.map +1 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +2 -1
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-diagnostics.d.ts +9 -0
- package/dist/core/settings-diagnostics.d.ts.map +1 -0
- package/dist/core/settings-diagnostics.js +21 -0
- package/dist/core/settings-diagnostics.js.map +1 -0
- package/dist/core/settings-manager.d.ts +9 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +51 -10
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +51 -33
- package/dist/core/skills.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +2 -1
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +11 -2
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/bash.d.ts +16 -3
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +62 -29
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +0 -5
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +2 -5
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +20 -4
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/index.d.ts +4 -1
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js +19 -1
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/powershell.d.ts +16 -0
- package/dist/core/tools/powershell.d.ts.map +1 -0
- package/dist/core/tools/powershell.js +39 -0
- package/dist/core/tools/powershell.js.map +1 -0
- package/dist/core/tools/subagent.d.ts.map +1 -1
- package/dist/core/tools/subagent.js +4 -1
- package/dist/core/tools/subagent.js.map +1 -1
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +2 -1
- package/dist/core/trust-manager.js.map +1 -1
- package/dist/extensions/llama/index.d.ts.map +1 -1
- package/dist/extensions/llama/index.js +2 -0
- package/dist/extensions/llama/index.js.map +1 -1
- package/dist/extensions/llama/provider.d.ts.map +1 -1
- package/dist/extensions/llama/provider.js +6 -2
- package/dist/extensions/llama/provider.js.map +1 -1
- package/dist/humain/agent-execution-protocol.d.ts +1 -217
- package/dist/humain/agent-execution-protocol.d.ts.map +1 -1
- package/dist/humain/agent-execution-protocol.js +1 -203
- package/dist/humain/agent-execution-protocol.js.map +1 -1
- package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +107 -16
- package/dist/humain/mcp-adapter/vendor/CHANGELOG.md +82 -0
- package/dist/humain/mcp-adapter/vendor/README.md +47 -15
- package/dist/humain/mcp-adapter/vendor/cli.js +4 -4
- package/dist/humain/mcp-adapter/vendor/commands.ts +5 -3
- package/dist/humain/mcp-adapter/vendor/config.ts +46 -5
- package/dist/humain/mcp-adapter/vendor/direct-tools.ts +103 -92
- package/dist/humain/mcp-adapter/vendor/dist/agent-dir.d.ts +10 -0
- package/dist/humain/mcp-adapter/vendor/dist/agent-dir.js +63 -0
- package/dist/humain/mcp-adapter/vendor/dist/agent-dir.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/agent-plugin-loader.d.ts +8 -0
- package/dist/humain/mcp-adapter/vendor/dist/agent-plugin-loader.js +356 -0
- package/dist/humain/mcp-adapter/vendor/dist/agent-plugin-loader.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/config.d.ts +123 -0
- package/dist/humain/mcp-adapter/vendor/dist/config.js +1088 -0
- package/dist/humain/mcp-adapter/vendor/dist/config.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/mcp-bearer-store.d.ts +24 -0
- package/dist/humain/mcp-adapter/vendor/dist/mcp-bearer-store.js +336 -0
- package/dist/humain/mcp-adapter/vendor/dist/mcp-bearer-store.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/metadata-cache.d.ts +19 -0
- package/dist/humain/mcp-adapter/vendor/dist/metadata-cache.js +319 -0
- package/dist/humain/mcp-adapter/vendor/dist/metadata-cache.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/package-mcp-loader.d.ts +2 -0
- package/dist/humain/mcp-adapter/vendor/dist/package-mcp-loader.js +156 -0
- package/dist/humain/mcp-adapter/vendor/dist/package-mcp-loader.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/resource-tools.d.ts +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/resource-tools.js +15 -0
- package/dist/humain/mcp-adapter/vendor/dist/resource-tools.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/types.d.ts +566 -0
- package/dist/humain/mcp-adapter/vendor/dist/types.js +287 -0
- package/dist/humain/mcp-adapter/vendor/dist/types.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/ui-app-bridge-helpers.d.ts +6 -0
- package/dist/humain/mcp-adapter/vendor/dist/ui-app-bridge-helpers.js +37 -0
- package/dist/humain/mcp-adapter/vendor/dist/ui-app-bridge-helpers.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/ui-stream-types.d.ts +104 -0
- package/dist/humain/mcp-adapter/vendor/dist/ui-stream-types.js +59 -0
- package/dist/humain/mcp-adapter/vendor/dist/ui-stream-types.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/ui-tool-visibility.d.ts +4 -0
- package/dist/humain/mcp-adapter/vendor/dist/ui-tool-visibility.js +27 -0
- package/dist/humain/mcp-adapter/vendor/dist/ui-tool-visibility.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/utils.d.ts +32 -0
- package/dist/humain/mcp-adapter/vendor/dist/utils.js +338 -0
- package/dist/humain/mcp-adapter/vendor/dist/utils.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/failure-backoff.ts +23 -0
- package/dist/humain/mcp-adapter/vendor/index.bundle.mjs +4870 -3878
- package/dist/humain/mcp-adapter/vendor/index.ts +294 -88
- package/dist/humain/mcp-adapter/vendor/init.ts +41 -30
- package/dist/humain/mcp-adapter/vendor/lifecycle.ts +16 -8
- package/dist/humain/mcp-adapter/vendor/mcp-auth-flow.ts +124 -32
- package/dist/humain/mcp-adapter/vendor/mcp-bearer-store.ts +0 -2
- package/dist/humain/mcp-adapter/vendor/mcp-code.ts +2 -0
- package/dist/humain/mcp-adapter/vendor/mcp-oauth-provider.ts +155 -16
- package/dist/humain/mcp-adapter/vendor/mcp-output-guard.ts +95 -7
- package/dist/humain/mcp-adapter/vendor/mcp-probe.ts +18 -4
- package/dist/humain/mcp-adapter/vendor/mcp-references.ts +376 -0
- package/dist/humain/mcp-adapter/vendor/mcp-status.ts +8 -19
- package/dist/humain/mcp-adapter/vendor/metadata-cache.ts +20 -12
- package/dist/humain/mcp-adapter/vendor/namespace-tools.ts +276 -0
- package/dist/humain/mcp-adapter/vendor/package.json +26 -8
- package/dist/humain/mcp-adapter/vendor/proxy-modes.ts +128 -32
- package/dist/humain/mcp-adapter/vendor/request-headers-command.ts +1 -1
- package/dist/humain/mcp-adapter/vendor/search-ranking.ts +2 -0
- package/dist/humain/mcp-adapter/vendor/server-manager.ts +69 -12
- package/dist/humain/mcp-adapter/vendor/state.ts +1 -3
- package/dist/humain/mcp-adapter/vendor/tool-result-renderer.ts +16 -2
- package/dist/humain/mcp-adapter/vendor/types.ts +51 -2
- package/dist/humain/mcp-adapter/vendor/ui-server.ts +3 -19
- package/dist/humain/mcp-adapter/vendor/ui-session.ts +2 -1
- package/dist/humain/mcp-adapter/vendor/utils.ts +21 -19
- package/dist/humain/mcp-adapter.d.ts.map +1 -1
- package/dist/humain/mcp-adapter.js +4 -0
- package/dist/humain/mcp-adapter.js.map +1 -1
- package/dist/humain/web-access/vendor/chrome-cookies.d.ts +14 -0
- package/dist/humain/web-access/vendor/chrome-cookies.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/chrome-cookies.js +85 -33
- package/dist/humain/web-access/vendor/chrome-cookies.js.map +1 -1
- package/dist/humain/web-access/vendor/credential-source.d.ts +1 -1
- package/dist/humain/web-access/vendor/credential-source.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/credential-source.js +3 -1
- package/dist/humain/web-access/vendor/credential-source.js.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.d.ts +2 -29
- package/dist/humain/web-access/vendor/curator-page.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.js +10 -1
- package/dist/humain/web-access/vendor/curator-page.js.map +1 -1
- package/dist/humain/web-access/vendor/curator-server.d.ts +2 -29
- package/dist/humain/web-access/vendor/curator-server.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-server.js +4 -0
- package/dist/humain/web-access/vendor/curator-server.js.map +1 -1
- package/dist/humain/web-access/vendor/extract.d.ts +11 -0
- package/dist/humain/web-access/vendor/extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/extract.js +163 -20
- package/dist/humain/web-access/vendor/extract.js.map +1 -1
- package/dist/humain/web-access/vendor/fetch-params.d.ts +2 -0
- package/dist/humain/web-access/vendor/fetch-params.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/fetch-params.js +11 -0
- package/dist/humain/web-access/vendor/fetch-params.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-adc.d.ts +10 -0
- package/dist/humain/web-access/vendor/gemini-adc.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/gemini-adc.js +268 -0
- package/dist/humain/web-access/vendor/gemini-adc.js.map +1 -0
- package/dist/humain/web-access/vendor/gemini-api.d.ts +7 -1
- package/dist/humain/web-access/vendor/gemini-api.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-api.js +51 -15
- package/dist/humain/web-access/vendor/gemini-api.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.d.ts +9 -4
- package/dist/humain/web-access/vendor/gemini-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.js +63 -21
- package/dist/humain/web-access/vendor/gemini-search.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-url-context.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-url-context.js +3 -2
- package/dist/humain/web-access/vendor/gemini-url-context.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-web-config.d.ts +8 -1
- package/dist/humain/web-access/vendor/gemini-web-config.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-web-config.js +49 -4
- package/dist/humain/web-access/vendor/gemini-web-config.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-web.d.ts +2 -1
- package/dist/humain/web-access/vendor/gemini-web.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-web.js +8 -3
- package/dist/humain/web-access/vendor/gemini-web.js.map +1 -1
- package/dist/humain/web-access/vendor/github-api.d.ts +1 -1
- package/dist/humain/web-access/vendor/github-api.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/github-api.js +6 -4
- package/dist/humain/web-access/vendor/github-api.js.map +1 -1
- package/dist/humain/web-access/vendor/github-extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/github-extract.js +50 -3
- package/dist/humain/web-access/vendor/github-extract.js.map +1 -1
- package/dist/humain/web-access/vendor/github-issue-pr.d.ts +27 -0
- package/dist/humain/web-access/vendor/github-issue-pr.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/github-issue-pr.js +701 -0
- package/dist/humain/web-access/vendor/github-issue-pr.js.map +1 -0
- package/dist/humain/web-access/vendor/index.d.ts +3 -31
- package/dist/humain/web-access/vendor/index.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/index.js +643 -530
- package/dist/humain/web-access/vendor/index.js.map +1 -1
- package/dist/humain/web-access/vendor/kimi-search.d.ts +5 -0
- package/dist/humain/web-access/vendor/kimi-search.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/kimi-search.js +228 -0
- package/dist/humain/web-access/vendor/kimi-search.js.map +1 -0
- package/dist/humain/web-access/vendor/openai-search.d.ts +3 -0
- package/dist/humain/web-access/vendor/openai-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/openai-search.js +89 -16
- package/dist/humain/web-access/vendor/openai-search.js.map +1 -1
- package/dist/humain/web-access/vendor/page-query.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/page-query.js +56 -8
- package/dist/humain/web-access/vendor/page-query.js.map +1 -1
- package/dist/humain/web-access/vendor/ssrf-protection.js +6 -1
- package/dist/humain/web-access/vendor/ssrf-protection.js.map +1 -1
- package/dist/humain/web-access/vendor/utils.d.ts +12 -0
- package/dist/humain/web-access/vendor/utils.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/utils.js +343 -1
- package/dist/humain/web-access/vendor/utils.js.map +1 -1
- package/dist/humain/web-access/vendor/xcrawl.d.ts +4 -0
- package/dist/humain/web-access/vendor/xcrawl.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/xcrawl.js +251 -0
- package/dist/humain/web-access/vendor/xcrawl.js.map +1 -0
- package/dist/humain/web-access/vendor/youtube-extract.js +2 -2
- package/dist/humain/web-access/vendor/youtube-extract.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +3 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +17 -14
- package/dist/main.js.map +1 -1
- package/dist/migrations.d.ts.map +1 -1
- package/dist/migrations.js +4 -3
- package/dist/migrations.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts +9 -3
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +53 -10
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +7 -2
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +118 -55
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-submenu.d.ts +72 -0
- package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-submenu.js +151 -0
- package/dist/modes/interactive/components/settings-submenu.js.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts +15 -3
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.js +68 -17
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
- package/dist/modes/interactive/external-editor.d.ts.map +1 -1
- package/dist/modes/interactive/external-editor.js +2 -1
- package/dist/modes/interactive/external-editor.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +11 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +176 -106
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/session-share.d.ts +16 -0
- package/dist/modes/interactive/session-share.d.ts.map +1 -0
- package/dist/modes/interactive/session-share.js +188 -0
- package/dist/modes/interactive/session-share.js.map +1 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +6 -5
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/json-event.d.ts +16 -13
- package/dist/modes/json-event.d.ts.map +1 -1
- package/dist/modes/json-event.js +20 -6
- package/dist/modes/json-event.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +3 -2
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +2 -7
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/package-manager-cli.d.ts +1 -0
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +189 -3
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/utils/changelog.d.ts +1 -1
- package/dist/utils/changelog.d.ts.map +1 -1
- package/dist/utils/changelog.js +12 -2
- package/dist/utils/changelog.js.map +1 -1
- package/dist/utils/frontmatter.d.ts.map +1 -1
- package/dist/utils/frontmatter.js +2 -1
- package/dist/utils/frontmatter.js.map +1 -1
- package/dist/utils/management-http.d.ts +5 -3
- package/dist/utils/management-http.d.ts.map +1 -1
- package/dist/utils/management-http.js +14 -10
- package/dist/utils/management-http.js.map +1 -1
- package/dist/utils/shell.d.ts +3 -0
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +17 -5
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts +1 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +64 -1
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/text.d.ts +8 -0
- package/dist/utils/text.d.ts.map +1 -0
- package/dist/utils/text.js +9 -0
- package/dist/utils/text.js.map +1 -0
- package/dist/utils/version-check.js +4 -4
- package/dist/utils/version-check.js.map +1 -1
- package/docs/compaction.md +15 -0
- package/docs/custom-provider.md +5 -2
- package/docs/environment-variables.md +7 -7
- package/docs/extensions.md +17 -7
- package/docs/json.md +7 -2
- package/docs/keybindings.md +8 -8
- package/docs/llama-cpp.md +2 -0
- package/docs/models.md +8 -2
- package/docs/packages.md +2 -2
- package/docs/rpc.md +9 -3
- package/docs/sdk.md +7 -2
- package/docs/settings.md +11 -3
- package/docs/skills.md +3 -2
- package/docs/terminal-setup.md +8 -0
- package/docs/usage.md +10 -7
- package/docs/windows.md +15 -1
- package/examples/extensions/border-status-editor.ts +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +70 -8
- package/examples/extensions/custom-provider-anthropic/package.json +2 -2
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/git-checkpoint.ts +2 -2
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/notify.ts +3 -1
- package/examples/extensions/sandbox/package-lock.json +14 -40
- package/examples/extensions/sandbox/package.json +2 -2
- package/examples/extensions/titlebar-spinner.ts +1 -1
- package/examples/extensions/with-deps/package-lock.json +4 -4
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/rpc-extension-ui.ts +1 -1
- package/examples/sdk/06-extensions.ts +1 -1
- package/examples/sdk/README.md +1 -1
- package/npm-shrinkwrap.json +293 -221
- package/package.json +21 -18
- package/src/humain/mcp-adapter/UPSTREAM.md +15 -5
- package/src/humain/mcp-adapter/upstream.json +4 -3
- package/src/humain/mcp-adapter/vendor/CHANGELOG.md +82 -0
- package/src/humain/web-access/UPSTREAM.md +1 -1
- package/src/humain/web-access/upstream.json +6 -4
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import type { AgentToolResult, ExtensionAPI, ToolInfo } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import { Type } from "typebox";
|
|
3
|
+
import type { McpExtensionState } from "./state.ts";
|
|
4
|
+
import { isServerDisabled, type McpConfig } from "./types.ts";
|
|
5
|
+
import { isServerCacheValid, type MetadataCache } from "./metadata-cache.ts";
|
|
6
|
+
import { executeCall } from "./proxy-modes.ts";
|
|
7
|
+
import { createMcpProxyToolCallRenderer, createMcpToolResultRenderer, resolveMcpToolRenderOptions, type McpToolRenderOptions, type RenderTheme, type McpToolRenderContext } from "./tool-result-renderer.ts";
|
|
8
|
+
export { namespaceProxyName } from "./mcp-references.ts";
|
|
9
|
+
import { hasCallableCachedTargets, isMcpServerDirectlyRegistered, namespaceProxyName, type DirectToolSelectorOverride } from "./mcp-references.ts";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Namespace-proxy tool registration for proxy-only MCP servers.
|
|
13
|
+
*
|
|
14
|
+
* For each configured proxy-only server (no `directTools: true` and not a
|
|
15
|
+
* runtime server forced direct), register exactly one tool named
|
|
16
|
+
* `mcp__<server>` (matching the harness `_shared/mcp-tools` resolver's
|
|
17
|
+
* `namespaceProxyName`). Its execute accepts `{tool, args}` and forwards
|
|
18
|
+
* through the adapter's existing `executeCall`, so it inherits the same
|
|
19
|
+
* auto-auth, session recovery, output guard, and approval rules as the
|
|
20
|
+
* single `mcp` proxy tool — without polluting the prompt with one entry
|
|
21
|
+
* per tool.
|
|
22
|
+
*
|
|
23
|
+
* This unblocks `mcp:<server>` references from `tool-groups` and
|
|
24
|
+
* `slow-mode` against proxy-only servers without flipping `directTools: true`.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
export interface NamespaceProxySpec {
|
|
28
|
+
serverName: string;
|
|
29
|
+
toolName: string;
|
|
30
|
+
description: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function namespaceProxyCandidate(
|
|
34
|
+
config: McpConfig,
|
|
35
|
+
cache: MetadataCache,
|
|
36
|
+
envOverride: DirectToolSelectorOverride | null,
|
|
37
|
+
existingDirectNames: Set<string>,
|
|
38
|
+
serverName: string,
|
|
39
|
+
): NamespaceProxySpec | null {
|
|
40
|
+
const definition = config.mcpServers[serverName];
|
|
41
|
+
if (!definition || isServerDisabled(definition)) return null;
|
|
42
|
+
if (isMcpServerDirectlyRegistered(definition, config.settings, serverName, envOverride)) return null;
|
|
43
|
+
const entry = cache.servers?.[serverName];
|
|
44
|
+
if (!entry || !isServerCacheValid(entry, definition) || !hasCallableCachedTargets(entry, definition)) return null;
|
|
45
|
+
const toolName = namespaceProxyName(serverName);
|
|
46
|
+
if (existingDirectNames.has(toolName)) return null;
|
|
47
|
+
return {
|
|
48
|
+
serverName,
|
|
49
|
+
toolName,
|
|
50
|
+
description:
|
|
51
|
+
`Namespace-proxy for MCP server "${serverName}". ` +
|
|
52
|
+
`Forwards \`{tool, args}\` through the adapter's executeCall, so it inherits ` +
|
|
53
|
+
`the same auth / lifecycle / output-guard rules as the \`mcp\` proxy.`,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function filterCollidingNamespaceProxyTools(candidates: NamespaceProxySpec[]): NamespaceProxySpec[] {
|
|
58
|
+
const names = new Map<string, NamespaceProxySpec[]>();
|
|
59
|
+
for (const spec of candidates) {
|
|
60
|
+
const colliding = names.get(spec.toolName) ?? [];
|
|
61
|
+
colliding.push(spec);
|
|
62
|
+
names.set(spec.toolName, colliding);
|
|
63
|
+
}
|
|
64
|
+
return candidates.filter((spec) => {
|
|
65
|
+
const colliding = names.get(spec.toolName)!;
|
|
66
|
+
if (colliding.length === 1) return true;
|
|
67
|
+
if (colliding[0] === spec) {
|
|
68
|
+
console.warn(`MCP: skipping namespace proxy "${spec.toolName}" because servers ${colliding.map(({ serverName }) => `"${serverName}"`).sort().join(", ")} normalize to the same name`);
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function resolveNamespaceProxyTools(
|
|
75
|
+
config: McpConfig | null,
|
|
76
|
+
cache: MetadataCache | null,
|
|
77
|
+
envOverride: DirectToolSelectorOverride | null,
|
|
78
|
+
existingDirectNames: Set<string>,
|
|
79
|
+
unavailableServers: ReadonlySet<string>,
|
|
80
|
+
): NamespaceProxySpec[] {
|
|
81
|
+
if (!config || !cache) return [];
|
|
82
|
+
return filterCollidingNamespaceProxyTools(
|
|
83
|
+
Object.keys(config.mcpServers)
|
|
84
|
+
.map((serverName) => namespaceProxyCandidate(config, cache, envOverride, existingDirectNames, serverName))
|
|
85
|
+
.filter((spec): spec is NamespaceProxySpec => spec !== null),
|
|
86
|
+
).filter((spec) => !unavailableServers.has(spec.serverName));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Lazily-required reference to the agent state — passed as a closure so the
|
|
91
|
+
* namespace proxy tool's execute can call `executeCall` once `state` exists.
|
|
92
|
+
* `getInitPromise` lets the executor await the first initialization round
|
|
93
|
+
* the same way `createDirectToolExecutor` does.
|
|
94
|
+
*/
|
|
95
|
+
export type GetState = () => McpExtensionState | null;
|
|
96
|
+
export type GetInitPromise = () => Promise<McpExtensionState> | null;
|
|
97
|
+
export type GetPiTools = () => ToolInfo[];
|
|
98
|
+
|
|
99
|
+
function namespaceExecute(
|
|
100
|
+
getState: GetState,
|
|
101
|
+
getInitPromise: GetInitPromise,
|
|
102
|
+
serverName: string,
|
|
103
|
+
getPiTools: GetPiTools,
|
|
104
|
+
) {
|
|
105
|
+
return async (
|
|
106
|
+
_toolCallId: string,
|
|
107
|
+
params: { tool?: string; args?: Record<string, unknown> },
|
|
108
|
+
signal: AbortSignal | undefined,
|
|
109
|
+
): Promise<AgentToolResult<Record<string, unknown>>> => {
|
|
110
|
+
if (typeof params.tool !== "string" || params.tool.length === 0) {
|
|
111
|
+
return {
|
|
112
|
+
content: [{ type: "text" as const, text: `mcp__${serverName} requires a \`tool\` parameter naming the underlying MCP tool.` }],
|
|
113
|
+
details: { error: "missing_tool", server: serverName },
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
let state = getState();
|
|
117
|
+
if (!state) {
|
|
118
|
+
const initPromise = getInitPromise();
|
|
119
|
+
if (initPromise) {
|
|
120
|
+
try {
|
|
121
|
+
state = await initPromise;
|
|
122
|
+
} catch (error) {
|
|
123
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
124
|
+
return {
|
|
125
|
+
content: [{ type: "text" as const, text: `MCP initialization failed for ${serverName}: ${message}` }],
|
|
126
|
+
details: { error: "init_failed", server: serverName, message },
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (!state) {
|
|
132
|
+
return {
|
|
133
|
+
content: [{ type: "text" as const, text: `MCP not initialized for ${serverName}.` }],
|
|
134
|
+
details: { error: "not_initialized", server: serverName },
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
return executeCall(
|
|
138
|
+
state,
|
|
139
|
+
params.tool,
|
|
140
|
+
params.args ?? {},
|
|
141
|
+
serverName,
|
|
142
|
+
getPiTools,
|
|
143
|
+
signal,
|
|
144
|
+
"proxy",
|
|
145
|
+
);
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const parameters = Type.Object({
|
|
150
|
+
tool: Type.String({ description: "Underlying MCP tool name to call on this server." }),
|
|
151
|
+
args: Type.Optional(Type.Object({}, {
|
|
152
|
+
additionalProperties: true,
|
|
153
|
+
description: "Arguments for the underlying tool. The exact shape depends on the tool being called; use mcp({ describe: 'server/tool' }) to inspect.",
|
|
154
|
+
})),
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
export interface SyncNamespaceProxyToolsInput {
|
|
158
|
+
config: McpConfig | null;
|
|
159
|
+
cache: MetadataCache | null;
|
|
160
|
+
envOverride: DirectToolSelectorOverride | null;
|
|
161
|
+
existingDirectNames: Set<string>;
|
|
162
|
+
activeDirectNames?: ReadonlySet<string>;
|
|
163
|
+
existingNamespaceNames: Set<string>;
|
|
164
|
+
unavailableServers?: ReadonlySet<string>;
|
|
165
|
+
pi: ExtensionAPI;
|
|
166
|
+
getState: GetState;
|
|
167
|
+
getInitPromise: GetInitPromise;
|
|
168
|
+
getPiTools: GetPiTools;
|
|
169
|
+
renderOptions?: McpToolRenderOptions;
|
|
170
|
+
renderShell?: "self" | "default";
|
|
171
|
+
renderResult?: unknown;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface SyncNamespaceProxyToolsResult {
|
|
175
|
+
specs: NamespaceProxySpec[];
|
|
176
|
+
added: string[];
|
|
177
|
+
updated: string[];
|
|
178
|
+
deactivated: string[];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function createNamespaceRenderCall(renderOptions: McpToolRenderOptions, serverName: string) {
|
|
182
|
+
const renderCall = createMcpProxyToolCallRenderer(renderOptions);
|
|
183
|
+
return (args: { tool?: string; args?: Record<string, unknown> }, theme?: RenderTheme, context?: McpToolRenderContext) => renderCall({
|
|
184
|
+
...(args.tool !== undefined ? { tool: args.tool } : {}),
|
|
185
|
+
...(args.args !== undefined ? { args: args.args } : {}),
|
|
186
|
+
server: serverName,
|
|
187
|
+
}, theme, context);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function registerNamespaceProxyTool(
|
|
191
|
+
input: SyncNamespaceProxyToolsInput,
|
|
192
|
+
spec: NamespaceProxySpec,
|
|
193
|
+
renderOptions: McpToolRenderOptions,
|
|
194
|
+
renderShell: "self" | "default",
|
|
195
|
+
renderResult: unknown,
|
|
196
|
+
): void {
|
|
197
|
+
(input.pi.registerTool as (tool: unknown) => unknown)({
|
|
198
|
+
name: spec.toolName,
|
|
199
|
+
label: `MCP: ${spec.serverName}`,
|
|
200
|
+
description: spec.description,
|
|
201
|
+
promptSnippet: `MCP namespace proxy for ${spec.serverName}`,
|
|
202
|
+
parameters,
|
|
203
|
+
renderShell,
|
|
204
|
+
renderCall: createNamespaceRenderCall(renderOptions, spec.serverName),
|
|
205
|
+
renderResult,
|
|
206
|
+
execute: namespaceExecute(
|
|
207
|
+
input.getState,
|
|
208
|
+
input.getInitPromise,
|
|
209
|
+
spec.serverName,
|
|
210
|
+
input.getPiTools,
|
|
211
|
+
),
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function getActiveToolsForStaleCleanup(pi: ExtensionAPI, staleNames: string[]): string[] | undefined {
|
|
216
|
+
if (staleNames.length === 0) return undefined;
|
|
217
|
+
try {
|
|
218
|
+
return pi.getActiveTools?.();
|
|
219
|
+
} catch (error) {
|
|
220
|
+
if (error instanceof Error && error.message.includes("Action methods cannot be called during extension loading")) return undefined;
|
|
221
|
+
throw error;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function deactivateStaleNamespaceTools(input: SyncNamespaceProxyToolsInput, nextNames: Set<string>): string[] {
|
|
226
|
+
const activeDirectNames = input.activeDirectNames ?? new Set<string>();
|
|
227
|
+
const staleNames = [...input.existingNamespaceNames].filter(
|
|
228
|
+
(name) => !nextNames.has(name) && !activeDirectNames.has(name),
|
|
229
|
+
);
|
|
230
|
+
const deactivated: string[] = [];
|
|
231
|
+
const unregisterTool = (input.pi as unknown as {
|
|
232
|
+
unregisterTool?: (name: string) => boolean;
|
|
233
|
+
}).unregisterTool;
|
|
234
|
+
for (const stale of staleNames) {
|
|
235
|
+
if (unregisterTool?.(stale)) deactivated.push(stale);
|
|
236
|
+
}
|
|
237
|
+
const activeTools = getActiveToolsForStaleCleanup(input.pi, staleNames);
|
|
238
|
+
if (!activeTools) return deactivated;
|
|
239
|
+
|
|
240
|
+
const stale = new Set(staleNames);
|
|
241
|
+
const nextActiveTools = activeTools.filter((name) => !stale.has(name));
|
|
242
|
+
if (nextActiveTools.length === activeTools.length) return deactivated;
|
|
243
|
+
|
|
244
|
+
input.pi.setActiveTools(nextActiveTools);
|
|
245
|
+
for (const name of staleNames) {
|
|
246
|
+
if (!deactivated.includes(name)) deactivated.push(name);
|
|
247
|
+
}
|
|
248
|
+
return deactivated;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Idempotent sync of namespace-proxy tool registrations.
|
|
253
|
+
*/
|
|
254
|
+
export function syncNamespaceProxyTools(input: SyncNamespaceProxyToolsInput): SyncNamespaceProxyToolsResult {
|
|
255
|
+
const specs = resolveNamespaceProxyTools(
|
|
256
|
+
input.config,
|
|
257
|
+
input.cache,
|
|
258
|
+
input.envOverride,
|
|
259
|
+
input.existingDirectNames,
|
|
260
|
+
input.unavailableServers ?? new Set(),
|
|
261
|
+
);
|
|
262
|
+
const nextNames = new Set(specs.map((s) => s.toolName));
|
|
263
|
+
const result: SyncNamespaceProxyToolsResult = { specs, added: [], updated: [], deactivated: [] };
|
|
264
|
+
const renderOptions = input.renderOptions ?? resolveMcpToolRenderOptions();
|
|
265
|
+
const renderShell = input.renderShell ?? (renderOptions.resultRendering === "compact" ? "self" : "default");
|
|
266
|
+
const renderResult = input.renderResult ?? createMcpToolResultRenderer(renderOptions);
|
|
267
|
+
|
|
268
|
+
for (const spec of specs) {
|
|
269
|
+
registerNamespaceProxyTool(input, spec, renderOptions, renderShell, renderResult);
|
|
270
|
+
(input.existingNamespaceNames.has(spec.toolName) ? result.updated : result.added).push(spec.toolName);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
result.deactivated.push(...deactivateStaleNamespaceTools(input, nextNames));
|
|
274
|
+
|
|
275
|
+
return result;
|
|
276
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-mcp-adapter",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.31.0",
|
|
4
4
|
"description": "MCP (Model Context Protocol) adapter extension for Pi coding agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./index.ts",
|
|
@@ -11,14 +11,24 @@
|
|
|
11
11
|
"default": "./index.ts"
|
|
12
12
|
},
|
|
13
13
|
"./types": {
|
|
14
|
-
"types": "./types.ts",
|
|
15
|
-
"import": "./types.
|
|
16
|
-
"default": "./types.
|
|
14
|
+
"types": "./dist/types.d.ts",
|
|
15
|
+
"import": "./dist/types.js",
|
|
16
|
+
"default": "./dist/types.js"
|
|
17
17
|
},
|
|
18
18
|
"./oauth": {
|
|
19
19
|
"types": "./oauth.ts",
|
|
20
20
|
"import": "./oauth.ts",
|
|
21
21
|
"default": "./oauth.ts"
|
|
22
|
+
},
|
|
23
|
+
"./config": {
|
|
24
|
+
"types": "./dist/config.d.ts",
|
|
25
|
+
"import": "./dist/config.js",
|
|
26
|
+
"default": "./dist/config.js"
|
|
27
|
+
},
|
|
28
|
+
"./metadata-cache": {
|
|
29
|
+
"types": "./dist/metadata-cache.d.ts",
|
|
30
|
+
"import": "./dist/metadata-cache.js",
|
|
31
|
+
"default": "./dist/metadata-cache.js"
|
|
22
32
|
}
|
|
23
33
|
},
|
|
24
34
|
"license": "MIT",
|
|
@@ -30,8 +40,12 @@
|
|
|
30
40
|
"pi-mcp-adapter": "cli.js"
|
|
31
41
|
},
|
|
32
42
|
"scripts": {
|
|
43
|
+
"build:public": "tsc -p tsconfig.public.json",
|
|
44
|
+
"prepack": "npm run build:public",
|
|
33
45
|
"typecheck": "tsc --noEmit",
|
|
34
|
-
"test": "
|
|
46
|
+
"test": "node test-runner.mjs",
|
|
47
|
+
"test:vitest": "vitest run",
|
|
48
|
+
"test:public-exports": "npm run build:public && node --test public-exports.test.mjs",
|
|
35
49
|
"test:watch": "vitest",
|
|
36
50
|
"test:coverage": "vitest run --coverage",
|
|
37
51
|
"test:oauth": "PI_MCP_ADAPTER_TEST_AUTH_STORE=memory PI_MCP_ADAPTER_DISABLE_AUTH_CACHE=1 node --import tsx --test --test-concurrency=1 oauth-public-api.test.ts mcp-auth.test.ts mcp-auth-flow.test.ts mcp-callback-server.test.ts mcp-oauth-provider.test.ts",
|
|
@@ -76,9 +90,12 @@
|
|
|
76
90
|
"search-ranking.ts",
|
|
77
91
|
"tool-approval.ts",
|
|
78
92
|
"init.ts",
|
|
93
|
+
"failure-backoff.ts",
|
|
79
94
|
"ui-session.ts",
|
|
80
95
|
"proxy-modes.ts",
|
|
81
96
|
"direct-tools.ts",
|
|
97
|
+
"namespace-tools.ts",
|
|
98
|
+
"mcp-references.ts",
|
|
82
99
|
"commands.ts",
|
|
83
100
|
"prompts.ts",
|
|
84
101
|
"onboarding-state.ts",
|
|
@@ -131,7 +148,8 @@
|
|
|
131
148
|
"skills",
|
|
132
149
|
"README.md",
|
|
133
150
|
"CHANGELOG.md",
|
|
134
|
-
"LICENSE"
|
|
151
|
+
"LICENSE",
|
|
152
|
+
"dist"
|
|
135
153
|
],
|
|
136
154
|
"dependencies": {
|
|
137
155
|
"@modelcontextprotocol/client": "2.0.0",
|
|
@@ -165,9 +183,9 @@
|
|
|
165
183
|
}
|
|
166
184
|
},
|
|
167
185
|
"devDependencies": {
|
|
168
|
-
"@earendil-works/pi-ai": "^0.84.
|
|
186
|
+
"@earendil-works/pi-ai": "^0.84.3",
|
|
169
187
|
"@earendil-works/pi-coding-agent": "0.84.1",
|
|
170
|
-
"@earendil-works/pi-tui": "^0.84.
|
|
188
|
+
"@earendil-works/pi-tui": "^0.84.3",
|
|
171
189
|
"@modelcontextprotocol/conformance": "0.1.16",
|
|
172
190
|
"@types/bun": "^1.0.0",
|
|
173
191
|
"@types/cross-spawn": "6.0.6",
|