@wirecat/drive-cli 0.57.0 → 0.59.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 (167) hide show
  1. package/dist/bin/drive.js +6 -2
  2. package/dist/bin/drive.js.map +1 -1
  3. package/dist/bundle/{all-profiles-7LSZ3CC3.js → all-profiles-CVISDGMF.js} +14 -9
  4. package/dist/bundle/{anthropic-3QRM4QXB.js → anthropic-WLNQC23G.js} +11 -7
  5. package/dist/bundle/{app-server-WWNMUHID.js → app-server-P2VOONXF.js} +61 -53
  6. package/dist/bundle/{bun-NIIYUR5F.js → bun-CDFBNTKV.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-GSLSN3OT.js → bun-sqlite-MNZICITP.js} +8 -4
  8. package/dist/bundle/chunk-2AXA5SKP.js +23 -0
  9. package/dist/bundle/{chunk-EFEI724Z.js → chunk-36B7AIGP.js} +1 -1
  10. package/dist/bundle/{chunk-Q3TMNETS.js → chunk-3KJTJDDT.js} +52 -39
  11. package/dist/bundle/{chunk-4F2VRJZE.js → chunk-3KNZADHJ.js} +5080 -626
  12. package/dist/bundle/{chunk-GIQFBXQN.js → chunk-3U22QTU6.js} +12 -125
  13. package/dist/bundle/chunk-3VSUT6BD.js +35 -0
  14. package/dist/bundle/{chunk-U2RSVKR5.js → chunk-5C7K6XIT.js} +1 -1
  15. package/dist/bundle/{chunk-6CFSDU56.js → chunk-6C6255U6.js} +16 -14
  16. package/dist/bundle/{chunk-EE7R457T.js → chunk-6CQO2FIN.js} +1569 -739
  17. package/dist/bundle/{chunk-KHNDZNQA.js → chunk-7QTVIZII.js} +5410 -3002
  18. package/dist/bundle/{chunk-HNUSPNUQ.js → chunk-A6EG7ZDS.js} +13 -13
  19. package/dist/bundle/{chunk-WBYCUBYM.js → chunk-A6SLYOP2.js} +49 -42
  20. package/dist/bundle/{chunk-TR5656OS.js → chunk-AD62XJKO.js} +162 -106
  21. package/dist/bundle/{chunk-TKVSJV5P.js → chunk-B5GBJ35N.js} +6 -4
  22. package/dist/bundle/{chunk-LSSIVBQI.js → chunk-BSGOM3BD.js} +1 -1
  23. package/dist/bundle/{chunk-XGNADVIA.js → chunk-CBM2XAEZ.js} +28 -229
  24. package/dist/bundle/{chunk-OYNSFQ7K.js → chunk-D72URWJE.js} +1 -39
  25. package/dist/bundle/{chunk-L4BBK7UX.js → chunk-DI5Z4SH5.js} +5 -3
  26. package/dist/bundle/chunk-EBLA7GXY.js +45 -0
  27. package/dist/bundle/{chunk-4UQLL6RJ.js → chunk-EHEZSV6I.js} +11 -88
  28. package/dist/bundle/{chunk-6ZA4NR5H.js → chunk-EORMZCVF.js} +3 -3
  29. package/dist/bundle/{chunk-W5FOPSJZ.js → chunk-EVETU3TF.js} +10 -8
  30. package/dist/bundle/{chunk-TZHCS5MG.js → chunk-F3FOL42A.js} +2 -2
  31. package/dist/bundle/{chunk-2QLLKDE5.js → chunk-FICVPYE4.js} +206 -73
  32. package/dist/bundle/{chunk-AKPFH3KC.js → chunk-FVQCM7IQ.js} +1 -1
  33. package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
  34. package/dist/bundle/{chunk-WAVJWGUC.js → chunk-GI5JBGXH.js} +4611 -1530
  35. package/dist/bundle/{chunk-SRNXTXJN.js → chunk-GJ4ZCIOP.js} +3 -3
  36. package/dist/bundle/{chunk-GKHUHRSL.js → chunk-GT5KTGCN.js} +4 -4
  37. package/dist/bundle/{chunk-WJOKTIOJ.js → chunk-H2BKXPBL.js} +2 -2
  38. package/dist/bundle/chunk-HIOJRPCT.js +93 -0
  39. package/dist/bundle/chunk-HIP43OGZ.js +34 -0
  40. package/dist/bundle/{chunk-2ULJW5BA.js → chunk-HMZAMHKN.js} +2 -2
  41. package/dist/bundle/{chunk-64E6QXXQ.js → chunk-HWLLVLAB.js} +10 -10
  42. package/dist/bundle/{chunk-373WJIHE.js → chunk-IADOBOKB.js} +2 -2
  43. package/dist/bundle/{chunk-B3TPS7BW.js → chunk-IBZ3IBO4.js} +9 -7
  44. package/dist/bundle/{chunk-QAT6UXZZ.js → chunk-IGF6EXBR.js} +53 -48
  45. package/dist/bundle/{chunk-KYNTSA6K.js → chunk-II7LST64.js} +5 -5
  46. package/dist/bundle/{chunk-JLKNUFL2.js → chunk-IIP43FQJ.js} +2 -2
  47. package/dist/bundle/{chunk-ELIYJXIY.js → chunk-JSDVK3JA.js} +2 -2
  48. package/dist/bundle/{chunk-UKMFPBAO.js → chunk-JW2CVCUH.js} +4 -4
  49. package/dist/bundle/{chunk-O5KDIVGE.js → chunk-K4LXGZTE.js} +23 -21
  50. package/dist/bundle/{chunk-RB674T6L.js → chunk-KFZUODXB.js} +76 -20
  51. package/dist/bundle/chunk-KPRGTTJH.js +34 -0
  52. package/dist/bundle/{chunk-XJVK7ETL.js → chunk-L5SE2XZP.js} +23 -15
  53. package/dist/bundle/{chunk-OOR6PEHV.js → chunk-LJ7E4HLQ.js} +1 -1
  54. package/dist/bundle/{chunk-VTJF2L5E.js → chunk-LPHMAQJQ.js} +16 -16
  55. package/dist/bundle/{chunk-566W4Q6L.js → chunk-M6I2SQN7.js} +4 -4
  56. package/dist/bundle/{chunk-NLLWLCUZ.js → chunk-MEAPA4EZ.js} +2 -2
  57. package/dist/bundle/{chunk-J2HGHSLX.js → chunk-MKCNUI72.js} +4 -4
  58. package/dist/bundle/{chunk-CD736BG3.js → chunk-MUUHUHWC.js} +2 -1
  59. package/dist/bundle/{chunk-AHBUTDS7.js → chunk-OKXSTWKW.js} +8 -8
  60. package/dist/bundle/{chunk-W6FYYQ2J.js → chunk-OMMEQJOB.js} +3 -3
  61. package/dist/bundle/{chunk-EFX6FIDM.js → chunk-OZH4ALTI.js} +1 -1
  62. package/dist/bundle/{chunk-KM4Y55ZE.js → chunk-P3ZTW2ZM.js} +7 -7
  63. package/dist/bundle/{chunk-5KNIVHP6.js → chunk-P7WPYKSB.js} +7 -20
  64. package/dist/bundle/{chunk-RAEKC6TV.js → chunk-PAEVBAM3.js} +9 -42
  65. package/dist/bundle/{chunk-LBFFI6FE.js → chunk-PGKIOSN3.js} +9 -7
  66. package/dist/bundle/{chunk-WJPVGXKA.js → chunk-QTM7USFA.js} +8 -13
  67. package/dist/bundle/{chunk-EN7OZ5JH.js → chunk-TFH5X46A.js} +37 -22
  68. package/dist/bundle/{chunk-OZJMZSFB.js → chunk-TI55J3BA.js} +6 -4
  69. package/dist/bundle/{chunk-R5GJZPRF.js → chunk-TJXPJ3A5.js} +572 -366
  70. package/dist/bundle/chunk-UQPKAY6I.js +106 -0
  71. package/dist/bundle/{chunk-JUKVJ7M2.js → chunk-UWVNRPT7.js} +56 -40
  72. package/dist/bundle/chunk-V36RIXFA.js +201 -0
  73. package/dist/bundle/{chunk-JIGMCW4C.js → chunk-V42KAPU3.js} +6 -6
  74. package/dist/bundle/{chunk-7SNS443B.js → chunk-VT6GZAF4.js} +35 -35
  75. package/dist/bundle/{chunk-ISK4K7UE.js → chunk-VVCZS42A.js} +1 -1
  76. package/dist/bundle/chunk-W62CON5K.js +166 -0
  77. package/dist/bundle/{chunk-YZ6SYLDC.js → chunk-XCOCPXCM.js} +2 -2
  78. package/dist/bundle/{chunk-G34Y5RAC.js → chunk-YADXWQHV.js} +29 -29
  79. package/dist/bundle/{chunk-AL7MY7MW.js → chunk-YU3PTU3D.js} +1 -1
  80. package/dist/bundle/{chunk-IJ2S53WJ.js → chunk-YV4ABH6J.js} +7 -7
  81. package/dist/bundle/{chunk-B64EY2SC.js → chunk-ZSMCJKGP.js} +42 -41
  82. package/dist/bundle/chunk-ZYCLPJ7U.js +46 -0
  83. package/dist/bundle/command-contract-LQDNHZJU.js +39 -0
  84. package/dist/bundle/{decode-5MHMPYKE.js → decode-XTOMXMGN.js} +10 -6
  85. package/dist/bundle/dispatch-T6TW2JJB.js +412 -0
  86. package/dist/bundle/drive.js +40 -22
  87. package/dist/bundle/{echarts-CLB22SZS.js → echarts-RKKIOYVV.js} +2 -2
  88. package/dist/bundle/{embed-TF66ODAR.js → embed-STHKKA6G.js} +9 -5
  89. package/dist/bundle/{embedder-EDWOIAC2.js → embedder-3XZEWHRO.js} +14 -10
  90. package/dist/bundle/entry-CNOYSSSD.js +22 -0
  91. package/dist/bundle/failure-DNQYXP2T.js +26 -0
  92. package/dist/bundle/first-run-F2SI24PK.js +30 -0
  93. package/dist/bundle/first-screen-TYYF6VXY.js +37 -0
  94. package/dist/bundle/{google-A4F2WFO4.js → google-BYNSAIQI.js} +13 -9
  95. package/dist/bundle/{google-api-ZXGQOJUI.js → google-api-4VTZH7OP.js} +59 -52
  96. package/dist/bundle/grants-EUQXSICG.js +105 -0
  97. package/dist/bundle/{identity-4IO7WGG4.js → identity-ARDPFYV5.js} +6 -4
  98. package/dist/bundle/{instructions-BXZZNAMS.js → instructions-N3OH5X2Y.js} +1 -1
  99. package/dist/bundle/{login-A4QHJ5DA.js → login-4VQEC7VI.js} +65 -58
  100. package/dist/bundle/{mcp-VVMPUDSL.js → mcp-WBHKX5E3.js} +5 -3
  101. package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
  102. package/dist/bundle/{node-R6ZNQ3NT.js → node-YU5JBNAA.js} +2 -2
  103. package/dist/bundle/{node-sqlite-AFQTE4XZ.js → node-sqlite-3C6PSBIW.js} +14 -4
  104. package/dist/bundle/oauth-D6NJFPYU.js +22 -0
  105. package/dist/bundle/{open-WJCRBIP7.js → open-M2V2VYXO.js} +8 -3
  106. package/dist/bundle/{openai-3TIBDWZA.js → openai-ST2IWNUX.js} +18 -14
  107. package/dist/bundle/{process-P36JP33R.js → process-PYNNBBTV.js} +1 -1
  108. package/dist/bundle/{program-AHZH65IT.js → program-Q4VWV2MR.js} +193 -147
  109. package/dist/bundle/prompt-MFIOJMAF.js +17 -0
  110. package/dist/bundle/{reasons-VHCVYH54.js → reasons-LOQ5J73F.js} +5 -3
  111. package/dist/bundle/{recognize-4EAKIMON.js → recognize-FBLMWXNE.js} +7 -3
  112. package/dist/bundle/{remote-HX3JP4EH.js → remote-XC3OXE4T.js} +10 -6
  113. package/dist/bundle/{rerank-BW3A4PUU.js → rerank-2XMKKF4S.js} +10 -6
  114. package/dist/bundle/{serve-YYOOLIBS.js → serve-Q2BQHNZB.js} +15 -10
  115. package/dist/bundle/{server-G6XTEEFI.js → server-42HPV3AH.js} +46 -39
  116. package/dist/bundle/server-EWZYN323.js +70 -0
  117. package/dist/bundle/{services-OAPILZOW.js → services-WU22S2MU.js} +100 -26
  118. package/dist/bundle/{sqlite-runtime-GTXDK4PE.js → sqlite-runtime-CSO6K6B2.js} +9 -4
  119. package/dist/bundle/start-TZWKM4AH.js +138 -0
  120. package/dist/bundle/{state-XG335LGZ.js → state-FLUT7U7R.js} +9 -5
  121. package/dist/bundle/{store-N53SJOPS.js → store-HDWMJ44E.js} +42 -17
  122. package/dist/bundle/{store-7KOXJNQP.js → store-TG6622NG.js} +20 -12
  123. package/dist/bundle/store-maintenance-command-RHWRUREJ.js +60 -0
  124. package/dist/bundle/tokens-TXYURU4S.js +103 -0
  125. package/dist/commands/documents.d.ts +1 -0
  126. package/dist/commands/documents.d.ts.map +1 -1
  127. package/dist/commands/documents.js +14 -1
  128. package/dist/commands/documents.js.map +1 -1
  129. package/dist/commands/knowledge.d.ts +4 -0
  130. package/dist/commands/knowledge.d.ts.map +1 -1
  131. package/dist/commands/knowledge.js +8 -7
  132. package/dist/commands/knowledge.js.map +1 -1
  133. package/dist/contract-overrides.js +5 -5
  134. package/dist/contract-overrides.js.map +1 -1
  135. package/dist/knowledge-query.d.ts +2 -0
  136. package/dist/knowledge-query.d.ts.map +1 -1
  137. package/dist/program.d.ts.map +1 -1
  138. package/dist/program.js +8 -3
  139. package/dist/program.js.map +1 -1
  140. package/dist/provider-json.d.ts +2 -0
  141. package/dist/provider-json.d.ts.map +1 -1
  142. package/dist/provider-json.js +13 -0
  143. package/dist/provider-json.js.map +1 -1
  144. package/dist/reasons.d.ts.map +1 -1
  145. package/dist/reasons.js +1 -0
  146. package/dist/reasons.js.map +1 -1
  147. package/dist/store.d.ts +2 -0
  148. package/dist/store.d.ts.map +1 -1
  149. package/dist/store.js +9 -0
  150. package/dist/store.js.map +1 -1
  151. package/dist/version.d.ts +1 -1
  152. package/dist/version.js +1 -1
  153. package/package.json +5 -4
  154. package/skills/drive-cli/SKILL.md +2 -1
  155. package/dist/bundle/chunk-3BXSLNWW.js +0 -3607
  156. package/dist/bundle/chunk-CGCQNYB3.js +0 -18
  157. package/dist/bundle/command-contract-XIACCAZL.js +0 -35
  158. package/dist/bundle/entry-CWYCQ53A.js +0 -17
  159. package/dist/bundle/first-run-YIH7EHJI.js +0 -24
  160. package/dist/bundle/first-screen-THH3XD5Y.js +0 -33
  161. package/dist/bundle/grants-3Z7DG3W3.js +0 -98
  162. package/dist/bundle/oauth-46XBJBML.js +0 -18
  163. package/dist/bundle/prompt-FFGBIT4A.js +0 -13
  164. package/dist/bundle/server-YKYEUIJT.js +0 -63
  165. package/dist/bundle/store-maintenance-command-W3TI52X2.js +0 -52
  166. package/dist/bundle/tokens-P7TEHKDD.js +0 -96
  167. /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-LK2E2ELG.js} +0 -0
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.57.0\n")
12
+ process.stdout.write("0.59.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,8 +28,12 @@ if (
28
28
  : next(specifier, context),
29
29
  })
