@wirecat/drive-cli 0.52.1 → 0.54.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 (218) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bin/drive.js.map +1 -1
  3. package/dist/bundle/{chunk-ZWSG7OCA.js → all-profiles-LFIPUPZI.js} +13 -8
  4. package/dist/bundle/{anthropic-KW6KU36Y.js → anthropic-G5ZRRWG4.js} +5 -5
  5. package/dist/bundle/{app-server-TCJZ333E.js → app-server-UVWATOQC.js} +48 -56
  6. package/dist/bundle/{bun-7SYKSCLA.js → bun-DNEFTPTR.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-RI7DR6RZ.js → bun-sqlite-FWBYHIXB.js} +4 -4
  8. package/dist/bundle/{chunk-CM7GAXGD.js → chunk-2CQT2WWN.js} +5 -5
  9. package/dist/bundle/{chunk-HQVJK5E7.js → chunk-2D6AAGBP.js} +246 -383
  10. package/dist/bundle/{chunk-FG4XXZZE.js → chunk-2FFXRWI2.js} +2 -2
  11. package/dist/bundle/{chunk-2UIMEMWU.js → chunk-2HQPJ366.js} +3 -3
  12. package/dist/bundle/{chunk-CB7SBYLO.js → chunk-2HWOGSTA.js} +57 -37
  13. package/dist/bundle/{chunk-7XKAVMCF.js → chunk-2MSJVFAS.js} +8 -8
  14. package/dist/bundle/{chunk-NSIFQ5OP.js → chunk-2NWFZ43Q.js} +1 -1
  15. package/dist/bundle/{chunk-H47W2J6S.js → chunk-2Q3S47BC.js} +1312 -626
  16. package/dist/bundle/{chunk-O6IOL6RX.js → chunk-47MEPBWG.js} +21 -21
  17. package/dist/bundle/{chunk-725OHXKR.js → chunk-4RDXCE45.js} +2226 -37
  18. package/dist/bundle/{chunk-UR32UWTQ.js → chunk-5BPOAHVD.js} +13 -2
  19. package/dist/bundle/{chunk-5FONRUG6.js → chunk-5D4AEUVA.js} +1 -23
  20. package/dist/bundle/{chunk-VZ2I62HN.js → chunk-5LNOVPOR.js} +2 -2
  21. package/dist/bundle/{chunk-EKFEY3KP.js → chunk-5WQN2TUM.js} +1 -1
  22. package/dist/bundle/{chunk-ALJWBGD5.js → chunk-6MGSFYGL.js} +1 -1
  23. package/dist/bundle/{chunk-WUX7AUOQ.js → chunk-6RAEXK7Y.js} +26 -26
  24. package/dist/bundle/{chunk-BSSCTWWK.js → chunk-6SOQJRGI.js} +4 -4
  25. package/dist/bundle/{chunk-CKBHR7QO.js → chunk-75DSLCPC.js} +1 -1
  26. package/dist/bundle/{chunk-VSOLLTYT.js → chunk-76JIVDKC.js} +7 -2
  27. package/dist/bundle/{chunk-33NVQGUY.js → chunk-7WCZ2OZ5.js} +6 -6
  28. package/dist/bundle/{chunk-IDUNJCFO.js → chunk-7XU3TR7K.js} +2 -2
  29. package/dist/bundle/{chunk-7SH4JHYW.js → chunk-A4FTLORC.js} +12 -12
  30. package/dist/bundle/{chunk-CITFEQ6S.js → chunk-AACQA2CO.js} +1 -1
  31. package/dist/bundle/{chunk-PSNHPFSK.js → chunk-AAHIBA36.js} +1 -1
  32. package/dist/bundle/{chunk-PEOCBV2Z.js → chunk-BWBVBW5T.js} +8 -8
  33. package/dist/bundle/{chunk-A4UNTWAX.js → chunk-CVALO727.js} +99 -30
  34. package/dist/bundle/{chunk-G6QF5KWF.js → chunk-FHW4ENRF.js} +37 -43
  35. package/dist/bundle/{chunk-LONV6HIK.js → chunk-HAHARAJD.js} +455 -40
  36. package/dist/bundle/{chunk-2623YE5I.js → chunk-IBRXVPBI.js} +97 -99
  37. package/dist/bundle/{chunk-IWFBAWZK.js → chunk-IKODUUQG.js} +292 -19
  38. package/dist/bundle/{chunk-PQJYM5ES.js → chunk-IOMSC4ZG.js} +3 -3
  39. package/dist/bundle/{chunk-YKZ4IPLB.js → chunk-JKEAZBEZ.js} +7 -7
  40. package/dist/bundle/{chunk-FCJAHD4R.js → chunk-KIQIF5M7.js} +3 -3
  41. package/dist/bundle/{chunk-KYVXMEBC.js → chunk-KT5G3KVS.js} +3 -3
  42. package/dist/bundle/{chunk-W7IK7E4B.js → chunk-L3RV42O3.js} +20 -22
  43. package/dist/bundle/{chunk-NHBUTCNR.js → chunk-LQXLWHKM.js} +9 -9
  44. package/dist/bundle/{chunk-WBTVGFXI.js → chunk-MATUQFYL.js} +11 -11
  45. package/dist/bundle/{chunk-54O62JWP.js → chunk-MULPNGM2.js} +29 -10
  46. package/dist/bundle/{chunk-FJW3DDCF.js → chunk-N4OO3SPQ.js} +5 -5
  47. package/dist/bundle/{chunk-6DHQTUB2.js → chunk-NDWWGBSM.js} +1 -1
  48. package/dist/bundle/{chunk-DLAFGSTN.js → chunk-NHDSJMAR.js} +1 -1
  49. package/dist/bundle/{chunk-PQYVPCJ2.js → chunk-O6YYFVDD.js} +38 -37
  50. package/dist/bundle/{chunk-I7UH5CTA.js → chunk-OYGEBFFO.js} +12 -14
  51. package/dist/bundle/chunk-P7E7K467.js +110 -0
  52. package/dist/bundle/{chunk-ZNZUZGSV.js → chunk-PKNTBZXN.js} +176 -49
  53. package/dist/bundle/{chunk-YNFELLNQ.js → chunk-PU4GANCD.js} +3 -3
  54. package/dist/bundle/{chunk-5PLJKSG4.js → chunk-Q46JLJ5O.js} +7 -9
  55. package/dist/bundle/{chunk-R276546S.js → chunk-QKHFQHE7.js} +1 -1
  56. package/dist/bundle/{chunk-RNSP57TC.js → chunk-QUJCD5U7.js} +4 -4
  57. package/dist/bundle/{chunk-43QVYW3K.js → chunk-RIYXQFKU.js} +262 -88
  58. package/dist/bundle/{chunk-2AUXBJRX.js → chunk-RWEFKLXJ.js} +104 -29
  59. package/dist/bundle/{chunk-WQJBAWQP.js → chunk-SBOTSSYV.js} +879 -508
  60. package/dist/bundle/{chunk-PAXKALHV.js → chunk-U3BOQ63L.js} +118 -7
  61. package/dist/bundle/{chunk-VJZST5RD.js → chunk-UBJX5D2O.js} +2 -2
  62. package/dist/bundle/{chunk-HX7Y2ASG.js → chunk-VCGQMTHW.js} +26318 -15143
  63. package/dist/bundle/{chunk-7YMDL4JQ.js → chunk-VKYCMXEQ.js} +8 -5
  64. package/dist/bundle/{chunk-ZSXRDF6I.js → chunk-VX4RAT3A.js} +1 -1
  65. package/dist/bundle/{chunk-NYOPEHEU.js → chunk-W5SYBHRX.js} +8 -3
  66. package/dist/bundle/{chunk-XOLQSCMF.js → chunk-WGSTTWM5.js} +6 -6
  67. package/dist/bundle/{chunk-WLFUBNFX.js → chunk-WJRE45Z6.js} +4 -4
  68. package/dist/bundle/{chunk-IEXPOEEO.js → chunk-WQPTZHHR.js} +17 -26
  69. package/dist/bundle/{chunk-JEOYFKUK.js → chunk-WSX5UQNT.js} +2 -2
  70. package/dist/bundle/{chunk-LJAX6YCF.js → chunk-WYDYSQ7T.js} +2 -2
  71. package/dist/bundle/{chunk-C6Z25IBJ.js → chunk-XCUUYQN7.js} +4 -4
  72. package/dist/bundle/{chunk-GVCN3GLZ.js → chunk-YOHOQ6ZR.js} +4 -4
  73. package/dist/bundle/chunk-YZ5VMR2S.js +5305 -0
  74. package/dist/bundle/{chunk-ZDLIO76S.js → chunk-ZMMOVTUB.js} +2 -2
  75. package/dist/bundle/command-contract-VZ3ZJLEF.js +35 -0
  76. package/dist/bundle/{decode-EDN2ARXZ.js → decode-DN2DDFET.js} +4 -4
  77. package/dist/bundle/drive.js +11 -22
  78. package/dist/bundle/{echarts-GXY34GHA.js → echarts-VMHZ2UYP.js} +2 -2
  79. package/dist/bundle/{embed-3GSQIQXE.js → embed-MDN7R7BA.js} +5 -5
  80. package/dist/bundle/{embedder-6ULWRG3R.js → embedder-KEVEDNDJ.js} +8 -8
  81. package/dist/bundle/{entry-IPRJLFHO.js → entry-HTNK5TJQ.js} +6 -6
  82. package/dist/bundle/{first-run-FGHGWHC2.js → first-run-QNMCMP67.js} +9 -9
  83. package/dist/bundle/first-screen-RQBEHUQC.js +33 -0
  84. package/dist/bundle/{google-BD3ZNFVJ.js → google-QAKMV57Q.js} +9 -9
  85. package/dist/bundle/{chunk-GR5GGZKH.js → google-api-UJJS7ECO.js} +62 -6
  86. package/dist/bundle/grants-VMPKFEC2.js +98 -0
  87. package/dist/bundle/{identity-U7IHZEMR.js → identity-UODE3QAL.js} +4 -2
  88. package/dist/bundle/{instructions-K5BEQM4C.js → instructions-IWLHCDC7.js} +1 -1
  89. package/dist/bundle/{login-7HRYPZMM.js → login-GIZXEN7I.js} +60 -68
  90. package/dist/bundle/{mcp-WSGVVZWI.js → mcp-RUYPQVYS.js} +2 -2
  91. package/dist/bundle/{node-ZYWB7IET.js → node-25IJLDBZ.js} +2 -2
  92. package/dist/bundle/{node-sqlite-J3OODPYK.js → node-sqlite-DYR4FEI4.js} +4 -4
  93. package/dist/bundle/{oauth-L4VTCBLF.js → oauth-FLHXEDDY.js} +7 -7
  94. package/dist/bundle/{open-SGUN7ZVF.js → open-FWDZB7KX.js} +3 -3
  95. package/dist/bundle/{openai-RLVISEDH.js → openai-HB7UGKPW.js} +13 -13
  96. package/dist/bundle/{process-ZXO2MWRJ.js → process-P6TW37HQ.js} +1 -1
  97. package/dist/bundle/{program-YVLXSKZV.js → program-DVUNLXXS.js} +730 -919
  98. package/dist/bundle/{prompt-AUWTBLO7.js → prompt-MKWMYO3B.js} +4 -4
  99. package/dist/bundle/{reasons-J57GSRWN.js → reasons-25BEO2NE.js} +3 -3
  100. package/dist/bundle/{recognize-ORX2UBQW.js → recognize-VXGNPROM.js} +3 -3
  101. package/dist/bundle/{remote-AGIJY73X.js → remote-H5ZWLJHR.js} +6 -6
  102. package/dist/bundle/{rerank-R6PE44M5.js → rerank-5A3JDK7O.js} +6 -6
  103. package/dist/bundle/{chunk-G7DCVJ4F.js → serve-QNPNEZVR.js} +10 -7
  104. package/dist/bundle/{chunk-F7UUZATI.js → server-GWBVIRLY.js} +42 -15
  105. package/dist/bundle/server-QJU3HEGM.js +63 -0
  106. package/dist/bundle/{services-HZFTTZSF.js → services-PFXEWHJG.js} +30 -31
  107. package/dist/bundle/{sqlite-runtime-DTGPR2T2.js → sqlite-runtime-RGFISYXM.js} +4 -4
  108. package/dist/bundle/{state-WG3JKJM3.js → state-BUSX5BXF.js} +5 -5
  109. package/dist/bundle/{store-EV72MT5U.js → store-FIEE5HHG.js} +14 -16
  110. package/dist/bundle/{store-33VHIMEO.js → store-HFF5KQ44.js} +12 -14
  111. package/dist/bundle/store-maintenance-command-Z4SPEQUM.js +52 -0
  112. package/dist/bundle/{chunk-GNI7INK6.js → terminal-DHJ4D3BC.js} +2 -3
  113. package/dist/bundle/tokens-B6MUZRFM.js +96 -0
  114. package/dist/commands/context.d.ts +14 -13
  115. package/dist/commands/context.d.ts.map +1 -1
  116. package/dist/commands/context.js.map +1 -1
  117. package/dist/commands/documents.d.ts.map +1 -1
  118. package/dist/commands/documents.js +1 -4
  119. package/dist/commands/documents.js.map +1 -1
  120. package/dist/commands/mirrors.d.ts.map +1 -1
  121. package/dist/commands/mirrors.js +1 -2
  122. package/dist/commands/mirrors.js.map +1 -1
  123. package/dist/commands/upgrade.d.ts +1 -1
  124. package/dist/commands/upgrade.d.ts.map +1 -1
  125. package/dist/commands/upgrade.js +4 -9
  126. package/dist/commands/upgrade.js.map +1 -1
  127. package/dist/config.d.ts +182 -0
  128. package/dist/config.d.ts.map +1 -1
  129. package/dist/config.js +38 -3
  130. package/dist/config.js.map +1 -1
  131. package/dist/contract-overrides.d.ts +0 -3
  132. package/dist/contract-overrides.d.ts.map +1 -1
  133. package/dist/contract-overrides.js +0 -234
  134. package/dist/contract-overrides.js.map +1 -1
  135. package/dist/first-screen.d.ts +3 -2
  136. package/dist/first-screen.d.ts.map +1 -1
  137. package/dist/first-screen.js +17 -22
  138. package/dist/first-screen.js.map +1 -1
  139. package/dist/grants.d.ts +9 -0
  140. package/dist/grants.d.ts.map +1 -0
  141. package/dist/grants.js +30 -0
  142. package/dist/grants.js.map +1 -0
  143. package/dist/identity.d.ts.map +1 -1
  144. package/dist/identity.js +2 -0
  145. package/dist/identity.js.map +1 -1
  146. package/dist/login.d.ts.map +1 -1
  147. package/dist/login.js +2 -4
  148. package/dist/login.js.map +1 -1
  149. package/dist/policy-keys.d.ts +12 -0
  150. package/dist/policy-keys.d.ts.map +1 -0
  151. package/dist/policy-keys.js +107 -0
  152. package/dist/policy-keys.js.map +1 -0
  153. package/dist/policy.d.ts +1 -8
  154. package/dist/policy.d.ts.map +1 -1
  155. package/dist/policy.js +2 -105
  156. package/dist/policy.js.map +1 -1
  157. package/dist/program.d.ts +8 -4
  158. package/dist/program.d.ts.map +1 -1
  159. package/dist/program.js +251 -222
  160. package/dist/program.js.map +1 -1
  161. package/dist/testing/mcp.d.ts +28 -0
  162. package/dist/testing/mcp.d.ts.map +1 -0
  163. package/dist/testing/mcp.js +56 -0
  164. package/dist/testing/mcp.js.map +1 -0
  165. package/dist/tokens.d.ts.map +1 -1
  166. package/dist/tokens.js +0 -9
  167. package/dist/tokens.js.map +1 -1
  168. package/dist/version.d.ts +1 -1
  169. package/dist/version.js +1 -1
  170. package/package.json +6 -5
  171. package/scenarios/agent-access.md +4 -2
  172. package/dist/bundle/all-profiles-CYW6XBBS.js +0 -26
  173. package/dist/bundle/chunk-234MHU76.js +0 -384
  174. package/dist/bundle/chunk-BBYD2FA3.js +0 -9
  175. package/dist/bundle/chunk-DO4PDQY5.js +0 -48
  176. package/dist/bundle/chunk-FDWYPONW.js +0 -1988
  177. package/dist/bundle/chunk-FQRJWVEB.js +0 -2
  178. package/dist/bundle/chunk-GJN5B5JK.js +0 -522
  179. package/dist/bundle/chunk-NPSZPUK6.js +0 -193
  180. package/dist/bundle/chunk-PDGECM5D.js +0 -138
  181. package/dist/bundle/chunk-Q765VPZY.js +0 -421
  182. package/dist/bundle/chunk-QYUHS6DE.js +0 -1714
  183. package/dist/bundle/chunk-WQRGA75U.js +0 -256
  184. package/dist/bundle/chunk-YVPHJHIL.js +0 -15572
  185. package/dist/bundle/chunk-Z47LOJUS.js +0 -484
  186. package/dist/bundle/command-contract-I2YB5IXI.js +0 -38
  187. package/dist/bundle/failure-IXS2ZHA5.js +0 -37
  188. package/dist/bundle/first-screen-M62KTPZG.js +0 -36
  189. package/dist/bundle/google-api-BDUWZMRV.js +0 -83
  190. package/dist/bundle/mcp-F67RATLF.js +0 -502
  191. package/dist/bundle/mcp-JZSYPQA4.js +0 -96
  192. package/dist/bundle/serve-VOBAQHAQ.js +0 -20
  193. package/dist/bundle/server-24PS4M7U.js +0 -70
  194. package/dist/bundle/server-G6HFZ2CK.js +0 -57
  195. package/dist/bundle/store-maintenance-command-ZTUEI4EC.js +0 -58
  196. package/dist/bundle/terminal-TFCTWLOS.js +0 -11
  197. package/dist/bundle/tokens-XMOGQFI6.js +0 -102
  198. package/dist/commands/doctor.d.ts +0 -56
  199. package/dist/commands/doctor.d.ts.map +0 -1
  200. package/dist/commands/doctor.js +0 -75
  201. package/dist/commands/doctor.js.map +0 -1
  202. package/dist/commands/mcp.d.ts +0 -6
  203. package/dist/commands/mcp.d.ts.map +0 -1
  204. package/dist/commands/mcp.js +0 -156
  205. package/dist/commands/mcp.js.map +0 -1
  206. package/dist/commands/skill.d.ts +0 -6
  207. package/dist/commands/skill.d.ts.map +0 -1
  208. package/dist/commands/skill.js +0 -34
  209. package/dist/commands/skill.js.map +0 -1
  210. package/dist/failure.d.ts +0 -88
  211. package/dist/failure.d.ts.map +0 -1
  212. package/dist/failure.js +0 -60
  213. package/dist/failure.js.map +0 -1
  214. package/dist/mcp.d.ts +0 -175
  215. package/dist/mcp.d.ts.map +0 -1
  216. package/dist/mcp.js +0 -412
  217. package/dist/mcp.js.map +0 -1
  218. /package/dist/bundle/{chunk-62EDJKGP.js → chunk-HEA3XVAJ.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  organization,
5
5
  project,
6
6
  reminder
7
- } from "./chunk-GVCN3GLZ.js";
7
+ } from "./chunk-YOHOQ6ZR.js";
8
8
  import {
9
9
  MIGRATIONS,
10
10
  SnapshotBudget,
@@ -12,6 +12,10 @@ import {
12
12
  botNamed,
13
13
  canonicalTagNamed,
14
14
  decodeProjectAnnotationSnapshot,
15
+ filesAccountSql,
16
+ folderProviderOf,
17
+ folderProviderSql,
18
+ isDocumentAccountProvider,
15
19
  migrate,
16
20
  openSqlite,
17
21
  openStoreContext,
@@ -28,31 +32,25 @@ import {
28
32
  tagMemberIds,
29
33
  thingOf,
30
34
  write
31
- } from "./chunk-WQJBAWQP.js";
32
- import {
33
- filesAccountSql,
34
- folderProviderOf,
35
- folderProviderSql,
36
- isDocumentAccountProvider
37
- } from "./chunk-234MHU76.js";
35
+ } from "./chunk-SBOTSSYV.js";
38
36
  import {
39
37
  queryFieldsOf
40
- } from "./chunk-NHBUTCNR.js";
38
+ } from "./chunk-LQXLWHKM.js";
41
39
  import {
42
40
  fold
43
- } from "./chunk-7XKAVMCF.js";
41
+ } from "./chunk-2MSJVFAS.js";
44
42
  import {
45
43
  CliError
46
- } from "./chunk-YKZ4IPLB.js";
44
+ } from "./chunk-JKEAZBEZ.js";
47
45
  import {
48
46
  __name
49
47
  } from "./chunk-ZVVMGPBJ.js";
