@introspection-ai/recipes 0.25.1 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-4WFRNU2I.js → auth-command-GQFV6QYP.js} +24 -27
- package/dist/mcp-chunks/call-arguments-VT7JLNJY.js +16 -0
- package/dist/mcp-chunks/{call-command-JBIKXOGC.js → call-command-LMAREWKD.js} +45 -45
- package/dist/mcp-chunks/{chunk-3JGS7LQB.js → chunk-2HOMVWSA.js} +2 -2
- package/dist/mcp-chunks/{chunk-G6OMDUNG.js → chunk-2P2HVZ3G.js} +1 -1
- package/dist/mcp-chunks/{chunk-ED2WN5BI.js → chunk-34QXE62Y.js} +175 -147
- package/dist/mcp-chunks/{chunk-Y3EDWN2P.js → chunk-5B7GRMUK.js} +1 -1
- package/dist/mcp-chunks/chunk-5BMCVE2J.js +516 -0
- package/dist/mcp-chunks/{chunk-V5AYEKSL.js → chunk-6QZQZXDJ.js} +52 -81
- package/dist/mcp-chunks/{chunk-3R2WK3NB.js → chunk-6RG6AD5X.js} +6 -6
- package/dist/mcp-chunks/{chunk-SNKXMWDB.js → chunk-77BZYP72.js} +1 -1
- package/dist/mcp-chunks/chunk-7PFJCLXL.js +123 -0
- package/dist/mcp-chunks/chunk-7WL4TMON.js +31 -0
- package/dist/mcp-chunks/{chunk-ELA77TDC.js → chunk-C2VLY7ED.js} +4 -4
- package/dist/mcp-chunks/{chunk-FAJPJTOC.js → chunk-CLR6DJV3.js} +1 -1
- package/dist/mcp-chunks/{chunk-ZOAQDFAO.js → chunk-D6B2M5V7.js} +1 -1
- package/dist/mcp-chunks/{chunk-WTMJMM3B.js → chunk-D6SVCPN6.js} +3 -30
- package/dist/mcp-chunks/chunk-FBVRU4Y3.js +1195 -0
- package/dist/mcp-chunks/{chunk-EMSNQHZZ.js → chunk-FONFU4G5.js} +1 -1
- package/dist/mcp-chunks/{chunk-BWW4XRUC.js → chunk-H4KL74PV.js} +303 -161
- package/dist/mcp-chunks/{chunk-ITR7FQM3.js → chunk-H7ARMBV7.js} +4 -9
- package/dist/mcp-chunks/{chunk-EPT4MYOF.js → chunk-HZ2SX5U6.js} +39 -34
- package/dist/mcp-chunks/{chunk-36VIJRYY.js → chunk-I6UMKX5E.js} +4 -4
- package/dist/mcp-chunks/{chunk-ASG4OY3M.js → chunk-IF6LRV3J.js} +21 -28
- package/dist/mcp-chunks/{chunk-KW3ANJ36.js → chunk-JVYCENPP.js} +4 -4
- package/dist/mcp-chunks/{chunk-AIKLVBYU.js → chunk-KOWNVUL2.js} +34 -7
- package/dist/mcp-chunks/{chunk-B2LNXGAP.js → chunk-KQCLM7R7.js} +4 -4
- package/dist/mcp-chunks/{chunk-OP3IW2V6.js → chunk-L6OOGZVA.js} +2 -2
- package/dist/mcp-chunks/{chunk-MOEZ43ZL.js → chunk-LCBDVFVA.js} +1 -1
- package/dist/mcp-chunks/{chunk-ITCCROID.js → chunk-LIEFPSSB.js} +5 -5
- package/dist/mcp-chunks/{chunk-GUXMP7QB.js → chunk-LQIE4PKL.js} +2 -2
- package/dist/mcp-chunks/{chunk-WYLHHXI6.js → chunk-LXHPDKEF.js} +26 -11
- package/dist/mcp-chunks/{chunk-6YZW3XAE.js → chunk-MJFZM5EV.js} +5 -5
- package/dist/mcp-chunks/{chunk-TPHPAEDH.js → chunk-NQW3ES2G.js} +2 -8
- package/dist/mcp-chunks/{chunk-IPNSPKQK.js → chunk-O2VOMKAS.js} +15 -17
- package/dist/mcp-chunks/{chunk-QZUC2T72.js → chunk-O4JIUOWF.js} +2 -2
- package/dist/mcp-chunks/{chunk-C2KNLFZR.js → chunk-P3UVILEW.js} +2 -2
- package/dist/mcp-chunks/{chunk-7WOKCV6Q.js → chunk-P463YBJM.js} +1 -1
- package/dist/mcp-chunks/{chunk-GQ6NSIDS.js → chunk-PJCMJ65D.js} +1175 -718
- package/dist/mcp-chunks/{chunk-CZKDJZER.js → chunk-QALB3DRW.js} +1 -1
- package/dist/mcp-chunks/{chunk-JG4TRUPF.js → chunk-QJNF3A3F.js} +1 -1
- package/dist/mcp-chunks/{chunk-HLRCUHNO.js → chunk-RIHPVCGI.js} +1 -1
- package/dist/mcp-chunks/{chunk-RD7NHCRK.js → chunk-RZIJUJGL.js} +60 -1074
- package/dist/mcp-chunks/{chunk-4ZNBWL65.js → chunk-S2YF442K.js} +2 -2
- package/dist/mcp-chunks/chunk-S5F3HEZZ.js +37060 -0
- package/dist/mcp-chunks/{chunk-TF2YTYE4.js → chunk-S6GJ42I2.js} +1 -1
- package/dist/mcp-chunks/chunk-T4MQCFIK.js +982 -0
- package/dist/mcp-chunks/{chunk-SCOMDV54.js → chunk-TUQGOYK6.js} +1 -1
- package/dist/mcp-chunks/{chunk-YIRGLKDA.js → chunk-TYYSBILI.js} +46 -27
- package/dist/mcp-chunks/{chunk-FS5JIKT6.js → chunk-UHO6KIUJ.js} +6 -6
- package/dist/mcp-chunks/{chunk-RSTKSBVF.js → chunk-UIPG6W7N.js} +2 -2
- package/dist/mcp-chunks/{chunk-IME7DGLJ.js → chunk-UKM35J67.js} +2 -2
- package/dist/mcp-chunks/{chunk-FX5NYWBH.js → chunk-UYJZJXC2.js} +3 -3
- package/dist/mcp-chunks/{chunk-HCOKLSOB.js → chunk-VJIAHZZG.js} +4 -4
- package/dist/mcp-chunks/{chunk-IYWYVHHD.js → chunk-WHJUDBPR.js} +1 -1
- package/dist/mcp-chunks/{chunk-53NRFMB3.js → chunk-XNHGMWN2.js} +46 -25
- package/dist/mcp-chunks/{cli-XU26MUCN.js → cli-JI7MEAAX.js} +111 -79
- package/dist/mcp-chunks/client-QU7ABSNB.js +30 -0
- package/dist/mcp-chunks/{config-command-UQMMIK2U.js → config-command-GRZLKD3R.js} +36 -29
- package/dist/mcp-chunks/daemon-command-3266CYHO.js +30 -0
- package/dist/mcp-chunks/{dist-DM2RXZMU.js → dist-USMCQ22V.js} +105 -47
- package/dist/mcp-chunks/{emit-ts-command-KAOL6DAN.js → emit-ts-command-7VLESP7H.js} +20 -19
- package/dist/mcp-chunks/{generate-cli-runner-AK6XNRTK.js → generate-cli-runner-SSW2B72K.js} +54 -51
- package/dist/mcp-chunks/generated-daemon-runtime-7CFVWLC7.js +30 -0
- package/dist/mcp-chunks/{inspect-cli-command-6FVJO7H2.js → inspect-cli-command-NCGCMOIS.js} +9 -10
- package/dist/mcp-chunks/{launch-EIT73HX4.js → launch-NBONSPNK.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-QH4TUI3K.js → lifecycle-CXAKUCN4.js} +1 -1
- package/dist/mcp-chunks/{list-command-UOB2XZK7.js → list-command-5T4UF4PF.js} +61 -75
- package/dist/mcp-chunks/{output-utils-6YXH23T7.js → output-utils-YFTWQZ5V.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-ZB6RFAXR.js → prompt-CH6TK0bC-6DI4RA4E.js} +1 -1
- package/dist/mcp-chunks/{record-command-FO5TTERC.js → record-command-TE5O7WBL.js} +5 -5
- package/dist/mcp-chunks/{replay-command-SCBPCGQ7.js → replay-command-QCUL5ASR.js} +6 -6
- package/dist/mcp-chunks/{resource-command-S2J7XEMV.js → resource-command-XMGF7EAK.js} +9 -10
- package/dist/mcp-chunks/{result-utils-OME6HGS6.js → result-utils-HKB42M7Y.js} +3 -4
- package/dist/mcp-chunks/runtime-3X2XVS6X.js +37 -0
- package/dist/mcp-chunks/runtime-wrapper-MI3HF45J.js +10 -0
- package/dist/mcp-chunks/{serve-command-DDBZZSG6.js → serve-command-5HV3ZE25.js} +30 -34
- package/dist/mcp-chunks/{timeouts-HNGNKDQN.js → timeouts-YBFBTLV2.js} +8 -5
- package/dist/mcp-chunks/{vault-command-TJZYS3YI.js → vault-command-FC2PD5U6.js} +4 -6
- package/dist/mcp-chunks/webapi-IFUPO72B.js +2481 -0
- package/dist/mcp-daemon.js +35 -33
- package/dist/mcp-run-worker.js +28 -32
- package/dist/pi-extension.d.ts +1 -1
- package/dist/pi-extension.js +8 -8
- 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.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/channels.md +1 -1
- package/docs/pi-extension.md +1 -1
- package/docs/recipe-format.md +8 -4
- package/docs/recipe-templates.md +46 -0
- package/docs/slack.md +1 -1
- package/package.json +14 -14
- 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-4DWPBLQP.js +0 -15
- package/dist/mcp-chunks/chunk-3Z7MFS6K.js +0 -86
- package/dist/mcp-chunks/chunk-AD3FQ73K.js +0 -39
- package/dist/mcp-chunks/chunk-DTZHEVKC.js +0 -12
- package/dist/mcp-chunks/chunk-H3JCYHGS.js +0 -1018
- package/dist/mcp-chunks/chunk-HN7WPMCA.js +0 -18904
- package/dist/mcp-chunks/chunk-I5GI2A2D.js +0 -92
- package/dist/mcp-chunks/chunk-IRTJXFWA.js +0 -28
- package/dist/mcp-chunks/chunk-NTHUNCXJ.js +0 -526
- package/dist/mcp-chunks/chunk-OD3MSMXY.js +0 -15
- package/dist/mcp-chunks/chunk-PZ323CXI.js +0 -17394
- package/dist/mcp-chunks/client-OT34CKRH.js +0 -21
- package/dist/mcp-chunks/daemon-command-YCIOZGPZ.js +0 -35
- package/dist/mcp-chunks/runtime-QIPMLIJI.js +0 -39
- package/dist/mcp-chunks/runtime-wrapper-X4YFKMJI.js +0 -16
- 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,26 +7,31 @@ import {
|
|
|
7
7
|
reconcilePersistedTokens,
|
|
8
8
|
withRefreshLock,
|
|
9
9
|
withRefreshRequestTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IF6LRV3J.js";
|
|
11
11
|
import {
|
|
12
|
+
runtimeEnvironment,
|
|
12
13
|
sameOAuthTokenGeneration
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XNHGMWN2.js";
|
|
14
15
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
isFileLockTimeoutError
|
|
17
|
+
} from "./chunk-H7ARMBV7.js";
|
|
18
|
+
import {
|
|
19
|
+
analyzeConnectionError
|
|
20
|
+
} from "./chunk-O4JIUOWF.js";
|
|
17
21
|
import {
|
|
18
22
|
IssuerMismatchError,
|
|
19
23
|
auth,
|
|
20
24
|
validateClientMetadataUrl
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
suppressBrowserLaunchFromEnv
|
|
24
|
-
} from "./chunk-DTZHEVKC.js";
|
|
25
|
-
import {
|
|
26
|
-
isFileLockTimeoutError
|
|
27
|
-
} from "./chunk-ITR7FQM3.js";
|
|
25
|
+
} from "./chunk-S5F3HEZZ.js";
|
|
28
26
|
|
|
29
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
27
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-browser-suppression.js
|
|
28
|
+
var TRUE_VALUES = /* @__PURE__ */ new Set(["1", "true", "yes"]);
|
|
29
|
+
function suppressBrowserLaunchFromEnv(env = runtimeEnvironment()) {
|
|
30
|
+
const raw = env.MCPORTER_OAUTH_NO_BROWSER;
|
|
31
|
+
return raw !== void 0 && TRUE_VALUES.has(raw.trim().toLowerCase());
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth.js
|
|
30
35
|
import { spawn } from "node:child_process";
|
|
31
36
|
import { createHash, randomUUID } from "node:crypto";
|
|
32
37
|
import http from "node:http";
|
|
@@ -61,20 +66,13 @@ var OAuthRedirectUriMismatchError = class extends Error {
|
|
|
61
66
|
this.name = "OAuthRedirectUriMismatchError";
|
|
62
67
|
}
|
|
63
68
|
};
|
|
64
|
-
function createDeferred() {
|
|
65
|
-
let resolve;
|
|
66
|
-
let reject;
|
|
67
|
-
const promise = new Promise((res, rej) => {
|
|
68
|
-
resolve = res;
|
|
69
|
-
reject = rej;
|
|
70
|
-
});
|
|
71
|
-
return { promise, resolve, reject };
|
|
72
|
-
}
|
|
73
69
|
function openExternal(url, platform = process.platform, launch = spawn) {
|
|
74
70
|
const stdio = "ignore";
|
|
75
71
|
try {
|
|
76
72
|
if (platform === "darwin") {
|
|
77
73
|
const child = launch("open", [url], { stdio, detached: true });
|
|
74
|
+
child.on("error", () => {
|
|
75
|
+
});
|
|
78
76
|
child.unref();
|
|
79
77
|
} else if (platform === "win32") {
|
|
80
78
|
const child = launch("rundll32", ["url.dll,FileProtocolHandler", url], {
|
|
@@ -82,6 +80,8 @@ function openExternal(url, platform = process.platform, launch = spawn) {
|
|
|
82
80
|
detached: true,
|
|
83
81
|
windowsHide: true
|
|
84
82
|
});
|
|
83
|
+
child.on("error", () => {
|
|
84
|
+
});
|
|
85
85
|
child.unref();
|
|
86
86
|
} else {
|
|
87
87
|
try {
|
|
@@ -455,10 +455,7 @@ var PersistentOAuthClientProvider = class _PersistentOAuthClientProvider {
|
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
ensureAuthorizationDeferred() {
|
|
458
|
-
|
|
459
|
-
this.authorizationDeferred = createDeferred();
|
|
460
|
-
}
|
|
461
|
-
return this.authorizationDeferred;
|
|
458
|
+
return this.authorizationDeferred ??= Promise.withResolvers();
|
|
462
459
|
}
|
|
463
460
|
hasActiveInteractiveAuthorization() {
|
|
464
461
|
if (!this.interactiveAuthorization) {
|
|
@@ -537,7 +534,26 @@ var __oauthInternals = {
|
|
|
537
534
|
openExternal
|
|
538
535
|
};
|
|
539
536
|
|
|
540
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
537
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/runtime-oauth-support.js
|
|
538
|
+
function maybeEnableOAuth(definition, logger) {
|
|
539
|
+
if (definition.auth === "oauth" || definition.auth === "refreshable_bearer") {
|
|
540
|
+
return void 0;
|
|
541
|
+
}
|
|
542
|
+
if (definition.command.kind !== "http") {
|
|
543
|
+
return void 0;
|
|
544
|
+
}
|
|
545
|
+
logger.info(`Detected OAuth requirement for '${definition.name}'. Launching browser flow...`);
|
|
546
|
+
return {
|
|
547
|
+
...definition,
|
|
548
|
+
auth: "oauth"
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
function isUnauthorizedError(error) {
|
|
552
|
+
const issue = analyzeConnectionError(error);
|
|
553
|
+
return issue.kind === "auth";
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/runtime/oauth.js
|
|
541
557
|
var DEFAULT_OAUTH_CODE_TIMEOUT_MS = 3e5;
|
|
542
558
|
var OAUTH_FLOW_ERROR = /* @__PURE__ */ Symbol("oauth-flow-error");
|
|
543
559
|
var POST_AUTH_CONNECT_ERROR = /* @__PURE__ */ Symbol("post-auth-connect-error");
|
|
@@ -810,11 +826,14 @@ function parseOAuthTimeout(raw) {
|
|
|
810
826
|
return parsed;
|
|
811
827
|
}
|
|
812
828
|
function resolveOAuthTimeoutFromEnv() {
|
|
813
|
-
return parseOAuthTimeout(
|
|
829
|
+
return parseOAuthTimeout(runtimeEnvironment().MCPORTER_OAUTH_TIMEOUT_MS ?? runtimeEnvironment().MCPORTER_OAUTH_TIMEOUT);
|
|
814
830
|
}
|
|
815
831
|
|
|
816
832
|
export {
|
|
833
|
+
suppressBrowserLaunchFromEnv,
|
|
817
834
|
createOAuthSession,
|
|
835
|
+
maybeEnableOAuth,
|
|
836
|
+
isUnauthorizedError,
|
|
818
837
|
OAuthTimeoutError,
|
|
819
838
|
isOAuthFlowError,
|
|
820
839
|
isPostAuthConnectError,
|
|
@@ -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 = {
|
|
@@ -25,11 +25,11 @@ function mcporterDir(kind) {
|
|
|
25
25
|
}
|
|
26
26
|
return legacyMcporterDir();
|
|
27
27
|
}
|
|
28
|
-
function mcporterConfigCandidates() {
|
|
29
|
-
const
|
|
28
|
+
function mcporterConfigCandidates(context) {
|
|
29
|
+
const legacy = context ? path.join(context.home, ".mcporter") : legacyMcporterDir();
|
|
30
|
+
const base = context ? context.configHome ? path.join(context.configHome, "mcporter") : legacy : mcporterDir("config");
|
|
30
31
|
const candidates = [path.join(base, "mcporter.json"), path.join(base, "mcporter.jsonc")];
|
|
31
|
-
if (base !==
|
|
32
|
-
const legacy = legacyMcporterDir();
|
|
32
|
+
if (base !== legacy) {
|
|
33
33
|
candidates.push(path.join(legacy, "mcporter.json"), path.join(legacy, "mcporter.jsonc"));
|
|
34
34
|
}
|
|
35
35
|
return candidates;
|
|
@@ -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,12 +1,12 @@
|
|
|
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";
|
|
@@ -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,17 +4,13 @@ import {
|
|
|
4
4
|
withFileLock,
|
|
5
5
|
writeJsonFile,
|
|
6
6
|
writeTextFileAtomic
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
legacyMcporterDir,
|
|
10
|
-
mcporterDir
|
|
11
|
-
} from "./chunk-FS5JIKT6.js";
|
|
7
|
+
} from "./chunk-H7ARMBV7.js";
|
|
12
8
|
|
|
13
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
9
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-vault.js
|
|
14
10
|
import crypto from "node:crypto";
|
|
15
|
-
import
|
|
11
|
+
import path2 from "node:path";
|
|
16
12
|
|
|
17
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
13
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-credential-validation.js
|
|
18
14
|
function isRecord(value) {
|
|
19
15
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
20
16
|
}
|
|
@@ -35,7 +31,7 @@ function isStoredOAuthClientInformation(value) {
|
|
|
35
31
|
return isOptionalString(value, "issuer");
|
|
36
32
|
}
|
|
37
33
|
|
|
38
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
34
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-token-generation.js
|
|
39
35
|
import { randomUUID } from "node:crypto";
|
|
40
36
|
import { isDeepStrictEqual } from "node:util";
|
|
41
37
|
var TOKEN_GENERATION_FIELD = "__mcporter_generation";
|
|
@@ -115,9 +111,32 @@ function sameOAuthClientValue(left, right) {
|
|
|
115
111
|
return isDeepStrictEqual(withoutClientGeneration(left), withoutClientGeneration(right));
|
|
116
112
|
}
|
|
117
113
|
|
|
118
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
114
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/runtime/environment.js
|
|
115
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
116
|
+
import os from "node:os";
|
|
117
|
+
import path from "node:path";
|
|
118
|
+
var connectionEnvironment = new AsyncLocalStorage();
|
|
119
|
+
function runtimeEnvironment() {
|
|
120
|
+
return connectionEnvironment.getStore() ?? process.env;
|
|
121
|
+
}
|
|
122
|
+
function withRuntimeEnvironment(env, action) {
|
|
123
|
+
return connectionEnvironment.run(env, action);
|
|
124
|
+
}
|
|
125
|
+
function runtimeHome() {
|
|
126
|
+
if (!connectionEnvironment.getStore())
|
|
127
|
+
return os.homedir();
|
|
128
|
+
const env = runtimeEnvironment();
|
|
129
|
+
return env.HOME ?? env.USERPROFILE ?? os.userInfo().homedir;
|
|
130
|
+
}
|
|
131
|
+
function runtimeStateDir(kind) {
|
|
132
|
+
const env = runtimeEnvironment();
|
|
133
|
+
const root = env[kind === "data" ? "XDG_DATA_HOME" : "XDG_CACHE_HOME"];
|
|
134
|
+
return root && path.isAbsolute(root) ? path.join(root, "mcporter") : path.join(runtimeHome(), ".mcporter");
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-vault.js
|
|
119
138
|
function getOAuthVaultPath() {
|
|
120
|
-
return
|
|
139
|
+
return path2.join(runtimeStateDir("data"), "credentials.json");
|
|
121
140
|
}
|
|
122
141
|
async function readVaultState() {
|
|
123
142
|
try {
|
|
@@ -412,10 +431,9 @@ async function clearVaultEntry(definition, scope) {
|
|
|
412
431
|
});
|
|
413
432
|
}
|
|
414
433
|
|
|
415
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
434
|
+
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-persistence-stores.js
|
|
416
435
|
import fs from "node:fs/promises";
|
|
417
|
-
import
|
|
418
|
-
import path2 from "node:path";
|
|
436
|
+
import path3 from "node:path";
|
|
419
437
|
function withStoredExpiry(tokens) {
|
|
420
438
|
const stored = tokens;
|
|
421
439
|
if (typeof stored.expires_at === "number" || typeof stored.expiresAt === "number") {
|
|
@@ -450,14 +468,14 @@ var DirectoryPersistence = class {
|
|
|
450
468
|
this.logger = logger;
|
|
451
469
|
this.serverUrl = serverUrl;
|
|
452
470
|
this.skipUrlMarkerWhenMissing = skipUrlMarkerWhenMissing;
|
|
453
|
-
this.tokenPath =
|
|
454
|
-
this.clientInfoPath =
|
|
455
|
-
this.codeVerifierPath =
|
|
456
|
-
this.statePath =
|
|
457
|
-
this.serverUrlPath =
|
|
458
|
-
this.discoveryStatePath =
|
|
459
|
-
this.authorizationServerUrlPath =
|
|
460
|
-
this.resourceUrlPath =
|
|
471
|
+
this.tokenPath = path3.join(root, "tokens.json");
|
|
472
|
+
this.clientInfoPath = path3.join(root, "client.json");
|
|
473
|
+
this.codeVerifierPath = path3.join(root, "code_verifier.txt");
|
|
474
|
+
this.statePath = path3.join(root, "state.txt");
|
|
475
|
+
this.serverUrlPath = path3.join(root, "server_url.txt");
|
|
476
|
+
this.discoveryStatePath = path3.join(root, "discovery.json");
|
|
477
|
+
this.authorizationServerUrlPath = path3.join(root, "authorization_server_url.txt");
|
|
478
|
+
this.resourceUrlPath = path3.join(root, "resource_url.txt");
|
|
461
479
|
}
|
|
462
480
|
describe() {
|
|
463
481
|
return this.root;
|
|
@@ -925,7 +943,7 @@ async function createOAuthPersistenceStores(definition, logger) {
|
|
|
925
943
|
if (definition.tokenCacheDir) {
|
|
926
944
|
stores.unshift(new DirectoryPersistence(definition.tokenCacheDir, logger, serverUrl));
|
|
927
945
|
}
|
|
928
|
-
const legacyDir =
|
|
946
|
+
const legacyDir = path3.join(path3.join(runtimeHome(), ".mcporter"), definition.name);
|
|
929
947
|
if (!definition.tokenCacheDir) {
|
|
930
948
|
const legacy = new DirectoryPersistence(legacyDir, logger, serverUrl, true);
|
|
931
949
|
const snapshot = await legacy.readSnapshot();
|
|
@@ -957,14 +975,14 @@ async function createOAuthPersistenceStores(definition, logger) {
|
|
|
957
975
|
return stores.length === 1 ? vault : new CompositePersistence(stores);
|
|
958
976
|
}
|
|
959
977
|
async function clearLegacyOAuthArtifacts(definition, logger, scope) {
|
|
960
|
-
const legacyDir =
|
|
978
|
+
const legacyDir = path3.join(path3.join(runtimeHome(), ".mcporter"), definition.name);
|
|
961
979
|
if (!definition.tokenCacheDir || legacyDir !== definition.tokenCacheDir) {
|
|
962
980
|
const legacy = new DirectoryPersistence(legacyDir, logger);
|
|
963
981
|
await legacy.clear(scope);
|
|
964
982
|
}
|
|
965
983
|
const legacyFiles = [];
|
|
966
984
|
if (definition.name.toLowerCase() === "gmail") {
|
|
967
|
-
legacyFiles.push(
|
|
985
|
+
legacyFiles.push(path3.join(runtimeHome(), ".gmail-mcp", "credentials.json"));
|
|
968
986
|
}
|
|
969
987
|
await Promise.all(legacyFiles.map(async (file) => {
|
|
970
988
|
try {
|
|
@@ -979,6 +997,9 @@ async function clearLegacyOAuthArtifacts(definition, logger, scope) {
|
|
|
979
997
|
}
|
|
980
998
|
|
|
981
999
|
export {
|
|
1000
|
+
runtimeEnvironment,
|
|
1001
|
+
withRuntimeEnvironment,
|
|
1002
|
+
runtimeStateDir,
|
|
982
1003
|
sameOAuthTokenGeneration,
|
|
983
1004
|
getOAuthVaultPath,
|
|
984
1005
|
vaultCredentialKeys,
|