30
30
  }
31
+ const chunks = ["../bundle/all-profiles-CVISDGMF.js","../bundle/anthropic-WLNQC23G.js","../bundle/app-server-P2VOONXF.js","../bundle/bun-CDFBNTKV.js","../bundle/bun-sqlite-MNZICITP.js","../bundle/command-contract-LQDNHZJU.js","../bundle/decode-XTOMXMGN.js","../bundle/dispatch-T6TW2JJB.js","../bundle/dist-MWTMOYWT.js","../bundle/dist-PY3MVR3G.js","../bundle/echarts-RKKIOYVV.js","../bundle/embed-STHKKA6G.js","../bundle/embedder-3XZEWHRO.js","../bundle/entry-CNOYSSSD.js","../bundle/failure-DNQYXP2T.js","../bundle/first-run-F2SI24PK.js","../bundle/first-screen-TYYF6VXY.js","../bundle/google-BYNSAIQI.js","../bundle/google-api-4VTZH7OP.js","../bundle/grants-EUQXSICG.js","../bundle/identity-ARDPFYV5.js","../bundle/instructions-N3OH5X2Y.js","../bundle/login-4VQEC7VI.js","../bundle/mcp-WBHKX5E3.js","../bundle/mdast-util-from-markdown-FXEPSNER.js","../bundle/mdast-util-gfm-SZM5GBDF.js","../bundle/micromark-extension-gfm-GRL24TU6.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-YU5JBNAA.js","../bundle/node-sqlite-3C6PSBIW.js","../bundle/oauth-D6NJFPYU.js","../bundle/open-M2V2VYXO.js","../bundle/openai-ST2IWNUX.js","../bundle/process-PYNNBBTV.js","../bundle/program-Q4VWV2MR.js","../bundle/prompt-MFIOJMAF.js","../bundle/reasons-LOQ5J73F.js","../bundle/recognize-FBLMWXNE.js","../bundle/remote-XC3OXE4T.js","../bundle/rerank-2XMKKF4S.js","../bundle/serve-Q2BQHNZB.js","../bundle/server-42HPV3AH.js","../bundle/server-EWZYN323.js","../bundle/services-WU22S2MU.js","../bundle/sqlite-runtime-CSO6K6B2.js","../bundle/start-TZWKM4AH.js","../bundle/state-FLUT7U7R.js","../bundle/store-HDWMJ44E.js","../bundle/store-TG6622NG.js","../bundle/store-maintenance-command-RHWRUREJ.js","../bundle/terminal-DHJ4D3BC.js","../bundle/tokens-TXYURU4S.js"]
32
+ if (((words) => words
33
+ .filter((word) => !word.startsWith("-"))
34
+ .slice(0, 2)
35
+ .includes("upgrade"))(words)) await Promise.allSettled(chunks.map((chunk) => import(chunk)))
31
36
  const running = import("../bundle/drive.js")