50
48
 
51
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
49
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
52
50
  import { realpathSync, statSync } from "node:fs";
53
51
  import { resolve } from "node:path";
54
52
 
55
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
53
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
56
54
  var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
57
55
  const creatable = /* @__PURE__ */ new Set();
58
56
  let people = 0, identities = 0;
@@ -115,11 +113,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
115
113
  }
116
114
  }, "copyPeople");
117
115
 
118
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
116
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
119
117
  import { createHash } from "node:crypto";
120
118
  var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
121
119
 
122
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
120
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
123
121
  var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
124
122
  const colon = collection.indexOf(":");
125
123
  const provider = collection.slice(0, colon);
@@ -163,7 +161,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
163
161
  };
164
162
  }, "currentCollection");
165
163
 
166
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
164
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
167
165
  var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
168
166
  const mappings = /* @__PURE__ */ new Map();
169
167
  const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
@@ -330,7 +328,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
330
328
  };
331
329
  }, "planTransfer");
332
330
 
333
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
331
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
334
332
  var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
335
333
  var MAX_ENTITIES = 1e3;
336
334
  var MAX_AUXILIARY = 1e4;
@@ -492,7 +490,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
492
490
  };
493
491
  }), "transferSnapshot");
494
492
 
495
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
493
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
496
494
  var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
