@wirecat/drive-cli 0.68.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.
Files changed (124) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-BU6XUFUP.js → all-profiles-B4A737YW.js} +20 -30
  3. package/dist/bundle/{anthropic-ZP5B7S2Z.js → anthropic-RZGPDESM.js} +3 -3
  4. package/dist/bundle/{app-server-EB4DH6T7.js → app-server-OWEW7DY5.js} +47 -63
  5. package/dist/bundle/{bun-PWMM6L45.js → bun-V5QLYBZU.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-6VPR2SVC.js → bun-sqlite-KHLHXXGH.js} +4 -4
  7. package/dist/bundle/{chunk-7TNQZKRD.js → chunk-22SH77TG.js} +65 -64
  8. package/dist/bundle/{chunk-MLSXHTUB.js → chunk-25FT44S3.js} +1480 -464
  9. package/dist/bundle/{chunk-5G2BY4B6.js → chunk-2DS2TDGW.js} +29 -28
  10. package/dist/bundle/{chunk-PGPHEC2X.js → chunk-2Q4CB4EI.js} +1 -1
  11. package/dist/bundle/{chunk-74NCZKRW.js → chunk-2VFAXC6O.js} +13 -13
  12. package/dist/bundle/{chunk-NV75QPML.js → chunk-376ZGVUZ.js} +4 -4
  13. package/dist/bundle/{chunk-6WAC2LOS.js → chunk-3RLRJHAI.js} +1558 -928
  14. package/dist/bundle/{chunk-QVJMFZFW.js → chunk-3URYKAJP.js} +1 -1
  15. package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-3YKAFLXY.js} +1 -1
  16. package/dist/bundle/{chunk-CMWFYZ45.js → chunk-4J5GJJ2I.js} +1 -1
  17. package/dist/bundle/{chunk-QKY24RWV.js → chunk-4YECZ6CN.js} +11 -11
  18. package/dist/bundle/{chunk-FAMXUI2X.js → chunk-4ZFO2CVH.js} +4 -4
  19. package/dist/bundle/{chunk-IVOG6T6P.js → chunk-533XOW74.js} +2 -2
  20. package/dist/bundle/{chunk-Q6BD6RUH.js → chunk-5B5NOAIA.js} +100 -55
  21. package/dist/bundle/{chunk-MW46BLWH.js → chunk-5SJZDEIO.js} +2 -0
  22. package/dist/bundle/{chunk-CVAJMRRD.js → chunk-6D44YQ5X.js} +5 -5
  23. package/dist/bundle/{chunk-EOC7RHJ2.js → chunk-6EL5AVXX.js} +3 -5
  24. package/dist/bundle/{chunk-TI2OANJZ.js → chunk-6XNTELM5.js} +1 -1
  25. package/dist/bundle/{chunk-WUFZGPXX.js → chunk-AD7VI3XU.js} +6 -6
  26. package/dist/bundle/{chunk-YUGTJBV3.js → chunk-AMQGKMLZ.js} +2 -2
  27. package/dist/bundle/{chunk-SOS4U2RF.js → chunk-BBJVV4E2.js} +24 -25
  28. package/dist/bundle/{chunk-JMZQBRRZ.js → chunk-BVVXYZSU.js} +5 -5
  29. package/dist/bundle/{chunk-AIEMFRBU.js → chunk-CAQ5GW3A.js} +1 -1
  30. package/dist/bundle/{chunk-PWIEOATY.js → chunk-CDSB7WVG.js} +323 -12
  31. package/dist/bundle/{chunk-KPKIHJIT.js → chunk-CU6RATZH.js} +3 -3
  32. package/dist/bundle/{chunk-43NEDPXB.js → chunk-CZ4UEXCE.js} +4 -4
  33. package/dist/bundle/{chunk-UFPRP7MG.js → chunk-E7URRFBB.js} +7 -7
  34. package/dist/bundle/{chunk-YYIWPH53.js → chunk-EL2E3ABX.js} +12 -12
  35. package/dist/bundle/{chunk-MWCPKUU4.js → chunk-EWUQIUTB.js} +4 -4
  36. package/dist/bundle/{chunk-7A77GYCE.js → chunk-F5UUJU6R.js} +2 -2
  37. package/dist/bundle/{chunk-O7T3WGCV.js → chunk-GHFBT2ZM.js} +4 -4
  38. package/dist/bundle/{chunk-7BXVI7XF.js → chunk-GK6KXBL6.js} +1 -1
  39. package/dist/bundle/{chunk-5W65QTYS.js → chunk-GTDCP5OG.js} +3 -3
  40. package/dist/bundle/{chunk-GTLXBAJV.js → chunk-HEBZCKMU.js} +1669 -662
  41. package/dist/bundle/{chunk-AXYG2DDY.js → chunk-I55XYREN.js} +636 -227
  42. package/dist/bundle/{chunk-UUQJVKPB.js → chunk-IQ2QU2X6.js} +1608 -1096
  43. package/dist/bundle/{chunk-ULNN3LCY.js → chunk-KUQDBWPU.js} +40 -32
  44. package/dist/bundle/{chunk-6QR7NKMG.js → chunk-L342KHIZ.js} +105 -1
  45. package/dist/bundle/{chunk-DYLYH7VE.js → chunk-LRCSDAYK.js} +3 -3
  46. package/dist/bundle/{chunk-QTRYJZL7.js → chunk-LUZRVBQR.js} +4 -4
  47. package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-MHXZ62CU.js} +1 -1
  48. package/dist/bundle/{chunk-WGX4DZPW.js → chunk-N4ACIIQB.js} +2 -2
  49. package/dist/bundle/{chunk-DU23ET2O.js → chunk-NVDR72GP.js} +19 -19
  50. package/dist/bundle/{chunk-F7KAMSXA.js → chunk-O6PD7RZY.js} +2 -2
  51. package/dist/bundle/{chunk-JZ3MT7IE.js → chunk-OOIAJRKQ.js} +1 -1
  52. package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-OUM4ZO53.js} +1 -1
  53. package/dist/bundle/{chunk-ZSVMZH5O.js → chunk-PB6NWKH3.js} +2 -2
  54. package/dist/bundle/{chunk-EEE4H2PA.js → chunk-QJGFQRTL.js} +10 -10
  55. package/dist/bundle/chunk-RLGQMMYE.js +707 -0
  56. package/dist/bundle/{chunk-CRIEW4FP.js → chunk-RWQ7T4Y5.js} +2 -2
  57. package/dist/bundle/{chunk-EXWZCI5G.js → chunk-SEJBS7SI.js} +1 -1
  58. package/dist/bundle/{chunk-CK2SQ2CE.js → chunk-SY2HLH5R.js} +32 -19
  59. package/dist/bundle/{chunk-6HFZZ2PW.js → chunk-SYUXKV2E.js} +1 -1
  60. package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-T4FMXDDV.js} +2 -2
  61. package/dist/bundle/{chunk-U52QE4QV.js → chunk-T6X6EZ5N.js} +3 -3
  62. package/dist/bundle/{chunk-Z5BMYI2V.js → chunk-TZ75K6R7.js} +6 -6
  63. package/dist/bundle/{chunk-D4MVEOU2.js → chunk-U3RXH6RY.js} +1 -1
  64. package/dist/bundle/{chunk-QRSPFCRY.js → chunk-V4FMN5A6.js} +16 -16
  65. package/dist/bundle/{chunk-QWGEOQHA.js → chunk-VUPWDCYV.js} +1 -1
  66. package/dist/bundle/{chunk-WCNTDETD.js → chunk-WNMPIRRF.js} +98 -6
  67. package/dist/bundle/{chunk-RT5NT62B.js → chunk-WOUIHZRI.js} +13 -15
  68. package/dist/bundle/{chunk-UIKVP23D.js → chunk-WQOGHND4.js} +1 -1
  69. package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-XUHQ7DVT.js} +1 -1
  70. package/dist/bundle/{chunk-DIZBJLPM.js → chunk-XVH3WZSZ.js} +45 -55
  71. package/dist/bundle/{chunk-MOKEB656.js → chunk-ZBYKCVSV.js} +1 -1
  72. package/dist/bundle/{chunk-BXHFJTU5.js → chunk-ZUG67442.js} +2 -2
  73. package/dist/bundle/{cli-L7P36YUH.js → cli-BS4L3HAP.js} +100 -70
  74. package/dist/bundle/{command-contract-EYFGMKIG.js → command-contract-HYURWSD6.js} +16 -17
  75. package/dist/bundle/{command-server-entry-H3VGPOLJ.js → command-server-entry-CJ2CV7ZV.js} +23 -24
  76. package/dist/bundle/{decode-JEU6JWCV.js → decode-E2NM5SSM.js} +3 -3
  77. package/dist/bundle/drive.js +4 -4
  78. package/dist/bundle/{echarts-SDZA2SWG.js → echarts-QIXLXS3G.js} +2 -2
  79. package/dist/bundle/{embed-WUKOASQG.js → embed-YNZW5X6M.js} +4 -4
  80. package/dist/bundle/{embedder-UBRAXRDZ.js → embedder-LRC2PKTS.js} +7 -7
  81. package/dist/bundle/{entry-C4NUQFTF.js → entry-2IMSWRJU.js} +7 -7
  82. package/dist/bundle/{first-run-PKHBS7B4.js → first-run-7CPHQDM5.js} +7 -7
  83. package/dist/bundle/first-screen-OKZ7GMFR.js +38 -0
  84. package/dist/bundle/{google-XXHSMTVK.js → google-WDKDBDD4.js} +15 -15
  85. package/dist/bundle/{google-api-SQQ4BSNR.js → google-api-7JDZDCWE.js} +52 -53
  86. package/dist/bundle/{grants-2U4JVT6O.js → grants-AU25GWKF.js} +57 -58
  87. package/dist/bundle/{identity-SRL6RSU2.js → identity-E43WKN5F.js} +1 -1
  88. package/dist/bundle/{instructions-7T6JJIFS.js → instructions-MD2RZT5Z.js} +1 -1
  89. package/dist/bundle/{login-N243GGEE.js → login-RBDJPQAG.js} +57 -58
  90. package/dist/bundle/{node-BZDMUFTW.js → node-IEVT2FSJ.js} +2 -2
  91. package/dist/bundle/{node-sqlite-SZQCCMV2.js → node-sqlite-IENH4TRX.js} +5 -5
  92. package/dist/bundle/{oauth-CMAFXX6A.js → oauth-3JGSN47Z.js} +5 -5
  93. package/dist/bundle/{open-RVTPKDA3.js → open-TZ5H7NYM.js} +3 -3
  94. package/dist/bundle/{openai-6NN63BMH.js → openai-XF2KB7W2.js} +14 -14
  95. package/dist/bundle/{process-756VBE7E.js → process-6Q23D3TO.js} +1 -1
  96. package/dist/bundle/{program-B4QBJYB5.js → program-D5XWOHV5.js} +86 -89
  97. package/dist/bundle/{prompt-HGP2DSRW.js → prompt-KUC5D4GX.js} +3 -3
  98. package/dist/bundle/{recognize-26SHB7HI.js → recognize-DPFW7HO3.js} +2 -2
  99. package/dist/bundle/{remote-Z4PWHZ5N.js → remote-MODTSUNH.js} +8 -8
  100. package/dist/bundle/{rerank-QHJZJK3Q.js → rerank-JK7SERLE.js} +5 -5
  101. package/dist/bundle/{serve-MYJW5IEM.js → serve-BV2WHZLW.js} +7 -7
  102. package/dist/bundle/server-6YDI4Y36.js +72 -0
  103. package/dist/bundle/{server-XFW3V7CR.js → server-N3WPEU7Z.js} +45 -44
  104. package/dist/bundle/{services-IQG2RVTO.js → services-SV6CFUCS.js} +42 -27
  105. package/dist/bundle/{sqlite-runtime-X4GB5PBV.js → sqlite-runtime-RZ5PLZVQ.js} +4 -4
  106. package/dist/bundle/{state-ATQK2X3W.js → state-RAZIREVG.js} +4 -4
  107. package/dist/bundle/{store-QUBUPK6F.js → store-2DLGLYS6.js} +18 -14
  108. package/dist/bundle/{store-MEHEUOJH.js → store-DQKJKX2G.js} +12 -12
  109. package/dist/bundle/store-maintenance-command-UJ5F5L4H.js +64 -0
  110. package/dist/bundle/tokens-LY3WML55.js +110 -0
  111. package/dist/policy.d.ts +1 -1
  112. package/dist/policy.d.ts.map +1 -1
  113. package/dist/policy.js +3 -3
  114. package/dist/policy.js.map +1 -1
  115. package/dist/version.d.ts +1 -1
  116. package/dist/version.js +1 -1
  117. package/package.json +2 -2
  118. package/dist/bundle/chunk-2UHQVRH2.js +0 -1235
  119. package/dist/bundle/chunk-J5LXL435.js +0 -1316
  120. package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
  121. package/dist/bundle/first-screen-QOVOM4BF.js +0 -39
  122. package/dist/bundle/server-HBZPIHDX.js +0 -74
  123. package/dist/bundle/store-maintenance-command-33ULVDWY.js +0 -65
  124. package/dist/bundle/tokens-A2GP4F34.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.68.0\n")
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-BU6XUFUP.js","../bundle/anthropic-ZP5B7S2Z.js","../bundle/app-server-EB4DH6T7.js","../bundle/bun-PWMM6L45.js","../bundle/bun-sqlite-6VPR2SVC.js","../bundle/cli-L7P36YUH.js","../bundle/command-contract-EYFGMKIG.js","../bundle/command-server-entry-H3VGPOLJ.js","../bundle/decode-JEU6JWCV.js","../bundle/dispatch-WBEOHZDV.js","../bundle/dist-MWTMOYWT.js","../bundle/echarts-SDZA2SWG.js","../bundle/embed-WUKOASQG.js","../bundle/embedder-UBRAXRDZ.js","../bundle/entry-C4NUQFTF.js","../bundle/failure-X6PSLVSO.js","../bundle/first-run-PKHBS7B4.js","../bundle/first-screen-QOVOM4BF.js","../bundle/google-XXHSMTVK.js","../bundle/google-api-SQQ4BSNR.js","../bundle/grants-2U4JVT6O.js","../bundle/identity-SRL6RSU2.js","../bundle/instructions-7T6JJIFS.js","../bundle/login-N243GGEE.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-BZDMUFTW.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-SZQCCMV2.js","../bundle/oauth-CMAFXX6A.js","../bundle/open-RVTPKDA3.js","../bundle/openai-6NN63BMH.js","../bundle/process-756VBE7E.js","../bundle/program-B4QBJYB5.js","../bundle/prompt-HGP2DSRW.js","../bundle/reasons-KSYP5VDJ.js","../bundle/recognize-26SHB7HI.js","../bundle/remote-Z4PWHZ5N.js","../bundle/rerank-QHJZJK3Q.js","../bundle/serve-MYJW5IEM.js","../bundle/server-HBZPIHDX.js","../bundle/server-XFW3V7CR.js","../bundle/services-IQG2RVTO.js","../bundle/sqlite-runtime-X4GB5PBV.js","../bundle/start-C6EXYXAL.js","../bundle/state-ATQK2X3W.js","../bundle/store-MEHEUOJH.js","../bundle/store-QUBUPK6F.js","../bundle/store-maintenance-command-33ULVDWY.js","../bundle/terminal-DHJ4D3BC.js","../bundle/tokens-A2GP4F34.js"]
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-R5FTCNLJ.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-WCNTDETD.js";
10
+ } from "./chunk-WNMPIRRF.js";
13
11
  import {
14
12
  McpServer
15
13
  } from "./chunk-5D4AEUVA.js";