32
- const chunks = ["../bundle/all-profiles-7LSZ3CC3.js","../bundle/anthropic-3QRM4QXB.js","../bundle/app-server-WWNMUHID.js","../bundle/bun-NIIYUR5F.js","../bundle/bun-sqlite-GSLSN3OT.js","../bundle/command-contract-XIACCAZL.js","../bundle/decode-5MHMPYKE.js","../bundle/dist-MWTMOYWT.js","../bundle/dist-PY3MVR3G.js","../bundle/echarts-CLB22SZS.js","../bundle/embed-TF66ODAR.js","../bundle/embedder-EDWOIAC2.js","../bundle/entry-CWYCQ53A.js","../bundle/first-run-YIH7EHJI.js","../bundle/first-screen-THH3XD5Y.js","../bundle/google-A4F2WFO4.js","../bundle/google-api-ZXGQOJUI.js","../bundle/grants-3Z7DG3W3.js","../bundle/identity-4IO7WGG4.js","../bundle/instructions-BXZZNAMS.js","../bundle/login-A4QHJ5DA.js","../bundle/mcp-VVMPUDSL.js","../bundle/mdast-util-from-markdown-FXEPSNER.js","../bundle/mdast-util-gfm-SZM5GBDF.js","../bundle/micromark-extension-gfm-GRL24TU6.js","../bundle/node-P4E63KXA.js","../bundle/node-R6ZNQ3NT.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-AFQTE4XZ.js","../bundle/oauth-46XBJBML.js","../bundle/open-WJCRBIP7.js","../bundle/openai-3TIBDWZA.js","../bundle/process-P36JP33R.js","../bundle/program-AHZH65IT.js","../bundle/prompt-FFGBIT4A.js","../bundle/reasons-VHCVYH54.js","../bundle/recognize-4EAKIMON.js","../bundle/remote-HX3JP4EH.js","../bundle/rerank-BW3A4PUU.js","../bundle/serve-YYOOLIBS.js","../bundle/server-G6XTEEFI.js","../bundle/server-YKYEUIJT.js","../bundle/services-OAPILZOW.js","../bundle/sqlite-runtime-GTXDK4PE.js","../bundle/state-XG335LGZ.js","../bundle/store-7KOXJNQP.js","../bundle/store-N53SJOPS.js","../bundle/store-maintenance-command-W3TI52X2.js","../bundle/terminal-DHJ4D3BC.js","../bundle/tokens-P7TEHKDD.js"]
33
37
  // After the server answers its first request, so it starts no later.