497
495
  if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
498
496
  return provider ?? null;
@@ -664,7 +662,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
664
662
  database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
665
663
  }, "remapEntity");
666
664
 
667
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
665
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
668
666
  var locations = /* @__PURE__ */ __name((options) => {
669
667
  for (const value of [options.source, options.destination, options.collection])
670
668
  if (typeof value !== "string" || !value.trim())
@@ -760,7 +758,7 @@ var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
760
758
  }
761
759
  }, "applyDocumentTransfer");
762
760
 
763
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
761
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
764
762
  var ORGANIZATIONS_QUERY = {
765
763
  entity: "organization",
766
764
  backend: "sql",
@@ -795,7 +793,7 @@ var REMINDERS_QUERY = {
795
793
  })
796
794
  };
797
795
 
798
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
796
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
799
797
  var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
800
798
  if (!options || typeof options !== "object" || Array.isArray(options))
801
799
  throw new CliError("validation_error", "project preview options are required");
@@ -817,7 +815,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
817
815
  }
818
816
  }, "previewProjectAnnotationSnapshot");
819
817
 
820
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
818
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
821
819
  var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
822
820
  if (!options || typeof options !== "object" || Array.isArray(options))
823
821
  throw new CliError("validation_error", "snapshot options are required");
@@ -21,12 +21,12 @@ import {
21
21
  reference,
22
22
  string,
23
23
  variant
24
- } from "./chunk-YKZ4IPLB.js";
24
+ } from "./chunk-JKEAZBEZ.js";
25
25
  import {
26
26
  __name
27
27
  } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