16
- import "./chunk-WUFZGPXX.js";
17
- import "./chunk-QWGEOQHA.js";
18
- import "./chunk-UYBLNGZ2.js";
14
+ import "./chunk-AD7VI3XU.js";
15
+ import "./chunk-VUPWDCYV.js";
16
+ import "./chunk-3YKAFLXY.js";
19
17
  import "./chunk-XWBPP2HX.js";
20
- import "./chunk-MW46BLWH.js";
21
- import "./chunk-PV3AWPHR.js";
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 "./chunk-EA2OB75T.js";
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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
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
- const ended = await new Promise((resolve) => {
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-MYJW5IEM.js");
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-F7KAMSXA.js";
8
+ } from "./chunk-O6PD7RZY.js";
9
9
  import {
10
10
  Anthropic
11
11
  } from "./chunk-ADLS6FVG.js";
12
- import "./chunk-MW46BLWH.js";
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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/anthropic.js
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,53 +3,51 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-DIZBJLPM.js";
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-SOS4U2RF.js";
13
+ } from "./chunk-BBJVV4E2.js";
14
14
  import {
15
15
  mcpUrlOf
16
- } from "./chunk-ULNN3LCY.js";
16
+ } from "./chunk-KUQDBWPU.js";
17
17
  import {
18
18
  agentJson,
19
19
  skillResource
20
- } from "./chunk-CK2SQ2CE.js";
20
+ } from "./chunk-SY2HLH5R.js";
21
21
  import {
22
22
  appInstructions
23
- } from "./chunk-AIEMFRBU.js";
24
- import {
25
- answeredWire
26
- } from "./chunk-R5FTCNLJ.js";
23
+ } from "./chunk-CAQ5GW3A.js";
27
24
  import {
28
25
  StdioServerTransport,
26
+ answeredWire,
29
27
  serveStdio
30
- } from "./chunk-WCNTDETD.js";
28
+ } from "./chunk-WNMPIRRF.js";
31
29
  import {
32
30
  McpServer
33
31
  } from "./chunk-5D4AEUVA.js";