34
38
  if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
35
39
  await running
@@ -1 +1 @@
1
- {"version":3,"file":"drive.js","sourceRoot":"","sources":["../../src/bin/drive.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/F,oGAAoG;AACpG,kBAAkB,EAAE,CAAA;AACpB,mDAAmD;AACnD,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;IACtF,MAAM,CAAC,6BAA6B,CAAC;IACrC,MAAM,CAAC,gBAAgB,CAAC;IACxB,MAAM,CAAC,eAAe,CAAC;IACvB,MAAM,CAAC,gBAAgB,CAAC;CACzB,CAAC,CAAA;AAEF,MAAM,QAAQ,CAAC;IACb,GAAG,EAAE,SAAS;IACd,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,OAAO;IAChB,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CACnB,CAAC,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE;QAC9C,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC;QACxC,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC;KAC7C,CAAC;IACJ,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QACrB,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;QACnC,cAAc,CAAC,UAAU,CACvB,WAAW,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CACnG,CAAA;QACD,OAAO,eAAe,CAAC,MAAM,CAAC,CAAA;IAChC,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"drive.js","sourceRoot":"","sources":["../../src/bin/drive.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/F,oGAAoG;AACpG,kBAAkB,EAAE,CAAA;AACpB,mDAAmD;AACnD,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;IACvD,MAAM,CAAC,8BAA8B,CAAC;IACtC,MAAM,CAAC,gBAAgB,CAAC;CACzB,CAAC,CAAA;AACF,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC;IAC3B,OAAO,EAAE,SAAS,CAAC,OAAO;IAC1B,OAAO,EAAE,SAAS,CAAC,OAAO;IAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,iDAAiD;CACxD,CAAC,CAAA;AACF,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;IAC5B,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC;KAAM,CAAC;IACN,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACvE,MAAM,CAAC,6BAA6B,CAAC;QACrC,MAAM,CAAC,eAAe,CAAC;QACvB,MAAM,CAAC,gBAAgB,CAAC;KACzB,CAAC,CAAA;IAEF,MAAM,QAAQ,CAAC;QACb,GAAG,EAAE,SAAS;QACd,WAAW,EAAE,aAAa;QAC1B,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CACnB,CAAC,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE;YAC9C,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC;YACxC,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC;SAC7C,CAAC;QACJ,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YACrB,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;YACnC,cAAc,CAAC,UAAU,CACvB,WAAW,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CACnG,CAAA;YACD,OAAO,eAAe,CAAC,MAAM,CAAC,CAAA;QAChC,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
@@ -2,28 +2,33 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answeredWire
5
- } from "./chunk-EFX6FIDM.js";
5
+ } from "./chunk-OZH4ALTI.js";
6
6
  import {
7
7
  CALLER_META_KEY,
8
8
  PROXY_CLIENT_NAME,
9
9
  StdioServerTransport,
10
10
  callerOf,
11
11
  serveStdio
12
- } from "./chunk-YZ6SYLDC.js";
12
+ } from "./chunk-XCOCPXCM.js";
13
13
  import {
14
14
  McpServer
15
15
  } from "./chunk-5D4AEUVA.js";