29
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
30
30
  var QUERY_LIMITS = {
31
31
  bytes: 8192,
32
32
  depth: 32,
@@ -70,7 +70,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
70
70
  __name(queryError, "queryError");
71
71
  var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
73
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
74
74
  var timezoneOf = /* @__PURE__ */ __name((given) => {
75
75
  const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
76
76
  try {
@@ -215,7 +215,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
215
215
  };
216
216
  }, "dateRange");
217
217
 
218
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
218
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
219
219
  var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
220
220
  var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
221
221
  var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
@@ -270,7 +270,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
270
270
  }, "matches");
271
271
  var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
272
272
 
273
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
273
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
274
274
  var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
275
275
  var OPERATORS_BY_TYPE = {
276
276
  kw: ["term", "phrase", "wildcard"],
@@ -347,7 +347,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
347
347
  return [...own, ...relations, ...states];
348
348
  }, "queryFieldsOf");
349
349
 
350
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
350
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
351
351
  var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
352
352
  var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
353
353
  var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
@@ -363,7 +363,7 @@ var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
363
363
  ].join("\n");
364
364
  }, "fieldsHelp");
365
365
 
366
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
366
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
367
367
  var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
368
368
  var reserved = /* @__PURE__ */ new Set([
369
369
  "+",
@@ -668,7 +668,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
668
668
  return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
669
669
  }, "implicitTextTerms");