34
- import "./chunk-5G2BY4B6.js";
35
- import "./chunk-2UHQVRH2.js";
36
- import "./chunk-GTLXBAJV.js";
37
- import "./chunk-Q6BD6RUH.js";
38
- import "./chunk-YYIWPH53.js";
39
- import "./chunk-D4MVEOU2.js";
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-NV75QPML.js";
44
- import "./chunk-U52QE4QV.js";
45
- import "./chunk-F7KAMSXA.js";
46
- import "./chunk-FAMXUI2X.js";
47
- import "./chunk-O7T3WGCV.js";
48
- import "./chunk-QRSPFCRY.js";
49
- import "./chunk-MWCPKUU4.js";
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-PJ3FKBXG.js";
52
- import "./chunk-EOC7RHJ2.js";
49
+ import "./chunk-MHXZ62CU.js";
50
+ import "./chunk-6EL5AVXX.js";
53
51
  import {
54
52
  DEFAULT_OUTPUT_BYTES,
55
53
  changesAuthorityAt,
@@ -59,35 +57,34 @@ import {
59
57
  judgedTargets,
60
58
  readsOverMcpAt,
61
59
  rootOf2 as rootOf
62
- } from "./chunk-MLSXHTUB.js";
63
- import "./chunk-WUFZGPXX.js";
64
- import "./chunk-J5LXL435.js";
65
- import "./chunk-7A77GYCE.js";
66
- import "./chunk-KPKIHJIT.js";
60
+ } from "./chunk-25FT44S3.js";
61
+ import "./chunk-F5UUJU6R.js";
62
+ import "./chunk-AD7VI3XU.js";
63
+ import "./chunk-CU6RATZH.js";
67
64
  import {
68
65
  readOnlyLockOf
69
- } from "./chunk-MOKEB656.js";
70
- import "./chunk-UIKVP23D.js";
71
- import "./chunk-6QR7NKMG.js";
72
- import "./chunk-IVOG6T6P.js";
73
- import "./chunk-5W65QTYS.js";
74
- import "./chunk-PGPHEC2X.js";
75
- import "./chunk-6WAC2LOS.js";
76
- import "./chunk-BXHFJTU5.js";
77
- import "./chunk-UFPRP7MG.js";
78
- import "./chunk-CVAJMRRD.js";
79
- import "./chunk-AXYG2DDY.js";
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";
80
77
  import "./chunk-UPCEHSIZ.js";
