@hasna/connectors 1.4.0 → 1.4.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/bin/index.js +1561 -1277
- package/bin/mcp.js +534 -213
- package/bin/serve.js +1218 -258
- package/connectors/adobe/package.json +1 -1
- package/connectors/aitableai/package.json +1 -1
- package/connectors/alchemy/package.json +1 -1
- package/connectors/alerty/package.json +1 -1
- package/connectors/alienvault/package.json +1 -1
- package/connectors/alphamoon/package.json +1 -1
- package/connectors/alttextai/package.json +1 -1
- package/connectors/amadeus/package.json +1 -1
- package/connectors/amadeus/src/api/client.ts +6 -6
- package/connectors/amadeus/src/cli/index.ts +6 -6
- package/connectors/amadeus/src/utils/output.ts +5 -5
- package/connectors/amazon/package.json +1 -1
- package/connectors/amilia/package.json +1 -1
- package/connectors/amqpsender/package.json +1 -1
- package/connectors/announcekit/package.json +1 -1
- package/connectors/anthropic/.env.example +1 -1
- package/connectors/anyscale/package.json +1 -1
- package/connectors/apiary/package.json +1 -1
- package/connectors/apiflash/package.json +1 -1
- package/connectors/apitemplateio/package.json +1 -1
- package/connectors/apptivegrid/package.json +1 -1
- package/connectors/assemblyai/package.json +1 -1
- package/connectors/autom/package.json +1 -1
- package/connectors/automizy/package.json +1 -1
- package/connectors/autopilot/package.json +1 -1
- package/connectors/awscognito/package.json +1 -1
- package/connectors/bamboohr/package.json +1 -1
- package/connectors/bannerbear/package.json +1 -1
- package/connectors/baseten/package.json +1 -1
- package/connectors/box/package.json +1 -1
- package/connectors/brevo/package.json +1 -1
- package/connectors/calendly/package.json +1 -1
- package/connectors/cerebras/package.json +1 -1
- package/connectors/chargebee/package.json +1 -1
- package/connectors/clearbit/package.json +1 -1
- package/connectors/cloudflare-workers/package.json +1 -1
- package/connectors/coda/package.json +1 -1
- package/connectors/coingecko/package.json +1 -1
- package/connectors/convertkit/package.json +1 -1
- package/connectors/customerio/package.json +1 -1
- package/connectors/databricks/package.json +1 -1
- package/connectors/datadog/package.json +1 -1
- package/connectors/datasoap/README.md +2 -2
- package/connectors/datasoap/package.json +1 -1
- package/connectors/datumbox/README.md +2 -2
- package/connectors/datumbox/package.json +1 -1
- package/connectors/dayschedule/README.md +2 -2
- package/connectors/dayschedule/package.json +1 -1
- package/connectors/deepgram/package.json +1 -1
- package/connectors/deepinfra/README.md +2 -2
- package/connectors/deepinfra/package.json +1 -1
- package/connectors/deepl/README.md +2 -2
- package/connectors/deepl/package.json +1 -1
- package/connectors/deepseek/package.json +1 -1
- package/connectors/demio/README.md +2 -2
- package/connectors/demio/package.json +1 -1
- package/connectors/descript/README.md +2 -2
- package/connectors/descript/package.json +1 -1
- package/connectors/detrack/README.md +2 -2
- package/connectors/detrack/package.json +1 -1
- package/connectors/devcycle/README.md +2 -2
- package/connectors/devcycle/package.json +1 -1
- package/connectors/dhl/README.md +2 -2
- package/connectors/dhl/package.json +1 -1
- package/connectors/docusign/package.json +1 -1
- package/connectors/dropbox/package.json +1 -1
- package/connectors/fal/package.json +1 -1
- package/connectors/fathom/package.json +1 -1
- package/connectors/fireworks/package.json +1 -1
- package/connectors/gitlab/package.json +1 -1
- package/connectors/googlechat/README.md +1 -2
- package/connectors/googledrive/src/api/client.ts +5 -5
- package/connectors/googledrive/src/api/files.ts +11 -11
- package/connectors/googledrive/src/api/folders.ts +2 -2
- package/connectors/googledrive/src/cli/index.ts +4 -4
- package/connectors/googledrive/src/utils/output.ts +3 -3
- package/connectors/googleforms/README.md +1 -2
- package/connectors/googleperspective/README.md +1 -2
- package/connectors/googlephotos/src/cli/index.ts +1 -1
- package/connectors/grafana/package.json +1 -1
- package/connectors/growbots/README.md +2 -2
- package/connectors/growbots/package.json +1 -1
- package/connectors/gumroad/package.json +1 -1
- package/connectors/gupshup/README.md +2 -2
- package/connectors/gupshup/package.json +1 -1
- package/connectors/guru/README.md +2 -2
- package/connectors/guru/package.json +1 -1
- package/connectors/hackernews/README.md +2 -2
- package/connectors/hackernews/package.json +1 -1
- package/connectors/halopsa/README.md +2 -2
- package/connectors/halopsa/package.json +1 -1
- package/connectors/handwrytten/README.md +2 -2
- package/connectors/handwrytten/package.json +1 -1
- package/connectors/hansei/README.md +2 -2
- package/connectors/hansei/package.json +1 -1
- package/connectors/harrypotterapi/README.md +2 -2
- package/connectors/harrypotterapi/package.json +1 -1
- package/connectors/harvest/README.md +2 -2
- package/connectors/harvest/package.json +1 -1
- package/connectors/headlesstesting/README.md +2 -2
- package/connectors/headlesstesting/package.json +1 -1
- package/connectors/homeassistant/package.json +1 -1
- package/connectors/klaviyo/package.json +1 -1
- package/connectors/lemonsqueezy/package.json +1 -1
- package/connectors/lighthouse/src/api/index.ts +1 -1
- package/connectors/linkedin/package.json +1 -1
- package/connectors/linkish/README.md +2 -2
- package/connectors/linkish/package.json +1 -1
- package/connectors/liveagent/README.md +2 -2
- package/connectors/liveagent/package.json +1 -1
- package/connectors/localazy/README.md +2 -2
- package/connectors/localazy/package.json +1 -1
- package/connectors/loginradius/README.md +2 -2
- package/connectors/loginradius/package.json +1 -1
- package/connectors/lokalise/README.md +2 -2
- package/connectors/lokalise/package.json +1 -1
- package/connectors/lonescale/README.md +2 -2
- package/connectors/lonescale/package.json +1 -1
- package/connectors/lucidchart/README.md +2 -2
- package/connectors/lucidchart/package.json +1 -1
- package/connectors/luma/package.json +1 -1
- package/connectors/magento2/README.md +2 -2
- package/connectors/magento2/package.json +1 -1
- package/connectors/mailcheck/README.md +2 -2
- package/connectors/mailcheck/package.json +1 -1
- package/connectors/mailchimp/package.json +1 -1
- package/connectors/mailerlite/README.md +2 -2
- package/connectors/mailerlite/package.json +1 -1
- package/connectors/mailersend/README.md +2 -2
- package/connectors/mailersend/package.json +1 -1
- package/connectors/mailify/README.md +2 -2
- package/connectors/mailify/package.json +1 -1
- package/connectors/mailjet/README.md +2 -2
- package/connectors/mailjet/package.json +1 -1
- package/connectors/mailmodo/README.md +2 -2
- package/connectors/mailmodo/package.json +1 -1
- package/connectors/malcore/README.md +2 -2
- package/connectors/malcore/package.json +1 -1
- package/connectors/mandrill/README.md +2 -2
- package/connectors/mandrill/package.json +1 -1
- package/connectors/marcomrobot/README.md +2 -2
- package/connectors/marcomrobot/package.json +1 -1
- package/connectors/marketingmasterio/README.md +2 -2
- package/connectors/marketingmasterio/package.json +1 -1
- package/connectors/marketplacer/README.md +2 -2
- package/connectors/marketplacer/package.json +1 -1
- package/connectors/marketstack/README.md +2 -2
- package/connectors/marketstack/package.json +1 -1
- package/connectors/matrix/README.md +1 -1
- package/connectors/matrix/package.json +1 -1
- package/connectors/mattermost/README.md +1 -1
- package/connectors/mattermost/package.json +1 -1
- package/connectors/mautic/README.md +1 -1
- package/connectors/mautic/package.json +1 -1
- package/connectors/mav/README.md +1 -1
- package/connectors/mav/package.json +1 -1
- package/connectors/maverick/README.md +1 -1
- package/connectors/maverick/package.json +1 -1
- package/connectors/mem/README.md +1 -1
- package/connectors/mem/package.json +1 -1
- package/connectors/messagebird/package.json +1 -1
- package/connectors/metabase/README.md +1 -1
- package/connectors/metabase/package.json +1 -1
- package/connectors/miro/package.json +1 -1
- package/connectors/mocean/package.json +1 -1
- package/connectors/modal/package.json +1 -1
- package/connectors/monday/package.json +1 -1
- package/connectors/monicacrm/package.json +1 -1
- package/connectors/moonclerk/package.json +1 -1
- package/connectors/moonmail/package.json +1 -1
- package/connectors/morph/package.json +1 -1
- package/connectors/mqtt/package.json +1 -1
- package/connectors/msg91/package.json +1 -1
- package/connectors/mubert/package.json +1 -1
- package/connectors/murf/package.json +1 -1
- package/connectors/mux/package.json +1 -1
- package/connectors/netlify/package.json +1 -1
- package/connectors/okta/package.json +1 -1
- package/connectors/paddle/package.json +1 -1
- package/connectors/perplexity/package.json +1 -1
- package/connectors/pinterest/package.json +1 -1
- package/connectors/pipedrive/package.json +1 -1
- package/connectors/plaid/package.json +1 -1
- package/connectors/quickchart/README.md +2 -2
- package/connectors/quintadb/README.md +2 -2
- package/connectors/rabbitmq/README.md +2 -2
- package/connectors/radar/README.md +2 -2
- package/connectors/raindrop/README.md +2 -2
- package/connectors/rapid7insightvm/README.md +2 -2
- package/connectors/raventools/README.md +2 -2
- package/connectors/rawgvideogamesdatabase/README.md +2 -2
- package/connectors/rdstationcrm/README.md +2 -2
- package/connectors/readai/README.md +2 -2
- package/connectors/roboflow/package.json +1 -1
- package/connectors/runway/package.json +1 -1
- package/connectors/sendgrid/package.json +1 -1
- package/connectors/shuffler/package.json +1 -1
- package/connectors/sierrainteractive/package.json +1 -1
- package/connectors/sifter/package.json +1 -1
- package/connectors/signaturit/package.json +1 -1
- package/connectors/signl4/package.json +1 -1
- package/connectors/simpleem/package.json +1 -1
- package/connectors/simplehash/package.json +1 -1
- package/connectors/simplekpi/package.json +1 -1
- package/connectors/simplelocalize/package.json +1 -1
- package/connectors/simplero/package.json +1 -1
- package/connectors/smartrecruiters/package.json +1 -1
- package/connectors/smtp2go/package.json +1 -1
- package/connectors/snowflake/package.json +1 -1
- package/connectors/sparkpost/package.json +1 -1
- package/connectors/split-io/package.json +1 -1
- package/connectors/split-io/src/api/client.test.ts +20 -0
- package/connectors/split-io/src/cli/index.ts +9 -9
- package/connectors/sprinklr/package.json +1 -1
- package/connectors/sprout-social/package.json +1 -1
- package/connectors/square/package.json +1 -1
- package/connectors/sse-trigger/package.json +1 -1
- package/connectors/stability-api-platform/AGENTS.md +1 -1
- package/connectors/standout/package.json +1 -1
- package/connectors/statuspage/package.json +1 -1
- package/connectors/stoplight/package.json +1 -1
- package/connectors/stoplight-api-platform/package.json +1 -1
- package/connectors/strand-ai/CLAUDE.md +1 -1
- package/connectors/stripe-financial-connections/package.json +1 -1
- package/connectors/stripe-terminal/package.json +1 -1
- package/connectors/stytch/package.json +1 -1
- package/connectors/sumo-logic/package.json +1 -1
- package/connectors/supabase/package.json +1 -1
- package/connectors/supabase-api-platform/package.json +1 -1
- package/connectors/sysdig/package.json +1 -1
- package/connectors/tableau/package.json +1 -1
- package/connectors/takecareos/README.md +2 -2
- package/connectors/takecareos/package.json +1 -1
- package/connectors/telegram/src/api/bot.ts +20 -0
- package/connectors/telegram/src/api/client.ts +32 -0
- package/connectors/telegram/src/api/files.test.ts +103 -0
- package/connectors/telegram/src/api/index.ts +1 -0
- package/connectors/telegram/src/api/messages.test.ts +8 -2
- package/connectors/telegram/src/cli/files.test.ts +40 -0
- package/connectors/telegram/src/cli/files.ts +38 -0
- package/connectors/telegram/src/cli/index.ts +27 -30
- package/connectors/telegram/src/cli/updates.test.ts +176 -0
- package/connectors/telegram/src/cli/updates.ts +95 -0
- package/connectors/telegram/src/index.ts +1 -0
- package/connectors/telegram/src/types/index.ts +13 -0
- package/connectors/terraform-cloud/package.json +1 -1
- package/connectors/textit/package.json +1 -1
- package/connectors/thousandeyes/package.json +1 -1
- package/connectors/ticket-tailor/package.json +1 -1
- package/connectors/ticketsource/package.json +1 -1
- package/connectors/tiktokads/README.md +1 -1
- package/connectors/time-saved/package.json +1 -1
- package/connectors/tipalti/package.json +1 -1
- package/connectors/tomtom/AGENTS.md +1 -1
- package/connectors/totp/package.json +1 -1
- package/connectors/traverse/package.json +1 -1
- package/connectors/travo-ai/package.json +1 -1
- package/connectors/trigger-dev/package.json +1 -1
- package/connectors/trigger-dev-api-platform/package.json +1 -1
- package/connectors/turbot-pipes/package.json +1 -1
- package/connectors/turso/package.json +1 -1
- package/connectors/turso-api-platform/package.json +1 -1
- package/connectors/tyk-api-platform/package.json +1 -1
- package/connectors/umami/package.json +1 -1
- package/connectors/unifold/package.json +1 -1
- package/connectors/unione/package.json +1 -1
- package/connectors/uniprot/README.md +1 -1
- package/connectors/uniswap-api/package.json +1 -1
- package/connectors/ups/package.json +1 -1
- package/connectors/usereframe/package.json +1 -1
- package/connectors/vanta/package.json +1 -1
- package/connectors/vela/package.json +1 -1
- package/connectors/velum-labs/package.json +1 -1
- package/connectors/vercel/package.json +1 -1
- package/connectors/vercel-blob/package.json +1 -1
- package/connectors/vercel-blob-platform/package.json +1 -1
- package/connectors/vercel-edge-config/package.json +1 -1
- package/connectors/vercel-edge-config-platform/package.json +1 -1
- package/connectors/vertex-ai/package.json +1 -1
- package/connectors/vidyard/package.json +1 -1
- package/connectors/vonage/package.json +1 -1
- package/connectors/voygr/package.json +1 -1
- package/connectors/wait/package.json +1 -1
- package/connectors/walmart-marketplace/package.json +1 -1
- package/connectors/wato/package.json +1 -1
- package/connectors/wave-accounting/package.json +1 -1
- package/connectors/wayco/package.json +1 -1
- package/connectors/webpagetest/package.json +1 -1
- package/connectors/weezevent/package.json +1 -1
- package/connectors/wikipedia/src/api/client.ts +1 -1
- package/connectors/wildcard/package.json +1 -1
- package/connectors/windmill/package.json +1 -1
- package/connectors/wise/package.json +1 -1
- package/connectors/withai/package.json +1 -1
- package/connectors/wiz/CLAUDE.md +1 -1
- package/connectors/wiz/package.json +1 -1
- package/connectors/wordfence/package.json +1 -1
- package/connectors/wordfence-api-platform/package.json +1 -1
- package/connectors/workos/package.json +1 -1
- package/connectors/write-binary-file/package.json +1 -1
- package/connectors/xai/.env.example +1 -1
- package/connectors/xai-api-platform/src/api/client.test.ts +1 -1
- package/connectors/xai-api-platform/src/cli/index.ts +1 -1
- package/connectors/xai-api-platform/src/utils/config.ts +1 -1
- package/connectors/xai-grok/.env.example +1 -1
- package/connectors/xai-grok/src/api/client.test.ts +3 -3
- package/connectors/xai-grok/src/cli/index.ts +1 -1
- package/connectors/xai-grok/src/utils/config.ts +1 -1
- package/connectors/ynab/package.json +1 -1
- package/connectors/you-com/README.md +2 -2
- package/connectors/you-com/package.json +1 -1
- package/connectors/yousearch/README.md +1 -1
- package/connectors/yousign/package.json +1 -1
- package/connectors/zendesk/.env.example +4 -4
- package/connectors/zendesk/CLAUDE.md +2 -4
- package/connectors/zendesk/Makefile +21 -6
- package/connectors/zendesk/README.md +6 -10
- package/connectors/zendesk/SCAFFOLD.md +8 -7
- package/connectors/zendesk/nginx-connector.conf +8 -8
- package/connectors/zendesk/nginx.conf +8 -8
- package/connectors/zendesk/src/cli/index.ts +19 -8
- package/connectors/zendesk/src/server/index.ts +1 -1
- package/connectors/zendesk/src/utils/config.test.ts +70 -0
- package/connectors/zendesk/src/utils/config.ts +12 -2
- package/connectors/zendesk/src/utils/remote-url.test.ts +72 -0
- package/connectors/zerosettle/package.json +1 -1
- package/connectors/zoho-bigin/CLAUDE.md +1 -1
- package/connectors/zoho-campaigns/package.json +1 -1
- package/connectors/zoho-sign/package.json +1 -1
- package/connectors/zoho-subscriptions/CLAUDE.md +1 -1
- package/connectors/zohoprojects/CLAUDE.md +1 -1
- package/connectors/zolvo/package.json +1 -1
- package/connectors/zoom-api/package.json +1 -1
- package/connectors/zymbly/README.md +2 -2
- package/connectors/zymbly/package.json +1 -1
- package/dashboard/dist/assets/index-8uoGZF7B.js +280 -0
- package/dashboard/dist/index.html +1 -1
- package/dist/db/locks.d.ts +1 -1
- package/dist/index.js +27 -17
- package/dist/lib/connector-resolver.d.ts +1 -1
- package/dist/lib/llm.d.ts +1 -1
- package/dist/lib/open-browser.d.ts +18 -0
- package/dist/lib/open-browser.test.d.ts +1 -0
- package/package.json +16 -6
- package/connectors/tiktok-events-api/.test-home/.bun/install/cache/@t@/b0fec00ef4c1a326.pile +0 -0
- package/dashboard/dist/assets/index-XPlN-9Xy.js +0 -280
- package/dist/cli/commands/sync.d.ts +0 -2
- package/dist/db/pg-migrations.d.ts +0 -6
package/bin/mcp.js
CHANGED
|
@@ -167,7 +167,7 @@ var init_registry = __esm(() => {
|
|
|
167
167
|
init_connector();
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
// node_modules/zod/v3/helpers/util.js
|
|
170
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
|
|
171
171
|
var util, objectUtil, ZodParsedType, getParsedType2 = (data) => {
|
|
172
172
|
const t = typeof data;
|
|
173
173
|
switch (t) {
|
|
@@ -298,7 +298,7 @@ var init_util = __esm(() => {
|
|
|
298
298
|
]);
|
|
299
299
|
});
|
|
300
300
|
|
|
301
|
-
// node_modules/zod/v3/ZodError.js
|
|
301
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
|
|
302
302
|
var ZodIssueCode, quotelessJson = (obj) => {
|
|
303
303
|
const json = JSON.stringify(obj, null, 2);
|
|
304
304
|
return json.replace(/"([^"]+)":/g, "$1:");
|
|
@@ -419,7 +419,7 @@ var init_ZodError = __esm(() => {
|
|
|
419
419
|
};
|
|
420
420
|
});
|
|
421
421
|
|
|
422
|
-
// node_modules/zod/v3/locales/en.js
|
|
422
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
|
|
423
423
|
var errorMap = (issue2, _ctx) => {
|
|
424
424
|
let message;
|
|
425
425
|
switch (issue2.code) {
|
|
@@ -526,7 +526,7 @@ var init_en = __esm(() => {
|
|
|
526
526
|
en_default2 = errorMap;
|
|
527
527
|
});
|
|
528
528
|
|
|
529
|
-
// node_modules/zod/v3/errors.js
|
|
529
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
|
|
530
530
|
function setErrorMap(map) {
|
|
531
531
|
overrideErrorMap = map;
|
|
532
532
|
}
|
|
@@ -539,7 +539,7 @@ var init_errors2 = __esm(() => {
|
|
|
539
539
|
overrideErrorMap = en_default2;
|
|
540
540
|
});
|
|
541
541
|
|
|
542
|
-
// node_modules/zod/v3/helpers/parseUtil.js
|
|
542
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
|
|
543
543
|
function addIssueToContext(ctx, issueData) {
|
|
544
544
|
const overrideMap = getErrorMap();
|
|
545
545
|
const issue2 = makeIssue({
|
|
@@ -644,10 +644,10 @@ var init_parseUtil = __esm(() => {
|
|
|
644
644
|
});
|
|
645
645
|
});
|
|
646
646
|
|
|
647
|
-
// node_modules/zod/v3/helpers/typeAliases.js
|
|
647
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js
|
|
648
648
|
var init_typeAliases = () => {};
|
|
649
649
|
|
|
650
|
-
// node_modules/zod/v3/helpers/errorUtil.js
|
|
650
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
|
|
651
651
|
var errorUtil;
|
|
652
652
|
var init_errorUtil = __esm(() => {
|
|
653
653
|
(function(errorUtil2) {
|
|
@@ -656,7 +656,7 @@ var init_errorUtil = __esm(() => {
|
|
|
656
656
|
})(errorUtil || (errorUtil = {}));
|
|
657
657
|
});
|
|
658
658
|
|
|
659
|
-
// node_modules/zod/v3/types.js
|
|
659
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
|
|
660
660
|
class ParseInputLazyPath {
|
|
661
661
|
constructor(parent, value, path, key) {
|
|
662
662
|
this._cachedPath = [];
|
|
@@ -4007,7 +4007,7 @@ var init_types = __esm(() => {
|
|
|
4007
4007
|
NEVER2 = INVALID;
|
|
4008
4008
|
});
|
|
4009
4009
|
|
|
4010
|
-
// node_modules/zod/v3/external.js
|
|
4010
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
|
|
4011
4011
|
var exports_external = {};
|
|
4012
4012
|
__export(exports_external, {
|
|
4013
4013
|
void: () => voidType,
|
|
@@ -4127,7 +4127,7 @@ var init_external = __esm(() => {
|
|
|
4127
4127
|
init_ZodError();
|
|
4128
4128
|
});
|
|
4129
4129
|
|
|
4130
|
-
// node_modules/zod/index.js
|
|
4130
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/index.js
|
|
4131
4131
|
var init_zod = __esm(() => {
|
|
4132
4132
|
init_external();
|
|
4133
4133
|
init_external();
|
|
@@ -5804,7 +5804,7 @@ var package_default;
|
|
|
5804
5804
|
var init_package = __esm(() => {
|
|
5805
5805
|
package_default = {
|
|
5806
5806
|
name: "@hasna/connectors",
|
|
5807
|
-
version: "1.4.
|
|
5807
|
+
version: "1.4.2",
|
|
5808
5808
|
description: "Open source connector library - Install API connectors with a single command",
|
|
5809
5809
|
type: "module",
|
|
5810
5810
|
bin: {
|
|
@@ -5817,7 +5817,15 @@ var init_package = __esm(() => {
|
|
|
5817
5817
|
"dist/",
|
|
5818
5818
|
"dashboard/dist/",
|
|
5819
5819
|
"connectors/",
|
|
5820
|
-
"README.md"
|
|
5820
|
+
"README.md",
|
|
5821
|
+
"!connectors/**/.test-home/**",
|
|
5822
|
+
"!connectors/**/node_modules/**",
|
|
5823
|
+
"!connectors/**/bun.lock",
|
|
5824
|
+
"!connectors/**/package-lock.json",
|
|
5825
|
+
"!connectors/**/yarn.lock",
|
|
5826
|
+
"!connectors/**/pnpm-lock.yaml",
|
|
5827
|
+
"!connectors/**/.env",
|
|
5828
|
+
"!connectors/**/.env.local"
|
|
5821
5829
|
],
|
|
5822
5830
|
exports: {
|
|
5823
5831
|
".": {
|
|
@@ -5832,16 +5840,17 @@ var init_package = __esm(() => {
|
|
|
5832
5840
|
main: "./dist/index.js",
|
|
5833
5841
|
types: "./dist/index.d.ts",
|
|
5834
5842
|
scripts: {
|
|
5835
|
-
build: "cd dashboard && bun run build && cd .. && bun build ./src/cli/index.tsx --outdir ./bin --target bun --external ink --external react --external chalk --external conf && bun build ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun build ./src/server/index.ts --outfile ./bin/serve.js --target bun && bun build ./src/index.ts --outdir ./dist --target bun && bun build ./src/social/index.ts --outfile ./dist/social/index.js --target bun && tsc --emitDeclarationOnly --outDir ./dist && tsc -p tsconfig.social.json",
|
|
5843
|
+
build: "cd dashboard && bun run build && cd .. && bun build ./src/cli/index.tsx --outdir ./bin --target bun --external ink --external react --external chalk --external conf --external @hasna/events && bun build ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun build ./src/server/index.ts --outfile ./bin/serve.js --target bun && bun build ./src/index.ts --outdir ./dist --target bun && bun build ./src/social/index.ts --outfile ./dist/social/index.js --target bun && tsc --emitDeclarationOnly --outDir ./dist && tsc -p tsconfig.social.json",
|
|
5836
5844
|
"build:dashboard": "cd dashboard && bun run build",
|
|
5837
5845
|
postinstall: 'mkdir -p $HOME/.hasna/connectors 2>/dev/null || true; [ "$SKIP_DASHBOARD" = "1" ] || [ ! -f dashboard/package.json ] || [ -d dashboard/node_modules ] || (cd dashboard && bun install)',
|
|
5838
5846
|
dev: "bun run ./src/cli/index.tsx",
|
|
5839
5847
|
"check:package-secrets": "bun run scripts/check-package-secrets.ts",
|
|
5840
5848
|
typecheck: "tsc --noEmit && tsc -p tsconfig.social.json --noEmit",
|
|
5841
|
-
test: "bun test",
|
|
5849
|
+
test: "bun run build && bun test",
|
|
5842
5850
|
"secrets:scan:npmrc": "bun run scripts/scan-npmrc-auth.mjs",
|
|
5843
5851
|
"sdk:build": "cd sdk && bun run build",
|
|
5844
|
-
prepublishOnly: "bun run secrets:scan:npmrc && bun run
|
|
5852
|
+
prepublishOnly: "bun run secrets:scan:npmrc && bun run build && bun run check:package-secrets && bun test",
|
|
5853
|
+
prepack: "bun run build && bun run check:package-secrets"
|
|
5845
5854
|
},
|
|
5846
5855
|
keywords: [
|
|
5847
5856
|
"connectors",
|
|
@@ -5862,7 +5871,8 @@ var init_package = __esm(() => {
|
|
|
5862
5871
|
"@types/bun": "latest",
|
|
5863
5872
|
"@types/react": "^18.2.0",
|
|
5864
5873
|
"ink-testing-library": "^4.0.0",
|
|
5865
|
-
typescript: "^5"
|
|
5874
|
+
typescript: "^5",
|
|
5875
|
+
"bun-types": "1.3.14"
|
|
5866
5876
|
},
|
|
5867
5877
|
dependencies: {
|
|
5868
5878
|
"@hasna/events": "0.1.8",
|
|
@@ -7007,7 +7017,7 @@ var CONNECTOR_NAME = "imessage", COMMAND_SPECS, ROOT_HELP2, COMMAND_HELP2, COMMA
|
|
|
7007
7017
|
|
|
7008
7018
|
## Project Overview
|
|
7009
7019
|
|
|
7010
|
-
connect-imessage is the bridge-first iMessage connector for the one-product
|
|
7020
|
+
connect-imessage is the bridge-first iMessage connector for the one-product connectors runtime. It intentionally targets a normalized HTTP bridge contract instead of native macOS automation so the same connector definition can run locally today and back future hosted channel adapters without rewriting the API surface.
|
|
7011
7021
|
|
|
7012
7022
|
The connector exposes profile/config management plus normalized health, conversation, and message operations. Inbound message consumption and outbound send/reply are all routed through the same internal connector definition and command runtime.
|
|
7013
7023
|
|
|
@@ -8223,7 +8233,7 @@ var init_builtins = __esm(() => {
|
|
|
8223
8233
|
INTERNAL_CONNECTOR_REGISTRY = createConnectorDefinitionRegistry(INTERNAL_CONNECTOR_DEFINITIONS);
|
|
8224
8234
|
});
|
|
8225
8235
|
|
|
8226
|
-
// node_modules/ajv/dist/compile/codegen/code.js
|
|
8236
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
8227
8237
|
var require_code = __commonJS((exports) => {
|
|
8228
8238
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8229
8239
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = undefined;
|
|
@@ -8377,7 +8387,7 @@ var require_code = __commonJS((exports) => {
|
|
|
8377
8387
|
exports.regexpCode = regexpCode;
|
|
8378
8388
|
});
|
|
8379
8389
|
|
|
8380
|
-
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
8390
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
8381
8391
|
var require_scope = __commonJS((exports) => {
|
|
8382
8392
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8383
8393
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
|
|
@@ -8523,7 +8533,7 @@ var require_scope = __commonJS((exports) => {
|
|
|
8523
8533
|
exports.ValueScope = ValueScope;
|
|
8524
8534
|
});
|
|
8525
8535
|
|
|
8526
|
-
// node_modules/ajv/dist/compile/codegen/index.js
|
|
8536
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
8527
8537
|
var require_codegen = __commonJS((exports) => {
|
|
8528
8538
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8529
8539
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = undefined;
|
|
@@ -9233,7 +9243,7 @@ var require_codegen = __commonJS((exports) => {
|
|
|
9233
9243
|
}
|
|
9234
9244
|
});
|
|
9235
9245
|
|
|
9236
|
-
// node_modules/ajv/dist/compile/util.js
|
|
9246
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
|
|
9237
9247
|
var require_util = __commonJS((exports) => {
|
|
9238
9248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9239
9249
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = undefined;
|
|
@@ -9397,7 +9407,7 @@ var require_util = __commonJS((exports) => {
|
|
|
9397
9407
|
exports.checkStrictMode = checkStrictMode;
|
|
9398
9408
|
});
|
|
9399
9409
|
|
|
9400
|
-
// node_modules/ajv/dist/compile/names.js
|
|
9410
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
|
|
9401
9411
|
var require_names = __commonJS((exports) => {
|
|
9402
9412
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9403
9413
|
var codegen_1 = require_codegen();
|
|
@@ -9422,7 +9432,7 @@ var require_names = __commonJS((exports) => {
|
|
|
9422
9432
|
exports.default = names;
|
|
9423
9433
|
});
|
|
9424
9434
|
|
|
9425
|
-
// node_modules/ajv/dist/compile/errors.js
|
|
9435
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
|
|
9426
9436
|
var require_errors = __commonJS((exports) => {
|
|
9427
9437
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9428
9438
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
|
|
@@ -9540,7 +9550,7 @@ var require_errors = __commonJS((exports) => {
|
|
|
9540
9550
|
}
|
|
9541
9551
|
});
|
|
9542
9552
|
|
|
9543
|
-
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
9553
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
9544
9554
|
var require_boolSchema = __commonJS((exports) => {
|
|
9545
9555
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9546
9556
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
|
|
@@ -9588,7 +9598,7 @@ var require_boolSchema = __commonJS((exports) => {
|
|
|
9588
9598
|
}
|
|
9589
9599
|
});
|
|
9590
9600
|
|
|
9591
|
-
// node_modules/ajv/dist/compile/rules.js
|
|
9601
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
|
|
9592
9602
|
var require_rules = __commonJS((exports) => {
|
|
9593
9603
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9594
9604
|
exports.getRules = exports.isJSONType = undefined;
|
|
@@ -9616,7 +9626,7 @@ var require_rules = __commonJS((exports) => {
|
|
|
9616
9626
|
exports.getRules = getRules;
|
|
9617
9627
|
});
|
|
9618
9628
|
|
|
9619
|
-
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
9629
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
9620
9630
|
var require_applicability = __commonJS((exports) => {
|
|
9621
9631
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9622
9632
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
|
|
@@ -9636,7 +9646,7 @@ var require_applicability = __commonJS((exports) => {
|
|
|
9636
9646
|
exports.shouldUseRule = shouldUseRule;
|
|
9637
9647
|
});
|
|
9638
9648
|
|
|
9639
|
-
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
9649
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
9640
9650
|
var require_dataType = __commonJS((exports) => {
|
|
9641
9651
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9642
9652
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
|
|
@@ -9817,7 +9827,7 @@ var require_dataType = __commonJS((exports) => {
|
|
|
9817
9827
|
}
|
|
9818
9828
|
});
|
|
9819
9829
|
|
|
9820
|
-
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
9830
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
9821
9831
|
var require_defaults = __commonJS((exports) => {
|
|
9822
9832
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9823
9833
|
exports.assignDefaults = undefined;
|
|
@@ -9851,7 +9861,7 @@ var require_defaults = __commonJS((exports) => {
|
|
|
9851
9861
|
}
|
|
9852
9862
|
});
|
|
9853
9863
|
|
|
9854
|
-
// node_modules/ajv/dist/vocabularies/code.js
|
|
9864
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
|
|
9855
9865
|
var require_code2 = __commonJS((exports) => {
|
|
9856
9866
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9857
9867
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = undefined;
|
|
@@ -9980,7 +9990,7 @@ var require_code2 = __commonJS((exports) => {
|
|
|
9980
9990
|
exports.validateUnion = validateUnion;
|
|
9981
9991
|
});
|
|
9982
9992
|
|
|
9983
|
-
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
9993
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
9984
9994
|
var require_keyword = __commonJS((exports) => {
|
|
9985
9995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9986
9996
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
|
|
@@ -10095,7 +10105,7 @@ var require_keyword = __commonJS((exports) => {
|
|
|
10095
10105
|
exports.validateKeywordUsage = validateKeywordUsage;
|
|
10096
10106
|
});
|
|
10097
10107
|
|
|
10098
|
-
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
10108
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
10099
10109
|
var require_subschema = __commonJS((exports) => {
|
|
10100
10110
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10101
10111
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
|
|
@@ -10175,7 +10185,7 @@ var require_subschema = __commonJS((exports) => {
|
|
|
10175
10185
|
exports.extendSubschemaMode = extendSubschemaMode;
|
|
10176
10186
|
});
|
|
10177
10187
|
|
|
10178
|
-
// node_modules/fast-deep-equal/index.js
|
|
10188
|
+
// ../../node_modules/.bun/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
10179
10189
|
var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
10180
10190
|
module.exports = function equal(a, b) {
|
|
10181
10191
|
if (a === b)
|
|
@@ -10217,7 +10227,7 @@ var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
|
10217
10227
|
};
|
|
10218
10228
|
});
|
|
10219
10229
|
|
|
10220
|
-
// node_modules/json-schema-traverse/index.js
|
|
10230
|
+
// ../../node_modules/.bun/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
|
|
10221
10231
|
var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
10222
10232
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
10223
10233
|
if (typeof opts == "function") {
|
|
@@ -10300,7 +10310,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
|
10300
10310
|
}
|
|
10301
10311
|
});
|
|
10302
10312
|
|
|
10303
|
-
// node_modules/ajv/dist/compile/resolve.js
|
|
10313
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
|
|
10304
10314
|
var require_resolve = __commonJS((exports) => {
|
|
10305
10315
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10306
10316
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
|
|
@@ -10453,7 +10463,7 @@ var require_resolve = __commonJS((exports) => {
|
|
|
10453
10463
|
exports.getSchemaRefs = getSchemaRefs;
|
|
10454
10464
|
});
|
|
10455
10465
|
|
|
10456
|
-
// node_modules/ajv/dist/compile/validate/index.js
|
|
10466
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
|
|
10457
10467
|
var require_validate = __commonJS((exports) => {
|
|
10458
10468
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10459
10469
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
|
|
@@ -10958,7 +10968,7 @@ var require_validate = __commonJS((exports) => {
|
|
|
10958
10968
|
exports.getData = getData;
|
|
10959
10969
|
});
|
|
10960
10970
|
|
|
10961
|
-
// node_modules/ajv/dist/runtime/validation_error.js
|
|
10971
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
10962
10972
|
var require_validation_error = __commonJS((exports) => {
|
|
10963
10973
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10964
10974
|
|
|
@@ -10972,7 +10982,7 @@ var require_validation_error = __commonJS((exports) => {
|
|
|
10972
10982
|
exports.default = ValidationError;
|
|
10973
10983
|
});
|
|
10974
10984
|
|
|
10975
|
-
// node_modules/ajv/dist/compile/ref_error.js
|
|
10985
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
|
|
10976
10986
|
var require_ref_error = __commonJS((exports) => {
|
|
10977
10987
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10978
10988
|
var resolve_1 = require_resolve();
|
|
@@ -10987,7 +10997,7 @@ var require_ref_error = __commonJS((exports) => {
|
|
|
10987
10997
|
exports.default = MissingRefError;
|
|
10988
10998
|
});
|
|
10989
10999
|
|
|
10990
|
-
// node_modules/ajv/dist/compile/index.js
|
|
11000
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
|
|
10991
11001
|
var require_compile = __commonJS((exports) => {
|
|
10992
11002
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10993
11003
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
|
|
@@ -11208,7 +11218,7 @@ var require_compile = __commonJS((exports) => {
|
|
|
11208
11218
|
}
|
|
11209
11219
|
});
|
|
11210
11220
|
|
|
11211
|
-
// node_modules/ajv/dist/refs/data.json
|
|
11221
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
|
|
11212
11222
|
var require_data = __commonJS((exports, module) => {
|
|
11213
11223
|
module.exports = {
|
|
11214
11224
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -11225,7 +11235,7 @@ var require_data = __commonJS((exports, module) => {
|
|
|
11225
11235
|
};
|
|
11226
11236
|
});
|
|
11227
11237
|
|
|
11228
|
-
// node_modules/fast-uri/lib/utils.js
|
|
11238
|
+
// ../../node_modules/.bun/fast-uri@3.1.5/node_modules/fast-uri/lib/utils.js
|
|
11229
11239
|
var require_utils = __commonJS((exports, module) => {
|
|
11230
11240
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
11231
11241
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
@@ -11536,7 +11546,7 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
11536
11546
|
};
|
|
11537
11547
|
});
|
|
11538
11548
|
|
|
11539
|
-
// node_modules/fast-uri/lib/schemes.js
|
|
11549
|
+
// ../../node_modules/.bun/fast-uri@3.1.5/node_modules/fast-uri/lib/schemes.js
|
|
11540
11550
|
var require_schemes = __commonJS((exports, module) => {
|
|
11541
11551
|
var { isUUID } = require_utils();
|
|
11542
11552
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -11710,7 +11720,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
11710
11720
|
};
|
|
11711
11721
|
});
|
|
11712
11722
|
|
|
11713
|
-
// node_modules/fast-uri/index.js
|
|
11723
|
+
// ../../node_modules/.bun/fast-uri@3.1.5/node_modules/fast-uri/index.js
|
|
11714
11724
|
var require_fast_uri = __commonJS((exports, module) => {
|
|
11715
11725
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
11716
11726
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -11724,7 +11734,12 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
11724
11734
|
}
|
|
11725
11735
|
function resolve(baseURI, relativeURI, options) {
|
|
11726
11736
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
11727
|
-
const
|
|
11737
|
+
const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
|
|
11738
|
+
const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
|
|
11739
|
+
if (baseMalformed || relativeMalformed) {
|
|
11740
|
+
throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
|
|
11741
|
+
}
|
|
11742
|
+
const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
|
|
11728
11743
|
schemelessOptions.skipEscape = true;
|
|
11729
11744
|
return serialize(resolved, schemelessOptions);
|
|
11730
11745
|
}
|
|
@@ -11851,6 +11866,7 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
11851
11866
|
}
|
|
11852
11867
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
11853
11868
|
var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
11869
|
+
var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
|
|
11854
11870
|
function getParseError(parsed, matches) {
|
|
11855
11871
|
if (matches[2] !== undefined && parsed.path && parsed.path[0] !== "/") {
|
|
11856
11872
|
return 'URI path must start with "/" when authority is present.';
|
|
@@ -11885,6 +11901,20 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
11885
11901
|
parsed.error = "URI authority must not contain a literal backslash.";
|
|
11886
11902
|
malformedAuthorityOrPort = true;
|
|
11887
11903
|
}
|
|
11904
|
+
const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
|
|
11905
|
+
if (introducerMatch !== null) {
|
|
11906
|
+
const region = introducerMatch[1];
|
|
11907
|
+
const normalizedRegion = region.replace(/[\t\n\r]/g, "");
|
|
11908
|
+
if (normalizedRegion.length >= 2) {
|
|
11909
|
+
if (normalizedRegion.slice(0, 2) !== "//") {
|
|
11910
|
+
parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
|
|
11911
|
+
malformedAuthorityOrPort = true;
|
|
11912
|
+
} else if (region.length !== normalizedRegion.length) {
|
|
11913
|
+
parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
|
|
11914
|
+
malformedAuthorityOrPort = true;
|
|
11915
|
+
}
|
|
11916
|
+
}
|
|
11917
|
+
}
|
|
11888
11918
|
const matches = uri.match(URI_PARSE);
|
|
11889
11919
|
if (matches) {
|
|
11890
11920
|
parsed.scheme = matches[1];
|
|
@@ -11998,7 +12028,7 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
11998
12028
|
module.exports.fastUri = fastUri;
|
|
11999
12029
|
});
|
|
12000
12030
|
|
|
12001
|
-
// node_modules/ajv/dist/runtime/uri.js
|
|
12031
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
|
|
12002
12032
|
var require_uri = __commonJS((exports) => {
|
|
12003
12033
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12004
12034
|
var uri = require_fast_uri();
|
|
@@ -12006,7 +12036,7 @@ var require_uri = __commonJS((exports) => {
|
|
|
12006
12036
|
exports.default = uri;
|
|
12007
12037
|
});
|
|
12008
12038
|
|
|
12009
|
-
// node_modules/ajv/dist/core.js
|
|
12039
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/core.js
|
|
12010
12040
|
var require_core = __commonJS((exports) => {
|
|
12011
12041
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12012
12042
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
|
|
@@ -12599,7 +12629,7 @@ var require_core = __commonJS((exports) => {
|
|
|
12599
12629
|
}
|
|
12600
12630
|
});
|
|
12601
12631
|
|
|
12602
|
-
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
12632
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
12603
12633
|
var require_id = __commonJS((exports) => {
|
|
12604
12634
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12605
12635
|
var def = {
|
|
@@ -12611,7 +12641,7 @@ var require_id = __commonJS((exports) => {
|
|
|
12611
12641
|
exports.default = def;
|
|
12612
12642
|
});
|
|
12613
12643
|
|
|
12614
|
-
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
12644
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
12615
12645
|
var require_ref = __commonJS((exports) => {
|
|
12616
12646
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12617
12647
|
exports.callRef = exports.getValidate = undefined;
|
|
@@ -12730,7 +12760,7 @@ var require_ref = __commonJS((exports) => {
|
|
|
12730
12760
|
exports.default = def;
|
|
12731
12761
|
});
|
|
12732
12762
|
|
|
12733
|
-
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
12763
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
12734
12764
|
var require_core2 = __commonJS((exports) => {
|
|
12735
12765
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12736
12766
|
var id_1 = require_id();
|
|
@@ -12748,7 +12778,7 @@ var require_core2 = __commonJS((exports) => {
|
|
|
12748
12778
|
exports.default = core2;
|
|
12749
12779
|
});
|
|
12750
12780
|
|
|
12751
|
-
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
12781
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
12752
12782
|
var require_limitNumber = __commonJS((exports) => {
|
|
12753
12783
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12754
12784
|
var codegen_1 = require_codegen();
|
|
@@ -12777,7 +12807,7 @@ var require_limitNumber = __commonJS((exports) => {
|
|
|
12777
12807
|
exports.default = def;
|
|
12778
12808
|
});
|
|
12779
12809
|
|
|
12780
|
-
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
12810
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
12781
12811
|
var require_multipleOf = __commonJS((exports) => {
|
|
12782
12812
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12783
12813
|
var codegen_1 = require_codegen();
|
|
@@ -12802,7 +12832,7 @@ var require_multipleOf = __commonJS((exports) => {
|
|
|
12802
12832
|
exports.default = def;
|
|
12803
12833
|
});
|
|
12804
12834
|
|
|
12805
|
-
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
12835
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
12806
12836
|
var require_ucs2length = __commonJS((exports) => {
|
|
12807
12837
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12808
12838
|
function ucs2length(str) {
|
|
@@ -12825,7 +12855,7 @@ var require_ucs2length = __commonJS((exports) => {
|
|
|
12825
12855
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
12826
12856
|
});
|
|
12827
12857
|
|
|
12828
|
-
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
12858
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
12829
12859
|
var require_limitLength = __commonJS((exports) => {
|
|
12830
12860
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12831
12861
|
var codegen_1 = require_codegen();
|
|
@@ -12854,7 +12884,7 @@ var require_limitLength = __commonJS((exports) => {
|
|
|
12854
12884
|
exports.default = def;
|
|
12855
12885
|
});
|
|
12856
12886
|
|
|
12857
|
-
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
12887
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
12858
12888
|
var require_pattern = __commonJS((exports) => {
|
|
12859
12889
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12860
12890
|
var code_1 = require_code2();
|
|
@@ -12888,7 +12918,7 @@ var require_pattern = __commonJS((exports) => {
|
|
|
12888
12918
|
exports.default = def;
|
|
12889
12919
|
});
|
|
12890
12920
|
|
|
12891
|
-
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
12921
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
12892
12922
|
var require_limitProperties = __commonJS((exports) => {
|
|
12893
12923
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12894
12924
|
var codegen_1 = require_codegen();
|
|
@@ -12914,7 +12944,7 @@ var require_limitProperties = __commonJS((exports) => {
|
|
|
12914
12944
|
exports.default = def;
|
|
12915
12945
|
});
|
|
12916
12946
|
|
|
12917
|
-
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
12947
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
12918
12948
|
var require_required = __commonJS((exports) => {
|
|
12919
12949
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12920
12950
|
var code_1 = require_code2();
|
|
@@ -12993,7 +13023,7 @@ var require_required = __commonJS((exports) => {
|
|
|
12993
13023
|
exports.default = def;
|
|
12994
13024
|
});
|
|
12995
13025
|
|
|
12996
|
-
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
13026
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
12997
13027
|
var require_limitItems = __commonJS((exports) => {
|
|
12998
13028
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12999
13029
|
var codegen_1 = require_codegen();
|
|
@@ -13019,7 +13049,7 @@ var require_limitItems = __commonJS((exports) => {
|
|
|
13019
13049
|
exports.default = def;
|
|
13020
13050
|
});
|
|
13021
13051
|
|
|
13022
|
-
// node_modules/ajv/dist/runtime/equal.js
|
|
13052
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
|
|
13023
13053
|
var require_equal = __commonJS((exports) => {
|
|
13024
13054
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13025
13055
|
var equal = require_fast_deep_equal();
|
|
@@ -13027,7 +13057,7 @@ var require_equal = __commonJS((exports) => {
|
|
|
13027
13057
|
exports.default = equal;
|
|
13028
13058
|
});
|
|
13029
13059
|
|
|
13030
|
-
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
13060
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
13031
13061
|
var require_uniqueItems = __commonJS((exports) => {
|
|
13032
13062
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13033
13063
|
var dataType_1 = require_dataType();
|
|
@@ -13091,7 +13121,7 @@ var require_uniqueItems = __commonJS((exports) => {
|
|
|
13091
13121
|
exports.default = def;
|
|
13092
13122
|
});
|
|
13093
13123
|
|
|
13094
|
-
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
13124
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
13095
13125
|
var require_const = __commonJS((exports) => {
|
|
13096
13126
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13097
13127
|
var codegen_1 = require_codegen();
|
|
@@ -13117,7 +13147,7 @@ var require_const = __commonJS((exports) => {
|
|
|
13117
13147
|
exports.default = def;
|
|
13118
13148
|
});
|
|
13119
13149
|
|
|
13120
|
-
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
13150
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
13121
13151
|
var require_enum = __commonJS((exports) => {
|
|
13122
13152
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13123
13153
|
var codegen_1 = require_codegen();
|
|
@@ -13163,7 +13193,7 @@ var require_enum = __commonJS((exports) => {
|
|
|
13163
13193
|
exports.default = def;
|
|
13164
13194
|
});
|
|
13165
13195
|
|
|
13166
|
-
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
13196
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
13167
13197
|
var require_validation = __commonJS((exports) => {
|
|
13168
13198
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13169
13199
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -13193,7 +13223,7 @@ var require_validation = __commonJS((exports) => {
|
|
|
13193
13223
|
exports.default = validation;
|
|
13194
13224
|
});
|
|
13195
13225
|
|
|
13196
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
13226
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
13197
13227
|
var require_additionalItems = __commonJS((exports) => {
|
|
13198
13228
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13199
13229
|
exports.validateAdditionalItems = undefined;
|
|
@@ -13243,7 +13273,7 @@ var require_additionalItems = __commonJS((exports) => {
|
|
|
13243
13273
|
exports.default = def;
|
|
13244
13274
|
});
|
|
13245
13275
|
|
|
13246
|
-
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
13276
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
13247
13277
|
var require_items = __commonJS((exports) => {
|
|
13248
13278
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13249
13279
|
exports.validateTuple = undefined;
|
|
@@ -13297,7 +13327,7 @@ var require_items = __commonJS((exports) => {
|
|
|
13297
13327
|
exports.default = def;
|
|
13298
13328
|
});
|
|
13299
13329
|
|
|
13300
|
-
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
13330
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
13301
13331
|
var require_prefixItems = __commonJS((exports) => {
|
|
13302
13332
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13303
13333
|
var items_1 = require_items();
|
|
@@ -13311,7 +13341,7 @@ var require_prefixItems = __commonJS((exports) => {
|
|
|
13311
13341
|
exports.default = def;
|
|
13312
13342
|
});
|
|
13313
13343
|
|
|
13314
|
-
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
13344
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
13315
13345
|
var require_items2020 = __commonJS((exports) => {
|
|
13316
13346
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13317
13347
|
var codegen_1 = require_codegen();
|
|
@@ -13343,7 +13373,7 @@ var require_items2020 = __commonJS((exports) => {
|
|
|
13343
13373
|
exports.default = def;
|
|
13344
13374
|
});
|
|
13345
13375
|
|
|
13346
|
-
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
13376
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
13347
13377
|
var require_contains = __commonJS((exports) => {
|
|
13348
13378
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13349
13379
|
var codegen_1 = require_codegen();
|
|
@@ -13434,7 +13464,7 @@ var require_contains = __commonJS((exports) => {
|
|
|
13434
13464
|
exports.default = def;
|
|
13435
13465
|
});
|
|
13436
13466
|
|
|
13437
|
-
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
13467
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
13438
13468
|
var require_dependencies = __commonJS((exports) => {
|
|
13439
13469
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13440
13470
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
|
|
@@ -13519,7 +13549,7 @@ var require_dependencies = __commonJS((exports) => {
|
|
|
13519
13549
|
exports.default = def;
|
|
13520
13550
|
});
|
|
13521
13551
|
|
|
13522
|
-
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
13552
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
13523
13553
|
var require_propertyNames = __commonJS((exports) => {
|
|
13524
13554
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13525
13555
|
var codegen_1 = require_codegen();
|
|
@@ -13559,7 +13589,7 @@ var require_propertyNames = __commonJS((exports) => {
|
|
|
13559
13589
|
exports.default = def;
|
|
13560
13590
|
});
|
|
13561
13591
|
|
|
13562
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
13592
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
13563
13593
|
var require_additionalProperties = __commonJS((exports) => {
|
|
13564
13594
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13565
13595
|
var code_1 = require_code2();
|
|
@@ -13662,7 +13692,7 @@ var require_additionalProperties = __commonJS((exports) => {
|
|
|
13662
13692
|
exports.default = def;
|
|
13663
13693
|
});
|
|
13664
13694
|
|
|
13665
|
-
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
13695
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
13666
13696
|
var require_properties = __commonJS((exports) => {
|
|
13667
13697
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13668
13698
|
var validate_1 = require_validate();
|
|
@@ -13717,7 +13747,7 @@ var require_properties = __commonJS((exports) => {
|
|
|
13717
13747
|
exports.default = def;
|
|
13718
13748
|
});
|
|
13719
13749
|
|
|
13720
|
-
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
13750
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
13721
13751
|
var require_patternProperties = __commonJS((exports) => {
|
|
13722
13752
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13723
13753
|
var code_1 = require_code2();
|
|
@@ -13788,7 +13818,7 @@ var require_patternProperties = __commonJS((exports) => {
|
|
|
13788
13818
|
exports.default = def;
|
|
13789
13819
|
});
|
|
13790
13820
|
|
|
13791
|
-
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
13821
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
13792
13822
|
var require_not = __commonJS((exports) => {
|
|
13793
13823
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13794
13824
|
var util_1 = require_util();
|
|
@@ -13816,7 +13846,7 @@ var require_not = __commonJS((exports) => {
|
|
|
13816
13846
|
exports.default = def;
|
|
13817
13847
|
});
|
|
13818
13848
|
|
|
13819
|
-
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
13849
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
13820
13850
|
var require_anyOf = __commonJS((exports) => {
|
|
13821
13851
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13822
13852
|
var code_1 = require_code2();
|
|
@@ -13830,7 +13860,7 @@ var require_anyOf = __commonJS((exports) => {
|
|
|
13830
13860
|
exports.default = def;
|
|
13831
13861
|
});
|
|
13832
13862
|
|
|
13833
|
-
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
13863
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
13834
13864
|
var require_oneOf = __commonJS((exports) => {
|
|
13835
13865
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13836
13866
|
var codegen_1 = require_codegen();
|
|
@@ -13885,7 +13915,7 @@ var require_oneOf = __commonJS((exports) => {
|
|
|
13885
13915
|
exports.default = def;
|
|
13886
13916
|
});
|
|
13887
13917
|
|
|
13888
|
-
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
13918
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
13889
13919
|
var require_allOf = __commonJS((exports) => {
|
|
13890
13920
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13891
13921
|
var util_1 = require_util();
|
|
@@ -13909,7 +13939,7 @@ var require_allOf = __commonJS((exports) => {
|
|
|
13909
13939
|
exports.default = def;
|
|
13910
13940
|
});
|
|
13911
13941
|
|
|
13912
|
-
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
13942
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
13913
13943
|
var require_if = __commonJS((exports) => {
|
|
13914
13944
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13915
13945
|
var codegen_1 = require_codegen();
|
|
@@ -13975,7 +14005,7 @@ var require_if = __commonJS((exports) => {
|
|
|
13975
14005
|
exports.default = def;
|
|
13976
14006
|
});
|
|
13977
14007
|
|
|
13978
|
-
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
14008
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
13979
14009
|
var require_thenElse = __commonJS((exports) => {
|
|
13980
14010
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13981
14011
|
var util_1 = require_util();
|
|
@@ -13990,7 +14020,7 @@ var require_thenElse = __commonJS((exports) => {
|
|
|
13990
14020
|
exports.default = def;
|
|
13991
14021
|
});
|
|
13992
14022
|
|
|
13993
|
-
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
14023
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
13994
14024
|
var require_applicator = __commonJS((exports) => {
|
|
13995
14025
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13996
14026
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -14033,7 +14063,7 @@ var require_applicator = __commonJS((exports) => {
|
|
|
14033
14063
|
exports.default = getApplicator;
|
|
14034
14064
|
});
|
|
14035
14065
|
|
|
14036
|
-
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
14066
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
14037
14067
|
var require_format = __commonJS((exports) => {
|
|
14038
14068
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14039
14069
|
var codegen_1 = require_codegen();
|
|
@@ -14120,7 +14150,7 @@ var require_format = __commonJS((exports) => {
|
|
|
14120
14150
|
exports.default = def;
|
|
14121
14151
|
});
|
|
14122
14152
|
|
|
14123
|
-
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
14153
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
14124
14154
|
var require_format2 = __commonJS((exports) => {
|
|
14125
14155
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14126
14156
|
var format_1 = require_format();
|
|
@@ -14128,7 +14158,7 @@ var require_format2 = __commonJS((exports) => {
|
|
|
14128
14158
|
exports.default = format;
|
|
14129
14159
|
});
|
|
14130
14160
|
|
|
14131
|
-
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
14161
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
14132
14162
|
var require_metadata = __commonJS((exports) => {
|
|
14133
14163
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14134
14164
|
exports.contentVocabulary = exports.metadataVocabulary = undefined;
|
|
@@ -14148,7 +14178,7 @@ var require_metadata = __commonJS((exports) => {
|
|
|
14148
14178
|
];
|
|
14149
14179
|
});
|
|
14150
14180
|
|
|
14151
|
-
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
14181
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
14152
14182
|
var require_draft7 = __commonJS((exports) => {
|
|
14153
14183
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14154
14184
|
var core_1 = require_core2();
|
|
@@ -14167,7 +14197,7 @@ var require_draft7 = __commonJS((exports) => {
|
|
|
14167
14197
|
exports.default = draft7Vocabularies;
|
|
14168
14198
|
});
|
|
14169
14199
|
|
|
14170
|
-
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
14200
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
14171
14201
|
var require_types = __commonJS((exports) => {
|
|
14172
14202
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14173
14203
|
exports.DiscrError = undefined;
|
|
@@ -14178,7 +14208,7 @@ var require_types = __commonJS((exports) => {
|
|
|
14178
14208
|
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
14179
14209
|
});
|
|
14180
14210
|
|
|
14181
|
-
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
14211
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
14182
14212
|
var require_discriminator = __commonJS((exports) => {
|
|
14183
14213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14184
14214
|
var codegen_1 = require_codegen();
|
|
@@ -14280,7 +14310,7 @@ var require_discriminator = __commonJS((exports) => {
|
|
|
14280
14310
|
exports.default = def;
|
|
14281
14311
|
});
|
|
14282
14312
|
|
|
14283
|
-
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
14313
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
14284
14314
|
var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
14285
14315
|
module.exports = {
|
|
14286
14316
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -14435,7 +14465,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
|
14435
14465
|
};
|
|
14436
14466
|
});
|
|
14437
14467
|
|
|
14438
|
-
// node_modules/ajv/dist/ajv.js
|
|
14468
|
+
// ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/ajv.js
|
|
14439
14469
|
var require_ajv = __commonJS((exports, module) => {
|
|
14440
14470
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14441
14471
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
|
|
@@ -14503,7 +14533,7 @@ var require_ajv = __commonJS((exports, module) => {
|
|
|
14503
14533
|
} });
|
|
14504
14534
|
});
|
|
14505
14535
|
|
|
14506
|
-
// node_modules/ajv-formats/dist/formats.js
|
|
14536
|
+
// ../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/formats.js
|
|
14507
14537
|
var require_formats = __commonJS((exports) => {
|
|
14508
14538
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14509
14539
|
exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
|
|
@@ -14680,7 +14710,7 @@ var require_formats = __commonJS((exports) => {
|
|
|
14680
14710
|
}
|
|
14681
14711
|
});
|
|
14682
14712
|
|
|
14683
|
-
// node_modules/ajv-formats/dist/limit.js
|
|
14713
|
+
// ../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/limit.js
|
|
14684
14714
|
var require_limit = __commonJS((exports) => {
|
|
14685
14715
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14686
14716
|
exports.formatLimitDefinition = undefined;
|
|
@@ -14749,7 +14779,7 @@ var require_limit = __commonJS((exports) => {
|
|
|
14749
14779
|
exports.default = formatLimitPlugin;
|
|
14750
14780
|
});
|
|
14751
14781
|
|
|
14752
|
-
// node_modules/ajv-formats/dist/index.js
|
|
14782
|
+
// ../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/index.js
|
|
14753
14783
|
var require_dist = __commonJS((exports, module) => {
|
|
14754
14784
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14755
14785
|
var formats_1 = require_formats();
|
|
@@ -15558,7 +15588,9 @@ function guessKeyField(name) {
|
|
|
15558
15588
|
const keyVar = docs.envVars.find((v) => v.variable.includes("API_KEY") || v.variable.includes("API_SECRET") || v.variable.includes("TOKEN") || v.variable.includes("SECRET"));
|
|
15559
15589
|
if (keyVar) {
|
|
15560
15590
|
const parts = keyVar.variable.toLowerCase().split("_");
|
|
15561
|
-
const
|
|
15591
|
+
const connectorParts = name.toLowerCase().split(/[-_]/);
|
|
15592
|
+
const prefixLength = connectorParts.every((part, index) => parts[index] === part) ? connectorParts.length : 1;
|
|
15593
|
+
const withoutPrefix = parts.slice(prefixLength);
|
|
15562
15594
|
if (withoutPrefix.length > 0) {
|
|
15563
15595
|
return withoutPrefix.map((p, i) => i === 0 ? p : p.charAt(0).toUpperCase() + p.slice(1)).join("");
|
|
15564
15596
|
}
|
|
@@ -16087,10 +16119,116 @@ var init_runner = __esm(() => {
|
|
|
16087
16119
|
};
|
|
16088
16120
|
});
|
|
16089
16121
|
|
|
16090
|
-
// node_modules
|
|
16122
|
+
// ../../node_modules/.bun/content-type@1.0.5/node_modules/content-type/index.js
|
|
16123
|
+
var require_content_type = __commonJS((exports) => {
|
|
16124
|
+
/*!
|
|
16125
|
+
* content-type
|
|
16126
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
16127
|
+
* MIT Licensed
|
|
16128
|
+
*/
|
|
16129
|
+
var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
|
|
16130
|
+
var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
|
|
16131
|
+
var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
16132
|
+
var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g;
|
|
16133
|
+
var QUOTE_REGEXP = /([\\"])/g;
|
|
16134
|
+
var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
16135
|
+
exports.format = format;
|
|
16136
|
+
exports.parse = parse6;
|
|
16137
|
+
function format(obj) {
|
|
16138
|
+
if (!obj || typeof obj !== "object") {
|
|
16139
|
+
throw new TypeError("argument obj is required");
|
|
16140
|
+
}
|
|
16141
|
+
var parameters = obj.parameters;
|
|
16142
|
+
var type = obj.type;
|
|
16143
|
+
if (!type || !TYPE_REGEXP.test(type)) {
|
|
16144
|
+
throw new TypeError("invalid type");
|
|
16145
|
+
}
|
|
16146
|
+
var string4 = type;
|
|
16147
|
+
if (parameters && typeof parameters === "object") {
|
|
16148
|
+
var param;
|
|
16149
|
+
var params = Object.keys(parameters).sort();
|
|
16150
|
+
for (var i = 0;i < params.length; i++) {
|
|
16151
|
+
param = params[i];
|
|
16152
|
+
if (!TOKEN_REGEXP.test(param)) {
|
|
16153
|
+
throw new TypeError("invalid parameter name");
|
|
16154
|
+
}
|
|
16155
|
+
string4 += "; " + param + "=" + qstring(parameters[param]);
|
|
16156
|
+
}
|
|
16157
|
+
}
|
|
16158
|
+
return string4;
|
|
16159
|
+
}
|
|
16160
|
+
function parse6(string4) {
|
|
16161
|
+
if (!string4) {
|
|
16162
|
+
throw new TypeError("argument string is required");
|
|
16163
|
+
}
|
|
16164
|
+
var header = typeof string4 === "object" ? getcontenttype(string4) : string4;
|
|
16165
|
+
if (typeof header !== "string") {
|
|
16166
|
+
throw new TypeError("argument string is required to be a string");
|
|
16167
|
+
}
|
|
16168
|
+
var index = header.indexOf(";");
|
|
16169
|
+
var type = index !== -1 ? header.slice(0, index).trim() : header.trim();
|
|
16170
|
+
if (!TYPE_REGEXP.test(type)) {
|
|
16171
|
+
throw new TypeError("invalid media type");
|
|
16172
|
+
}
|
|
16173
|
+
var obj = new ContentType(type.toLowerCase());
|
|
16174
|
+
if (index !== -1) {
|
|
16175
|
+
var key;
|
|
16176
|
+
var match;
|
|
16177
|
+
var value;
|
|
16178
|
+
PARAM_REGEXP.lastIndex = index;
|
|
16179
|
+
while (match = PARAM_REGEXP.exec(header)) {
|
|
16180
|
+
if (match.index !== index) {
|
|
16181
|
+
throw new TypeError("invalid parameter format");
|
|
16182
|
+
}
|
|
16183
|
+
index += match[0].length;
|
|
16184
|
+
key = match[1].toLowerCase();
|
|
16185
|
+
value = match[2];
|
|
16186
|
+
if (value.charCodeAt(0) === 34) {
|
|
16187
|
+
value = value.slice(1, -1);
|
|
16188
|
+
if (value.indexOf("\\") !== -1) {
|
|
16189
|
+
value = value.replace(QESC_REGEXP, "$1");
|
|
16190
|
+
}
|
|
16191
|
+
}
|
|
16192
|
+
obj.parameters[key] = value;
|
|
16193
|
+
}
|
|
16194
|
+
if (index !== header.length) {
|
|
16195
|
+
throw new TypeError("invalid parameter format");
|
|
16196
|
+
}
|
|
16197
|
+
}
|
|
16198
|
+
return obj;
|
|
16199
|
+
}
|
|
16200
|
+
function getcontenttype(obj) {
|
|
16201
|
+
var header;
|
|
16202
|
+
if (typeof obj.getHeader === "function") {
|
|
16203
|
+
header = obj.getHeader("content-type");
|
|
16204
|
+
} else if (typeof obj.headers === "object") {
|
|
16205
|
+
header = obj.headers && obj.headers["content-type"];
|
|
16206
|
+
}
|
|
16207
|
+
if (typeof header !== "string") {
|
|
16208
|
+
throw new TypeError("content-type header is missing from object");
|
|
16209
|
+
}
|
|
16210
|
+
return header;
|
|
16211
|
+
}
|
|
16212
|
+
function qstring(val) {
|
|
16213
|
+
var str = String(val);
|
|
16214
|
+
if (TOKEN_REGEXP.test(str)) {
|
|
16215
|
+
return str;
|
|
16216
|
+
}
|
|
16217
|
+
if (str.length > 0 && !TEXT_REGEXP.test(str)) {
|
|
16218
|
+
throw new TypeError("invalid parameter value");
|
|
16219
|
+
}
|
|
16220
|
+
return '"' + str.replace(QUOTE_REGEXP, "\\$1") + '"';
|
|
16221
|
+
}
|
|
16222
|
+
function ContentType(type) {
|
|
16223
|
+
this.parameters = Object.create(null);
|
|
16224
|
+
this.type = type;
|
|
16225
|
+
}
|
|
16226
|
+
});
|
|
16227
|
+
|
|
16228
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
16091
16229
|
import process2 from "process";
|
|
16092
16230
|
|
|
16093
|
-
// node_modules/zod/v4/core/core.js
|
|
16231
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/core.js
|
|
16094
16232
|
var NEVER = Object.freeze({
|
|
16095
16233
|
status: "aborted"
|
|
16096
16234
|
});
|
|
@@ -16150,7 +16288,7 @@ function config(newConfig) {
|
|
|
16150
16288
|
Object.assign(globalConfig, newConfig);
|
|
16151
16289
|
return globalConfig;
|
|
16152
16290
|
}
|
|
16153
|
-
// node_modules/zod/v4/core/util.js
|
|
16291
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/util.js
|
|
16154
16292
|
var exports_util = {};
|
|
16155
16293
|
__export(exports_util, {
|
|
16156
16294
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -16664,7 +16802,7 @@ class Class {
|
|
|
16664
16802
|
constructor(..._args) {}
|
|
16665
16803
|
}
|
|
16666
16804
|
|
|
16667
|
-
// node_modules/zod/v4/core/errors.js
|
|
16805
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/errors.js
|
|
16668
16806
|
var initializer = (inst, def) => {
|
|
16669
16807
|
inst.name = "$ZodError";
|
|
16670
16808
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -16738,7 +16876,7 @@ function formatError(error, _mapper) {
|
|
|
16738
16876
|
return fieldErrors;
|
|
16739
16877
|
}
|
|
16740
16878
|
|
|
16741
|
-
// node_modules/zod/v4/core/parse.js
|
|
16879
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/parse.js
|
|
16742
16880
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
16743
16881
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
16744
16882
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -16789,7 +16927,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
16789
16927
|
} : { success: true, data: result.value };
|
|
16790
16928
|
};
|
|
16791
16929
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
16792
|
-
// node_modules/zod/v4/core/regexes.js
|
|
16930
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/regexes.js
|
|
16793
16931
|
var cuid = /^[cC][^\s-]{8,}$/;
|
|
16794
16932
|
var cuid2 = /^[0-9a-z]+$/;
|
|
16795
16933
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -16847,7 +16985,7 @@ var _null = /null/i;
|
|
|
16847
16985
|
var lowercase = /^[^A-Z]*$/;
|
|
16848
16986
|
var uppercase = /^[^a-z]*$/;
|
|
16849
16987
|
|
|
16850
|
-
// node_modules/zod/v4/core/checks.js
|
|
16988
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/checks.js
|
|
16851
16989
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
16852
16990
|
var _a;
|
|
16853
16991
|
inst._zod ?? (inst._zod = {});
|
|
@@ -17231,7 +17369,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
17231
17369
|
};
|
|
17232
17370
|
});
|
|
17233
17371
|
|
|
17234
|
-
// node_modules/zod/v4/core/doc.js
|
|
17372
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/doc.js
|
|
17235
17373
|
class Doc {
|
|
17236
17374
|
constructor(args = []) {
|
|
17237
17375
|
this.content = [];
|
|
@@ -17269,14 +17407,14 @@ class Doc {
|
|
|
17269
17407
|
}
|
|
17270
17408
|
}
|
|
17271
17409
|
|
|
17272
|
-
// node_modules/zod/v4/core/versions.js
|
|
17410
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/versions.js
|
|
17273
17411
|
var version = {
|
|
17274
17412
|
major: 4,
|
|
17275
17413
|
minor: 0,
|
|
17276
17414
|
patch: 0
|
|
17277
17415
|
};
|
|
17278
17416
|
|
|
17279
|
-
// node_modules/zod/v4/core/schemas.js
|
|
17417
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/schemas.js
|
|
17280
17418
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
17281
17419
|
var _a;
|
|
17282
17420
|
inst ?? (inst = {});
|
|
@@ -18507,7 +18645,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
18507
18645
|
payload.issues.push(issue(_iss));
|
|
18508
18646
|
}
|
|
18509
18647
|
}
|
|
18510
|
-
// node_modules/zod/v4/locales/en.js
|
|
18648
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/locales/en.js
|
|
18511
18649
|
var parsedType = (data) => {
|
|
18512
18650
|
const t = typeof data;
|
|
18513
18651
|
switch (t) {
|
|
@@ -18624,7 +18762,7 @@ function en_default() {
|
|
|
18624
18762
|
localeError: error()
|
|
18625
18763
|
};
|
|
18626
18764
|
}
|
|
18627
|
-
// node_modules/zod/v4/core/registries.js
|
|
18765
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/registries.js
|
|
18628
18766
|
var $output = Symbol("ZodOutput");
|
|
18629
18767
|
var $input = Symbol("ZodInput");
|
|
18630
18768
|
|
|
@@ -18674,7 +18812,7 @@ function registry() {
|
|
|
18674
18812
|
return new $ZodRegistry;
|
|
18675
18813
|
}
|
|
18676
18814
|
var globalRegistry = /* @__PURE__ */ registry();
|
|
18677
|
-
// node_modules/zod/v4/core/api.js
|
|
18815
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/api.js
|
|
18678
18816
|
function _string(Class2, params) {
|
|
18679
18817
|
return new Class2({
|
|
18680
18818
|
type: "string",
|
|
@@ -19109,7 +19247,7 @@ function _refine(Class2, fn, _params) {
|
|
|
19109
19247
|
});
|
|
19110
19248
|
return schema;
|
|
19111
19249
|
}
|
|
19112
|
-
// node_modules/zod/v4/core/to-json-schema.js
|
|
19250
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/to-json-schema.js
|
|
19113
19251
|
class JSONSchemaGenerator {
|
|
19114
19252
|
constructor(params) {
|
|
19115
19253
|
this.counter = 0;
|
|
@@ -19861,7 +19999,7 @@ function isTransforming(_schema, _ctx) {
|
|
|
19861
19999
|
}
|
|
19862
20000
|
throw new Error(`Unknown schema type: ${def.type}`);
|
|
19863
20001
|
}
|
|
19864
|
-
// node_modules/zod/v4/classic/iso.js
|
|
20002
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/iso.js
|
|
19865
20003
|
var exports_iso = {};
|
|
19866
20004
|
__export(exports_iso, {
|
|
19867
20005
|
time: () => time2,
|
|
@@ -19902,7 +20040,7 @@ function duration2(params) {
|
|
|
19902
20040
|
return _isoDuration(ZodISODuration, params);
|
|
19903
20041
|
}
|
|
19904
20042
|
|
|
19905
|
-
// node_modules/zod/v4/classic/errors.js
|
|
20043
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/errors.js
|
|
19906
20044
|
var initializer2 = (inst, issues) => {
|
|
19907
20045
|
$ZodError.init(inst, issues);
|
|
19908
20046
|
inst.name = "ZodError";
|
|
@@ -19931,13 +20069,13 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
19931
20069
|
Parent: Error
|
|
19932
20070
|
});
|
|
19933
20071
|
|
|
19934
|
-
// node_modules/zod/v4/classic/parse.js
|
|
20072
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/parse.js
|
|
19935
20073
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
19936
20074
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
19937
20075
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
19938
20076
|
var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
19939
20077
|
|
|
19940
|
-
// node_modules/zod/v4/classic/schemas.js
|
|
20078
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/schemas.js
|
|
19941
20079
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
19942
20080
|
$ZodType.init(inst, def);
|
|
19943
20081
|
inst.def = def;
|
|
@@ -20542,10 +20680,10 @@ function superRefine(fn) {
|
|
|
20542
20680
|
function preprocess(fn, schema) {
|
|
20543
20681
|
return pipe(transform(fn), schema);
|
|
20544
20682
|
}
|
|
20545
|
-
// node_modules/zod/v4/classic/external.js
|
|
20683
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/external.js
|
|
20546
20684
|
config(en_default());
|
|
20547
20685
|
|
|
20548
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
20686
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
20549
20687
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
20550
20688
|
var DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26";
|
|
20551
20689
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
@@ -21392,9 +21530,19 @@ class UrlElicitationRequiredError extends McpError {
|
|
|
21392
21530
|
}
|
|
21393
21531
|
}
|
|
21394
21532
|
|
|
21395
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
21533
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
21534
|
+
var STDIO_DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
|
|
21535
|
+
|
|
21396
21536
|
class ReadBuffer {
|
|
21537
|
+
constructor(options) {
|
|
21538
|
+
this._maxBufferSize = options?.maxBufferSize ?? STDIO_DEFAULT_MAX_BUFFER_SIZE;
|
|
21539
|
+
}
|
|
21397
21540
|
append(chunk) {
|
|
21541
|
+
const newSize = (this._buffer?.length ?? 0) + chunk.length;
|
|
21542
|
+
if (newSize > this._maxBufferSize) {
|
|
21543
|
+
this.clear();
|
|
21544
|
+
throw new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);
|
|
21545
|
+
}
|
|
21398
21546
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
21399
21547
|
}
|
|
21400
21548
|
readMessage() {
|
|
@@ -21422,20 +21570,25 @@ function serializeMessage(message) {
|
|
|
21422
21570
|
`;
|
|
21423
21571
|
}
|
|
21424
21572
|
|
|
21425
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
21573
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
21426
21574
|
class StdioServerTransport {
|
|
21427
|
-
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
21575
|
+
constructor(_stdin = process2.stdin, _stdout = process2.stdout, options) {
|
|
21428
21576
|
this._stdin = _stdin;
|
|
21429
21577
|
this._stdout = _stdout;
|
|
21430
|
-
this._readBuffer = new ReadBuffer;
|
|
21431
21578
|
this._started = false;
|
|
21432
21579
|
this._ondata = (chunk) => {
|
|
21433
|
-
|
|
21434
|
-
|
|
21580
|
+
try {
|
|
21581
|
+
this._readBuffer.append(chunk);
|
|
21582
|
+
this.processReadBuffer();
|
|
21583
|
+
} catch (error2) {
|
|
21584
|
+
this.onerror?.(error2);
|
|
21585
|
+
this.close().catch(() => {});
|
|
21586
|
+
}
|
|
21435
21587
|
};
|
|
21436
21588
|
this._onerror = (error2) => {
|
|
21437
21589
|
this.onerror?.(error2);
|
|
21438
21590
|
};
|
|
21591
|
+
this._readBuffer = new ReadBuffer({ maxBufferSize: options?.maxBufferSize });
|
|
21439
21592
|
}
|
|
21440
21593
|
async start() {
|
|
21441
21594
|
if (this._started) {
|
|
@@ -21599,7 +21752,7 @@ var connectors = [
|
|
|
21599
21752
|
tags: ["ai", "llm", "grok"]
|
|
21600
21753
|
},
|
|
21601
21754
|
{
|
|
21602
|
-
name: "xai-api-platform",
|
|
21755
|
+
name: "xai" + "-api-platform",
|
|
21603
21756
|
displayName: "Xai API Platform",
|
|
21604
21757
|
description: "Xai API Platform REST API for items, events, and search",
|
|
21605
21758
|
category: "AI & ML",
|
|
@@ -22824,7 +22977,7 @@ var connectors = [
|
|
|
22824
22977
|
tags: ["ai", "asset-management", "research"]
|
|
22825
22978
|
},
|
|
22826
22979
|
{
|
|
22827
|
-
name: "xai-grok",
|
|
22980
|
+
name: "xai" + "-grok",
|
|
22828
22981
|
displayName: "xAI Grok",
|
|
22829
22982
|
description: "Grok models, Responses API, embeddings, media, files, batches, and collections",
|
|
22830
22983
|
category: "AI & ML",
|
|
@@ -29940,7 +30093,7 @@ function loadConnectorVersions() {
|
|
|
29940
30093
|
|
|
29941
30094
|
// src/mcp/index.ts
|
|
29942
30095
|
init_package();
|
|
29943
|
-
// node_modules/zod/v4/mini/schemas.js
|
|
30096
|
+
// ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/mini/schemas.js
|
|
29944
30097
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
29945
30098
|
if (!inst._zod)
|
|
29946
30099
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
@@ -29982,7 +30135,7 @@ function object2(shape, params) {
|
|
|
29982
30135
|
};
|
|
29983
30136
|
return new ZodMiniObject(def);
|
|
29984
30137
|
}
|
|
29985
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
30138
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
29986
30139
|
function isZ4Schema(s) {
|
|
29987
30140
|
const schema = s;
|
|
29988
30141
|
return !!schema._zod;
|
|
@@ -30066,17 +30219,34 @@ function normalizeObjectSchema(schema) {
|
|
|
30066
30219
|
}
|
|
30067
30220
|
return;
|
|
30068
30221
|
}
|
|
30222
|
+
function getDotPath(path) {
|
|
30223
|
+
if (path.length === 0) {
|
|
30224
|
+
return "object root";
|
|
30225
|
+
}
|
|
30226
|
+
return path.reduce((acc, seg, index) => {
|
|
30227
|
+
if (index === 0) {
|
|
30228
|
+
return String(seg);
|
|
30229
|
+
}
|
|
30230
|
+
if (typeof seg === "number") {
|
|
30231
|
+
return `${acc}[${seg}]`;
|
|
30232
|
+
}
|
|
30233
|
+
return `${acc}.${seg}`;
|
|
30234
|
+
}, "");
|
|
30235
|
+
}
|
|
30069
30236
|
function getParseErrorMessage(error2) {
|
|
30070
30237
|
if (error2 && typeof error2 === "object") {
|
|
30238
|
+
if ("issues" in error2 && Array.isArray(error2.issues) && error2.issues.length > 0) {
|
|
30239
|
+
return error2.issues.map((i) => {
|
|
30240
|
+
if (!i.path?.length) {
|
|
30241
|
+
return i.message;
|
|
30242
|
+
}
|
|
30243
|
+
return `${i.message} at ${getDotPath(i.path)}`;
|
|
30244
|
+
}).join(`
|
|
30245
|
+
`);
|
|
30246
|
+
}
|
|
30071
30247
|
if ("message" in error2 && typeof error2.message === "string") {
|
|
30072
30248
|
return error2.message;
|
|
30073
30249
|
}
|
|
30074
|
-
if ("issues" in error2 && Array.isArray(error2.issues) && error2.issues.length > 0) {
|
|
30075
|
-
const firstIssue = error2.issues[0];
|
|
30076
|
-
if (firstIssue && typeof firstIssue === "object" && "message" in firstIssue) {
|
|
30077
|
-
return String(firstIssue.message);
|
|
30078
|
-
}
|
|
30079
|
-
}
|
|
30080
30250
|
try {
|
|
30081
30251
|
return JSON.stringify(error2);
|
|
30082
30252
|
} catch {
|
|
@@ -30126,12 +30296,12 @@ function getLiteralValue(schema) {
|
|
|
30126
30296
|
return;
|
|
30127
30297
|
}
|
|
30128
30298
|
|
|
30129
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
30299
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
30130
30300
|
function isTerminal(status) {
|
|
30131
30301
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
30132
30302
|
}
|
|
30133
30303
|
|
|
30134
|
-
// node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
30304
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
30135
30305
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
30136
30306
|
var defaultOptions = {
|
|
30137
30307
|
name: undefined,
|
|
@@ -30164,7 +30334,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
30164
30334
|
...defaultOptions,
|
|
30165
30335
|
...options
|
|
30166
30336
|
};
|
|
30167
|
-
// node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
30337
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
30168
30338
|
var getRefs = (options) => {
|
|
30169
30339
|
const _options = getDefaultOptions(options);
|
|
30170
30340
|
const currentPath = _options.name !== undefined ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
@@ -30183,7 +30353,7 @@ var getRefs = (options) => {
|
|
|
30183
30353
|
]))
|
|
30184
30354
|
};
|
|
30185
30355
|
};
|
|
30186
|
-
// node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
30356
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
30187
30357
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
30188
30358
|
if (!refs?.errorMessages)
|
|
30189
30359
|
return;
|
|
@@ -30198,7 +30368,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
30198
30368
|
res[key] = value;
|
|
30199
30369
|
addErrorMessage(res, key, errorMessage, refs);
|
|
30200
30370
|
}
|
|
30201
|
-
// node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
30371
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
30202
30372
|
var getRelativePath = (pathA, pathB) => {
|
|
30203
30373
|
let i = 0;
|
|
30204
30374
|
for (;i < pathA.length && i < pathB.length; i++) {
|
|
@@ -30207,7 +30377,7 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
30207
30377
|
}
|
|
30208
30378
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
30209
30379
|
};
|
|
30210
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
30380
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
30211
30381
|
function parseAnyDef(refs) {
|
|
30212
30382
|
if (refs.target !== "openAi") {
|
|
30213
30383
|
return {};
|
|
@@ -30223,7 +30393,7 @@ function parseAnyDef(refs) {
|
|
|
30223
30393
|
};
|
|
30224
30394
|
}
|
|
30225
30395
|
|
|
30226
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
30396
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
30227
30397
|
function parseArrayDef(def, refs) {
|
|
30228
30398
|
const res = {
|
|
30229
30399
|
type: "array"
|
|
@@ -30247,7 +30417,7 @@ function parseArrayDef(def, refs) {
|
|
|
30247
30417
|
return res;
|
|
30248
30418
|
}
|
|
30249
30419
|
|
|
30250
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
30420
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
30251
30421
|
function parseBigintDef(def, refs) {
|
|
30252
30422
|
const res = {
|
|
30253
30423
|
type: "integer",
|
|
@@ -30293,24 +30463,24 @@ function parseBigintDef(def, refs) {
|
|
|
30293
30463
|
return res;
|
|
30294
30464
|
}
|
|
30295
30465
|
|
|
30296
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
30466
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
30297
30467
|
function parseBooleanDef() {
|
|
30298
30468
|
return {
|
|
30299
30469
|
type: "boolean"
|
|
30300
30470
|
};
|
|
30301
30471
|
}
|
|
30302
30472
|
|
|
30303
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
30473
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
30304
30474
|
function parseBrandedDef(_def, refs) {
|
|
30305
30475
|
return parseDef(_def.type._def, refs);
|
|
30306
30476
|
}
|
|
30307
30477
|
|
|
30308
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
30478
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
30309
30479
|
var parseCatchDef = (def, refs) => {
|
|
30310
30480
|
return parseDef(def.innerType._def, refs);
|
|
30311
30481
|
};
|
|
30312
30482
|
|
|
30313
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
30483
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
30314
30484
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
30315
30485
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
30316
30486
|
if (Array.isArray(strategy)) {
|
|
@@ -30355,7 +30525,7 @@ var integerDateParser = (def, refs) => {
|
|
|
30355
30525
|
return res;
|
|
30356
30526
|
};
|
|
30357
30527
|
|
|
30358
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
30528
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
30359
30529
|
function parseDefaultDef(_def, refs) {
|
|
30360
30530
|
return {
|
|
30361
30531
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -30363,12 +30533,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
30363
30533
|
};
|
|
30364
30534
|
}
|
|
30365
30535
|
|
|
30366
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
30536
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
30367
30537
|
function parseEffectsDef(_def, refs) {
|
|
30368
30538
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
30369
30539
|
}
|
|
30370
30540
|
|
|
30371
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
30541
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
30372
30542
|
function parseEnumDef(def) {
|
|
30373
30543
|
return {
|
|
30374
30544
|
type: "string",
|
|
@@ -30376,7 +30546,7 @@ function parseEnumDef(def) {
|
|
|
30376
30546
|
};
|
|
30377
30547
|
}
|
|
30378
30548
|
|
|
30379
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
30549
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
30380
30550
|
var isJsonSchema7AllOfType = (type) => {
|
|
30381
30551
|
if ("type" in type && type.type === "string")
|
|
30382
30552
|
return false;
|
|
@@ -30418,7 +30588,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
30418
30588
|
} : undefined;
|
|
30419
30589
|
}
|
|
30420
30590
|
|
|
30421
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
30591
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
30422
30592
|
function parseLiteralDef(def, refs) {
|
|
30423
30593
|
const parsedType2 = typeof def.value;
|
|
30424
30594
|
if (parsedType2 !== "bigint" && parsedType2 !== "number" && parsedType2 !== "boolean" && parsedType2 !== "string") {
|
|
@@ -30438,7 +30608,7 @@ function parseLiteralDef(def, refs) {
|
|
|
30438
30608
|
};
|
|
30439
30609
|
}
|
|
30440
30610
|
|
|
30441
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
30611
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
30442
30612
|
var emojiRegex2 = undefined;
|
|
30443
30613
|
var zodPatterns = {
|
|
30444
30614
|
cuid: /^[cC][^\s-]{8,}$/,
|
|
@@ -30735,7 +30905,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
30735
30905
|
return pattern;
|
|
30736
30906
|
}
|
|
30737
30907
|
|
|
30738
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
30908
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
30739
30909
|
function parseRecordDef(def, refs) {
|
|
30740
30910
|
if (refs.target === "openAi") {
|
|
30741
30911
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -30787,7 +30957,7 @@ function parseRecordDef(def, refs) {
|
|
|
30787
30957
|
return schema;
|
|
30788
30958
|
}
|
|
30789
30959
|
|
|
30790
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
30960
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
30791
30961
|
function parseMapDef(def, refs) {
|
|
30792
30962
|
if (refs.mapStrategy === "record") {
|
|
30793
30963
|
return parseRecordDef(def, refs);
|
|
@@ -30812,7 +30982,7 @@ function parseMapDef(def, refs) {
|
|
|
30812
30982
|
};
|
|
30813
30983
|
}
|
|
30814
30984
|
|
|
30815
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
30985
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
30816
30986
|
function parseNativeEnumDef(def) {
|
|
30817
30987
|
const object3 = def.values;
|
|
30818
30988
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -30826,7 +30996,7 @@ function parseNativeEnumDef(def) {
|
|
|
30826
30996
|
};
|
|
30827
30997
|
}
|
|
30828
30998
|
|
|
30829
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
30999
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
30830
31000
|
function parseNeverDef(refs) {
|
|
30831
31001
|
return refs.target === "openAi" ? undefined : {
|
|
30832
31002
|
not: parseAnyDef({
|
|
@@ -30836,7 +31006,7 @@ function parseNeverDef(refs) {
|
|
|
30836
31006
|
};
|
|
30837
31007
|
}
|
|
30838
31008
|
|
|
30839
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
31009
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
30840
31010
|
function parseNullDef(refs) {
|
|
30841
31011
|
return refs.target === "openApi3" ? {
|
|
30842
31012
|
enum: ["null"],
|
|
@@ -30846,7 +31016,7 @@ function parseNullDef(refs) {
|
|
|
30846
31016
|
};
|
|
30847
31017
|
}
|
|
30848
31018
|
|
|
30849
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
31019
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
30850
31020
|
var primitiveMappings = {
|
|
30851
31021
|
ZodString: "string",
|
|
30852
31022
|
ZodNumber: "number",
|
|
@@ -30914,7 +31084,7 @@ var asAnyOf = (def, refs) => {
|
|
|
30914
31084
|
return anyOf.length ? { anyOf } : undefined;
|
|
30915
31085
|
};
|
|
30916
31086
|
|
|
30917
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
31087
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
30918
31088
|
function parseNullableDef(def, refs) {
|
|
30919
31089
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
30920
31090
|
if (refs.target === "openApi3") {
|
|
@@ -30946,7 +31116,7 @@ function parseNullableDef(def, refs) {
|
|
|
30946
31116
|
return base && { anyOf: [base, { type: "null" }] };
|
|
30947
31117
|
}
|
|
30948
31118
|
|
|
30949
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
31119
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
30950
31120
|
function parseNumberDef(def, refs) {
|
|
30951
31121
|
const res = {
|
|
30952
31122
|
type: "number"
|
|
@@ -30995,7 +31165,7 @@ function parseNumberDef(def, refs) {
|
|
|
30995
31165
|
return res;
|
|
30996
31166
|
}
|
|
30997
31167
|
|
|
30998
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
31168
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
30999
31169
|
function parseObjectDef(def, refs) {
|
|
31000
31170
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
31001
31171
|
const result = {
|
|
@@ -31065,7 +31235,7 @@ function safeIsOptional(schema) {
|
|
|
31065
31235
|
}
|
|
31066
31236
|
}
|
|
31067
31237
|
|
|
31068
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
31238
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
31069
31239
|
var parseOptionalDef = (def, refs) => {
|
|
31070
31240
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
31071
31241
|
return parseDef(def.innerType._def, refs);
|
|
@@ -31084,7 +31254,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
31084
31254
|
} : parseAnyDef(refs);
|
|
31085
31255
|
};
|
|
31086
31256
|
|
|
31087
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
31257
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
31088
31258
|
var parsePipelineDef = (def, refs) => {
|
|
31089
31259
|
if (refs.pipeStrategy === "input") {
|
|
31090
31260
|
return parseDef(def.in._def, refs);
|
|
@@ -31104,12 +31274,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
31104
31274
|
};
|
|
31105
31275
|
};
|
|
31106
31276
|
|
|
31107
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
31277
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
31108
31278
|
function parsePromiseDef(def, refs) {
|
|
31109
31279
|
return parseDef(def.type._def, refs);
|
|
31110
31280
|
}
|
|
31111
31281
|
|
|
31112
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
31282
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
31113
31283
|
function parseSetDef(def, refs) {
|
|
31114
31284
|
const items = parseDef(def.valueType._def, {
|
|
31115
31285
|
...refs,
|
|
@@ -31129,7 +31299,7 @@ function parseSetDef(def, refs) {
|
|
|
31129
31299
|
return schema;
|
|
31130
31300
|
}
|
|
31131
31301
|
|
|
31132
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
31302
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
31133
31303
|
function parseTupleDef(def, refs) {
|
|
31134
31304
|
if (def.rest) {
|
|
31135
31305
|
return {
|
|
@@ -31157,24 +31327,24 @@ function parseTupleDef(def, refs) {
|
|
|
31157
31327
|
}
|
|
31158
31328
|
}
|
|
31159
31329
|
|
|
31160
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
31330
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
31161
31331
|
function parseUndefinedDef(refs) {
|
|
31162
31332
|
return {
|
|
31163
31333
|
not: parseAnyDef(refs)
|
|
31164
31334
|
};
|
|
31165
31335
|
}
|
|
31166
31336
|
|
|
31167
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
31337
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
31168
31338
|
function parseUnknownDef(refs) {
|
|
31169
31339
|
return parseAnyDef(refs);
|
|
31170
31340
|
}
|
|
31171
31341
|
|
|
31172
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
31342
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
31173
31343
|
var parseReadonlyDef = (def, refs) => {
|
|
31174
31344
|
return parseDef(def.innerType._def, refs);
|
|
31175
31345
|
};
|
|
31176
31346
|
|
|
31177
|
-
// node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
31347
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
31178
31348
|
var selectParser = (def, typeName, refs) => {
|
|
31179
31349
|
switch (typeName) {
|
|
31180
31350
|
case ZodFirstPartyTypeKind.ZodString:
|
|
@@ -31252,7 +31422,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
31252
31422
|
}
|
|
31253
31423
|
};
|
|
31254
31424
|
|
|
31255
|
-
// node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
31425
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
31256
31426
|
function parseDef(def, refs, forceResolution = false) {
|
|
31257
31427
|
const seenItem = refs.seen.get(def);
|
|
31258
31428
|
if (refs.override) {
|
|
@@ -31307,7 +31477,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
31307
31477
|
}
|
|
31308
31478
|
return jsonSchema;
|
|
31309
31479
|
};
|
|
31310
|
-
// node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
31480
|
+
// ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
31311
31481
|
var zodToJsonSchema = (schema, options) => {
|
|
31312
31482
|
const refs = getRefs(options);
|
|
31313
31483
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|
|
@@ -31367,7 +31537,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
31367
31537
|
}
|
|
31368
31538
|
return combined;
|
|
31369
31539
|
};
|
|
31370
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
31540
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
31371
31541
|
function mapMiniTarget(t) {
|
|
31372
31542
|
if (!t)
|
|
31373
31543
|
return "draft-7";
|
|
@@ -31409,7 +31579,7 @@ function parseWithCompat(schema, data) {
|
|
|
31409
31579
|
return result.data;
|
|
31410
31580
|
}
|
|
31411
31581
|
|
|
31412
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
31582
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
31413
31583
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
31414
31584
|
|
|
31415
31585
|
class Protocol {
|
|
@@ -32250,7 +32420,7 @@ function mergeCapabilities(base, additional) {
|
|
|
32250
32420
|
return result;
|
|
32251
32421
|
}
|
|
32252
32422
|
|
|
32253
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
32423
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
32254
32424
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
32255
32425
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
32256
32426
|
function createDefaultAjvInstance() {
|
|
@@ -32290,7 +32460,7 @@ class AjvJsonSchemaValidator {
|
|
|
32290
32460
|
}
|
|
32291
32461
|
}
|
|
32292
32462
|
|
|
32293
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
32463
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
32294
32464
|
class ExperimentalServerTasks {
|
|
32295
32465
|
constructor(_server) {
|
|
32296
32466
|
this._server = _server;
|
|
@@ -32368,7 +32538,7 @@ class ExperimentalServerTasks {
|
|
|
32368
32538
|
}
|
|
32369
32539
|
}
|
|
32370
32540
|
|
|
32371
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
32541
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
32372
32542
|
function assertToolsCallTaskCapability(requests, method, entityName) {
|
|
32373
32543
|
if (!requests) {
|
|
32374
32544
|
throw new Error(`${entityName} does not support task creation (required for ${method})`);
|
|
@@ -32403,7 +32573,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
32403
32573
|
}
|
|
32404
32574
|
}
|
|
32405
32575
|
|
|
32406
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
32576
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
32407
32577
|
class Server extends Protocol {
|
|
32408
32578
|
constructor(_serverInfo, options) {
|
|
32409
32579
|
super(options);
|
|
@@ -32451,16 +32621,7 @@ class Server extends Protocol {
|
|
|
32451
32621
|
if (!methodSchema) {
|
|
32452
32622
|
throw new Error("Schema is missing a method literal");
|
|
32453
32623
|
}
|
|
32454
|
-
|
|
32455
|
-
if (isZ4Schema(methodSchema)) {
|
|
32456
|
-
const v4Schema = methodSchema;
|
|
32457
|
-
const v4Def = v4Schema._zod?.def;
|
|
32458
|
-
methodValue = v4Def?.value ?? v4Schema.value;
|
|
32459
|
-
} else {
|
|
32460
|
-
const v3Schema = methodSchema;
|
|
32461
|
-
const legacyDef = v3Schema._def;
|
|
32462
|
-
methodValue = legacyDef?.value ?? v3Schema.value;
|
|
32463
|
-
}
|
|
32624
|
+
const methodValue = getLiteralValue(methodSchema);
|
|
32464
32625
|
if (typeof methodValue !== "string") {
|
|
32465
32626
|
throw new Error("Schema method literal must be a string");
|
|
32466
32627
|
}
|
|
@@ -32736,7 +32897,7 @@ class Server extends Protocol {
|
|
|
32736
32897
|
}
|
|
32737
32898
|
}
|
|
32738
32899
|
|
|
32739
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
32900
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
32740
32901
|
var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
|
|
32741
32902
|
function isCompletable(schema) {
|
|
32742
32903
|
return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
|
|
@@ -32750,7 +32911,7 @@ var McpZodTypeKind;
|
|
|
32750
32911
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
32751
32912
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
32752
32913
|
|
|
32753
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
32914
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
32754
32915
|
var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
|
|
32755
32916
|
function validateToolName(name) {
|
|
32756
32917
|
const warnings = [];
|
|
@@ -32808,7 +32969,7 @@ function validateAndWarnToolName(name) {
|
|
|
32808
32969
|
return result.isValid;
|
|
32809
32970
|
}
|
|
32810
32971
|
|
|
32811
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
32972
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
32812
32973
|
class ExperimentalMcpServerTasks {
|
|
32813
32974
|
constructor(_mcpServer) {
|
|
32814
32975
|
this._mcpServer = _mcpServer;
|
|
@@ -32823,7 +32984,7 @@ class ExperimentalMcpServerTasks {
|
|
|
32823
32984
|
}
|
|
32824
32985
|
}
|
|
32825
32986
|
|
|
32826
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
32987
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
32827
32988
|
init_zod();
|
|
32828
32989
|
|
|
32829
32990
|
class McpServer {
|
|
@@ -35148,17 +35309,54 @@ function buildServer() {
|
|
|
35148
35309
|
return server;
|
|
35149
35310
|
}
|
|
35150
35311
|
|
|
35151
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/
|
|
35312
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js
|
|
35313
|
+
var import_content_type = __toESM(require_content_type(), 1);
|
|
35314
|
+
function mediaTypeEssence(header) {
|
|
35315
|
+
if (!header) {
|
|
35316
|
+
return;
|
|
35317
|
+
}
|
|
35318
|
+
try {
|
|
35319
|
+
return import_content_type.default.parse(header).type;
|
|
35320
|
+
} catch {
|
|
35321
|
+
const essence = (header.split(";", 1)[0] ?? "").trim().toLowerCase();
|
|
35322
|
+
if (essence === "" || header.slice(essence.length).includes(",")) {
|
|
35323
|
+
return;
|
|
35324
|
+
}
|
|
35325
|
+
return essence;
|
|
35326
|
+
}
|
|
35327
|
+
}
|
|
35328
|
+
function isJsonContentType(header) {
|
|
35329
|
+
if (header === "application/json") {
|
|
35330
|
+
return true;
|
|
35331
|
+
}
|
|
35332
|
+
return mediaTypeEssence(header) === "application/json";
|
|
35333
|
+
}
|
|
35334
|
+
|
|
35335
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js
|
|
35336
|
+
var DEFAULT_SSE_KEEP_ALIVE_MS = 15000;
|
|
35337
|
+
var MAX_TIMER_DELAY_MS = 2 ** 31 - 1;
|
|
35338
|
+
function armSseKeepAlive(intervalMs, onTick) {
|
|
35339
|
+
if (!Number.isFinite(intervalMs) || intervalMs < 1) {
|
|
35340
|
+
return;
|
|
35341
|
+
}
|
|
35342
|
+
const timer = setInterval(onTick, Math.min(intervalMs, MAX_TIMER_DELAY_MS));
|
|
35343
|
+
timer.unref?.();
|
|
35344
|
+
return timer;
|
|
35345
|
+
}
|
|
35346
|
+
|
|
35347
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js
|
|
35152
35348
|
class WebStandardStreamableHTTPServerTransport {
|
|
35153
35349
|
constructor(options = {}) {
|
|
35154
35350
|
this._started = false;
|
|
35155
35351
|
this._hasHandledRequest = false;
|
|
35156
35352
|
this._streamMapping = new Map;
|
|
35157
35353
|
this._requestToStreamMapping = new Map;
|
|
35354
|
+
this._resumableStreams = new Set;
|
|
35158
35355
|
this._requestResponseMap = new Map;
|
|
35159
35356
|
this._initialized = false;
|
|
35160
35357
|
this._enableJsonResponse = false;
|
|
35161
35358
|
this._standaloneSseStreamId = "_GET_stream";
|
|
35359
|
+
this._closed = false;
|
|
35162
35360
|
this.sessionIdGenerator = options.sessionIdGenerator;
|
|
35163
35361
|
this._enableJsonResponse = options.enableJsonResponse ?? false;
|
|
35164
35362
|
this._eventStore = options.eventStore;
|
|
@@ -35168,6 +35366,22 @@ class WebStandardStreamableHTTPServerTransport {
|
|
|
35168
35366
|
this._allowedOrigins = options.allowedOrigins;
|
|
35169
35367
|
this._enableDnsRebindingProtection = options.enableDnsRebindingProtection ?? false;
|
|
35170
35368
|
this._retryInterval = options.retryInterval;
|
|
35369
|
+
this._keepAliveMs = options.keepAliveMs ?? DEFAULT_SSE_KEEP_ALIVE_MS;
|
|
35370
|
+
}
|
|
35371
|
+
startKeepAlive(controller, encoder) {
|
|
35372
|
+
if (this._closed)
|
|
35373
|
+
return;
|
|
35374
|
+
const timer = armSseKeepAlive(this._keepAliveMs, () => {
|
|
35375
|
+
try {
|
|
35376
|
+
controller.enqueue(encoder.encode(`: keepalive
|
|
35377
|
+
|
|
35378
|
+
`));
|
|
35379
|
+
} catch {
|
|
35380
|
+
if (timer !== undefined)
|
|
35381
|
+
clearInterval(timer);
|
|
35382
|
+
}
|
|
35383
|
+
});
|
|
35384
|
+
return timer;
|
|
35171
35385
|
}
|
|
35172
35386
|
async start() {
|
|
35173
35387
|
if (this._started) {
|
|
@@ -35215,6 +35429,9 @@ class WebStandardStreamableHTTPServerTransport {
|
|
|
35215
35429
|
return;
|
|
35216
35430
|
}
|
|
35217
35431
|
async handleRequest(req, options) {
|
|
35432
|
+
if (this._closed) {
|
|
35433
|
+
return this.createJsonErrorResponse(404, -32001, "Session not found");
|
|
35434
|
+
}
|
|
35218
35435
|
if (!this.sessionIdGenerator && this._hasHandledRequest) {
|
|
35219
35436
|
throw new Error("Stateless transport cannot be reused across requests. Create a new transport per request.");
|
|
35220
35437
|
}
|
|
@@ -35254,6 +35471,7 @@ data:
|
|
|
35254
35471
|
`;
|
|
35255
35472
|
}
|
|
35256
35473
|
controller.enqueue(encoder.encode(primingEvent));
|
|
35474
|
+
this._resumableStreams.add(streamId);
|
|
35257
35475
|
}
|
|
35258
35476
|
async handleGetRequest(req) {
|
|
35259
35477
|
const acceptHeader = req.headers.get("accept");
|
|
@@ -35281,18 +35499,25 @@ data:
|
|
|
35281
35499
|
}
|
|
35282
35500
|
const encoder = new TextEncoder;
|
|
35283
35501
|
let streamController;
|
|
35502
|
+
let keepAliveTimer = undefined;
|
|
35284
35503
|
const readable = new ReadableStream({
|
|
35285
35504
|
start: (controller) => {
|
|
35286
35505
|
streamController = controller;
|
|
35287
35506
|
},
|
|
35288
35507
|
cancel: () => {
|
|
35289
|
-
|
|
35508
|
+
if (keepAliveTimer !== undefined) {
|
|
35509
|
+
clearInterval(keepAliveTimer);
|
|
35510
|
+
}
|
|
35511
|
+
if (this._streamMapping.get(this._standaloneSseStreamId)?.controller === streamController) {
|
|
35512
|
+
this._streamMapping.delete(this._standaloneSseStreamId);
|
|
35513
|
+
}
|
|
35290
35514
|
}
|
|
35291
35515
|
});
|
|
35292
35516
|
const headers = {
|
|
35293
35517
|
"Content-Type": "text/event-stream",
|
|
35294
35518
|
"Cache-Control": "no-cache, no-transform",
|
|
35295
|
-
Connection: "keep-alive"
|
|
35519
|
+
Connection: "keep-alive",
|
|
35520
|
+
"X-Accel-Buffering": "no"
|
|
35296
35521
|
};
|
|
35297
35522
|
if (this.sessionId !== undefined) {
|
|
35298
35523
|
headers["mcp-session-id"] = this.sessionId;
|
|
@@ -35301,12 +35526,16 @@ data:
|
|
|
35301
35526
|
controller: streamController,
|
|
35302
35527
|
encoder,
|
|
35303
35528
|
cleanup: () => {
|
|
35529
|
+
if (keepAliveTimer !== undefined) {
|
|
35530
|
+
clearInterval(keepAliveTimer);
|
|
35531
|
+
}
|
|
35304
35532
|
this._streamMapping.delete(this._standaloneSseStreamId);
|
|
35305
35533
|
try {
|
|
35306
35534
|
streamController.close();
|
|
35307
35535
|
} catch {}
|
|
35308
35536
|
}
|
|
35309
35537
|
});
|
|
35538
|
+
keepAliveTimer = this.startKeepAlive(streamController, encoder);
|
|
35310
35539
|
return new Response(readable, { headers });
|
|
35311
35540
|
}
|
|
35312
35541
|
async replayEvents(lastEventId) {
|
|
@@ -35330,20 +35559,33 @@ data:
|
|
|
35330
35559
|
const headers = {
|
|
35331
35560
|
"Content-Type": "text/event-stream",
|
|
35332
35561
|
"Cache-Control": "no-cache, no-transform",
|
|
35333
|
-
Connection: "keep-alive"
|
|
35562
|
+
Connection: "keep-alive",
|
|
35563
|
+
"X-Accel-Buffering": "no"
|
|
35334
35564
|
};
|
|
35335
35565
|
if (this.sessionId !== undefined) {
|
|
35336
35566
|
headers["mcp-session-id"] = this.sessionId;
|
|
35337
35567
|
}
|
|
35338
35568
|
const encoder = new TextEncoder;
|
|
35339
35569
|
let streamController;
|
|
35570
|
+
let keepAliveTimer = undefined;
|
|
35571
|
+
let replayedStreamId = undefined;
|
|
35572
|
+
let cancelled = false;
|
|
35340
35573
|
const readable = new ReadableStream({
|
|
35341
35574
|
start: (controller) => {
|
|
35342
35575
|
streamController = controller;
|
|
35343
35576
|
},
|
|
35344
|
-
cancel: () => {
|
|
35577
|
+
cancel: () => {
|
|
35578
|
+
cancelled = true;
|
|
35579
|
+
if (keepAliveTimer !== undefined) {
|
|
35580
|
+
clearInterval(keepAliveTimer);
|
|
35581
|
+
}
|
|
35582
|
+
if (replayedStreamId !== undefined && this._streamMapping.get(replayedStreamId)?.controller === streamController) {
|
|
35583
|
+
this._streamMapping.delete(replayedStreamId);
|
|
35584
|
+
}
|
|
35585
|
+
}
|
|
35345
35586
|
});
|
|
35346
|
-
const
|
|
35587
|
+
const replayedEventIds = new Set;
|
|
35588
|
+
replayedStreamId = await this._eventStore.replayEventsAfter(lastEventId, {
|
|
35347
35589
|
send: async (eventId, message) => {
|
|
35348
35590
|
const success3 = this.writeSSEEvent(streamController, encoder, message, eventId);
|
|
35349
35591
|
if (!success3) {
|
|
@@ -35351,19 +35593,34 @@ data:
|
|
|
35351
35593
|
try {
|
|
35352
35594
|
streamController.close();
|
|
35353
35595
|
} catch {}
|
|
35596
|
+
} else {
|
|
35597
|
+
replayedEventIds.add(eventId);
|
|
35354
35598
|
}
|
|
35355
35599
|
}
|
|
35356
35600
|
});
|
|
35601
|
+
if (this._closed || cancelled) {
|
|
35602
|
+
try {
|
|
35603
|
+
streamController.close();
|
|
35604
|
+
} catch {}
|
|
35605
|
+
return this.createJsonErrorResponse(404, -32001, "Session not found");
|
|
35606
|
+
}
|
|
35607
|
+
this._streamMapping.get(replayedStreamId)?.cleanup();
|
|
35357
35608
|
this._streamMapping.set(replayedStreamId, {
|
|
35358
35609
|
controller: streamController,
|
|
35359
35610
|
encoder,
|
|
35611
|
+
replayedEventIds,
|
|
35360
35612
|
cleanup: () => {
|
|
35613
|
+
if (keepAliveTimer !== undefined) {
|
|
35614
|
+
clearInterval(keepAliveTimer);
|
|
35615
|
+
}
|
|
35361
35616
|
this._streamMapping.delete(replayedStreamId);
|
|
35362
35617
|
try {
|
|
35363
35618
|
streamController.close();
|
|
35364
35619
|
} catch {}
|
|
35365
35620
|
}
|
|
35366
35621
|
});
|
|
35622
|
+
this._resumableStreams.add(replayedStreamId);
|
|
35623
|
+
keepAliveTimer = this.startKeepAlive(streamController, encoder);
|
|
35367
35624
|
return new Response(readable, { headers });
|
|
35368
35625
|
} catch (error2) {
|
|
35369
35626
|
this.onerror?.(error2);
|
|
@@ -35413,7 +35670,7 @@ data:
|
|
|
35413
35670
|
return this.createJsonErrorResponse(406, -32000, "Not Acceptable: Client must accept both application/json and text/event-stream");
|
|
35414
35671
|
}
|
|
35415
35672
|
const ct = req.headers.get("content-type");
|
|
35416
|
-
if (!ct
|
|
35673
|
+
if (!isJsonContentType(ct)) {
|
|
35417
35674
|
this.onerror?.(new Error("Unsupported Media Type: Content-Type must be application/json"));
|
|
35418
35675
|
return this.createJsonErrorResponse(415, -32000, "Unsupported Media Type: Content-Type must be application/json");
|
|
35419
35676
|
}
|
|
@@ -35443,6 +35700,9 @@ data:
|
|
|
35443
35700
|
this.onerror?.(new Error("Parse error: Invalid JSON-RPC message"));
|
|
35444
35701
|
return this.createJsonErrorResponse(400, -32700, "Parse error: Invalid JSON-RPC message");
|
|
35445
35702
|
}
|
|
35703
|
+
if (this._closed) {
|
|
35704
|
+
return this.createJsonErrorResponse(404, -32001, "Session not found");
|
|
35705
|
+
}
|
|
35446
35706
|
const isInitializationRequest = messages.some(isInitializeRequest);
|
|
35447
35707
|
if (isInitializationRequest) {
|
|
35448
35708
|
if (this._initialized && this.sessionId !== undefined) {
|
|
@@ -35469,6 +35729,9 @@ data:
|
|
|
35469
35729
|
return protocolError;
|
|
35470
35730
|
}
|
|
35471
35731
|
}
|
|
35732
|
+
if (this._closed) {
|
|
35733
|
+
return this.createJsonErrorResponse(404, -32001, "Session not found");
|
|
35734
|
+
}
|
|
35472
35735
|
const hasRequests = messages.some(isJSONRPCRequest);
|
|
35473
35736
|
if (!hasRequests) {
|
|
35474
35737
|
for (const message of messages) {
|
|
@@ -35499,18 +35762,25 @@ data:
|
|
|
35499
35762
|
}
|
|
35500
35763
|
const encoder = new TextEncoder;
|
|
35501
35764
|
let streamController;
|
|
35765
|
+
let keepAliveTimer = undefined;
|
|
35502
35766
|
const readable = new ReadableStream({
|
|
35503
35767
|
start: (controller) => {
|
|
35504
35768
|
streamController = controller;
|
|
35505
35769
|
},
|
|
35506
35770
|
cancel: () => {
|
|
35507
|
-
|
|
35771
|
+
if (keepAliveTimer !== undefined) {
|
|
35772
|
+
clearInterval(keepAliveTimer);
|
|
35773
|
+
}
|
|
35774
|
+
if (this._streamMapping.get(streamId)?.controller === streamController) {
|
|
35775
|
+
this._streamMapping.delete(streamId);
|
|
35776
|
+
}
|
|
35508
35777
|
}
|
|
35509
35778
|
});
|
|
35510
35779
|
const headers = {
|
|
35511
35780
|
"Content-Type": "text/event-stream",
|
|
35512
|
-
"Cache-Control": "no-cache",
|
|
35513
|
-
Connection: "keep-alive"
|
|
35781
|
+
"Cache-Control": "no-cache, no-transform",
|
|
35782
|
+
Connection: "keep-alive",
|
|
35783
|
+
"X-Accel-Buffering": "no"
|
|
35514
35784
|
};
|
|
35515
35785
|
if (this.sessionId !== undefined) {
|
|
35516
35786
|
headers["mcp-session-id"] = this.sessionId;
|
|
@@ -35521,6 +35791,9 @@ data:
|
|
|
35521
35791
|
controller: streamController,
|
|
35522
35792
|
encoder,
|
|
35523
35793
|
cleanup: () => {
|
|
35794
|
+
if (keepAliveTimer !== undefined) {
|
|
35795
|
+
clearInterval(keepAliveTimer);
|
|
35796
|
+
}
|
|
35524
35797
|
this._streamMapping.delete(streamId);
|
|
35525
35798
|
try {
|
|
35526
35799
|
streamController.close();
|
|
@@ -35530,19 +35803,33 @@ data:
|
|
|
35530
35803
|
this._requestToStreamMapping.set(message.id, streamId);
|
|
35531
35804
|
}
|
|
35532
35805
|
}
|
|
35533
|
-
|
|
35534
|
-
|
|
35535
|
-
|
|
35536
|
-
|
|
35537
|
-
|
|
35538
|
-
|
|
35539
|
-
|
|
35540
|
-
|
|
35541
|
-
|
|
35542
|
-
|
|
35543
|
-
|
|
35806
|
+
try {
|
|
35807
|
+
await this.writePrimingEvent(streamController, encoder, streamId, clientProtocolVersion);
|
|
35808
|
+
for (const message of messages) {
|
|
35809
|
+
let closeSSEStream;
|
|
35810
|
+
let closeStandaloneSSEStream;
|
|
35811
|
+
if (isJSONRPCRequest(message) && this._eventStore && clientProtocolVersion >= "2025-11-25") {
|
|
35812
|
+
closeSSEStream = () => {
|
|
35813
|
+
this.closeSSEStream(message.id);
|
|
35814
|
+
};
|
|
35815
|
+
closeStandaloneSSEStream = () => {
|
|
35816
|
+
this.closeStandaloneSSEStream();
|
|
35817
|
+
};
|
|
35818
|
+
}
|
|
35819
|
+
this.onmessage?.(message, { authInfo: options?.authInfo, requestInfo, closeSSEStream, closeStandaloneSSEStream });
|
|
35544
35820
|
}
|
|
35545
|
-
|
|
35821
|
+
} catch (error2) {
|
|
35822
|
+
this._streamMapping.get(streamId)?.cleanup();
|
|
35823
|
+
this._resumableStreams.delete(streamId);
|
|
35824
|
+
for (const message of messages) {
|
|
35825
|
+
if (isJSONRPCRequest(message)) {
|
|
35826
|
+
this._requestToStreamMapping.delete(message.id);
|
|
35827
|
+
}
|
|
35828
|
+
}
|
|
35829
|
+
throw error2;
|
|
35830
|
+
}
|
|
35831
|
+
if (this._streamMapping.get(streamId)?.controller === streamController) {
|
|
35832
|
+
keepAliveTimer = this.startKeepAlive(streamController, encoder);
|
|
35546
35833
|
}
|
|
35547
35834
|
return new Response(readable, { status: 200, headers });
|
|
35548
35835
|
} catch (error2) {
|
|
@@ -35559,9 +35846,12 @@ data:
|
|
|
35559
35846
|
if (protocolError) {
|
|
35560
35847
|
return protocolError;
|
|
35561
35848
|
}
|
|
35562
|
-
|
|
35563
|
-
|
|
35564
|
-
|
|
35849
|
+
try {
|
|
35850
|
+
await Promise.resolve(this._onsessionclosed?.(this.sessionId));
|
|
35851
|
+
return new Response(null, { status: 200 });
|
|
35852
|
+
} finally {
|
|
35853
|
+
await this.close();
|
|
35854
|
+
}
|
|
35565
35855
|
}
|
|
35566
35856
|
validateSession(req) {
|
|
35567
35857
|
if (this.sessionIdGenerator === undefined) {
|
|
@@ -35591,11 +35881,16 @@ data:
|
|
|
35591
35881
|
return;
|
|
35592
35882
|
}
|
|
35593
35883
|
async close() {
|
|
35884
|
+
if (this._closed) {
|
|
35885
|
+
return;
|
|
35886
|
+
}
|
|
35887
|
+
this._closed = true;
|
|
35594
35888
|
this._streamMapping.forEach(({ cleanup }) => {
|
|
35595
35889
|
cleanup();
|
|
35596
35890
|
});
|
|
35597
35891
|
this._streamMapping.clear();
|
|
35598
35892
|
this._requestResponseMap.clear();
|
|
35893
|
+
this._resumableStreams.clear();
|
|
35599
35894
|
this.onclose?.();
|
|
35600
35895
|
}
|
|
35601
35896
|
closeSSEStream(requestId) {
|
|
@@ -35630,7 +35925,7 @@ data:
|
|
|
35630
35925
|
if (standaloneSse === undefined) {
|
|
35631
35926
|
return;
|
|
35632
35927
|
}
|
|
35633
|
-
if (standaloneSse.controller && standaloneSse.encoder) {
|
|
35928
|
+
if (standaloneSse.controller && standaloneSse.encoder && (eventId === undefined || !standaloneSse.replayedEventIds?.has(eventId))) {
|
|
35634
35929
|
this.writeSSEEvent(standaloneSse.controller, standaloneSse.encoder, message, eventId);
|
|
35635
35930
|
}
|
|
35636
35931
|
return;
|
|
@@ -35639,13 +35934,19 @@ data:
|
|
|
35639
35934
|
if (!streamId) {
|
|
35640
35935
|
throw new Error(`No connection established for request ID: ${String(requestId)}`);
|
|
35641
35936
|
}
|
|
35642
|
-
|
|
35643
|
-
if (!this._enableJsonResponse
|
|
35937
|
+
let stream = this._streamMapping.get(streamId);
|
|
35938
|
+
if (!this._enableJsonResponse) {
|
|
35644
35939
|
let eventId;
|
|
35645
35940
|
if (this._eventStore) {
|
|
35646
35941
|
eventId = await this._eventStore.storeEvent(streamId, message);
|
|
35942
|
+
stream = this._streamMapping.get(streamId);
|
|
35943
|
+
}
|
|
35944
|
+
if (stream?.controller && stream?.encoder && (eventId === undefined || !stream.replayedEventIds?.has(eventId))) {
|
|
35945
|
+
const written = this.writeSSEEvent(stream.controller, stream.encoder, message, eventId);
|
|
35946
|
+
if (written && eventId !== undefined) {
|
|
35947
|
+
this._resumableStreams.add(streamId);
|
|
35948
|
+
}
|
|
35647
35949
|
}
|
|
35648
|
-
this.writeSSEEvent(stream.controller, stream.encoder, message, eventId);
|
|
35649
35950
|
}
|
|
35650
35951
|
if (isJSONRPCResultResponse(message) || isJSONRPCErrorResponse(message)) {
|
|
35651
35952
|
this._requestResponseMap.set(requestId, message);
|
|
@@ -35653,6 +35954,25 @@ data:
|
|
|
35653
35954
|
const allResponsesReady = relatedIds.every((id) => this._requestResponseMap.has(id));
|
|
35654
35955
|
if (allResponsesReady) {
|
|
35655
35956
|
if (!stream) {
|
|
35957
|
+
if (this._closed) {
|
|
35958
|
+
for (const id of relatedIds) {
|
|
35959
|
+
this._requestResponseMap.delete(id);
|
|
35960
|
+
this._requestToStreamMapping.delete(id);
|
|
35961
|
+
}
|
|
35962
|
+
return;
|
|
35963
|
+
}
|
|
35964
|
+
if (!this._enableJsonResponse && this._eventStore && this._resumableStreams.has(streamId)) {
|
|
35965
|
+
for (const id of relatedIds) {
|
|
35966
|
+
this._requestResponseMap.delete(id);
|
|
35967
|
+
this._requestToStreamMapping.delete(id);
|
|
35968
|
+
}
|
|
35969
|
+
this._resumableStreams.delete(streamId);
|
|
35970
|
+
return;
|
|
35971
|
+
}
|
|
35972
|
+
for (const id of relatedIds) {
|
|
35973
|
+
this._requestResponseMap.delete(id);
|
|
35974
|
+
this._requestToStreamMapping.delete(id);
|
|
35975
|
+
}
|
|
35656
35976
|
throw new Error(`No connection established for request ID: ${String(requestId)}`);
|
|
35657
35977
|
}
|
|
35658
35978
|
if (this._enableJsonResponse && stream.resolveJson) {
|
|
@@ -35675,6 +35995,7 @@ data:
|
|
|
35675
35995
|
this._requestResponseMap.delete(id);
|
|
35676
35996
|
this._requestToStreamMapping.delete(id);
|
|
35677
35997
|
}
|
|
35998
|
+
this._resumableStreams.delete(streamId);
|
|
35678
35999
|
}
|
|
35679
36000
|
}
|
|
35680
36001
|
}
|