16
- import "./chunk-4UQLL6RJ.js";
17
- import "./chunk-2ULJW5BA.js";
18
- import "./chunk-HPXYN7F3.js";
19
- import "./chunk-XGNADVIA.js";
20
- import "./chunk-GIQFBXQN.js";
16
+ import "./chunk-EHEZSV6I.js";
17
+ import "./chunk-HMZAMHKN.js";
18
+ import "./chunk-HIOJRPCT.js";
19
+ import "./chunk-LK2E2ELG.js";
20
+ import "./chunk-CBM2XAEZ.js";
21
+ import "./chunk-V36RIXFA.js";
21
22
  import "./chunk-Y5E2WNWB.js";
23
+ import "./chunk-HIP43OGZ.js";
24
+ import "./chunk-UQPKAY6I.js";
25
+ import "./chunk-3U22QTU6.js";
26
+ import "./chunk-EBLA7GXY.js";
22
27
  import {
23
28
  __name
24
29
  } from "./chunk-ZVVMGPBJ.js";
25
30
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
27
32
  import { spawn } from "node:child_process";
28
33
  import { randomUUID } from "node:crypto";
29
34
  var PROTOCOL = "2025-06-18";
@@ -257,7 +262,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
257
262
  }, "serveAllProfilesOverStdio");
258
263
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
259
264
  const { build, close } = allProfilesServer(options);
260
- const { serveOverHttp } = await import("./serve-YYOOLIBS.js");
265
+ const { serveOverHttp } = await import("./serve-Q2BQHNZB.js");
261
266
  const listening = await serveOverHttp(build, {
262
267
  ...http,
263
268
  appName: options.command,
@@ -2,27 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  checkedOptions
5
- } from "./chunk-L4BBK7UX.js";
5
+ } from "./chunk-DI5Z4SH5.js";
6
6
  import {
7
7
  messagesFor,
8
8
  systemFor
9
- } from "./chunk-ELIYJXIY.js";
9
+ } from "./chunk-JSDVK3JA.js";
10
10
  import {
11
11
  Anthropic
12
- } from "./chunk-ADLS6FVG.js";
13
- import "./chunk-XGNADVIA.js";
12
+ } from "./chunk-FXBHOCJK.js";
13
+ import "./chunk-CBM2XAEZ.js";
14
+ import "./chunk-V36RIXFA.js";
15
+ import "./chunk-Y5E2WNWB.js";
16
+ import "./chunk-HIP43OGZ.js";
17
+ import "./chunk-UQPKAY6I.js";
14
18
  import {
15
19
  array,
16
20
  optional,
17
21
  strictObject,
18
22
  string
19
- } from "./chunk-GIQFBXQN.js";
20
- import "./chunk-Y5E2WNWB.js";
23
+ } from "./chunk-3U22QTU6.js";
24
+ import "./chunk-EBLA7GXY.js";
21
25
  import {
22
26
  __name
23
27
  } from "./chunk-ZVVMGPBJ.js";
24
28
 
25
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/models/anthropic.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/models/anthropic.js
26
30
  var options = strictObject({
27
31
  stop_sequences: optional(array(string()))
28
32
  });
@@ -3,46 +3,34 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-QAT6UXZZ.js";
6
+ } from "./chunk-IGF6EXBR.js";
7
7
  import {
8
8
  mcpUrlOf
9
- } from "./chunk-WBYCUBYM.js";
10
- import {
11
- answeredWire
12
- } from "./chunk-EFX6FIDM.js";
9
+ } from "./chunk-A6SLYOP2.js";
13
10
  import {
14
11
  answered,
15
12
  failed,
16
13
  registerCommands,
17
14
  runCommandForAgent,
18
15
  toolsFromCommands
19
- } from "./chunk-Q3TMNETS.js";
16
+ } from "./chunk-3KJTJDDT.js";
20
17
  import {
21
18
  agentJson,
22
19
  skillResource
23
- } from "./chunk-RB674T6L.js";
20
+ } from "./chunk-KFZUODXB.js";
21
+ import {
22
+ answeredWire
23
+ } from "./chunk-OZH4ALTI.js";
24
24
  import {
25
25
  StdioServerTransport,
26
26
  serveStdio
27
- } from "./chunk-YZ6SYLDC.js";
28
- import {
29
- appInstructions
30
- } from "./chunk-EFEI724Z.js";
27
+ } from "./chunk-XCOCPXCM.js";
31
28
  import {
32
29
  McpServer
33
30
  } from "./chunk-5D4AEUVA.js";