81
- import "./chunk-QWGEOQHA.js";
82
- import "./chunk-UYBLNGZ2.js";
83
- import "./chunk-PWIEOATY.js";
84
- import "./chunk-QVJMFZFW.js";
78
+ import "./chunk-VUPWDCYV.js";
79
+ import "./chunk-3YKAFLXY.js";
80
+ import "./chunk-CDSB7WVG.js";
81
+ import "./chunk-3URYKAJP.js";
85
82
  import "./chunk-D72URWJE.js";
86
83
  import "./chunk-M4OP5ASJ.js";
87
84
  import "./chunk-XWBPP2HX.js";
88
- import "./chunk-ZVQDOKDY.js";
89
- import "./chunk-CRIEW4FP.js";
90
- import "./chunk-MW46BLWH.js";
85
+ import "./chunk-OUM4ZO53.js";
86
+ import "./chunk-RWQ7T4Y5.js";
87
+ import "./chunk-5SJZDEIO.js";
91
88
  import {
92
89
  mcpErrorResult
93
90
  } from "./chunk-PV3AWPHR.js";
@@ -102,7 +99,7 @@ import {
102
99
  __name
103
100
  } from "./chunk-ZVVMGPBJ.js";
104
101
 
105
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
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
106
103
  var EXCLUDED = [["mcp"]];
