@introspection-ai/recipes 0.36.1 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +46 -11
- package/dist/agents.js.map +1 -1
- package/dist/ask-user-question.d.ts +82 -0
- package/dist/ask-user-question.d.ts.map +1 -0
- package/dist/ask-user-question.js +314 -0
- package/dist/ask-user-question.js.map +1 -0
- package/dist/child/agent-completions.d.ts +2 -1
- package/dist/child/agent-completions.d.ts.map +1 -1
- package/dist/child/agent-completions.js +4 -3
- package/dist/child/agent-completions.js.map +1 -1
- package/dist/connector-tools.d.ts.map +1 -1
- package/dist/connector-tools.js +10 -2
- package/dist/connector-tools.js.map +1 -1
- package/dist/documents/index.d.ts +6 -0
- package/dist/documents/index.d.ts.map +1 -0
- package/dist/documents/index.js +3 -0
- package/dist/documents/index.js.map +1 -0
- package/dist/documents/module.d.ts +51 -0
- package/dist/documents/module.d.ts.map +1 -0
- package/dist/documents/module.js +116 -0
- package/dist/documents/module.js.map +1 -0
- package/dist/documents/tools.d.ts +40 -0
- package/dist/documents/tools.d.ts.map +1 -0
- package/dist/documents/tools.js +327 -0
- package/dist/documents/tools.js.map +1 -0
- package/dist/documents/types.d.ts +144 -0
- package/dist/documents/types.d.ts.map +1 -0
- package/dist/documents/types.js +10 -0
- package/dist/documents/types.js.map +1 -0
- package/dist/extensions.d.ts +2 -0
- package/dist/extensions.d.ts.map +1 -1
- package/dist/extensions.js +3 -0
- package/dist/extensions.js.map +1 -1
- package/dist/interaction-tui.d.ts +1 -1
- package/dist/interaction-tui.d.ts.map +1 -1
- package/dist/interaction-tui.js +2 -2
- package/dist/interaction-tui.js.map +1 -1
- package/dist/mcp-chunks/{auth-command-GMMLBU24.js → auth-command-M7TQE3AL.js} +26 -23
- package/dist/mcp-chunks/call-arguments-GCXZA4HC.js +16 -0
- package/dist/mcp-chunks/{call-command-2VF6IKAZ.js → call-command-7LD7UEFK.js} +33 -33
- package/dist/mcp-chunks/{chunk-TYL2NVXI.js → chunk-2AKSS7WR.js} +2 -2
- package/dist/mcp-chunks/{chunk-LZUKBEQZ.js → chunk-2YV72LUA.js} +12 -12
- package/dist/mcp-chunks/{chunk-2JTXIMGE.js → chunk-3ETUDW7N.js} +1 -1
- package/dist/mcp-chunks/{chunk-5UK2JLTN.js → chunk-3FRLDHVD.js} +5 -5
- package/dist/mcp-chunks/{chunk-ENBJFQ6H.js → chunk-3HSC6NHZ.js} +1 -1
- package/dist/mcp-chunks/{chunk-IHOU2BEL.js → chunk-3LENTPGE.js} +2 -2
- package/dist/mcp-chunks/{chunk-ZJWZY54X.js → chunk-3P3KGT4H.js} +2 -2
- package/dist/mcp-chunks/{chunk-IMXPLUKE.js → chunk-3SXP4S2A.js} +2 -2
- package/dist/mcp-chunks/{chunk-22WCLO4D.js → chunk-5Z6WSV5D.js} +5 -5
- package/dist/mcp-chunks/{chunk-QNZGFUKC.js → chunk-63L6SHK3.js} +2 -2
- package/dist/mcp-chunks/{chunk-OI3RTQXY.js → chunk-66VSGFXA.js} +1 -1
- package/dist/mcp-chunks/{chunk-DUBQHYW4.js → chunk-6O42UGLI.js} +9 -9
- package/dist/mcp-chunks/{chunk-R4OYHQ4V.js → chunk-6P3KAQ5N.js} +1 -1
- package/dist/mcp-chunks/{chunk-5OO6WVPL.js → chunk-7U5NSQ5T.js} +1 -1
- package/dist/mcp-chunks/{chunk-O2C3HXGS.js → chunk-B6S43WID.js} +1 -1
- package/dist/mcp-chunks/{chunk-VWPKJFK4.js → chunk-BHXCAVFP.js} +1 -1
- package/dist/mcp-chunks/{chunk-WXNGATQ7.js → chunk-BUOGKTKK.js} +2 -1
- package/dist/mcp-chunks/{chunk-4U4BUXQD.js → chunk-CXST5CVH.js} +33 -17
- package/dist/mcp-chunks/{chunk-YWFQPA4D.js → chunk-DU4SDPEV.js} +2 -2
- package/dist/mcp-chunks/{chunk-ZI5XYM4C.js → chunk-E76ZUBOJ.js} +4 -4
- package/dist/mcp-chunks/{chunk-D2SZ7KRY.js → chunk-ELHS763C.js} +1 -1
- package/dist/mcp-chunks/{chunk-RHXZKYM7.js → chunk-F2X4Y2TQ.js} +1 -1
- package/dist/mcp-chunks/{chunk-6XC5JJWD.js → chunk-GTETFUPQ.js} +28 -25
- package/dist/mcp-chunks/{chunk-UQUM7ICD.js → chunk-GZ53GNFP.js} +10 -10
- package/dist/mcp-chunks/{chunk-LUVLTUKR.js → chunk-H5PBSJP3.js} +1 -1
- package/dist/mcp-chunks/{chunk-FLUF2FRN.js → chunk-HNQSUT44.js} +3 -3
- package/dist/mcp-chunks/{chunk-CN5KSNWG.js → chunk-I6UFV7RW.js} +1 -1
- package/dist/mcp-chunks/{chunk-OSTHIELS.js → chunk-IRARVOUM.js} +1 -1
- package/dist/mcp-chunks/{webapi-NNCZGUMZ.js → chunk-IRSL7JRH.js} +255 -249
- package/dist/mcp-chunks/{chunk-ZXIF7MKN.js → chunk-IWCVZ46B.js} +2 -2
- package/dist/mcp-chunks/{chunk-RZZO3ZD4.js → chunk-JEHI2YU4.js} +3 -3
- package/dist/mcp-chunks/{chunk-ANNJGB6F.js → chunk-JTPTAO4M.js} +13 -13
- package/dist/mcp-chunks/{chunk-U5QZHPCC.js → chunk-KJ5FPQF6.js} +1 -1
- package/dist/mcp-chunks/{chunk-7IVXKYTI.js → chunk-L2MSWQDL.js} +1 -1
- package/dist/mcp-chunks/{chunk-DBNBEWRX.js → chunk-MEQXX43K.js} +1 -1
- package/dist/mcp-chunks/{chunk-3AAF3FSI.js → chunk-MHUMLEBO.js} +1 -1
- package/dist/mcp-chunks/{chunk-HFHIY5TO.js → chunk-N2U2FODH.js} +4 -4
- package/dist/mcp-chunks/{chunk-YFCNRWLV.js → chunk-N6YUOYDS.js} +2 -2
- package/dist/mcp-chunks/{chunk-C4TJGC4F.js → chunk-O3RTM5HD.js} +1 -1
- package/dist/mcp-chunks/{chunk-35LLRCRA.js → chunk-O7SIXJM6.js} +1308 -912
- package/dist/mcp-chunks/{chunk-QDFL757K.js → chunk-PSE442BC.js} +91 -77
- package/dist/mcp-chunks/{chunk-YPSODIQX.js → chunk-QNXOIF5U.js} +15 -14
- package/dist/mcp-chunks/{chunk-RKQC2EE6.js → chunk-RUF27IUF.js} +2 -2
- package/dist/mcp-chunks/{chunk-SS7V7GVT.js → chunk-S2F7DDP5.js} +4 -4
- package/dist/mcp-chunks/{chunk-D65GOMYV.js → chunk-TC2JPBFB.js} +2 -2
- package/dist/mcp-chunks/{chunk-7BVYBZ4J.js → chunk-THRMUZZD.js} +39 -14
- package/dist/mcp-chunks/{chunk-P5YLK5G2.js → chunk-UFV6SVQG.js} +11 -11
- package/dist/mcp-chunks/{chunk-LISNXOIQ.js → chunk-US63Y6XE.js} +1 -1
- package/dist/mcp-chunks/{chunk-BIVX2WFX.js → chunk-UVEZNUN3.js} +285 -322
- package/dist/mcp-chunks/{chunk-HI6VG5LR.js → chunk-UVRJ3AAD.js} +2 -2
- package/dist/mcp-chunks/{chunk-6TIU2CDB.js → chunk-V42T3QNK.js} +456 -64
- package/dist/mcp-chunks/{chunk-347GOMV4.js → chunk-WDWSA7RL.js} +4 -4
- package/dist/mcp-chunks/{chunk-4PN2J74H.js → chunk-WQL7FJQ3.js} +4 -4
- package/dist/mcp-chunks/{chunk-LRGMFF5S.js → chunk-ZEA3Y5ZD.js} +7 -7
- package/dist/mcp-chunks/{cli-4OQD3H4N.js → cli-IYD7Y7MO.js} +67 -67
- package/dist/mcp-chunks/client-5MNBV3Z7.js +32 -0
- package/dist/mcp-chunks/{config-command-72TCIWPV.js → config-command-6DXILFNO.js} +129 -34
- package/dist/mcp-chunks/daemon-command-V3B3EMXD.js +32 -0
- package/dist/mcp-chunks/{dist-74UCKZK5.js → dist-Q7WSCBBK.js} +74 -55
- package/dist/mcp-chunks/{emit-ts-command-KD4ON2SE.js → emit-ts-command-NDCDFDRM.js} +17 -17
- package/dist/mcp-chunks/{generate-cli-runner-HWGI6HPL.js → generate-cli-runner-PW5WJ7KI.js} +136 -92
- package/dist/mcp-chunks/generated-daemon-runtime-3C4NWGAU.js +32 -0
- package/dist/mcp-chunks/{inspect-cli-command-FT5JSB7V.js → inspect-cli-command-4MGF5CPP.js} +9 -9
- package/dist/mcp-chunks/{launch-AHLKP2VM.js → launch-UG7IH27P.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-BJDITFWN.js → lifecycle-QBYGUHQ3.js} +1 -1
- package/dist/mcp-chunks/{list-command-YKF7RN6Y.js → list-command-SDITI3ZM.js} +36 -35
- package/dist/mcp-chunks/{output-utils-LYB5IJRD.js → output-utils-YTMZTA7J.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-B3USYOND.js → prompt-DkftHXS7-N7UENQ4C.js} +1 -1
- package/dist/mcp-chunks/{record-command-MJW3Z5E5.js → record-command-JGTMATYI.js} +5 -5
- package/dist/mcp-chunks/{replay-command-5ZHBUOLE.js → replay-command-S2VAC4RW.js} +6 -6
- package/dist/mcp-chunks/{resource-command-L4I24AX5.js → resource-command-SRFQQROJ.js} +9 -9
- package/dist/mcp-chunks/{result-utils-5WRI66KV.js → result-utils-JASGNHXK.js} +3 -3
- package/dist/mcp-chunks/runtime-RMI3XCYJ.js +39 -0
- package/dist/mcp-chunks/{runtime-wrapper-WFMNIHD5.js → runtime-wrapper-7HYO3NM5.js} +3 -3
- package/dist/mcp-chunks/{serve-command-KNCSJUXS.js → serve-command-UF5SVREV.js} +1111 -697
- package/dist/mcp-chunks/{timeouts-2ZHGSB3R.js → timeouts-BJWDJEMH.js} +3 -3
- package/dist/mcp-chunks/{vault-command-7EDL45AA.js → vault-command-EYOIFWEY.js} +5 -4
- package/dist/mcp-chunks/webapi-WMMA3OEC.js +82 -0
- package/dist/mcp-daemon.js +28 -27
- package/dist/mcp-run-worker.js +28 -27
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +6 -0
- package/dist/pi-extension.js.map +1 -1
- package/dist/recipe/package.d.ts +7 -0
- package/dist/recipe/package.d.ts.map +1 -1
- package/dist/recipe/package.js +69 -0
- package/dist/recipe/package.js.map +1 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +6 -0
- package/dist/session.js.map +1 -1
- package/docs/agent-composition.md +8 -0
- package/docs/documents.md +249 -0
- package/docs/index.md +1 -0
- package/docs/interactions.md +76 -8
- package/docs/mcp-configuration.md +10 -5
- package/docs/recipe-format.md +69 -1
- package/package.json +10 -6
- package/dist/mcp-chunks/call-arguments-WSURHOLV.js +0 -16
- package/dist/mcp-chunks/client-LXKCCVMT.js +0 -31
- package/dist/mcp-chunks/daemon-command-QHS3ACBM.js +0 -31
- package/dist/mcp-chunks/generated-daemon-runtime-7ORS5KBR.js +0 -31
- package/dist/mcp-chunks/runtime-IKWDQLZF.js +0 -38
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
+
VaultEncryptionError,
|
|
3
4
|
clearLegacyOAuthArtifacts,
|
|
4
5
|
createOAuthPersistenceStores,
|
|
5
6
|
runtimeEnvironment,
|
|
6
7
|
runtimeStateDir,
|
|
7
8
|
sameOAuthTokenGeneration,
|
|
8
9
|
vaultCredentialKeys
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V42T3QNK.js";
|
|
10
11
|
import {
|
|
11
12
|
canonicalizeFilePath,
|
|
12
13
|
isFileLockTimeoutError,
|
|
13
14
|
withFileLock
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3LENTPGE.js";
|
|
15
16
|
import {
|
|
16
17
|
checkResourceAllowed,
|
|
17
18
|
discoverOAuthServerInfo,
|
|
18
19
|
refreshAuthorization,
|
|
19
20
|
resourceUrlFromServerUrl
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-O7SIXJM6.js";
|
|
21
22
|
|
|
22
|
-
// node_modules/.pnpm/mcporter@0.
|
|
23
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-token-refresh.js
|
|
23
24
|
import { Buffer } from "node:buffer";
|
|
24
25
|
|
|
25
|
-
// node_modules/.pnpm/mcporter@0.
|
|
26
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-client-info.js
|
|
26
27
|
function buildStaticClientInformation(definition, options = {}) {
|
|
27
28
|
if (!definition.oauthClientId) {
|
|
28
29
|
return void 0;
|
|
@@ -48,7 +49,7 @@ function resolveOAuthClientSecret(definition, options = {}) {
|
|
|
48
49
|
return definition.oauthClientSecret;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
// node_modules/.pnpm/mcporter@0.
|
|
52
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-refresh-lock.js
|
|
52
53
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
53
54
|
import crypto from "node:crypto";
|
|
54
55
|
import path from "node:path";
|
|
@@ -111,7 +112,7 @@ function filenameSafeLabel(value) {
|
|
|
111
112
|
return value.replace(/[^A-Za-z0-9._-]+/g, "_").replace(/^[._-]+/, "").slice(0, LOCK_LABEL_MAX);
|
|
112
113
|
}
|
|
113
114
|
|
|
114
|
-
// node_modules/.pnpm/mcporter@0.
|
|
115
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-token-refresh.js
|
|
115
116
|
var TOKEN_EXPIRY_SKEW_SECONDS = 60;
|
|
116
117
|
var TOKEN_REQUEST_TIMEOUT_MS = 1e4;
|
|
117
118
|
var OAuthIssuerMismatchError = class extends Error {
|
|
@@ -204,13 +205,16 @@ function normalizedIssuer(value) {
|
|
|
204
205
|
}
|
|
205
206
|
return value.endsWith("/") ? value.slice(0, -1) : value;
|
|
206
207
|
}
|
|
207
|
-
async function assertRefreshIssuerBinding(definition, persistence, tokens, clientInformation, receivedIssuer) {
|
|
208
|
-
const
|
|
208
|
+
async function assertRefreshIssuerBinding(definition, persistence, tokens, clientInformation, receivedIssuer, persistedDiscoveryIssuer) {
|
|
209
|
+
const credentialIssuer = normalizedIssuer(tokens.issuer) ?? normalizedIssuer(clientInformation.issuer);
|
|
210
|
+
const expectedIssuer = credentialIssuer ?? normalizedIssuer(persistedDiscoveryIssuer);
|
|
209
211
|
if (!expectedIssuer || expectedIssuer === normalizedIssuer(receivedIssuer)) {
|
|
210
212
|
return;
|
|
211
213
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
+
if (credentialIssuer) {
|
|
215
|
+
await Promise.all([persistence.clear("tokens"), persistence.clear("client")]);
|
|
216
|
+
}
|
|
217
|
+
throw new OAuthIssuerMismatchError(`OAuth issuer changed for '${definition.name}': expected ${expectedIssuer}, received ${receivedIssuer}. ${credentialIssuer ? "Discarded" : "Retained"} cached credentials; run 'mcporter auth ${definition.name}' to reauthorize.`);
|
|
214
218
|
}
|
|
215
219
|
function unrecoverableOAuthRefreshCode(error) {
|
|
216
220
|
const errorCode = oauthErrorCode(error);
|
|
@@ -308,8 +312,23 @@ async function refreshCachedOAuthTokenUnderLock(definition, persistence, origina
|
|
|
308
312
|
if (definition.command.kind !== "http") {
|
|
309
313
|
return tokens.access_token;
|
|
310
314
|
}
|
|
311
|
-
const
|
|
312
|
-
|
|
315
|
+
const discoveryState = await persistence.readDiscoveryState();
|
|
316
|
+
const tokenIssuer = normalizedIssuer(tokens.issuer);
|
|
317
|
+
const clientIssuer = normalizedIssuer(clientInformation.issuer);
|
|
318
|
+
if (tokenIssuer && clientIssuer && tokenIssuer !== clientIssuer) {
|
|
319
|
+
throw new OAuthIssuerMismatchError(`Cached OAuth token and client issuers for '${definition.name}' do not match. Retained cached credentials; run 'mcporter auth ${definition.name}' to reauthorize.`);
|
|
320
|
+
}
|
|
321
|
+
const credentialIssuer = tokenIssuer ?? clientIssuer;
|
|
322
|
+
const persistedDiscoveryIssuer = normalizedIssuer(discoveryState?.authorizationServerUrl);
|
|
323
|
+
if (credentialIssuer && persistedDiscoveryIssuer && credentialIssuer !== persistedDiscoveryIssuer) {
|
|
324
|
+
throw new OAuthIssuerMismatchError(`Persisted OAuth discovery issuer for '${definition.name}' does not match its cached credentials. Retained cached credentials; run 'mcporter auth ${definition.name}' to reauthorize.`);
|
|
325
|
+
}
|
|
326
|
+
const resourceMetadataUrl = discoveryState?.resourceMetadataUrl ? new URL(discoveryState.resourceMetadataUrl) : void 0;
|
|
327
|
+
const serverInfo = await discoverOAuthServerInfo(definition.command.url, {
|
|
328
|
+
fetchFn: boundedRefreshFetch,
|
|
329
|
+
...resourceMetadataUrl ? { resourceMetadataUrl } : {}
|
|
330
|
+
});
|
|
331
|
+
await assertRefreshIssuerBinding(definition, persistence, tokens, clientInformation, serverInfo.authorizationServerUrl, persistedDiscoveryIssuer);
|
|
313
332
|
const resource = resourceForRefresh(definition.command.url, serverInfo.resourceMetadata);
|
|
314
333
|
const refreshed = await refreshAuthorization(serverInfo.authorizationServerUrl, {
|
|
315
334
|
metadata: serverInfo.authorizationServerMetadata,
|
|
@@ -322,6 +341,9 @@ async function refreshCachedOAuthTokenUnderLock(definition, persistence, origina
|
|
|
322
341
|
logger?.debug?.(`Refreshed cached OAuth access token for '${definition.name}' (non-interactive).`);
|
|
323
342
|
return refreshed.access_token;
|
|
324
343
|
} catch (error) {
|
|
344
|
+
if (error instanceof VaultEncryptionError) {
|
|
345
|
+
throw error;
|
|
346
|
+
}
|
|
325
347
|
logger?.debug?.(`Failed to refresh cached OAuth token for '${definition.name}' non-interactively: ${error instanceof Error ? error.message : String(error)}`);
|
|
326
348
|
if (error instanceof OAuthIssuerMismatchError) {
|
|
327
349
|
throw error;
|
|
@@ -398,6 +420,9 @@ async function refreshBearerTokenUnderLock(definition, persistence, original, sk
|
|
|
398
420
|
logger?.debug?.(`Refreshed bearer access token for '${definition.name}' (non-interactive).`);
|
|
399
421
|
return refreshed.access_token;
|
|
400
422
|
} catch (error) {
|
|
423
|
+
if (error instanceof VaultEncryptionError) {
|
|
424
|
+
throw error;
|
|
425
|
+
}
|
|
401
426
|
logger?.debug?.(`Failed to refresh bearer token for '${definition.name}' non-interactively: ${error instanceof Error ? error.message : String(error)}`);
|
|
402
427
|
const unrecoverableCode = unrecoverableOAuthRefreshCode(error);
|
|
403
428
|
if (unrecoverableCode) {
|
|
@@ -506,7 +531,7 @@ function readClientSecret(definition, refreshClientSecretEnv) {
|
|
|
506
531
|
return resolveOAuthClientSecret(definition, { rejectBlank: true });
|
|
507
532
|
}
|
|
508
533
|
|
|
509
|
-
// node_modules/.pnpm/mcporter@0.
|
|
534
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-persistence.js
|
|
510
535
|
async function buildOAuthPersistence(definition, logger) {
|
|
511
536
|
return await createOAuthPersistenceStores(definition, logger);
|
|
512
537
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
launchDaemonDetached
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B6S43WID.js";
|
|
5
5
|
import {
|
|
6
6
|
BrokerError,
|
|
7
7
|
DAEMON_PROTOCOL_VERSION,
|
|
@@ -20,33 +20,33 @@ import {
|
|
|
20
20
|
resolveProgressInterval,
|
|
21
21
|
stopVerifiedLegacyDaemons,
|
|
22
22
|
waitForDaemonReady
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GTETFUPQ.js";
|
|
24
24
|
import {
|
|
25
25
|
canonicalUserConfiguration,
|
|
26
26
|
getDaemonLogPath,
|
|
27
27
|
secureDaemonDirectory
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PSE442BC.js";
|
|
29
29
|
import {
|
|
30
30
|
ChromeDevtoolsRelayDiscoveryError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-6O42UGLI.js";
|
|
32
32
|
import {
|
|
33
33
|
withFileLock,
|
|
34
34
|
writeJsonFile
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-3LENTPGE.js";
|
|
36
36
|
import {
|
|
37
37
|
expandHome
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BHXCAVFP.js";
|
|
39
39
|
|
|
40
|
-
// node_modules/.pnpm/mcporter@0.
|
|
40
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/daemon-command.js
|
|
41
41
|
import fsPromises from "node:fs/promises";
|
|
42
42
|
import path2 from "node:path";
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/mcporter@0.
|
|
44
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/host.js
|
|
45
45
|
import fs from "node:fs/promises";
|
|
46
46
|
import net from "node:net";
|
|
47
47
|
import { randomUUID } from "node:crypto";
|
|
48
48
|
|
|
49
|
-
// node_modules/.pnpm/mcporter@0.
|
|
49
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/log-context.js
|
|
50
50
|
import fsSync from "node:fs";
|
|
51
51
|
import path from "node:path";
|
|
52
52
|
function createLogContext(options) {
|
|
@@ -98,7 +98,7 @@ async function disposeLogContext(context) {
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
// node_modules/.pnpm/mcporter@0.
|
|
101
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/host.js
|
|
102
102
|
async function runDaemonHost(options) {
|
|
103
103
|
await secureDaemonDirectory();
|
|
104
104
|
await assertLegacyDrained();
|
|
@@ -301,7 +301,7 @@ async function cleanupDaemonArtifactsIfOwned(paths, ownerPid) {
|
|
|
301
301
|
await fs.unlink(paths.metadataPath);
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
// node_modules/.pnpm/mcporter@0.
|
|
304
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/daemon-command.js
|
|
305
305
|
async function handleDaemonCli(args, options) {
|
|
306
306
|
const subcommand = args.shift();
|
|
307
307
|
if (!subcommand || subcommand === "help" || subcommand === "--help") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/http-utils.js
|
|
4
4
|
var DOMAIN_WITH_PATH_PATTERN = /^[A-Za-z0-9](?:[A-Za-z0-9.-]*)(?::\d+)?\//;
|
|
5
5
|
function normalizeHttpUrlCandidate(value) {
|
|
6
6
|
if (!value) {
|