@wirecat/drive-cli 0.67.0 → 0.69.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/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-DVZUVAPQ.js → all-profiles-B4A737YW.js} +20 -30
- package/dist/bundle/{anthropic-Y45C45O2.js → anthropic-RZGPDESM.js} +3 -3
- package/dist/bundle/{app-server-GTXUOUGD.js → app-server-OWEW7DY5.js} +51 -63
- package/dist/bundle/{bun-QVJV76QJ.js → bun-V5QLYBZU.js} +2 -2
- package/dist/bundle/{bun-sqlite-CC7PIAMH.js → bun-sqlite-KHLHXXGH.js} +4 -4
- package/dist/bundle/{chunk-ETAFFY3J.js → chunk-22SH77TG.js} +65 -64
- package/dist/bundle/{chunk-2Y3YBDZX.js → chunk-25FT44S3.js} +1482 -464
- package/dist/bundle/{chunk-YVUAG7RF.js → chunk-2DS2TDGW.js} +29 -28
- package/dist/bundle/{chunk-JJHDV32D.js → chunk-2Q4CB4EI.js} +1 -1
- package/dist/bundle/{chunk-HJF2QGOX.js → chunk-2VFAXC6O.js} +30 -17
- package/dist/bundle/{chunk-ULH3TNUP.js → chunk-376ZGVUZ.js} +4 -4
- package/dist/bundle/{chunk-NWYVOHIX.js → chunk-3RLRJHAI.js} +1646 -976
- package/dist/bundle/{chunk-SXJDCRXE.js → chunk-3URYKAJP.js} +1 -1
- package/dist/bundle/{chunk-7AZCAUST.js → chunk-3YKAFLXY.js} +1 -1
- package/dist/bundle/{chunk-MF46W7PQ.js → chunk-4J5GJJ2I.js} +1 -1
- package/dist/bundle/{chunk-3RG6LL25.js → chunk-4YECZ6CN.js} +11 -11
- package/dist/bundle/{chunk-SJE7UGOW.js → chunk-4ZFO2CVH.js} +4 -4
- package/dist/bundle/{chunk-UFNE57VY.js → chunk-533XOW74.js} +2 -2
- package/dist/bundle/{chunk-6ERQE4FS.js → chunk-5B5NOAIA.js} +100 -55
- package/dist/bundle/{chunk-MW46BLWH.js → chunk-5SJZDEIO.js} +2 -0
- package/dist/bundle/{chunk-RC72RU66.js → chunk-6D44YQ5X.js} +5 -5
- package/dist/bundle/{chunk-2MEVCMBW.js → chunk-6EL5AVXX.js} +3 -5
- package/dist/bundle/{chunk-ZU5VQYNY.js → chunk-6XNTELM5.js} +1 -1
- package/dist/bundle/{chunk-7J2IP3WL.js → chunk-AD7VI3XU.js} +6 -6
- package/dist/bundle/{chunk-Y5WSRG3F.js → chunk-AMQGKMLZ.js} +2 -2
- package/dist/bundle/{chunk-UOAHZV3K.js → chunk-BBJVV4E2.js} +28 -29
- package/dist/bundle/{chunk-XZCF5XU7.js → chunk-BVVXYZSU.js} +5 -5
- package/dist/bundle/{chunk-E3XA56TS.js → chunk-CAQ5GW3A.js} +1 -1
- package/dist/bundle/{chunk-MEQNAZ6R.js → chunk-CDSB7WVG.js} +323 -12
- package/dist/bundle/{chunk-P6A77LMP.js → chunk-CU6RATZH.js} +5 -7
- package/dist/bundle/{chunk-MEY7URZZ.js → chunk-CZ4UEXCE.js} +4 -4
- package/dist/bundle/{chunk-JLUQZZ26.js → chunk-E7URRFBB.js} +7 -7
- package/dist/bundle/{chunk-JCNEPYQZ.js → chunk-EL2E3ABX.js} +12 -12
- package/dist/bundle/{chunk-BHSLMJF7.js → chunk-EWUQIUTB.js} +4 -4
- package/dist/bundle/{chunk-4VH7M2OD.js → chunk-F5UUJU6R.js} +2 -2
- package/dist/bundle/{chunk-CWDC6QJM.js → chunk-GHFBT2ZM.js} +4 -4
- package/dist/bundle/{chunk-2PIA45FC.js → chunk-GK6KXBL6.js} +1 -1
- package/dist/bundle/{chunk-T2VAEDJS.js → chunk-GTDCP5OG.js} +3 -3
- package/dist/bundle/{chunk-IRULPE5M.js → chunk-HEBZCKMU.js} +1695 -672
- package/dist/bundle/{chunk-EXWOOST5.js → chunk-I55XYREN.js} +667 -230
- package/dist/bundle/{chunk-5TSILGTO.js → chunk-IQ2QU2X6.js} +1613 -1101
- package/dist/bundle/{chunk-WKIQKGOF.js → chunk-KUQDBWPU.js} +42 -32
- package/dist/bundle/{chunk-AJ3DFPRT.js → chunk-L342KHIZ.js} +105 -1
- package/dist/bundle/{chunk-JY2GZDJL.js → chunk-LRCSDAYK.js} +3 -3
- package/dist/bundle/{chunk-U2ERT45N.js → chunk-LUZRVBQR.js} +4 -4
- package/dist/bundle/{chunk-AAZPDWRD.js → chunk-MHXZ62CU.js} +1 -1
- package/dist/bundle/{chunk-ZK46UHDP.js → chunk-N4ACIIQB.js} +2 -2
- package/dist/bundle/{chunk-FS2PG2PE.js → chunk-NVDR72GP.js} +19 -19
- package/dist/bundle/{chunk-VZ5KETIX.js → chunk-O6PD7RZY.js} +2 -2
- package/dist/bundle/{chunk-PDHN4GHU.js → chunk-OOIAJRKQ.js} +1 -1
- package/dist/bundle/{chunk-JEMBW6IO.js → chunk-OUM4ZO53.js} +1 -1
- package/dist/bundle/{chunk-QOKPRFHM.js → chunk-PB6NWKH3.js} +2 -2
- package/dist/bundle/{chunk-C72WYRXD.js → chunk-QJGFQRTL.js} +10 -10
- package/dist/bundle/chunk-RLGQMMYE.js +707 -0
- package/dist/bundle/{chunk-4G7WQNG7.js → chunk-RWQ7T4Y5.js} +2 -2
- package/dist/bundle/{chunk-ZH4H5XTA.js → chunk-SEJBS7SI.js} +1 -1
- package/dist/bundle/{chunk-OOBSSU2G.js → chunk-SY2HLH5R.js} +33 -19
- package/dist/bundle/{chunk-LSAIXPAX.js → chunk-SYUXKV2E.js} +1 -1
- package/dist/bundle/{chunk-FOMQ4MG3.js → chunk-T4FMXDDV.js} +2 -2
- package/dist/bundle/{chunk-5DMPGTNR.js → chunk-T6X6EZ5N.js} +3 -3
- package/dist/bundle/{chunk-RLH6BOEG.js → chunk-TZ75K6R7.js} +6 -6
- package/dist/bundle/{chunk-D4MVEOU2.js → chunk-U3RXH6RY.js} +1 -1
- package/dist/bundle/{chunk-ABJQ6IDU.js → chunk-V4FMN5A6.js} +16 -16
- package/dist/bundle/{chunk-WBKYZZQT.js → chunk-VUPWDCYV.js} +1 -1
- package/dist/bundle/{chunk-V7E25BUU.js → chunk-WNMPIRRF.js} +98 -6
- package/dist/bundle/{chunk-DAFKV6DJ.js → chunk-WOUIHZRI.js} +13 -15
- package/dist/bundle/{chunk-WWW7YTFG.js → chunk-WQOGHND4.js} +1 -1
- package/dist/bundle/{chunk-NFIR346J.js → chunk-XUHQ7DVT.js} +1 -1
- package/dist/bundle/{chunk-YI4DXASF.js → chunk-XVH3WZSZ.js} +49 -55
- package/dist/bundle/{chunk-ZEPDEFVT.js → chunk-ZBYKCVSV.js} +1 -1
- package/dist/bundle/{chunk-LXRBTXCZ.js → chunk-ZUG67442.js} +2 -2
- package/dist/bundle/{cli-U4LSBYDV.js → cli-BS4L3HAP.js} +100 -70
- package/dist/bundle/{command-contract-UU5T24ZZ.js → command-contract-HYURWSD6.js} +16 -17
- package/dist/bundle/{command-server-entry-PK6FBUPO.js → command-server-entry-CJ2CV7ZV.js} +23 -24
- package/dist/bundle/{decode-3ZE6NBKV.js → decode-E2NM5SSM.js} +3 -3
- package/dist/bundle/drive.js +4 -4
- package/dist/bundle/{echarts-6FWNCNXK.js → echarts-QIXLXS3G.js} +2 -2
- package/dist/bundle/{embed-DGYBBZUW.js → embed-YNZW5X6M.js} +4 -4
- package/dist/bundle/{embedder-O7A6VMWI.js → embedder-LRC2PKTS.js} +7 -7
- package/dist/bundle/{entry-CDJ2QSU2.js → entry-2IMSWRJU.js} +7 -7
- package/dist/bundle/{first-run-UOQW7DN5.js → first-run-7CPHQDM5.js} +7 -7
- package/dist/bundle/first-screen-OKZ7GMFR.js +38 -0
- package/dist/bundle/{google-HPX52KMC.js → google-WDKDBDD4.js} +15 -15
- package/dist/bundle/{google-api-HIMN4XL5.js → google-api-7JDZDCWE.js} +52 -53
- package/dist/bundle/{grants-RO42I6E4.js → grants-AU25GWKF.js} +57 -58
- package/dist/bundle/{identity-NFGHDPLL.js → identity-E43WKN5F.js} +1 -1
- package/dist/bundle/{instructions-6JAQYCM6.js → instructions-MD2RZT5Z.js} +1 -1
- package/dist/bundle/{login-RZOQN63N.js → login-RBDJPQAG.js} +57 -58
- package/dist/bundle/{node-KSIX3GIH.js → node-IEVT2FSJ.js} +2 -2
- package/dist/bundle/{node-sqlite-4FJ6WJXN.js → node-sqlite-IENH4TRX.js} +5 -5
- package/dist/bundle/{oauth-BKZAMFKK.js → oauth-3JGSN47Z.js} +5 -5
- package/dist/bundle/{open-4AQJGH42.js → open-TZ5H7NYM.js} +3 -3
- package/dist/bundle/{openai-24F2OX55.js → openai-XF2KB7W2.js} +14 -14
- package/dist/bundle/{process-7NOA2T7H.js → process-6Q23D3TO.js} +1 -1
- package/dist/bundle/{program-7JHMLDEX.js → program-D5XWOHV5.js} +88 -88
- package/dist/bundle/{prompt-NM66MAZ4.js → prompt-KUC5D4GX.js} +3 -3
- package/dist/bundle/{recognize-DBKV2JYZ.js → recognize-DPFW7HO3.js} +2 -2
- package/dist/bundle/{remote-ABWUTBVB.js → remote-MODTSUNH.js} +8 -8
- package/dist/bundle/{rerank-FQAU4ENY.js → rerank-JK7SERLE.js} +5 -5
- package/dist/bundle/{serve-QLJG4QZD.js → serve-BV2WHZLW.js} +7 -7
- package/dist/bundle/server-6YDI4Y36.js +72 -0
- package/dist/bundle/{server-VGZNK5XD.js → server-N3WPEU7Z.js} +47 -44
- package/dist/bundle/{services-5KARVUHK.js → services-SV6CFUCS.js} +42 -27
- package/dist/bundle/{sqlite-runtime-ILF6EFQJ.js → sqlite-runtime-RZ5PLZVQ.js} +4 -4
- package/dist/bundle/{state-R2M56GPU.js → state-RAZIREVG.js} +4 -4
- package/dist/bundle/{store-DA4K7HWW.js → store-2DLGLYS6.js} +18 -14
- package/dist/bundle/{store-2OBVMUQL.js → store-DQKJKX2G.js} +12 -12
- package/dist/bundle/store-maintenance-command-UJ5F5L4H.js +64 -0
- package/dist/bundle/tokens-LY3WML55.js +110 -0
- package/dist/policy.d.ts +2 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +2 -1
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +3 -2
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-AZKFZ7J7.js +0 -76
- package/dist/bundle/chunk-JO7BJYAP.js +0 -1235
- package/dist/bundle/chunk-MBLB4TQI.js +0 -1316
- package/dist/bundle/first-screen-SNDV4YKF.js +0 -39
- package/dist/bundle/server-NUBLY5SV.js +0 -74
- package/dist/bundle/store-maintenance-command-KSIPI5B5.js +0 -65
- package/dist/bundle/tokens-VQDGSHRB.js +0 -111
package/dist/bin/drive.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.69.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -28,7 +28,7 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
-
const chunks = ["../bundle/all-profiles-
|
|
31
|
+
const chunks = ["../bundle/all-profiles-B4A737YW.js","../bundle/anthropic-RZGPDESM.js","../bundle/app-server-OWEW7DY5.js","../bundle/bun-V5QLYBZU.js","../bundle/bun-sqlite-KHLHXXGH.js","../bundle/cli-BS4L3HAP.js","../bundle/command-contract-HYURWSD6.js","../bundle/command-server-entry-CJ2CV7ZV.js","../bundle/decode-E2NM5SSM.js","../bundle/dispatch-WBEOHZDV.js","../bundle/dist-MWTMOYWT.js","../bundle/echarts-QIXLXS3G.js","../bundle/embed-YNZW5X6M.js","../bundle/embedder-LRC2PKTS.js","../bundle/entry-2IMSWRJU.js","../bundle/failure-X6PSLVSO.js","../bundle/first-run-7CPHQDM5.js","../bundle/first-screen-OKZ7GMFR.js","../bundle/google-WDKDBDD4.js","../bundle/google-api-7JDZDCWE.js","../bundle/grants-AU25GWKF.js","../bundle/identity-E43WKN5F.js","../bundle/instructions-MD2RZT5Z.js","../bundle/login-RBDJPQAG.js","../bundle/mcp-TDKGDB4V.js","../bundle/mdast-util-from-markdown-CE73EWJ2.js","../bundle/mdast-util-gfm-SZM5GBDF.js","../bundle/micromark-extension-gfm-GRL24TU6.js","../bundle/node-IEVT2FSJ.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-IENH4TRX.js","../bundle/oauth-3JGSN47Z.js","../bundle/open-TZ5H7NYM.js","../bundle/openai-XF2KB7W2.js","../bundle/process-6Q23D3TO.js","../bundle/program-D5XWOHV5.js","../bundle/prompt-KUC5D4GX.js","../bundle/reasons-KSYP5VDJ.js","../bundle/recognize-DPFW7HO3.js","../bundle/remote-MODTSUNH.js","../bundle/rerank-JK7SERLE.js","../bundle/serve-BV2WHZLW.js","../bundle/server-6YDI4Y36.js","../bundle/server-N3WPEU7Z.js","../bundle/services-SV6CFUCS.js","../bundle/sqlite-runtime-RZ5PLZVQ.js","../bundle/start-C6EXYXAL.js","../bundle/state-RAZIREVG.js","../bundle/store-2DLGLYS6.js","../bundle/store-DQKJKX2G.js","../bundle/store-maintenance-command-UJ5F5L4H.js","../bundle/terminal-DHJ4D3BC.js","../bundle/tokens-LY3WML55.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
answeredWire
|
|
5
|
-
} from "./chunk-AZKFZ7J7.js";
|
|
6
3
|
import {
|
|
7
4
|
CALLER_META_KEY,
|
|
8
5
|
PROXY_CLIENT_NAME,
|
|
9
6
|
StdioServerTransport,
|
|
7
|
+
answeredWire,
|
|
10
8
|
callerOf,
|
|
11
9
|
serveStdio
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WNMPIRRF.js";
|
|
13
11
|
import {
|
|
14
12
|
McpServer
|
|
15
13
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-AD7VI3XU.js";
|
|
15
|
+
import "./chunk-VUPWDCYV.js";
|
|
16
|
+
import "./chunk-3YKAFLXY.js";
|
|
19
17
|
import "./chunk-XWBPP2HX.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import
|
|
18
|
+
import "./chunk-5SJZDEIO.js";
|
|
19
|
+
import {
|
|
20
|
+
errorObjectOf,
|
|
21
|
+
mcpErrorResult
|
|
22
|
+
} from "./chunk-PV3AWPHR.js";
|
|
22
23
|
import "./chunk-Y5E2WNWB.js";
|
|
23
24
|
import "./chunk-HCZYJMBP.js";
|
|
24
25
|
import "./chunk-5TK2YQCO.js";
|
|
25
26
|
import "./chunk-JRFKCYMW.js";
|
|
26
|
-
import
|
|
27
|
+
import {
|
|
28
|
+
CliError
|
|
29
|
+
} from "./chunk-EA2OB75T.js";
|
|
27
30
|
import {
|
|
28
31
|
__name
|
|
29
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
33
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
32
35
|
import { spawn } from "node:child_process";
|
|
33
36
|
import { randomUUID } from "node:crypto";
|
|
34
37
|
var PROTOCOL = "2025-06-18";
|
|
@@ -184,10 +187,7 @@ var withProfile = /* @__PURE__ */ __name((tool, profiles, name, signedIn = () =>
|
|
|
184
187
|
}
|
|
185
188
|
};
|
|
186
189
|
}, "withProfile");
|
|
187
|
-
var refusal = /* @__PURE__ */ __name((text) => ({
|
|
188
|
-
isError: true,
|
|
189
|
-
content: [{ type: "text", text }]
|
|
190
|
-
}), "refusal");
|
|
190
|
+
var refusal = /* @__PURE__ */ __name((code, text, details) => mcpErrorResult(errorObjectOf(new CliError(code, text, details), { effects: { remote: "none", local: "none" } })), "refusal");
|
|
191
191
|
var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
192
192
|
const children = pool(options);
|
|
193
193
|
let listed;
|
|
@@ -214,9 +214,9 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
214
214
|
const { name, arguments: given = {}, _meta } = request.params;
|
|
215
215
|
const { profile, ...rest } = given;
|
|
216
216
|
if (typeof profile !== "string" || !profiles.includes(profile))
|
|
217
|
-
return refusal(`${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
|
|
217
|
+
return refusal("validation_error", `${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
|
|
218
218
|
if (!signedIn(profile))
|
|
219
|
-
return refusal(options.signIn?.(profile) ?? `profile ${profile} is not signed in.`);
|
|
219
|
+
return refusal("authentication_error", options.signIn?.(profile) ?? `profile ${profile} is not signed in.`);
|
|
220
220
|
try {
|
|
221
221
|
return await children.use(profile, (child) => (
|
|
222
222
|
// Children are shared by every session, so each call names its own caller.
|
|
@@ -227,7 +227,7 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
227
227
|
})
|
|
228
228
|
));
|
|
229
229
|
} catch (error) {
|
|
230
|
-
return refusal(`profile ${profile}: ${error instanceof Error ? error.message : String(error)}`);
|
|
230
|
+
return refusal("outcome_unknown", `profile ${profile}: ${error instanceof Error ? error.message : String(error)}`);
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
return server;
|
|
@@ -242,18 +242,8 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
242
242
|
transport: new StdioServerTransport(wire.input, wire.output),
|
|
243
243
|
onerror: /* @__PURE__ */ __name((error) => options.note?.(`mcp: ${error.message}`), "onerror")
|
|
244
244
|
});
|
|
245
|
-
|
|
246
|
-
wire.ended.then(() => resolve("input"));
|
|
247
|
-
if (own)
|
|
248
|
-
io.signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
249
|
-
else {
|
|
250
|
-
process.once("SIGINT", () => resolve("stopped"));
|
|
251
|
-
process.once("SIGTERM", () => resolve("stopped"));
|
|
252
|
-
}
|
|
253
|
-
});
|
|
245
|
+
await wire.finished(own ? io.signal : void 0);
|
|
254
246
|
try {
|
|
255
|
-
if (ended === "input")
|
|
256
|
-
await wire.answered();
|
|
257
247
|
wire.release();
|
|
258
248
|
await handle.close();
|
|
259
249
|
} finally {
|
|
@@ -262,7 +252,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
262
252
|
}, "serveAllProfilesOverStdio");
|
|
263
253
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
264
254
|
const { build, close } = allProfilesServer(options);
|
|
265
|
-
const { serveOverHttp } = await import("./serve-
|
|
255
|
+
const { serveOverHttp } = await import("./serve-BV2WHZLW.js");
|
|
266
256
|
const listening = await serveOverHttp(build, {
|
|
267
257
|
...http,
|
|
268
258
|
appName: options.command,
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
checkedOptions,
|
|
6
6
|
messagesFor,
|
|
7
7
|
systemFor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-O6PD7RZY.js";
|
|
9
9
|
import {
|
|
10
10
|
Anthropic
|
|
11
11
|
} from "./chunk-ADLS6FVG.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-5SJZDEIO.js";
|
|
13
13
|
import "./chunk-PV3AWPHR.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
15
15
|
import "./chunk-HCZYJMBP.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
33
33
|
var options = strictObject({
|
|
34
34
|
stop_sequences: optional(array(string())),
|
|
35
35
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -3,90 +3,88 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XVH3WZSZ.js";
|
|
7
7
|
import {
|
|
8
8
|
answered,
|
|
9
9
|
failed,
|
|
10
10
|
registerCommands,
|
|
11
11
|
runCommandForAgent,
|
|
12
12
|
toolsFromCommands
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BBJVV4E2.js";
|
|
14
14
|
import {
|
|
15
15
|
mcpUrlOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KUQDBWPU.js";
|
|
17
17
|
import {
|
|
18
18
|
agentJson,
|
|
19
19
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SY2HLH5R.js";
|
|
21
21
|
import {
|
|
22
22
|
appInstructions
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
answeredWire
|
|
26
|
-
} from "./chunk-AZKFZ7J7.js";
|
|
23
|
+
} from "./chunk-CAQ5GW3A.js";
|
|
27
24
|
import {
|
|
28
25
|
StdioServerTransport,
|
|
26
|
+
answeredWire,
|
|
29
27
|
serveStdio
|
|
30
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WNMPIRRF.js";
|
|
31
29
|
import {
|
|
32
30
|
McpServer
|
|
33
31
|
} from "./chunk-5D4AEUVA.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-2DS2TDGW.js";
|
|
33
|
+
import "./chunk-RLGQMMYE.js";
|
|
34
|
+
import "./chunk-HEBZCKMU.js";
|
|
35
|
+
import "./chunk-5B5NOAIA.js";
|
|
36
|
+
import "./chunk-EL2E3ABX.js";
|
|
37
|
+
import "./chunk-U3RXH6RY.js";
|
|
40
38
|
import "./chunk-FIVFP53N.js";
|
|
41
39
|
import {
|
|
42
40
|
mcpHttpMarker
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-376ZGVUZ.js";
|
|
42
|
+
import "./chunk-T6X6EZ5N.js";
|
|
43
|
+
import "./chunk-O6PD7RZY.js";
|
|
44
|
+
import "./chunk-4ZFO2CVH.js";
|
|
45
|
+
import "./chunk-GHFBT2ZM.js";
|
|
46
|
+
import "./chunk-V4FMN5A6.js";
|
|
47
|
+
import "./chunk-EWUQIUTB.js";
|
|
50
48
|
import "./chunk-5DPV7X27.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-MHXZ62CU.js";
|
|
50
|
+
import "./chunk-6EL5AVXX.js";
|
|
53
51
|
import {
|
|
54
52
|
DEFAULT_OUTPUT_BYTES,
|
|
55
53
|
changesAuthorityAt,
|
|
56
54
|
describeProgram,
|
|
57
55
|
environmentOf,
|
|
56
|
+
fetchesOnlyAt,
|
|
58
57
|
judgedTargets,
|
|
59
58
|
readsOverMcpAt,
|
|
60
59
|
rootOf2 as rootOf
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-P6A77LMP.js";
|
|
60
|
+
} from "./chunk-25FT44S3.js";
|
|
61
|
+
import "./chunk-F5UUJU6R.js";
|
|
62
|
+
import "./chunk-AD7VI3XU.js";
|
|
63
|
+
import "./chunk-CU6RATZH.js";
|
|
66
64
|
import {
|
|
67
65
|
readOnlyLockOf
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-ZBYKCVSV.js";
|
|
67
|
+
import "./chunk-WQOGHND4.js";
|
|
68
|
+
import "./chunk-L342KHIZ.js";
|
|
69
|
+
import "./chunk-533XOW74.js";
|
|
70
|
+
import "./chunk-GTDCP5OG.js";
|
|
71
|
+
import "./chunk-2Q4CB4EI.js";
|
|
72
|
+
import "./chunk-3RLRJHAI.js";
|
|
73
|
+
import "./chunk-ZUG67442.js";
|
|
74
|
+
import "./chunk-E7URRFBB.js";
|
|
75
|
+
import "./chunk-6D44YQ5X.js";
|
|
76
|
+
import "./chunk-I55XYREN.js";
|
|
79
77
|
import "./chunk-UPCEHSIZ.js";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-VUPWDCYV.js";
|
|
79
|
+
import "./chunk-3YKAFLXY.js";
|
|
80
|
+
import "./chunk-CDSB7WVG.js";
|
|
81
|
+
import "./chunk-3URYKAJP.js";
|
|
84
82
|
import "./chunk-D72URWJE.js";
|
|
85
83
|
import "./chunk-M4OP5ASJ.js";
|
|
86
84
|
import "./chunk-XWBPP2HX.js";
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-OUM4ZO53.js";
|
|
86
|
+
import "./chunk-RWQ7T4Y5.js";
|
|
87
|
+
import "./chunk-5SJZDEIO.js";
|
|
90
88
|
import {
|
|
91
89
|
mcpErrorResult
|
|
92
90
|
} from "./chunk-PV3AWPHR.js";
|
|
@@ -101,7 +99,7 @@ import {
|
|
|
101
99
|
__name
|
|
102
100
|
} from "./chunk-ZVVMGPBJ.js";
|
|
103
101
|
|
|
104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
105
103
|
var EXCLUDED = [["mcp"]];
|
|
106
104
|
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
107
105
|
let at = root;
|
|
@@ -123,6 +121,7 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
123
121
|
const levels = /* @__PURE__ */ __name(() => options.resolveSettings(flags, { env: context.env }).permissions, "levels");
|
|
124
122
|
const readOnly = /* @__PURE__ */ __name(() => readOnlyLockOf(app, context.env) !== void 0, "readOnly");
|
|
125
123
|
const authority = changesAuthorityAt(root);
|
|
124
|
+
const fetches = fetchesOnlyAt(root);
|
|
126
125
|
const targets = judgedTargets(root);
|
|
127
126
|
const passed = Object.fromEntries(Object.entries(environment).filter(([key]) => !PER_RUN.has(key)));
|
|
128
127
|
const tools = toolsFromCommands(program.commands, {
|
|
@@ -133,6 +132,7 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
133
132
|
readOnly: readOnly(),
|
|
134
133
|
authority,
|
|
135
134
|
fetchOnly: readsOverMcpAt(root),
|
|
135
|
+
fetches,
|
|
136
136
|
permissions: options.permissions
|
|
137
137
|
});
|
|
138
138
|
const availability = /* @__PURE__ */ __name((one) => () => {
|
|
@@ -166,6 +166,7 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
166
166
|
levels,
|
|
167
167
|
overrides,
|
|
168
168
|
authority,
|
|
169
|
+
fetches,
|
|
169
170
|
permissions: options.permissions,
|
|
170
171
|
environment: passed
|
|
171
172
|
});
|
|
@@ -208,27 +209,14 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
208
209
|
transport: new StdioServerTransport(wire.input, wire.output),
|
|
209
210
|
onerror: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onerror")
|
|
210
211
|
});
|
|
211
|
-
|
|
212
|
-
wire.ended.then(() => resolve("input"));
|
|
213
|
-
if (own) {
|
|
214
|
-
if (signal?.aborted)
|
|
215
|
-
resolve("stopped");
|
|
216
|
-
else
|
|
217
|
-
signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
218
|
-
} else {
|
|
219
|
-
process.once("SIGINT", () => resolve("stopped"));
|
|
220
|
-
process.once("SIGTERM", () => resolve("stopped"));
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
if (ended === "input")
|
|
224
|
-
await wire.answered();
|
|
212
|
+
await wire.finished(own ? signal : void 0);
|
|
225
213
|
wire.release();
|
|
226
214
|
await handle.close();
|
|
227
215
|
}, "serveAppOverStdio");
|
|
228
216
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
229
217
|
const { app } = options;
|
|
230
218
|
const { build } = createAppServer(command, context, options);
|
|
231
|
-
const { serveOverHttp } = await import("./serve-
|
|
219
|
+
const { serveOverHttp } = await import("./serve-BV2WHZLW.js");
|
|
232
220
|
const listening = await serveOverHttp(build, {
|
|
233
221
|
...http,
|
|
234
222
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3URYKAJP.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4J5GJJ2I.js";
|
|
7
7
|
import {
|
|
8
8
|
refuseOwnerStoreInTests
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-RWQ7T4Y5.js";
|
|
10
|
+
import "./chunk-5SJZDEIO.js";
|
|
11
11
|
import "./chunk-PV3AWPHR.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
24
24
|
var customised = false;
|
|
25
25
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
26
26
|
try {
|