34
- import {
35
- mcpHttpMarker
36
- } from "./chunk-GKHUHRSL.js";
37
- import "./chunk-B64EY2SC.js";
38
- import "./chunk-EN7OZ5JH.js";
39
- import "./chunk-SRNXTXJN.js";
40
- import "./chunk-KHNDZNQA.js";
41
- import "./chunk-HNUSPNUQ.js";
42
- import "./chunk-G34Y5RAC.js";
43
- import "./chunk-VTJF2L5E.js";
44
- import "./chunk-RAEKC6TV.js";
45
- import "./chunk-3BXSLNWW.js";
31
+ import "./chunk-ZSMCJKGP.js";
32
+ import "./chunk-TFH5X46A.js";
33
+ import "./chunk-PAEVBAM3.js";
46
34
  import {
47
35
  DEFAULT_OUTPUT_BYTES,
48
36
  changesAuthorityAt,
@@ -51,46 +39,65 @@ import {
51
39
  judgedTargets,
52
40
  readsOverMcpAt,
53
41
  rootOf2 as rootOf
54
- } from "./chunk-4F2VRJZE.js";
55
- import "./chunk-4UQLL6RJ.js";
56
- import "./chunk-U2RSVKR5.js";
57
- import "./chunk-TR5656OS.js";
58
- import "./chunk-2ULJW5BA.js";
59
- import "./chunk-7SNS443B.js";
60
- import "./chunk-5KNIVHP6.js";
61
- import "./chunk-OYNSFQ7K.js";
62
- import "./chunk-UKMFPBAO.js";
42
+ } from "./chunk-3KNZADHJ.js";
43
+ import "./chunk-EHEZSV6I.js";
44
+ import "./chunk-JW2CVCUH.js";
63
45
  import {
64
46
  readOnlyLockOf
65
- } from "./chunk-JLKNUFL2.js";
66
- import "./chunk-TZHCS5MG.js";
67
- import "./chunk-ELIYJXIY.js";
68
- import "./chunk-6ZA4NR5H.js";
69
- import "./chunk-KM4Y55ZE.js";
47
+ } from "./chunk-IIP43FQJ.js";
48
+ import {
49
+ mcpHttpMarker
50
+ } from "./chunk-GT5KTGCN.js";
51
+ import "./chunk-GJ4ZCIOP.js";
52
+ import "./chunk-5C7K6XIT.js";
53
+ import {
54
+ appInstructions
55
+ } from "./chunk-36B7AIGP.js";
56
+ import "./chunk-7QTVIZII.js";
57
+ import "./chunk-YADXWQHV.js";
58
+ import "./chunk-A6EG7ZDS.js";
59
+ import "./chunk-AD62XJKO.js";
60
+ import "./chunk-HMZAMHKN.js";
61
+ import "./chunk-P7WPYKSB.js";
62
+ import "./chunk-ZYCLPJ7U.js";
63
+ import "./chunk-JSDVK3JA.js";
64
+ import "./chunk-EORMZCVF.js";
65
+ import "./chunk-P3ZTW2ZM.js";
70
66
  import "./chunk-5DPV7X27.js";
71
- import "./chunk-OZJMZSFB.js";
72
- import "./chunk-WAVJWGUC.js";
73
- import "./chunk-373WJIHE.js";
74
- import "./chunk-R5GJZPRF.js";
75
- import "./chunk-XJVK7ETL.js";
76
- import "./chunk-HPXYN7F3.js";
77
- import "./chunk-AHBUTDS7.js";
78
- import "./chunk-B3TPS7BW.js";
79
- import "./chunk-CGCQNYB3.js";
80
- import "./chunk-WJPVGXKA.js";
67
+ import "./chunk-TI55J3BA.js";
68
+ import "./chunk-LPHMAQJQ.js";
69
+ import "./chunk-VT6GZAF4.js";
70
+ import "./chunk-GI5JBGXH.js";
71
+ import "./chunk-IADOBOKB.js";
72
+ import "./chunk-TJXPJ3A5.js";
73
+ import "./chunk-L5SE2XZP.js";
74
+ import "./chunk-HIOJRPCT.js";
75
+ import "./chunk-OKXSTWKW.js";
76
+ import "./chunk-IBZ3IBO4.js";
77
+ import "./chunk-3VSUT6BD.js";
78
+ import "./chunk-QTM7USFA.js";
79
+ import "./chunk-BSGOM3BD.js";
80
+ import "./chunk-F3FOL42A.js";
81
+ import "./chunk-D72URWJE.js";
82
+ import "./chunk-2AXA5SKP.js";
83
+ import "./chunk-LK2E2ELG.js";
84
+ import "./chunk-KPRGTTJH.js";
85
+ import "./chunk-CBM2XAEZ.js";
81
86
  import {
82
87
  mcpErrorResult
83
- } from "./chunk-XGNADVIA.js";
88
+ } from "./chunk-V36RIXFA.js";
89
+ import "./chunk-Y5E2WNWB.js";
90
+ import "./chunk-HIP43OGZ.js";
91
+ import "./chunk-UQPKAY6I.js";
92
+ import "./chunk-3U22QTU6.js";
84
93
  import {
85
94
  CliError
86
- } from "./chunk-GIQFBXQN.js";
87
- import "./chunk-Y5E2WNWB.js";
88
- import "./chunk-LSSIVBQI.js";
95
+ } from "./chunk-EBLA7GXY.js";
89
96
  import {
90
97
  __name
91
98
  } from "./chunk-ZVVMGPBJ.js";
