@introspection-ai/recipes 0.26.0 → 0.27.2
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/api/mcp.d.ts +3 -3
- package/dist/api/mcp.d.ts.map +1 -1
- package/dist/api/mcp.js +1 -1
- package/dist/api/mcp.js.map +1 -1
- package/dist/{child-agent-completions.d.ts → child/agent-completions.d.ts} +2 -2
- package/dist/child/agent-completions.d.ts.map +1 -0
- package/dist/{child-agent-completions.js → child/agent-completions.js} +1 -1
- package/dist/child/agent-completions.js.map +1 -0
- package/dist/{child-agent-store.d.ts → child/agent-store.d.ts} +1 -1
- package/dist/child/agent-store.d.ts.map +1 -0
- package/dist/{child-agent-store.js → child/agent-store.js} +1 -1
- package/dist/child/agent-store.js.map +1 -0
- package/dist/{child-agent.d.ts → child/agent.d.ts} +2 -2
- package/dist/child/agent.d.ts.map +1 -0
- package/dist/{child-agent.js → child/agent.js} +5 -5
- package/dist/child/agent.js.map +1 -0
- package/dist/{child-session.d.ts → child/session.d.ts} +4 -4
- package/dist/child/session.d.ts.map +1 -0
- package/dist/{child-session.js → child/session.js} +2 -2
- package/dist/child/session.js.map +1 -0
- package/dist/connector-tools.d.ts +1 -1
- package/dist/connector-tools.js +2 -2
- package/dist/inspect.d.ts +1 -1
- package/dist/inspect.js +1 -1
- package/dist/{mcp-catalog.d.ts → mcp/catalog.d.ts} +3 -3
- package/dist/mcp/catalog.d.ts.map +1 -0
- package/dist/{mcp-catalog.js → mcp/catalog.js} +2 -2
- package/dist/mcp/catalog.js.map +1 -0
- package/dist/{mcp-command-context.d.ts → mcp/cli/command-context.d.ts} +1 -1
- package/dist/mcp/cli/command-context.d.ts.map +1 -0
- package/dist/{mcp-command-context.js → mcp/cli/command-context.js} +1 -1
- package/dist/mcp/cli/command-context.js.map +1 -0
- package/dist/{mcp-cli-core.d.ts → mcp/cli/core.d.ts} +14 -8
- package/dist/mcp/cli/core.d.ts.map +1 -0
- package/dist/{mcp-cli-core.js → mcp/cli/core.js} +105 -146
- package/dist/mcp/cli/core.js.map +1 -0
- package/dist/mcp/cli/help.d.ts +6 -0
- package/dist/mcp/cli/help.d.ts.map +1 -0
- package/dist/mcp/cli/help.js +116 -0
- package/dist/mcp/cli/help.js.map +1 -0
- package/dist/mcp/cli/index.d.ts +3 -0
- package/dist/mcp/cli/index.d.ts.map +1 -0
- package/dist/{mcp-cli.js → mcp/cli/index.js} +4 -4
- package/dist/mcp/cli/index.js.map +1 -0
- package/dist/{mcp-cli-policy.d.ts → mcp/cli/policy.d.ts} +2 -2
- package/dist/mcp/cli/policy.d.ts.map +1 -0
- package/dist/{mcp-cli-policy.js → mcp/cli/policy.js} +2 -2
- package/dist/mcp/cli/policy.js.map +1 -0
- package/dist/mcp/cli/run-worker.d.ts +2 -0
- package/dist/mcp/cli/run-worker.d.ts.map +1 -0
- package/dist/mcp/cli/run-worker.js +54 -0
- package/dist/mcp/cli/run-worker.js.map +1 -0
- package/dist/mcp/client-entry.d.ts +3 -0
- package/dist/mcp/client-entry.d.ts.map +1 -0
- package/dist/{mcp-client.js → mcp/client-entry.js} +3 -3
- package/dist/mcp/client-entry.js.map +1 -0
- package/dist/{mcp-contract.d.ts → mcp/contract.d.ts} +2 -2
- package/dist/mcp/contract.d.ts.map +1 -0
- package/dist/{mcp-contract.js → mcp/contract.js} +1 -1
- package/dist/mcp/contract.js.map +1 -0
- package/dist/{mcp-daemon-client.d.ts → mcp/daemon/client.d.ts} +3 -2
- package/dist/mcp/daemon/client.d.ts.map +1 -0
- package/dist/{mcp-daemon-client.js → mcp/daemon/client.js} +12 -8
- package/dist/mcp/daemon/client.js.map +1 -0
- package/dist/mcp/daemon/index.d.ts +3 -0
- package/dist/mcp/daemon/index.d.ts.map +1 -0
- package/dist/mcp/daemon/index.js +453 -0
- package/dist/{mcp-daemon.js.map → mcp/daemon/index.js.map} +1 -1
- package/dist/{mcp-daemon-protocol.d.ts → mcp/daemon/protocol.d.ts} +2 -2
- package/dist/mcp/daemon/protocol.d.ts.map +1 -0
- package/dist/{mcp-daemon-protocol.js → mcp/daemon/protocol.js} +1 -1
- package/dist/mcp/daemon/protocol.js.map +1 -0
- package/dist/{mcp.d.ts → mcp/index.d.ts} +5 -5
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/{mcp.js → mcp/index.js} +16 -10
- package/dist/mcp/index.js.map +1 -0
- package/dist/{mcp-policy.d.ts → mcp/policy.d.ts} +3 -3
- package/dist/mcp/policy.d.ts.map +1 -0
- package/dist/{mcp-policy.js → mcp/policy.js} +1 -1
- package/dist/mcp/policy.js.map +1 -0
- package/dist/{mcp-tools.d.ts → mcp/tools.d.ts} +4 -4
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/{mcp-tools.js → mcp/tools.js} +4 -4
- package/dist/mcp/tools.js.map +1 -0
- package/dist/{mcp-trace-context.d.ts → mcp/trace-context.d.ts} +2 -2
- package/dist/mcp/trace-context.d.ts.map +1 -0
- package/dist/{mcp-trace-context.js → mcp/trace-context.js} +1 -1
- package/dist/mcp/trace-context.js.map +1 -0
- package/dist/mcp-chunks/{auth-command-JBYNHHMV.js → auth-command-GQFV6QYP.js} +22 -21
- package/dist/mcp-chunks/call-arguments-VT7JLNJY.js +16 -0
- package/dist/mcp-chunks/{call-command-467BVXTE.js → call-command-LMAREWKD.js} +45 -44
- package/dist/mcp-chunks/{chunk-I7JR2GIC.js → chunk-2HOMVWSA.js} +2 -2
- package/dist/mcp-chunks/{chunk-CZ43ZITK.js → chunk-2P2HVZ3G.js} +1 -1
- package/dist/mcp-chunks/{chunk-SUNOYTQJ.js → chunk-34QXE62Y.js} +175 -147
- package/dist/mcp-chunks/{chunk-TFU4NKFJ.js → chunk-5B7GRMUK.js} +1 -1
- package/dist/mcp-chunks/{chunk-LG3GLOSA.js → chunk-5BMCVE2J.js} +14 -11
- package/dist/mcp-chunks/{chunk-MJHMXYMO.js → chunk-6QZQZXDJ.js} +3 -3
- package/dist/mcp-chunks/{chunk-DMBE47LM.js → chunk-6RG6AD5X.js} +6 -6
- package/dist/mcp-chunks/{chunk-UCJ7YDFN.js → chunk-77BZYP72.js} +1 -1
- package/dist/mcp-chunks/{chunk-NTABJCUL.js → chunk-7PFJCLXL.js} +10 -10
- package/dist/mcp-chunks/{chunk-66P5FXP3.js → chunk-7WL4TMON.js} +4 -4
- package/dist/mcp-chunks/{chunk-HKZZGSDV.js → chunk-C2VLY7ED.js} +4 -4
- package/dist/mcp-chunks/{chunk-XCNWICLD.js → chunk-CLR6DJV3.js} +1 -1
- package/dist/mcp-chunks/{chunk-REEFOL44.js → chunk-D6B2M5V7.js} +1 -1
- package/dist/mcp-chunks/{chunk-EP22XMWK.js → chunk-D6SVCPN6.js} +1 -1
- package/dist/mcp-chunks/{chunk-BTU34BUG.js → chunk-FBVRU4Y3.js} +43 -30
- package/dist/mcp-chunks/{chunk-TGPIW6F6.js → chunk-FONFU4G5.js} +1 -1
- package/dist/mcp-chunks/chunk-H4KL74PV.js +2073 -0
- package/dist/mcp-chunks/{chunk-QIBGY4IX.js → chunk-H7ARMBV7.js} +4 -9
- package/dist/mcp-chunks/{chunk-OABFKFSL.js → chunk-HZ2SX5U6.js} +39 -34
- package/dist/mcp-chunks/{chunk-HTXQPQPB.js → chunk-I6UMKX5E.js} +4 -4
- package/dist/mcp-chunks/{chunk-Z6QEOUMK.js → chunk-IF6LRV3J.js} +8 -14
- package/dist/mcp-chunks/{chunk-HBN3ESMH.js → chunk-JVYCENPP.js} +4 -4
- package/dist/mcp-chunks/{chunk-IO2IMWYS.js → chunk-KOWNVUL2.js} +34 -7
- package/dist/mcp-chunks/{chunk-AS27BTCS.js → chunk-KQCLM7R7.js} +4 -4
- package/dist/mcp-chunks/{chunk-AP5VHS73.js → chunk-L6OOGZVA.js} +2 -2
- package/dist/mcp-chunks/{chunk-BC2HDCYV.js → chunk-LCBDVFVA.js} +1 -1
- package/dist/mcp-chunks/{chunk-EUDC3ICZ.js → chunk-LIEFPSSB.js} +5 -5
- package/dist/mcp-chunks/{chunk-YPTN46JQ.js → chunk-LQIE4PKL.js} +2 -2
- package/dist/mcp-chunks/{chunk-GK4LA4E6.js → chunk-LXHPDKEF.js} +1 -1
- package/dist/mcp-chunks/{chunk-XFQSUC7T.js → chunk-MJFZM5EV.js} +5 -5
- package/dist/mcp-chunks/{chunk-WUEDIOR5.js → chunk-NQW3ES2G.js} +2 -8
- package/dist/mcp-chunks/{chunk-3Q2Q7SBU.js → chunk-O2VOMKAS.js} +13 -13
- package/dist/mcp-chunks/{chunk-GL4AA5QV.js → chunk-O4JIUOWF.js} +2 -2
- package/dist/mcp-chunks/{chunk-GEVQ2GJW.js → chunk-P3UVILEW.js} +2 -2
- package/dist/mcp-chunks/{chunk-N7ZWX3WW.js → chunk-P463YBJM.js} +1 -1
- package/dist/mcp-chunks/{chunk-Y3L5LWBY.js → chunk-PJCMJ65D.js} +277 -2110
- package/dist/mcp-chunks/{chunk-LTR626QF.js → chunk-QALB3DRW.js} +1 -1
- package/dist/mcp-chunks/{chunk-D2P2IV4H.js → chunk-QJNF3A3F.js} +1 -1
- package/dist/mcp-chunks/{chunk-KJNNO5Z6.js → chunk-RIHPVCGI.js} +1 -1
- package/dist/mcp-chunks/{chunk-J2WP6ERZ.js → chunk-RZIJUJGL.js} +44 -1055
- package/dist/mcp-chunks/{chunk-L2LGMX5P.js → chunk-S2YF442K.js} +2 -2
- package/dist/mcp-chunks/{chunk-CN5YF3IQ.js → chunk-S5F3HEZZ.js} +1848 -1046
- package/dist/mcp-chunks/{chunk-6DVS7RBO.js → chunk-S6GJ42I2.js} +1 -1
- package/dist/mcp-chunks/chunk-T4MQCFIK.js +982 -0
- package/dist/mcp-chunks/{chunk-OB256NMD.js → chunk-TUQGOYK6.js} +1 -1
- package/dist/mcp-chunks/{chunk-M62ESEOY.js → chunk-TYYSBILI.js} +10 -22
- package/dist/mcp-chunks/{chunk-LYWEATXZ.js → chunk-UHO6KIUJ.js} +2 -2
- package/dist/mcp-chunks/{chunk-BSCNF4NY.js → chunk-UIPG6W7N.js} +2 -2
- package/dist/mcp-chunks/{chunk-AK5ZEDEF.js → chunk-UKM35J67.js} +2 -2
- package/dist/mcp-chunks/{chunk-G4H535MI.js → chunk-UYJZJXC2.js} +21 -3
- package/dist/mcp-chunks/{chunk-GA4ZYSRX.js → chunk-VJIAHZZG.js} +4 -4
- package/dist/mcp-chunks/{chunk-OZQTZWW4.js → chunk-WHJUDBPR.js} +1 -1
- package/dist/mcp-chunks/{chunk-YI5SMRFH.js → chunk-XNHGMWN2.js} +7 -7
- package/dist/mcp-chunks/{cli-TN6JTLTS.js → cli-JI7MEAAX.js} +70 -69
- package/dist/mcp-chunks/client-QU7ABSNB.js +30 -0
- package/dist/mcp-chunks/{config-command-LICU56ZH.js → config-command-GRZLKD3R.js} +36 -28
- package/dist/mcp-chunks/daemon-command-3266CYHO.js +30 -0
- package/dist/mcp-chunks/{dist-MFAWSKGH.js → dist-USMCQ22V.js} +71 -47
- package/dist/mcp-chunks/{emit-ts-command-FVX3JMSN.js → emit-ts-command-7VLESP7H.js} +18 -17
- package/dist/mcp-chunks/{generate-cli-runner-L2L7VMCA.js → generate-cli-runner-SSW2B72K.js} +43 -42
- package/dist/mcp-chunks/generated-daemon-runtime-7CFVWLC7.js +30 -0
- package/dist/mcp-chunks/{inspect-cli-command-Y5D3GRE2.js → inspect-cli-command-NCGCMOIS.js} +9 -9
- package/dist/mcp-chunks/{launch-ZFY6CM2A.js → launch-NBONSPNK.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-H7DIW5DM.js → lifecycle-CXAKUCN4.js} +1 -1
- package/dist/mcp-chunks/{list-command-55LCLW4S.js → list-command-5T4UF4PF.js} +56 -69
- package/dist/mcp-chunks/{output-utils-YYHI637S.js → output-utils-YFTWQZ5V.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-DZLFAAPK.js → prompt-CH6TK0bC-6DI4RA4E.js} +1 -1
- package/dist/mcp-chunks/{record-command-PWIBYC5J.js → record-command-TE5O7WBL.js} +5 -5
- package/dist/mcp-chunks/{replay-command-QHZZZMXF.js → replay-command-QCUL5ASR.js} +6 -6
- package/dist/mcp-chunks/{resource-command-HMR2KXWK.js → resource-command-XMGF7EAK.js} +9 -9
- package/dist/mcp-chunks/{result-utils-UGCQSRJ4.js → result-utils-HKB42M7Y.js} +3 -3
- package/dist/mcp-chunks/runtime-3X2XVS6X.js +37 -0
- package/dist/mcp-chunks/{runtime-wrapper-I4B3OROR.js → runtime-wrapper-MI3HF45J.js} +3 -3
- package/dist/mcp-chunks/{serve-command-NTDI3YPN.js → serve-command-5HV3ZE25.js} +25 -24
- package/dist/mcp-chunks/{timeouts-35UDWFA7.js → timeouts-YBFBTLV2.js} +8 -5
- package/dist/mcp-chunks/{vault-command-D5QZL4FI.js → vault-command-FC2PD5U6.js} +4 -4
- package/dist/mcp-chunks/webapi-IFUPO72B.js +2481 -0
- package/dist/mcp-daemon.js +35 -28
- package/dist/mcp-run-worker.js +28 -27
- package/dist/pi-extension.d.ts +1 -1
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +10 -9
- package/dist/pi-extension.js.map +1 -1
- package/dist/{recipe-agent.d.ts → recipe/agent.d.ts} +3 -3
- package/dist/recipe/agent.d.ts.map +1 -0
- package/dist/{recipe-agent.js → recipe/agent.js} +5 -5
- package/dist/recipe/agent.js.map +1 -0
- package/dist/{recipe-extensions.d.ts → recipe/extensions.d.ts} +1 -1
- package/dist/recipe/extensions.d.ts.map +1 -0
- package/dist/{recipe-extensions.js → recipe/extensions.js} +1 -1
- package/dist/recipe/extensions.js.map +1 -0
- package/dist/{recipe-mcp-config.d.ts → recipe/mcp-config.d.ts} +2 -2
- package/dist/recipe/mcp-config.d.ts.map +1 -0
- package/dist/{recipe-mcp-config.js → recipe/mcp-config.js} +1 -1
- package/dist/recipe/mcp-config.js.map +1 -0
- package/dist/{recipe-model.d.ts → recipe/model.d.ts} +1 -1
- package/dist/recipe/model.d.ts.map +1 -0
- package/dist/{recipe-model.js → recipe/model.js} +1 -1
- package/dist/recipe/model.js.map +1 -0
- package/dist/{recipe-package.d.ts → recipe/package.d.ts} +1 -1
- package/dist/recipe/package.d.ts.map +1 -0
- package/dist/{recipe-package.js → recipe/package.js} +1 -1
- package/dist/recipe/package.js.map +1 -0
- package/dist/recipe/resolve.d.ts +6 -6
- package/dist/recipe/resolve.d.ts.map +1 -1
- package/dist/recipe/resolve.js +4 -4
- package/dist/recipe/resolve.js.map +1 -1
- package/dist/{recipe-session.d.ts → recipe/session.d.ts} +1 -1
- package/dist/recipe/session.d.ts.map +1 -0
- package/dist/{recipe-session.js → recipe/session.js} +1 -1
- package/dist/recipe/session.js.map +1 -0
- package/dist/recipe/skills-prompt.d.ts +30 -0
- package/dist/recipe/skills-prompt.d.ts.map +1 -0
- package/dist/recipe/skills-prompt.js +28 -0
- package/dist/recipe/skills-prompt.js.map +1 -0
- package/dist/{recipe-skills.d.ts → recipe/skills.d.ts} +1 -1
- package/dist/recipe/skills.d.ts.map +1 -0
- package/dist/{recipe-skills.js → recipe/skills.js} +2 -2
- package/dist/recipe/skills.js.map +1 -0
- package/dist/run-controller.js +2 -2
- package/dist/session.d.ts +1 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +5 -5
- package/dist/session.js.map +1 -1
- package/docs/agent-composition.md +4 -1
- package/docs/channels.md +1 -1
- package/docs/recipe-format.md +4 -2
- package/docs/slack.md +1 -1
- package/package.json +6 -6
- package/dist/child-agent-completions.d.ts.map +0 -1
- package/dist/child-agent-completions.js.map +0 -1
- package/dist/child-agent-store.d.ts.map +0 -1
- package/dist/child-agent-store.js.map +0 -1
- package/dist/child-agent.d.ts.map +0 -1
- package/dist/child-agent.js.map +0 -1
- package/dist/child-session.d.ts.map +0 -1
- package/dist/child-session.js.map +0 -1
- package/dist/mcp-catalog.d.ts.map +0 -1
- package/dist/mcp-catalog.js.map +0 -1
- package/dist/mcp-chunks/call-arguments-S4EGFKUQ.js +0 -15
- package/dist/mcp-chunks/chunk-YVH36MGQ.js +0 -92
- package/dist/mcp-chunks/client-G33HPQAC.js +0 -29
- package/dist/mcp-chunks/daemon-command-JLVHGWHB.js +0 -29
- package/dist/mcp-chunks/generated-daemon-runtime-DC6IL7E7.js +0 -29
- package/dist/mcp-chunks/runtime-ZNFPZXKE.js +0 -36
- package/dist/mcp-chunks/webapi-4GWO2UBA.js +0 -3508
- package/dist/mcp-cli-core.d.ts.map +0 -1
- package/dist/mcp-cli-core.js.map +0 -1
- package/dist/mcp-cli-help.d.ts +0 -2
- package/dist/mcp-cli-help.d.ts.map +0 -1
- package/dist/mcp-cli-help.js +0 -36
- package/dist/mcp-cli-help.js.map +0 -1
- package/dist/mcp-cli-policy.d.ts.map +0 -1
- package/dist/mcp-cli-policy.js.map +0 -1
- package/dist/mcp-cli.d.ts +0 -3
- package/dist/mcp-cli.d.ts.map +0 -1
- package/dist/mcp-cli.js.map +0 -1
- package/dist/mcp-client.d.ts +0 -3
- package/dist/mcp-client.d.ts.map +0 -1
- package/dist/mcp-client.js.map +0 -1
- package/dist/mcp-command-context.d.ts.map +0 -1
- package/dist/mcp-command-context.js.map +0 -1
- package/dist/mcp-contract.d.ts.map +0 -1
- package/dist/mcp-contract.js.map +0 -1
- package/dist/mcp-daemon-client.d.ts.map +0 -1
- package/dist/mcp-daemon-client.js.map +0 -1
- package/dist/mcp-daemon-protocol.d.ts.map +0 -1
- package/dist/mcp-daemon-protocol.js.map +0 -1
- package/dist/mcp-daemon.d.ts +0 -3
- package/dist/mcp-daemon.d.ts.map +0 -1
- package/dist/mcp-policy.d.ts.map +0 -1
- package/dist/mcp-policy.js.map +0 -1
- package/dist/mcp-run-worker.d.ts +0 -2
- package/dist/mcp-run-worker.d.ts.map +0 -1
- package/dist/mcp-run-worker.js.map +0 -1
- package/dist/mcp-tools.d.ts.map +0 -1
- package/dist/mcp-tools.js.map +0 -1
- package/dist/mcp-trace-context.d.ts.map +0 -1
- package/dist/mcp-trace-context.js.map +0 -1
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js.map +0 -1
- package/dist/recipe-agent.d.ts.map +0 -1
- package/dist/recipe-agent.js.map +0 -1
- package/dist/recipe-extensions.d.ts.map +0 -1
- package/dist/recipe-extensions.js.map +0 -1
- package/dist/recipe-mcp-config.d.ts.map +0 -1
- package/dist/recipe-mcp-config.js.map +0 -1
- package/dist/recipe-model.d.ts.map +0 -1
- package/dist/recipe-model.js.map +0 -1
- package/dist/recipe-package.d.ts.map +0 -1
- package/dist/recipe-package.js.map +0 -1
- package/dist/recipe-session.d.ts.map +0 -1
- package/dist/recipe-session.js.map +0 -1
- package/dist/recipe-skills.d.ts.map +0 -1
- package/dist/recipe-skills.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/terminal.js
|
|
4
4
|
var forceColorRaw = process.env.FORCE_COLOR?.toLowerCase();
|
|
5
5
|
var forceDisableColor = forceColorRaw === "0" || forceColorRaw === "false";
|
|
6
6
|
var forceEnableColor = forceColorRaw === "1" || forceColorRaw === "true" || forceColorRaw === "2" || forceColorRaw === "3";
|
|
@@ -7,31 +7,31 @@ import {
|
|
|
7
7
|
reconcilePersistedTokens,
|
|
8
8
|
withRefreshLock,
|
|
9
9
|
withRefreshRequestTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IF6LRV3J.js";
|
|
11
11
|
import {
|
|
12
12
|
runtimeEnvironment,
|
|
13
13
|
sameOAuthTokenGeneration
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XNHGMWN2.js";
|
|
15
15
|
import {
|
|
16
16
|
isFileLockTimeoutError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-H7ARMBV7.js";
|
|
18
18
|
import {
|
|
19
19
|
analyzeConnectionError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-O4JIUOWF.js";
|
|
21
21
|
import {
|
|
22
22
|
IssuerMismatchError,
|
|
23
23
|
auth,
|
|
24
24
|
validateClientMetadataUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-S5F3HEZZ.js";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
27
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-browser-suppression.js
|
|
28
28
|
var TRUE_VALUES = /* @__PURE__ */ new Set(["1", "true", "yes"]);
|
|
29
29
|
function suppressBrowserLaunchFromEnv(env = runtimeEnvironment()) {
|
|
30
30
|
const raw = env.MCPORTER_OAUTH_NO_BROWSER;
|
|
31
31
|
return raw !== void 0 && TRUE_VALUES.has(raw.trim().toLowerCase());
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
34
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth.js
|
|
35
35
|
import { spawn } from "node:child_process";
|
|
36
36
|
import { createHash, randomUUID } from "node:crypto";
|
|
37
37
|
import http from "node:http";
|
|
@@ -66,15 +66,6 @@ var OAuthRedirectUriMismatchError = class extends Error {
|
|
|
66
66
|
this.name = "OAuthRedirectUriMismatchError";
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
function createDeferred() {
|
|
70
|
-
let resolve;
|
|
71
|
-
let reject;
|
|
72
|
-
const promise = new Promise((res, rej) => {
|
|
73
|
-
resolve = res;
|
|
74
|
-
reject = rej;
|
|
75
|
-
});
|
|
76
|
-
return { promise, resolve, reject };
|
|
77
|
-
}
|
|
78
69
|
function openExternal(url, platform = process.platform, launch = spawn) {
|
|
79
70
|
const stdio = "ignore";
|
|
80
71
|
try {
|
|
@@ -464,10 +455,7 @@ var PersistentOAuthClientProvider = class _PersistentOAuthClientProvider {
|
|
|
464
455
|
});
|
|
465
456
|
}
|
|
466
457
|
ensureAuthorizationDeferred() {
|
|
467
|
-
|
|
468
|
-
this.authorizationDeferred = createDeferred();
|
|
469
|
-
}
|
|
470
|
-
return this.authorizationDeferred;
|
|
458
|
+
return this.authorizationDeferred ??= Promise.withResolvers();
|
|
471
459
|
}
|
|
472
460
|
hasActiveInteractiveAuthorization() {
|
|
473
461
|
if (!this.interactiveAuthorization) {
|
|
@@ -546,7 +534,7 @@ var __oauthInternals = {
|
|
|
546
534
|
openExternal
|
|
547
535
|
};
|
|
548
536
|
|
|
549
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
537
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/runtime-oauth-support.js
|
|
550
538
|
function maybeEnableOAuth(definition, logger) {
|
|
551
539
|
if (definition.auth === "oauth" || definition.auth === "refreshable_bearer") {
|
|
552
540
|
return void 0;
|
|
@@ -565,7 +553,7 @@ function isUnauthorizedError(error) {
|
|
|
565
553
|
return issue.kind === "auth";
|
|
566
554
|
}
|
|
567
555
|
|
|
568
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
556
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/runtime/oauth.js
|
|
569
557
|
var DEFAULT_OAUTH_CODE_TIMEOUT_MS = 3e5;
|
|
570
558
|
var OAUTH_FLOW_ERROR = /* @__PURE__ */ Symbol("oauth-flow-error");
|
|
571
559
|
var POST_AUTH_CONNECT_ERROR = /* @__PURE__ */ Symbol("post-auth-connect-error");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
expandHome
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D6SVCPN6.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/paths.js
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
var XDG_HOME_ENV = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
buildToolMetadataList
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NQW3ES2G.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/tool-cache.js
|
|
7
7
|
var runtimeCache = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
function cacheKey(serverName, options) {
|
|
9
9
|
const includeSchema = options.includeSchema !== false;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
normalizeHttpUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2P2HVZ3G.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/server-lookup.js
|
|
7
7
|
function findServerByHttpUrl(definitions, urlString) {
|
|
8
8
|
const normalizedTarget = normalizeHttpUrl(urlString);
|
|
9
9
|
if (!normalizedTarget) {
|
|
@@ -1,15 +1,32 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
mcporterConfigCandidates
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UHO6KIUJ.js";
|
|
5
5
|
import {
|
|
6
6
|
expandHome
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D6SVCPN6.js";
|
|
8
8
|
|
|
9
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
9
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config/path-discovery.js
|
|
10
10
|
import fsSync from "node:fs";
|
|
11
11
|
import fs from "node:fs/promises";
|
|
12
12
|
import path from "node:path";
|
|
13
|
+
async function listConfigLayerPaths(options = {}, rootDir = process.cwd()) {
|
|
14
|
+
const explicitPath = options.configPath ?? process.env.MCPORTER_CONFIG;
|
|
15
|
+
if (explicitPath) {
|
|
16
|
+
return [path.resolve(expandHome(explicitPath.trim()))];
|
|
17
|
+
}
|
|
18
|
+
const paths = [];
|
|
19
|
+
const homeCandidates = homeConfigCandidates();
|
|
20
|
+
const existingHome = homeCandidates.find((candidate) => pathExists(candidate));
|
|
21
|
+
if (existingHome) {
|
|
22
|
+
paths.push(existingHome);
|
|
23
|
+
}
|
|
24
|
+
const projectPath = path.resolve(rootDir, "config", "mcporter.json");
|
|
25
|
+
if (pathExists(projectPath)) {
|
|
26
|
+
paths.push(projectPath);
|
|
27
|
+
}
|
|
28
|
+
return paths;
|
|
29
|
+
}
|
|
13
30
|
function resolveConfigPath(configPath, rootDir) {
|
|
14
31
|
if (configPath) {
|
|
15
32
|
return { path: path.resolve(configPath), explicit: true };
|
|
@@ -50,6 +67,7 @@ async function pathExistsAsync(filePath) {
|
|
|
50
67
|
}
|
|
51
68
|
|
|
52
69
|
export {
|
|
70
|
+
listConfigLayerPaths,
|
|
53
71
|
resolveConfigPath,
|
|
54
72
|
homeConfigCandidates,
|
|
55
73
|
pathExists,
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
extraDimText,
|
|
5
5
|
redText,
|
|
6
6
|
yellowText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TUQGOYK6.js";
|
|
8
8
|
import {
|
|
9
9
|
analyzeConnectionError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O4JIUOWF.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
12
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/path-utils.js
|
|
13
13
|
import os from "node:os";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
function formatPathForDisplay(filePath) {
|
|
@@ -19,7 +19,7 @@ function formatPathForDisplay(filePath) {
|
|
|
19
19
|
return displayPath;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
22
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/list-format.js
|
|
23
23
|
function renderServerListRow(result, timeoutMs, options = {}) {
|
|
24
24
|
const description = result.server.description ? dimText(` \u2014 ${result.server.description}`) : "";
|
|
25
25
|
const durationLabel = dimText(`${(result.durationMs / 1e3).toFixed(1)}s`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/definition-fields.js
|
|
4
4
|
var SHARED_DEFINITION_FIELDS = [
|
|
5
5
|
"auth",
|
|
6
6
|
"tokenCacheDir",
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
withFileLock,
|
|
5
5
|
writeJsonFile,
|
|
6
6
|
writeTextFileAtomic
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-H7ARMBV7.js";
|
|
8
8
|
|
|
9
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
9
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-vault.js
|
|
10
10
|
import crypto from "node:crypto";
|
|
11
11
|
import path2 from "node:path";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
13
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-credential-validation.js
|
|
14
14
|
function isRecord(value) {
|
|
15
15
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
16
16
|
}
|
|
@@ -31,7 +31,7 @@ function isStoredOAuthClientInformation(value) {
|
|
|
31
31
|
return isOptionalString(value, "issuer");
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
34
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-token-generation.js
|
|
35
35
|
import { randomUUID } from "node:crypto";
|
|
36
36
|
import { isDeepStrictEqual } from "node:util";
|
|
37
37
|
var TOKEN_GENERATION_FIELD = "__mcporter_generation";
|
|
@@ -111,7 +111,7 @@ function sameOAuthClientValue(left, right) {
|
|
|
111
111
|
return isDeepStrictEqual(withoutClientGeneration(left), withoutClientGeneration(right));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
114
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/runtime/environment.js
|
|
115
115
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
116
116
|
import os from "node:os";
|
|
117
117
|
import path from "node:path";
|
|
@@ -134,7 +134,7 @@ function runtimeStateDir(kind) {
|
|
|
134
134
|
return root && path.isAbsolute(root) ? path.join(root, "mcporter") : path.join(runtimeHome(), ".mcporter");
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
137
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-vault.js
|
|
138
138
|
function getOAuthVaultPath() {
|
|
139
139
|
return path2.join(runtimeStateDir("data"), "credentials.json");
|
|
140
140
|
}
|
|
@@ -431,7 +431,7 @@ async function clearVaultEntry(definition, scope) {
|
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
434
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-persistence-stores.js
|
|
435
435
|
import fs from "node:fs/promises";
|
|
436
436
|
import path3 from "node:path";
|
|
437
437
|
function withStoredExpiry(tokens) {
|
|
@@ -4,71 +4,72 @@ import {
|
|
|
4
4
|
DEBUG_HANG,
|
|
5
5
|
dumpActiveHandles,
|
|
6
6
|
terminateChildProcesses
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2HOMVWSA.js";
|
|
8
8
|
import {
|
|
9
9
|
consumeMatchingTokens,
|
|
10
10
|
extractFlags
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-S6GJ42I2.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecordReplayModeActive,
|
|
14
14
|
isReplayModeActive
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CLR6DJV3.js";
|
|
16
16
|
import {
|
|
17
17
|
parseCallArguments
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HZ2SX5U6.js";
|
|
19
19
|
import {
|
|
20
20
|
CliUsageError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QALB3DRW.js";
|
|
22
22
|
import {
|
|
23
23
|
getActiveLogLevel,
|
|
24
24
|
getActiveLogger,
|
|
25
25
|
logError,
|
|
26
26
|
logInfo,
|
|
27
27
|
setLogLevel
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LQIE4PKL.js";
|
|
29
29
|
import {
|
|
30
30
|
extractListFlags
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-I6UMKX5E.js";
|
|
32
32
|
import {
|
|
33
33
|
chooseClosestIdentifier,
|
|
34
34
|
renderIdentifierResolutionMessages
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RIHPVCGI.js";
|
|
36
36
|
import {
|
|
37
37
|
boldText,
|
|
38
38
|
dimText,
|
|
39
39
|
extraDimText,
|
|
40
40
|
supportsAnsiColor,
|
|
41
41
|
yellowText
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-TUQGOYK6.js";
|
|
43
43
|
import {
|
|
44
44
|
STDOUT_FLUSH_TIMEOUT_MS,
|
|
45
45
|
parsePositiveInteger,
|
|
46
46
|
resolveCallTimeout
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-KOWNVUL2.js";
|
|
48
|
+
import "./chunk-LCBDVFVA.js";
|
|
49
49
|
import {
|
|
50
50
|
looksLikeHttpUrl,
|
|
51
51
|
splitHttpToolSelector
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-2P2HVZ3G.js";
|
|
53
|
+
import "./chunk-5B7GRMUK.js";
|
|
54
54
|
import {
|
|
55
55
|
createInteractiveElicitationResponder
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-D6B2M5V7.js";
|
|
57
57
|
import {
|
|
58
58
|
parseLogLevel
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-P463YBJM.js";
|
|
60
60
|
import {
|
|
61
61
|
MCPORTER_VERSION
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-7PFJCLXL.js";
|
|
63
|
+
import "./chunk-H4KL74PV.js";
|
|
64
64
|
import {
|
|
65
65
|
resolveConfigPath
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-UYJZJXC2.js";
|
|
67
|
+
import "./chunk-UHO6KIUJ.js";
|
|
68
|
+
import "./chunk-T4MQCFIK.js";
|
|
69
|
+
import "./chunk-D6SVCPN6.js";
|
|
69
70
|
import "./chunk-LRKZP7DJ.js";
|
|
70
71
|
|
|
71
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
72
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/cli-factory.js
|
|
72
73
|
function buildGlobalContext(argv) {
|
|
73
74
|
const globalFlags = extractFlags(argv, ["--config", "--root", "--log-level", "--oauth-timeout"]);
|
|
74
75
|
if (globalFlags["--log-level"]) {
|
|
@@ -101,7 +102,7 @@ function buildGlobalContext(argv) {
|
|
|
101
102
|
return { globalFlags, oauthTimeoutOverride, runtimeOptions };
|
|
102
103
|
}
|
|
103
104
|
|
|
104
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
105
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/command-inference.js
|
|
105
106
|
var CALL_TOKEN_PATTERN = /[.(]/;
|
|
106
107
|
function inferCommandRouting(token, args, definitions) {
|
|
107
108
|
if (!token) {
|
|
@@ -173,7 +174,7 @@ function isHttpToolToken(token) {
|
|
|
173
174
|
return splitHttpToolSelector(token) !== null;
|
|
174
175
|
}
|
|
175
176
|
|
|
176
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
177
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/help-output.js
|
|
177
178
|
import fsPromises from "node:fs/promises";
|
|
178
179
|
function printHelp(message) {
|
|
179
180
|
if (message) {
|
|
@@ -375,7 +376,7 @@ async function resolveCliVersion() {
|
|
|
375
376
|
}
|
|
376
377
|
}
|
|
377
378
|
|
|
378
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
379
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/network-family-autoselection.js
|
|
379
380
|
import net from "node:net";
|
|
380
381
|
var NODE_DEFAULT_ATTEMPT_TIMEOUT_MS = 250;
|
|
381
382
|
var MCPORTER_ATTEMPT_TIMEOUT_MS = 1500;
|
|
@@ -409,7 +410,7 @@ function isNodeOptionBoundary(character) {
|
|
|
409
410
|
return character === void 0 || character === "'" || character === '"' || /\s/u.test(character);
|
|
410
411
|
}
|
|
411
412
|
|
|
412
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
413
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli.js
|
|
413
414
|
configureAutoSelectFamilyAttemptTimeout();
|
|
414
415
|
var FORCE_EXIT_GRACE_MS = 50;
|
|
415
416
|
var DAEMON_FAST_PATH_SERVERS = /* @__PURE__ */ new Set(["chrome-devtools", "mobile-mcp", "playwright"]);
|
|
@@ -451,31 +452,31 @@ function flushStdioThenForceExit() {
|
|
|
451
452
|
});
|
|
452
453
|
}
|
|
453
454
|
async function handleAuth(...args) {
|
|
454
|
-
const { handleAuth: imported } = await import("./auth-command-
|
|
455
|
+
const { handleAuth: imported } = await import("./auth-command-GQFV6QYP.js");
|
|
455
456
|
return imported(...args);
|
|
456
457
|
}
|
|
457
458
|
async function printAuthHelp() {
|
|
458
|
-
const { printAuthHelp: imported } = await import("./auth-command-
|
|
459
|
+
const { printAuthHelp: imported } = await import("./auth-command-GQFV6QYP.js");
|
|
459
460
|
imported();
|
|
460
461
|
}
|
|
461
462
|
async function handleCall(...args) {
|
|
462
|
-
const { handleCall: imported } = await import("./call-command-
|
|
463
|
+
const { handleCall: imported } = await import("./call-command-LMAREWKD.js");
|
|
463
464
|
return imported(...args);
|
|
464
465
|
}
|
|
465
466
|
async function handleGenerateCli(...args) {
|
|
466
|
-
const { handleGenerateCli: imported } = await import("./generate-cli-runner-
|
|
467
|
+
const { handleGenerateCli: imported } = await import("./generate-cli-runner-SSW2B72K.js");
|
|
467
468
|
return imported(...args);
|
|
468
469
|
}
|
|
469
470
|
async function handleInspectCli(...args) {
|
|
470
|
-
const { handleInspectCli: imported } = await import("./inspect-cli-command-
|
|
471
|
+
const { handleInspectCli: imported } = await import("./inspect-cli-command-NCGCMOIS.js");
|
|
471
472
|
return imported(...args);
|
|
472
473
|
}
|
|
473
474
|
async function handleList(...args) {
|
|
474
|
-
const { handleList: imported } = await import("./list-command-
|
|
475
|
+
const { handleList: imported } = await import("./list-command-5T4UF4PF.js");
|
|
475
476
|
return imported(...args);
|
|
476
477
|
}
|
|
477
478
|
async function handleResource(...args) {
|
|
478
|
-
const { handleResource: imported } = await import("./resource-command-
|
|
479
|
+
const { handleResource: imported } = await import("./resource-command-XMGF7EAK.js");
|
|
479
480
|
return imported(...args);
|
|
480
481
|
}
|
|
481
482
|
async function runCli(argv) {
|
|
@@ -508,23 +509,23 @@ async function runCli(argv) {
|
|
|
508
509
|
}
|
|
509
510
|
if (command === "generate-cli") {
|
|
510
511
|
if (consumeHelpTokens(args)) {
|
|
511
|
-
const { printGenerateCliHelp } = await import("./generate-cli-runner-
|
|
512
|
+
const { printGenerateCliHelp } = await import("./generate-cli-runner-SSW2B72K.js");
|
|
512
513
|
printGenerateCliHelp();
|
|
513
514
|
process.exitCode = 0;
|
|
514
515
|
return;
|
|
515
516
|
}
|
|
516
|
-
const { handleGenerateCli: importedHandleGenerateCli } = await import("./generate-cli-runner-
|
|
517
|
+
const { handleGenerateCli: importedHandleGenerateCli } = await import("./generate-cli-runner-SSW2B72K.js");
|
|
517
518
|
await importedHandleGenerateCli(args, globalFlags);
|
|
518
519
|
return;
|
|
519
520
|
}
|
|
520
521
|
if (command === "inspect-cli") {
|
|
521
522
|
if (consumeHelpTokens(args)) {
|
|
522
|
-
const { printInspectCliHelp } = await import("./inspect-cli-command-
|
|
523
|
+
const { printInspectCliHelp } = await import("./inspect-cli-command-NCGCMOIS.js");
|
|
523
524
|
printInspectCliHelp();
|
|
524
525
|
process.exitCode = 0;
|
|
525
526
|
return;
|
|
526
527
|
}
|
|
527
|
-
const { handleInspectCli: importedHandleInspectCli } = await import("./inspect-cli-command-
|
|
528
|
+
const { handleInspectCli: importedHandleInspectCli } = await import("./inspect-cli-command-NCGCMOIS.js");
|
|
528
529
|
await importedHandleInspectCli(args);
|
|
529
530
|
return;
|
|
530
531
|
}
|
|
@@ -539,7 +540,7 @@ async function runCli(argv) {
|
|
|
539
540
|
...interactiveElicitation ? { elicitationHandler: interactiveElicitation.handler } : {}
|
|
540
541
|
};
|
|
541
542
|
if (command === "daemon") {
|
|
542
|
-
const { handleDaemonCli } = await import("./daemon-command-
|
|
543
|
+
const { handleDaemonCli } = await import("./daemon-command-3266CYHO.js");
|
|
543
544
|
await handleDaemonCli(args, {
|
|
544
545
|
configPath: configPathResolved,
|
|
545
546
|
configExplicit: configResolution.explicit,
|
|
@@ -548,7 +549,7 @@ async function runCli(argv) {
|
|
|
548
549
|
return;
|
|
549
550
|
}
|
|
550
551
|
if (command === "serve") {
|
|
551
|
-
const { handleServeCli, printServeHelp } = await import("./serve-command-
|
|
552
|
+
const { handleServeCli, printServeHelp } = await import("./serve-command-5HV3ZE25.js");
|
|
552
553
|
if (consumeHelpTokens(args)) {
|
|
553
554
|
printServeHelp();
|
|
554
555
|
process.exitCode = 0;
|
|
@@ -562,7 +563,7 @@ async function runCli(argv) {
|
|
|
562
563
|
return;
|
|
563
564
|
}
|
|
564
565
|
if (command === "record") {
|
|
565
|
-
const { handleRecordCli, printRecordHelp } = await import("./record-command-
|
|
566
|
+
const { handleRecordCli, printRecordHelp } = await import("./record-command-TE5O7WBL.js");
|
|
566
567
|
if (consumeHelpTokens(wrapperArgsBeforeSeparator(args))) {
|
|
567
568
|
printRecordHelp();
|
|
568
569
|
process.exitCode = 0;
|
|
@@ -572,7 +573,7 @@ async function runCli(argv) {
|
|
|
572
573
|
return;
|
|
573
574
|
}
|
|
574
575
|
if (command === "replay") {
|
|
575
|
-
const { handleReplayCli, printReplayHelp } = await import("./replay-command-
|
|
576
|
+
const { handleReplayCli, printReplayHelp } = await import("./replay-command-QCUL5ASR.js");
|
|
576
577
|
if (consumeHelpTokens(wrapperArgsBeforeSeparator(args))) {
|
|
577
578
|
printReplayHelp();
|
|
578
579
|
process.exitCode = 0;
|
|
@@ -582,7 +583,7 @@ async function runCli(argv) {
|
|
|
582
583
|
return;
|
|
583
584
|
}
|
|
584
585
|
if (command === "config") {
|
|
585
|
-
const { handleConfigCli } = await import("./config-command-
|
|
586
|
+
const { handleConfigCli } = await import("./config-command-GRZLKD3R.js");
|
|
586
587
|
await handleConfigCli({
|
|
587
588
|
loadOptions: { configPath, rootDir: rootOverride },
|
|
588
589
|
invokeAuth: (authArgs) => invokeAuthCommand(runtimeOptionsWithPath, authArgs)
|
|
@@ -591,14 +592,14 @@ async function runCli(argv) {
|
|
|
591
592
|
}
|
|
592
593
|
if (command === "emit-ts") {
|
|
593
594
|
if (consumeHelpTokens(args)) {
|
|
594
|
-
const { printEmitTsHelp } = await import("./emit-ts-command-
|
|
595
|
+
const { printEmitTsHelp } = await import("./emit-ts-command-7VLESP7H.js");
|
|
595
596
|
printEmitTsHelp();
|
|
596
597
|
process.exitCode = 0;
|
|
597
598
|
return;
|
|
598
599
|
}
|
|
599
600
|
const [{ createRuntime: createRuntime2 }, { handleEmitTs }] = await Promise.all([
|
|
600
|
-
import("./runtime-
|
|
601
|
-
import("./emit-ts-command-
|
|
601
|
+
import("./runtime-3X2XVS6X.js"),
|
|
602
|
+
import("./emit-ts-command-7VLESP7H.js")
|
|
602
603
|
]);
|
|
603
604
|
const runtime2 = await createRuntime2(runtimeOptionsWithPath);
|
|
604
605
|
try {
|
|
@@ -613,10 +614,10 @@ async function runCli(argv) {
|
|
|
613
614
|
return;
|
|
614
615
|
}
|
|
615
616
|
const [{ createRuntime }, { DaemonClient }, { createKeepAliveRuntime }, { isKeepAliveServer }] = await Promise.all([
|
|
616
|
-
import("./runtime-
|
|
617
|
-
import("./client-
|
|
618
|
-
import("./runtime-wrapper-
|
|
619
|
-
import("./lifecycle-
|
|
617
|
+
import("./runtime-3X2XVS6X.js"),
|
|
618
|
+
import("./client-QU7ABSNB.js"),
|
|
619
|
+
import("./runtime-wrapper-MI3HF45J.js"),
|
|
620
|
+
import("./lifecycle-CXAKUCN4.js")
|
|
620
621
|
]);
|
|
621
622
|
const baseRuntime = await createRuntime(runtimeOptionsWithPath);
|
|
622
623
|
const recordReplayModeActive = isRecordReplayModeActive();
|
|
@@ -638,56 +639,56 @@ async function runCli(argv) {
|
|
|
638
639
|
const resolvedArgs = inference.args;
|
|
639
640
|
if (resolvedCommand === "list") {
|
|
640
641
|
if (consumeHelpTokens(resolvedArgs)) {
|
|
641
|
-
const { printListHelp } = await import("./list-command-
|
|
642
|
+
const { printListHelp } = await import("./list-command-5T4UF4PF.js");
|
|
642
643
|
printListHelp();
|
|
643
644
|
process.exitCode = 0;
|
|
644
645
|
return;
|
|
645
646
|
}
|
|
646
|
-
const { handleList: importedHandleList } = await import("./list-command-
|
|
647
|
+
const { handleList: importedHandleList } = await import("./list-command-5T4UF4PF.js");
|
|
647
648
|
await importedHandleList(runtime, resolvedArgs);
|
|
648
649
|
return;
|
|
649
650
|
}
|
|
650
651
|
if (resolvedCommand === "call") {
|
|
651
652
|
if (consumeHelpTokens(resolvedArgs)) {
|
|
652
|
-
const { printCallHelp } = await import("./call-command-
|
|
653
|
+
const { printCallHelp } = await import("./call-command-LMAREWKD.js");
|
|
653
654
|
printCallHelp();
|
|
654
655
|
process.exitCode = 0;
|
|
655
656
|
return;
|
|
656
657
|
}
|
|
657
|
-
const { handleCall: runHandleCall } = await import("./call-command-
|
|
658
|
+
const { handleCall: runHandleCall } = await import("./call-command-LMAREWKD.js");
|
|
658
659
|
await runHandleCall(runtime, resolvedArgs);
|
|
659
660
|
return;
|
|
660
661
|
}
|
|
661
662
|
if (resolvedCommand === "auth") {
|
|
662
663
|
if (consumeHelpTokens(resolvedArgs)) {
|
|
663
|
-
const { printAuthHelp: importedPrintAuthHelp } = await import("./auth-command-
|
|
664
|
+
const { printAuthHelp: importedPrintAuthHelp } = await import("./auth-command-GQFV6QYP.js");
|
|
664
665
|
importedPrintAuthHelp();
|
|
665
666
|
process.exitCode = 0;
|
|
666
667
|
return;
|
|
667
668
|
}
|
|
668
|
-
const { handleAuth: importedHandleAuth } = await import("./auth-command-
|
|
669
|
+
const { handleAuth: importedHandleAuth } = await import("./auth-command-GQFV6QYP.js");
|
|
669
670
|
await importedHandleAuth(runtime, resolvedArgs, { oauthTimeoutMs: runtimeOptionsWithPath.oauthTimeoutMs });
|
|
670
671
|
return;
|
|
671
672
|
}
|
|
672
673
|
if (resolvedCommand === "vault") {
|
|
673
674
|
if (consumeHelpTokens(resolvedArgs)) {
|
|
674
|
-
const { printVaultHelp } = await import("./vault-command-
|
|
675
|
+
const { printVaultHelp } = await import("./vault-command-FC2PD5U6.js");
|
|
675
676
|
printVaultHelp();
|
|
676
677
|
process.exitCode = 0;
|
|
677
678
|
return;
|
|
678
679
|
}
|
|
679
|
-
const { handleVault } = await import("./vault-command-
|
|
680
|
+
const { handleVault } = await import("./vault-command-FC2PD5U6.js");
|
|
680
681
|
await handleVault(runtime, resolvedArgs);
|
|
681
682
|
return;
|
|
682
683
|
}
|
|
683
684
|
if (resolvedCommand === "resource" || resolvedCommand === "resources") {
|
|
684
685
|
if (consumeHelpTokens(resolvedArgs)) {
|
|
685
|
-
const { printResourceHelp } = await import("./resource-command-
|
|
686
|
+
const { printResourceHelp } = await import("./resource-command-XMGF7EAK.js");
|
|
686
687
|
printResourceHelp();
|
|
687
688
|
process.exitCode = 0;
|
|
688
689
|
return;
|
|
689
690
|
}
|
|
690
|
-
const { handleResource: importedHandleResource } = await import("./resource-command-
|
|
691
|
+
const { handleResource: importedHandleResource } = await import("./resource-command-XMGF7EAK.js");
|
|
691
692
|
await importedHandleResource(runtime, resolvedArgs);
|
|
692
693
|
return;
|
|
693
694
|
}
|
|
@@ -770,8 +771,8 @@ if (process.env.MCPORTER_DISABLE_AUTORUN !== "1") {
|
|
|
770
771
|
}
|
|
771
772
|
async function invokeAuthCommand(runtimeOptions, args) {
|
|
772
773
|
const [{ createRuntime }, { handleAuth: importedHandleAuth }] = await Promise.all([
|
|
773
|
-
import("./runtime-
|
|
774
|
-
import("./auth-command-
|
|
774
|
+
import("./runtime-3X2XVS6X.js"),
|
|
775
|
+
import("./auth-command-GQFV6QYP.js")
|
|
775
776
|
]);
|
|
776
777
|
const runtime = await createRuntime(runtimeOptions);
|
|
777
778
|
try {
|
|
@@ -797,8 +798,8 @@ async function maybeHandleDaemonFastCall(command, args, configResolution, rootDi
|
|
|
797
798
|
return true;
|
|
798
799
|
}
|
|
799
800
|
const [{ DaemonClient }, { handleCall: importedHandleCall }] = await Promise.all([
|
|
800
|
-
import("./client-
|
|
801
|
-
import("./call-command-
|
|
801
|
+
import("./client-QU7ABSNB.js"),
|
|
802
|
+
import("./call-command-LMAREWKD.js")
|
|
802
803
|
]);
|
|
803
804
|
const daemonClient = new DaemonClient({
|
|
804
805
|
configPath: configResolution.path,
|
|
@@ -809,9 +810,9 @@ async function maybeHandleDaemonFastCall(command, args, configResolution, rootDi
|
|
|
809
810
|
return true;
|
|
810
811
|
}
|
|
811
812
|
async function maybeHandleSimpleDaemonFastCall(callArgs, configResolution, rootDir) {
|
|
812
|
-
const [{ parseCallArguments: parseCallArguments2 }, {
|
|
813
|
-
import("./call-arguments-
|
|
814
|
-
import("./timeouts-
|
|
813
|
+
const [{ parseCallArguments: parseCallArguments2 }, { resolveServerCallTimeout }] = await Promise.all([
|
|
814
|
+
import("./call-arguments-VT7JLNJY.js"),
|
|
815
|
+
import("./timeouts-YBFBTLV2.js")
|
|
815
816
|
]);
|
|
816
817
|
let parsed;
|
|
817
818
|
try {
|
|
@@ -823,9 +824,9 @@ async function maybeHandleSimpleDaemonFastCall(callArgs, configResolution, rootD
|
|
|
823
824
|
return false;
|
|
824
825
|
}
|
|
825
826
|
const [{ DaemonClient }, { wrapCallResult }, { printCallOutput }] = await Promise.all([
|
|
826
|
-
import("./client-
|
|
827
|
-
import("./result-utils-
|
|
828
|
-
import("./output-utils-
|
|
827
|
+
import("./client-QU7ABSNB.js"),
|
|
828
|
+
import("./result-utils-HKB42M7Y.js"),
|
|
829
|
+
import("./output-utils-YFTWQZ5V.js")
|
|
829
830
|
]);
|
|
830
831
|
const daemonClient = new DaemonClient({
|
|
831
832
|
configPath: configResolution.path,
|
|
@@ -836,7 +837,7 @@ async function maybeHandleSimpleDaemonFastCall(callArgs, configResolution, rootD
|
|
|
836
837
|
server: parsed.server,
|
|
837
838
|
tool: parsed.tool,
|
|
838
839
|
args: Object.keys(parsed.args).length > 0 ? parsed.args : void 0,
|
|
839
|
-
timeoutMs:
|
|
840
|
+
timeoutMs: resolveServerCallTimeout(parsed.timeoutMs, void 0, parsed.server),
|
|
840
841
|
disableOAuth: parsed.disableOAuth
|
|
841
842
|
});
|
|
842
843
|
const { callResult } = wrapCallResult(result);
|