670
670
 
671
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
671
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
672
672
  var inContext = /* @__PURE__ */ __name((context, run) => {
673
673
  try {
674
674
  run();
@@ -743,7 +743,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
743
743
  }, "validateQuery");
744
744
  var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
745
745
 
746
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
746
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
747
747
  var describeQuery = /* @__PURE__ */ __name((registry) => ({
748
748
  entity: registry.entity,
749
749
  backend: registry.backend,
@@ -3,28 +3,28 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  installerOf,
5
5
  updateCommand
6
- } from "./chunk-7YMDL4JQ.js";
6
+ } from "./chunk-VKYCMXEQ.js";
7
7
  import {
8
8
  QUESTIONS,
9
9
  readSetupAnswers,
10
10
  unanswered,
11
11
  writeSetupAnswers
12
- } from "./chunk-WLFUBNFX.js";
12
+ } from "./chunk-WJRE45Z6.js";
13
13
  import {
14
14
  DEFAULT_STEMMERS,
15
15
  LANGUAGES
16
- } from "./chunk-7XKAVMCF.js";
16
+ } from "./chunk-2MSJVFAS.js";
17
17
  import {
18
18
  sharedConfigPath
19
- } from "./chunk-XOLQSCMF.js";
19
+ } from "./chunk-WGSTTWM5.js";
20
20
  import {
21
21
  storePath
22
- } from "./chunk-VJZST5RD.js";
22
+ } from "./chunk-UBJX5D2O.js";
23
23
  import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/first-run.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/first-run.js