107
104
  var aliasesOf = /* @__PURE__ */ __name((root, path) => {
108
105
  let at = root;
@@ -212,27 +209,14 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
212
209
  transport: new StdioServerTransport(wire.input, wire.output),
213
210
  onerror: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onerror")
214
211
  });
215
- const ended = await new Promise((resolve) => {
216
- wire.ended.then(() => resolve("input"));
217
- if (own) {
218
- if (signal?.aborted)
219
- resolve("stopped");
220
- else
221
- signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
222
- } else {
223
- process.once("SIGINT", () => resolve("stopped"));
224
- process.once("SIGTERM", () => resolve("stopped"));
225
- }
226
- });
227
- if (ended === "input")
228
- await wire.answered();
212
+ await wire.finished(own ? signal : void 0);
229
213
  wire.release();
230
214
  await handle.close();
231
215
  }, "serveAppOverStdio");
232
216
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
233
217
  const { app } = options;
234
218
  const { build } = createAppServer(command, context, options);
235
- const { serveOverHttp } = await import("./serve-MYJW5IEM.js");
219
+ const { serveOverHttp } = await import("./serve-BV2WHZLW.js");
236
220
  const listening = await serveOverHttp(build, {
237
221
  ...http,
238
222
  appName: app.command,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-QVJMFZFW.js";
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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
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-CMWFYZ45.js";
6
+ } from "./chunk-4J5GJJ2I.js";
7
7
  import {
8
8
  refuseOwnerStoreInTests
9
- } from "./chunk-CRIEW4FP.js";
10
- import "./chunk-MW46BLWH.js";
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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
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 {