92
99
 
93
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
100
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
94
101
  var EXCLUDED = [["mcp"]];
95
102
  var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
96
103
  const { app } = options;
@@ -205,10 +212,11 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
205
212
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
206
213
  const { app } = options;
207
214
  const { build } = createAppServer(command, context, options);
208
- const { serveOverHttp } = await import("./serve-YYOOLIBS.js");
215
+ const { serveOverHttp } = await import("./serve-Q2BQHNZB.js");
209
216
  const listening = await serveOverHttp(build, {
210
217
  ...http,
211
218
  appName: app.command,
219
+ reaches: `your ${options.name}`,
212
220
  onCode: /* @__PURE__ */ __name((code, expires) => context.renderer.note(context.env[mcpHttpMarker(app.envPrefix)] === void 0 ? `login code for a new browser app: ${code} (until ${expires.toTimeString().slice(0, 5)}; a new one after each login)` : `a new login code for a browser app: \`${app.command} ${context.settings.profile} mcp server status\``), "onCode"),
213
221
  onError: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onError")
214
222
  }).catch((error) => {
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-LSSIVBQI.js";
21
+ } from "./chunk-BSGOM3BD.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/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,17 +3,21 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-J2HGHSLX.js";
7
- import "./chunk-XGNADVIA.js";
8
- import "./chunk-GIQFBXQN.js";
6
+ } from "./chunk-MKCNUI72.js";
7
+ import "./chunk-CBM2XAEZ.js";
8
+ import "./chunk-V36RIXFA.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
12
+ import "./chunk-HIP43OGZ.js";
13
+ import "./chunk-UQPKAY6I.js";
14
+ import "./chunk-3U22QTU6.js";
15
+ import "./chunk-EBLA7GXY.js";
12
16
  import {
13
17
  __name
14
18
  } from "./chunk-ZVVMGPBJ.js";
15
19
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
17
21
  var customised = false;
18
22
  var ownLibrary = /* @__PURE__ */ __name(async () => {
19
23
  try {
@@ -0,0 +1,23 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ __name
5
+ } from "./chunk-ZVVMGPBJ.js";
6
+
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
8
+ var installerOf = /* @__PURE__ */ __name((scriptPath) => {
9
+ const path = scriptPath.replaceAll("\\", "/");
10
+ if (path.includes("/_npx/"))
11
+ return "npx";
12
+ if (path.includes("/install/global/node_modules/"))
13
+ return "bun";
14
+ if (/\/\.?pnpm\//.test(path))
15
+ return "pnpm";
16
+ if (path.includes("/node_modules/"))
17
+ return "npm";
18
+ return path.includes("/dist/") ? "checkout" : "unknown";
19
+ }, "installerOf");
20
+
21
+ export {
22
+ installerOf
23
+ };
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
8
8
  var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
9
9
  const all = typeof profile !== "string";
10
10
  const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
@@ -7,25 +7,18 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-RB674T6L.js";
10
+ } from "./chunk-KFZUODXB.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-YZ6SYLDC.js";
13
+ } from "./chunk-XCOCPXCM.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
17
17
  refuseLacking
18
- } from "./chunk-EN7OZ5JH.js";
19
- import {
20
- onlineDeps,
21
- servicesFor,
22
- storeModeDeps
23
- } from "./chunk-KHNDZNQA.js";
24
- import {
25
- ENTITIES
26
- } from "./chunk-3BXSLNWW.js";
18
+ } from "./chunk-TFH5X46A.js";
27
19
  import {
28
20
  DEFAULT_OUTPUT_BYTES,
21
+ ENTITIES,
29
22
  LOCAL_WRITE,
30
23
  REMOTE_WRITE,
31
24
  answerSchema,
@@ -37,13 +30,18 @@ import {
37
30
  refuseStoreChange,
38
31
  sealed,
39
32
  startRecording
40
- } from "./chunk-4F2VRJZE.js";
33
+ } from "./chunk-3KNZADHJ.js";
41
34
  import {
42
35
  currentCaller,
43
36
  keepsSuccess,
44
37
  runContextOf,
45
38
  withCaller
46
- } from "./chunk-4UQLL6RJ.js";
39
+ } from "./chunk-EHEZSV6I.js";
40
+ import {
41
+ onlineDeps,
42
+ servicesFor,
43
+ storeModeDeps
44
+ } from "./chunk-7QTVIZII.js";
47
45
  import {
48
46
  authorityAllowed,
49
47
  botApiAllowed,
@@ -54,26 +52,30 @@ import {
54
52
  newRunId,
55
53
  readKeysForCommand,
56
54
  traceOf
57
- } from "./chunk-TR5656OS.js";
55
+ } from "./chunk-AD62XJKO.js";
56
+ import {
57
+ queryDescription
58
+ } from "./chunk-L5SE2XZP.js";
58
59
  import {
59
60
  MAX_BUFFERED_INPUT
60
- } from "./chunk-TZHCS5MG.js";
61
+ } from "./chunk-F3FOL42A.js";
61
62
  import {
62
- queryDescription
63
- } from "./chunk-XJVK7ETL.js";
63
+ captureStreams
64
+ } from "./chunk-CBM2XAEZ.js";
64
65
  import {
65
- captureStreams,
66
66
  errorObjectOf,
67
67
  mcpErrorResult
68
- } from "./chunk-XGNADVIA.js";
68
+ } from "./chunk-V36RIXFA.js";
69
69
  import {
70
- CliError,
70
+ traceIdOf
71
+ } from "./chunk-UQPKAY6I.js";
72
+ import {
73
+ COMPACT_FLAG,
71
74
  SNAKE_CASE,
72
75
  array,
73
76
  boolean,
74
77
  description,
75
78
  duplicates,
76
- errorCodes,
77
79
  integer,
78
80
  isoDate,
79
81
  itemEnvelopeSchema,
@@ -99,20 +101,23 @@ import {
99
101
  text,
100
102
  toJsonSchema,
101
103
  toStandardJsonSchema,
102
- traceIdOf,
103
104
  union,
104
105
  unknown,
105
106
  word,
106
107
  writes
107
- } from "./chunk-GIQFBXQN.js";
108
+ } from "./chunk-3U22QTU6.js";
109
+ import {
110
+ CliError,
111
+ errorCodes
112
+ } from "./chunk-EBLA7GXY.js";
108
113
  import {
109
114
  __name
110
115
  } from "./chunk-ZVVMGPBJ.js";