28
28
  import { spawnSync } from "node:child_process";
29
29
  import { accessSync, constants, realpathSync } from "node:fs";
30
30
  import { delimiter, join } from "node:path";
@@ -82,7 +82,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
82
82
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
83
83
  }, "suggested");
84
84
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
85
- const { openStore } = await import("./store-33VHIMEO.js");
85
+ const { openStore } = await import("./store-HFF5KQ44.js");
86
86
  const store = await openStore({ env });
87
87
  let rebuild = false;
88
88
  try {
@@ -111,8 +111,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
111
111
  if (!rebuild)
112
112
  return;
113
113
  const [{ openCache }, { buildStems }] = await Promise.all([
114
- import("./open-SGUN7ZVF.js"),
115
- import("./store-maintenance-command-ZTUEI4EC.js")
114
+ import("./open-FWDZB7KX.js"),
115
+ import("./store-maintenance-command-Z4SPEQUM.js")
116
116
  ]);
117
117
  const database = await openCache(storePath(env));
118
118
  try {
@@ -124,7 +124,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
124
124
  var askTools = /* @__PURE__ */ __name(async (run) => {
125
125
  const { command, env, io } = run;
126
126
  const installed = run.installed ?? ((name) => onPath(name, env));
127
- const { WIRECAT_TOOLS } = await import("./first-screen-M62KTPZG.js");
127
+ const { WIRECAT_TOOLS } = await import("./first-screen-RQBEHUQC.js");
128
128
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
129
129
  const missing = others.filter((tool) => !installed(tool.command));
130
130
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -197,7 +197,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
197
197
  contentLanguages: start.contentLanguages,
198
198
  all: start.path[0] === "setup",
199
199
  io: {
200
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-AUWTBLO7.js")).readSecret(prompt, { input, echo: true }), "ask"),
200
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-MKWMYO3B.js")).readSecret(prompt, { input, echo: true }), "ask"),
201
201
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
202
202
  `), "say")
203
203
  }
@@ -3,31 +3,48 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  envName,
5
5
  readOnlyLockOf
6
- } from "./chunk-ZDLIO76S.js";
6
+ } from "./chunk-ZMMOVTUB.js";
7
7
  import {
8
8
  ensureSqlite
9
- } from "./chunk-IDUNJCFO.js";
9
+ } from "./chunk-7XU3TR7K.js";
10
10
  import {
11
11
  catchCrashes
12
- } from "./chunk-HQVJK5E7.js";
12
+ } from "./chunk-2D6AAGBP.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-YKZ4IPLB.js";
15
+ } from "./chunk-JKEAZBEZ.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/entry.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/entry.js
21
21
  import { spawn } from "node:child_process";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
24
24
  import { appendFileSync } from "node:fs";
25
+ var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
26
+ const words = [];
27
+ const options = [];
28
+ for (let at = action; at; at = at.parent) {
29
+ if (at.parent)
30
+ words.unshift(at.name());
31
+ for (const option of at.options) {
32
+ const key = option.attributeName();
33
+ if (at.getOptionValueSource(key) !== "cli" || !option.long)
34
+ continue;
35
+ if (option.negate === (at.getOptionValue(key) === false))
36
+ options.push(option.long);
37
+ }
38
+ }
39
+ appendFileSync(file, `${JSON.stringify({ command: words.join(" "), options })}
40
+ `);
41
+ }, "logParsedArgv");
25
42
  var logVersion = /* @__PURE__ */ __name((file) => {
26
43
  appendFileSync(file, `${JSON.stringify({ command: "", options: ["--version"] })}
27
44
  `);
28
45
  }, "logVersion");
29
46
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/entry.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/entry.js
31
48
  var processIo = /* @__PURE__ */ __name(() => ({
32
49
  argv: process.argv,
33
50
  env: process.env,
@@ -81,8 +98,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
81
98
  if (command.optsWithGlobals().dryRun === true)
82
99
  return;
83
100
  const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
84
- import("./first-run-FGHGWHC2.js"),
85
- import("./command-contract-I2YB5IXI.js")
101
+ import("./first-run-QNMCMP67.js"),
102
+ import("./command-contract-VZ3ZJLEF.js")
86
103
  ]);
87
104
  await setupAtStart({
88
105
  command: entry.app.command,
@@ -97,7 +114,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
97
114
  ask: /* @__PURE__ */ __name(async (question, command) => {
98
115
  if (headless(command) || io.stdin.isTTY !== true)
99
116
  return false;
100
- const { readSecret } = await import("./prompt-AUWTBLO7.js");
117
+ const { readSecret } = await import("./prompt-MKWMYO3B.js");
101
118
  const answer = await readSecret(`${question} [y/N] `, {
102
119
  input: io.stdin,
103
120
  output: io.stderr,
@@ -162,5 +179,7 @@ var openBrowser = /* @__PURE__ */ __name((io, url, browser) => {
162
179
  }, "openBrowser");
163
180
 
164
181
  export {
182
+ logParsedArgv,
183
+ logVersion,
165
184
  startCli
166
185
  };
@@ -8,19 +8,19 @@ import {
8
8
  XLSX,
9
9
  supported,
10
10
  tooManyEntries
11
- } from "./chunk-CKBHR7QO.js";
11
+ } from "./chunk-75DSLCPC.js";
12
12
  import {
13
13
  googleError
14
- } from "./chunk-R276546S.js";
14
+ } from "./chunk-QKHFQHE7.js";
15
15
  import {
16
16
  extractText
17
- } from "./chunk-WUX7AUOQ.js";
17
+ } from "./chunk-6RAEXK7Y.js";
18
18
  import {
19
19
  MAX_TEXT_CHARS
20
- } from "./chunk-JEOYFKUK.js";
20
+ } from "./chunk-WSX5UQNT.js";
21
21
  import {
22
22
  CliError
23
- } from "./chunk-YKZ4IPLB.js";
23
+ } from "./chunk-JKEAZBEZ.js";
24
24
  import {
25
25
  importFrom
26
26
  } from "./chunk-Y5E2WNWB.js";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
527
527
  }
528
528
  });
529
529
 
530
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
530
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
531
531
  import { existsSync } from "node:fs";
532
532
  import { win32 } from "node:path";
533
533
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
@@ -5,69 +5,63 @@ import {
5
5
  UNTRUSTED_NEUTRAL,
6
6
  agentArguments,
7
7
  agentJson,
8
- commandAvailability
9
- } from "./chunk-IWFBAWZK.js";
8
+ commandAvailability,
9
+ failureContext
10
+ } from "./chunk-IKODUUQG.js";
10
11
  import {
11
12
  callerOf
12
- } from "./chunk-FCJAHD4R.js";
13
- import {
14
- failureContext
15
- } from "./chunk-WQRGA75U.js";
13
+ } from "./chunk-KIQIF5M7.js";
16
14
  import {
17
15
  lentConnection,
18
16
  refuseLacking
19
- } from "./chunk-2AUXBJRX.js";
17
+ } from "./chunk-RWEFKLXJ.js";
20
18
  import {
21
19
  onlineDeps,
22
20
  servicesFor,
23
21
  storeModeDeps
24
- } from "./chunk-H47W2J6S.js";
22
+ } from "./chunk-2Q3S47BC.js";
25
23
  import {
26
24
  ENTITIES
27
- } from "./chunk-2623YE5I.js";
25
+ } from "./chunk-IBRXVPBI.js";
28
26
  import {
29
27
  DEFAULT_OUTPUT_BYTES,
30
28
  LOCAL_WRITE,
31
29
  REMOTE_WRITE,
32
30
  answerSchema,
33
31
  changesMessenger,
32
+ flatten,
34
33
  judgedAnswer,
35
34
  judgedEffects,
36
35
  listOf,
37
36
  refuseStoreChange,
38
37
  sealed,
39
38
  startRecording
40
- } from "./chunk-FDWYPONW.js";
39
+ } from "./chunk-4RDXCE45.js";
41
40
  import {
42
41
  currentCaller,
43
42
  keepsSuccess,
44
43
  runContextOf,
45
44
  withCaller
46
- } from "./chunk-PEOCBV2Z.js";
47
- import {
48
- flatten
49
- } from "./chunk-725OHXKR.js";
50
- import {
51
- enclosingTraceId,
52
- inRun,
53
- newRunId,
54
- traceOf
55
- } from "./chunk-LONV6HIK.js";
45
+ } from "./chunk-BWBVBW5T.js";
56
46
  import {
57
47
  authorityAllowed,
58
48
  botApiAllowed,
49
+ enclosingTraceId,
50
+ inRun,
59
51
  keyForCommand,
60
52
  levelFor,
61
- readKeysForCommand
62
- } from "./chunk-Q765VPZY.js";
53
+ newRunId,
54
+ readKeysForCommand,
55
+ traceOf
56
+ } from "./chunk-HAHARAJD.js";
63
57
  import {
64
58
  MAX_BUFFERED_INPUT
65
- } from "./chunk-UR32UWTQ.js";
59
+ } from "./chunk-5BPOAHVD.js";
66
60
  import {
67
61
  captureStreams,
68
62
  errorObjectOf,
69
63
  mcpErrorResult
70
- } from "./chunk-HQVJK5E7.js";
64
+ } from "./chunk-2D6AAGBP.js";
71
65
  import {
72
66
  CliError,
73
67
  SNAKE_CASE,
@@ -106,15 +100,15 @@ import {
106
100
  unknown,
107
101
  word,
108
102
  writes
109
- } from "./chunk-YKZ4IPLB.js";
103
+ } from "./chunk-JKEAZBEZ.js";
110
104
  import {
111
105
  __name
112
106
  } from "./chunk-ZVVMGPBJ.js";
113
107
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/agent.js
108
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/mcp/agent.js
115
109
  import { Readable } from "node:stream";
116
110
 
117
- // node_modules/.pnpm/@wirecat+cli-base@0.67.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
111
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.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
118
112
  var LINT_SEVERITIES = ["high", "medium", "low"];
119
113
  var lintRuleSchema = strictObject({
120
114
  id: word,
@@ -241,7 +235,7 @@ var overridesSchema = array(strictObject({
241
235
  review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
242
236
  }));
243
237
 
244
- // node_modules/.pnpm/@wirecat+cli-base@0.67.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
238
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.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
245
239
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
246
240
  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");
247
241
  var AUDIT_RULES = defineAuditRules([
@@ -323,7 +317,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
323
317
  { path: ["upgrade"], meaning: "updates the CLI" }
324
318
  ]);
325
319
 
326
- // node_modules/.pnpm/@wirecat+cli-base@0.67.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
320
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.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
327
321
  var fieldRuleSchema = strictObject({ id: word, rule: text });
328
322
  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");
329
323
  var FIELD_RULES = defineFieldRules([
@@ -339,7 +333,7 @@ var FIELD_RULES = defineFieldRules([
339
333
  }
340
334
  ]);
341
335
 
342
- // node_modules/.pnpm/@wirecat+cli-base@0.67.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
336
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.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
343
337
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
344
338
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
345
339
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -361,7 +355,7 @@ var IDENTIFIERS = defineIdentifiers([
361
355
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
362
356
  ]);
363
357
 
364
- // node_modules/.pnpm/@wirecat+cli-base@0.67.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
358
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.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
365
359
  var CALENDAR_FLAGS = [
366
360
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
367
361
  {
@@ -435,7 +429,7 @@ var CALENDAR_FLAGS = [
435
429
  }
436
430
  ];
437
431
 
438
- // node_modules/.pnpm/@wirecat+cli-base@0.67.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
432
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.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
439
433
  var HOW_FLAGS = [
440
434
  {
441
435
  name: "--limit",
@@ -813,6 +807,13 @@ var HOW_FLAGS = [
813
807
  type: "string",
814
808
  meaning: "the browser program to open for sign-in"
815
809
  },
810
+ {
811
+ name: "--credential-storage",
812
+ value: "<storage>",
813
+ role: "mode",
814
+ type: "choice",
815
+ meaning: "where a sign-in is kept: keyring, which falls back to a private file by itself, or file (WC-SECR-4)"
816
+ },
816
817
  { name: "--checkpoint", value: "<file>", role: "mode", type: "path", meaning: "keep resume progress in this file" },
817
818
  {
818
819
  name: "--expected-event-id",
@@ -1415,7 +1416,7 @@ var HOW_FLAGS = [
1415
1416
  }
1416
1417
  ];
1417
1418
 
1418
- // node_modules/.pnpm/@wirecat+cli-base@0.67.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
1419
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.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
1419
1420
  var WHAT_FLAGS = [
1420
1421
  {
1421
1422
  name: "--analysis-provider",
@@ -2405,7 +2406,7 @@ var WHAT_FLAGS = [
2405
2406
  }
2406
2407
  ];
2407
2408
 
2408
- // node_modules/.pnpm/@wirecat+cli-base@0.67.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
2409
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.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
2409
2410
  var FLAG_TYPES = [
2410
2411
  "switch",
2411
2412
  "count",
@@ -2759,7 +2760,7 @@ var VOCABULARY = defineVocabulary({
2759
2760
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
2760
2761
  });
2761
2762
 
2762
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2763
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2763
2764
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2764
2765
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2765
2766
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -2980,7 +2981,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
2980
2981
  }
2981
2982
  }, "runCommandForAgent");
2982
2983
 
2983
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2984
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2984
2985
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
2985
2986
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
2986
2987
  var message = pipe(
@@ -3239,7 +3240,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3239
3240
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3240
3241
  }, "failed");
3241
3242
 
3242
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3243
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3243
3244
  import { randomUUID } from "node:crypto";
3244
3245
  var MATCHES = 8;
3245
3246
  var ANSWER = answerSchema();