111
116
 
112
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/agent.js
117
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/agent.js
113
118
  import { Readable } from "node:stream";
114
119
 
115
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
120
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
116
121
  var LINT_SEVERITIES = ["high", "medium", "low"];
117
122
  var lintRuleSchema = strictObject({
118
123
  id: word,
@@ -230,16 +235,17 @@ var LINT_RULES = defineLintRules([
230
235
  }
231
236
  ]);
232
237
  var baselineSchema = array(text);
233
- var overridesSchema = array(strictObject({
238
+ var overrideSchema = strictObject({
234
239
  rule: word,
235
240
  target: text,
236
241
  reason: pipe(text, minLength(10, "say why, in a sentence")),
237
242
  /** A GitHub handle or a team, `@octocat`. */
238
243
  owner: pipe(string(), regex(/^@[\w.-]+(\/[\w.-]+)?$/, "a GitHub handle or team, such as @octocat")),
239
244
  review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
240
- }));
245
+ });
246
+ var overridesSchema = array(overrideSchema);
241
247
 
242
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
248
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
243
249
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
244
250
  var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
245
251
  var AUDIT_RULES = defineAuditRules([
@@ -348,7 +354,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
348
354
  { path: ["upgrade"], meaning: "updates the CLI" }
349
355
  ]);
350
356
 
351
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
357
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
352
358
  var fieldRuleSchema = strictObject({ id: word, rule: text });
353
359
  var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
354
360
  var FIELD_RULES = defineFieldRules([
@@ -364,7 +370,7 @@ var FIELD_RULES = defineFieldRules([
364
370
  }
365
371
  ]);
366
372
 
367
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
373
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
368
374
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
369
375
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
370
376
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -386,7 +392,7 @@ var IDENTIFIERS = defineIdentifiers([
386
392
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
387
393
  ]);
388
394
 
389
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
395
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
390
396
  var CALENDAR_FLAGS = [
391
397
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
392
398
  {
@@ -460,7 +466,7 @@ var CALENDAR_FLAGS = [
460
466
  }
461
467
  ];
462
468
 
463
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
469
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
464
470
  var HOW_FLAGS = [
465
471
  {
466
472
  name: "--limit",
@@ -547,6 +553,12 @@ var HOW_FLAGS = [
547
553
  type: "switch",
548
554
  meaning: "each item as its reference, title, time and excerpt only"
549
555
  },
556
+ {
557
+ name: COMPACT_FLAG,
558
+ role: "output",
559
+ type: "switch",
560
+ meaning: "one line per item, built from the same answer as --json, with its paging and next steps as # lines"
561
+ },
550
562
  {
551
563
  name: "--chart-kind",
552
564
  value: "<messages|active|membership>",
@@ -738,6 +750,7 @@ var HOW_FLAGS = [
738
750
  meaning: "refuse if what it names has changed since it was read",
739
751
  replaces: ["--expected"]
740
752
  },
753
+ { name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
741
754
  {
742
755
  name: "--for-everyone",
743
756
  role: "mode",
@@ -1447,7 +1460,7 @@ var HOW_FLAGS = [
1447
1460
  }
1448
1461
  ];
1449
1462
 
1450
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1463
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1451
1464
  var MAIL_FLAGS = [
1452
1465
  {
1453
1466
  name: "--cc",
@@ -1471,7 +1484,7 @@ var MAIL_FLAGS = [
1471
1484
  }
1472
1485
  ];
1473
1486
 
1474
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1487
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1475
1488
  var WHAT_FLAGS = [
1476
1489
  {
1477
1490
  name: "--analysis-provider",
@@ -2469,7 +2482,7 @@ var WHAT_FLAGS = [
2469
2482
  }
2470
2483
  ];
2471
2484
 
2472
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2485
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2473
2486
  var FLAG_TYPES = [
2474
2487
  "switch",
2475
2488
  "count",
@@ -2830,7 +2843,7 @@ var VOCABULARY = defineVocabulary({
2830
2843
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
2831
2844
  });
2832
2845
 
2833
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2846
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2834
2847
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2835
2848
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2836
2849
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3053,7 +3066,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3053
3066
  }
3054
3067
  }, "runCommandForAgent");
3055
3068
 
3056
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3069
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3057
3070
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3058
3071
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3059
3072
  var message = pipe(
@@ -3312,7 +3325,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3312
3325
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3313
3326
  }, "failed");
3314
3327
 
3315
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3328
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3316
3329
  import { randomUUID } from "node:crypto";
3317
3330
  var MATCHES = 8;
3318
3331
  var ANSWER = answerSchema();
@@ -3335,7 +3348,7 @@ var runnableOnly = /* @__PURE__ */ __name((result, offered) => {
3335
3348
  const body = result.structuredContent;
3336
3349
  if (result.isError || !Array.isArray(body?.next))
3337
3350
  return result;
3338
- const next = body.next.filter((step) => offered(step.command));
3351
+ const next = body.next.filter((step) => step.command === void 0 || offered(step.command));
3339
3352
  const { next: _, ...rest } = body;
3340
3353
  const kept = next.length > 0 ? { ...rest, next } : rest;
3341
3354
  return {