@wirecat/drive-cli 0.63.0 → 0.65.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 (193) hide show
  1. package/README.md +2 -1
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bundle/{all-profiles-GZJS3UKC.js → all-profiles-PD7GJHFA.js} +14 -13
  4. package/dist/bundle/{anthropic-RGV3WXX5.js → anthropic-PJKFON5H.js} +25 -14
  5. package/dist/bundle/{app-server-AA2PJ7PV.js → app-server-6ELQA6FJ.js} +59 -56
  6. package/dist/bundle/{bun-OXZYIA3R.js → bun-P54TGES2.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-D45NSDM3.js → bun-sqlite-TND5ZRJH.js} +12 -8
  8. package/dist/bundle/chunk-2AFI4KGI.js +185 -0
  9. package/dist/bundle/{chunk-Q5DJTRKV.js → chunk-3HXNDF6Q.js} +2 -2
  10. package/dist/bundle/{chunk-DJHLVUL6.js → chunk-3ONWN3IA.js} +278 -49
  11. package/dist/bundle/{chunk-WYGWWHZP.js → chunk-42G2XNPN.js} +2 -2
  12. package/dist/bundle/chunk-4AOINPN2.js +66 -0
  13. package/dist/bundle/{chunk-J4DIHPZ6.js → chunk-4EDWLR22.js} +1 -1
  14. package/dist/bundle/{chunk-ABYGSJZ4.js → chunk-4Y5YBFMS.js} +7 -7
  15. package/dist/bundle/{chunk-YGU6ULU5.js → chunk-54V4H6PM.js} +16 -16
  16. package/dist/bundle/{chunk-2TFXK3R4.js → chunk-5XSBCMAF.js} +4 -4
  17. package/dist/bundle/{chunk-2HF2MRXI.js → chunk-6DCLZLGX.js} +1 -1
  18. package/dist/bundle/{chunk-OD4U7GUY.js → chunk-7AQGVX5O.js} +20 -20
  19. package/dist/bundle/{chunk-YIP7ELON.js → chunk-7TAP7Y2E.js} +727 -518
  20. package/dist/bundle/{chunk-TF23BZW5.js → chunk-A27UVLPK.js} +3 -3
  21. package/dist/bundle/{chunk-LZEOQW7S.js → chunk-A4QNADEX.js} +58 -52
  22. package/dist/bundle/{chunk-FXBHOCJK.js → chunk-ADLS6FVG.js} +1 -1
  23. package/dist/bundle/{chunk-LMAVCYLQ.js → chunk-B2LPCHQN.js} +4 -4
  24. package/dist/bundle/{chunk-5PPL7JDM.js → chunk-CGQRZRTH.js} +2 -2
  25. package/dist/bundle/{chunk-VAUMOZU5.js → chunk-CWLL63JD.js} +107 -48
  26. package/dist/bundle/{chunk-V3NVXIQR.js → chunk-D6Z43SOG.js} +1563 -266
  27. package/dist/bundle/{chunk-OXY6SSZG.js → chunk-D7WB54P7.js} +127 -28
  28. package/dist/bundle/{chunk-VJEOGKAN.js → chunk-DA63E2UM.js} +13 -9
  29. package/dist/bundle/{chunk-EOOGWUTP.js → chunk-ECEP4SO3.js} +20 -20
  30. package/dist/bundle/{chunk-NEFSGCVA.js → chunk-EHU6EYGO.js} +38 -28
  31. package/dist/bundle/{chunk-4OSSOWDM.js → chunk-ELJUBPY4.js} +1 -1
  32. package/dist/bundle/{chunk-FRIJUILO.js → chunk-EM7NL5ES.js} +3 -3
  33. package/dist/bundle/{chunk-3BZRKLJ6.js → chunk-EU5MD24W.js} +13 -13
  34. package/dist/bundle/{chunk-MOTRI3SY.js → chunk-EZ2OLYEK.js} +24 -2
  35. package/dist/bundle/{chunk-6MQSQ4LX.js → chunk-F56DRBGY.js} +370 -717
  36. package/dist/bundle/{chunk-ZOJU7ZFI.js → chunk-FA6JNXCC.js} +8 -8
  37. package/dist/bundle/{chunk-ND6LLYGF.js → chunk-FBHSWQU7.js} +1531 -136
  38. package/dist/bundle/{chunk-Z42YYLTS.js → chunk-GW3LBY3T.js} +74 -72
  39. package/dist/bundle/{chunk-Y6GNA7HE.js → chunk-HP3NT6JJ.js} +23 -5
  40. package/dist/bundle/{chunk-DJ3SDJZY.js → chunk-I272E6UR.js} +9 -8
  41. package/dist/bundle/{chunk-L37LMMRJ.js → chunk-IBO23OID.js} +2 -2
  42. package/dist/bundle/{chunk-CE2TJBLP.js → chunk-II4S2DBJ.js} +3 -3
  43. package/dist/bundle/{chunk-ZM5J6ZMB.js → chunk-IKHOIXJR.js} +2 -2
  44. package/dist/bundle/{chunk-PO5RQQIG.js → chunk-IMHW7VIV.js} +5 -5
  45. package/dist/bundle/{chunk-3HK5WMI5.js → chunk-JMJIH6JH.js} +6 -6
  46. package/dist/bundle/{chunk-FUITWY7O.js → chunk-JPPPLKAO.js} +26 -1
  47. package/dist/bundle/{chunk-4S4JMW6I.js → chunk-LMKPP2JP.js} +1 -1
  48. package/dist/bundle/{chunk-HZZCEQTH.js → chunk-M7ELUGU6.js} +4 -4
  49. package/dist/bundle/{chunk-ZMOUUOT2.js → chunk-MCPOZNWG.js} +1 -1
  50. package/dist/bundle/{chunk-XNVFKMVR.js → chunk-NI5PD5KM.js} +39485 -35729
  51. package/dist/bundle/{chunk-2TDUGC5D.js → chunk-NQ5XMSLA.js} +4927 -1978
  52. package/dist/bundle/chunk-NQRTKYJB.js +257 -0
  53. package/dist/bundle/{chunk-44SBK6KB.js → chunk-O6K2E7OA.js} +4201 -2565
  54. package/dist/bundle/{chunk-534OBX5Y.js → chunk-O7ZDCOZE.js} +1 -1
  55. package/dist/bundle/{chunk-7EMQ26BA.js → chunk-OFJXHEFT.js} +13 -13
  56. package/dist/bundle/chunk-OWMZUWCM.js +109 -0
  57. package/dist/bundle/chunk-PHOL2DZM.js +138 -0
  58. package/dist/bundle/{chunk-UQLWMGSD.js → chunk-PLP5527C.js} +5 -5
  59. package/dist/bundle/{chunk-3QINVLZI.js → chunk-RNHGQ35R.js} +1 -1
  60. package/dist/bundle/{chunk-27YUUGXQ.js → chunk-RX5CJ55S.js} +1 -1
  61. package/dist/bundle/{chunk-XIUDS3OK.js → chunk-SE352DBY.js} +1 -1
  62. package/dist/bundle/chunk-SEQWBZYH.js +18 -0
  63. package/dist/bundle/{chunk-33MGFUED.js → chunk-SIWXYB4E.js} +3789 -3538
  64. package/dist/bundle/{chunk-4CIZWCXV.js → chunk-SNLSEYJO.js} +1 -1
  65. package/dist/bundle/{chunk-XDC3TWTL.js → chunk-SS4LKLD7.js} +52 -605
  66. package/dist/bundle/{chunk-BKYMKVHT.js → chunk-TMHF4BCL.js} +2 -2
  67. package/dist/bundle/{chunk-FEZF3TII.js → chunk-TOVWMURV.js} +74 -6
  68. package/dist/bundle/{chunk-QCKZ3GAA.js → chunk-TTP4NOP3.js} +4 -4
  69. package/dist/bundle/chunk-UTNRBOEN.js +53 -0
  70. package/dist/bundle/{chunk-2NIC72HH.js → chunk-VDZY3L7U.js} +3 -1
  71. package/dist/bundle/chunk-VHQYWFWV.js +13 -0
  72. package/dist/bundle/{chunk-VKPCONDQ.js → chunk-VLXWAH5E.js} +4 -4
  73. package/dist/bundle/{chunk-6KQJSFYF.js → chunk-VMAMRFFC.js} +23 -23
  74. package/dist/bundle/{chunk-6EY46GAN.js → chunk-W2XY6C5S.js} +2 -2
  75. package/dist/bundle/{chunk-J24ZFCWM.js → chunk-WRAUO5EJ.js} +22 -24
  76. package/dist/bundle/{chunk-S4RXABDR.js → chunk-WRMJN6UQ.js} +3 -3
  77. package/dist/bundle/{chunk-UPOSDTPT.js → chunk-WVJHZIDH.js} +3 -3
  78. package/dist/bundle/{chunk-E4SDKMBJ.js → chunk-X7YGGWXI.js} +1 -59
  79. package/dist/bundle/{chunk-O2XOX4HB.js → chunk-XPWZSW6Y.js} +50 -34
  80. package/dist/bundle/{chunk-PDCCYHCH.js → chunk-XYE7XZPB.js} +5 -5
  81. package/dist/bundle/{chunk-RKELRWH7.js → chunk-Y5PKRITX.js} +5 -5
  82. package/dist/bundle/{chunk-XR6ESRU6.js → chunk-Z2ADO6UA.js} +2 -2
  83. package/dist/bundle/{chunk-YUWPNG7B.js → chunk-ZD4MB7NH.js} +1 -1
  84. package/dist/bundle/{chunk-TWUH22Z5.js → chunk-ZILALBYQ.js} +4 -4
  85. package/dist/bundle/{chunk-SXM6MHRR.js → chunk-ZR2EJPMQ.js} +44 -15
  86. package/dist/bundle/command-contract-25E4PYMD.js +40 -0
  87. package/dist/bundle/command-server-entry-36JXYIJB.js +170 -0
  88. package/dist/bundle/{decode-G5YEIPNC.js → decode-T5ZW57WZ.js} +8 -8
  89. package/dist/bundle/{dispatch-GEFIXA6X.js → dispatch-RMA2XFYA.js} +11 -11
  90. package/dist/bundle/drive.js +11 -11
  91. package/dist/bundle/{echarts-W2CWHNXR.js → echarts-KQ44LPSF.js} +2 -2
  92. package/dist/bundle/{embed-OBFFPVF4.js → embed-Q7XST53J.js} +9 -9
  93. package/dist/bundle/{embedder-NGCBQHIG.js → embedder-RWZSBVW2.js} +12 -12
  94. package/dist/bundle/entry-HPLW4QL2.js +25 -0
  95. package/dist/bundle/{failure-GV77W3CD.js → failure-7NP4QPIN.js} +4 -4
  96. package/dist/bundle/first-run-RL3RKYZW.js +30 -0
  97. package/dist/bundle/first-screen-NX3TM2VJ.js +38 -0
  98. package/dist/bundle/google-DPD5N6AQ.js +42 -0
  99. package/dist/bundle/{google-api-Z3NSTBBR.js → google-api-P5DRHD7L.js} +61 -56
  100. package/dist/bundle/grants-TX4MHLI4.js +109 -0
  101. package/dist/bundle/{identity-OM6GFZ7T.js → identity-VDV6CHRW.js} +6 -6
  102. package/dist/bundle/{instructions-YQBQSYSS.js → instructions-Q45FVY6H.js} +1 -1
  103. package/dist/bundle/{login-7RYSDVN3.js → login-XKN3NI6X.js} +67 -62
  104. package/dist/bundle/{mcp-GWDA3HOA.js → mcp-7KQUJNFN.js} +2 -2
  105. package/dist/bundle/{node-IVU33RL7.js → node-MSW565D3.js} +2 -2
  106. package/dist/bundle/{node-KM3CUABH.js → node-P4E63KXA.js} +9 -9
  107. package/dist/bundle/{node-sqlite-SIH5BEW2.js → node-sqlite-S74XVVHL.js} +13 -9
  108. package/dist/bundle/oauth-6R7AWAES.js +22 -0
  109. package/dist/bundle/{open-IAO2SNII.js → open-P7UQG7XJ.js} +8 -8
  110. package/dist/bundle/{openai-SGOUBHXP.js → openai-DDHJ57KZ.js} +19 -40
  111. package/dist/bundle/{process-BPBMV3AT.js → process-NMUB5SHK.js} +1 -1
  112. package/dist/bundle/{program-MYKKJ4F6.js → program-PJNWP6JW.js} +517 -330
  113. package/dist/bundle/prompt-VOSMK4C2.js +19 -0
  114. package/dist/bundle/{reasons-57J2D77K.js → reasons-KDAXOC5S.js} +5 -5
  115. package/dist/bundle/{recognize-A5C5RPB3.js → recognize-GZIY63HS.js} +7 -7
  116. package/dist/bundle/{remote-VWYFLRGO.js → remote-V3YGN7LN.js} +10 -10
  117. package/dist/bundle/{rerank-4NGQWREA.js → rerank-XRU6AVN7.js} +10 -10
  118. package/dist/bundle/{serve-Y6LQTFH5.js → serve-NDOAFA57.js} +12 -12
  119. package/dist/bundle/{server-6AUHIIUA.js → server-BKGWJYMC.js} +46 -44
  120. package/dist/bundle/server-QD2MUJJZ.js +72 -0
  121. package/dist/bundle/{services-2W4J7EMW.js → services-TYDMFQCA.js} +129 -39
  122. package/dist/bundle/{sqlite-runtime-P6BBDX2H.js → sqlite-runtime-UAFJKSJR.js} +9 -9
  123. package/dist/bundle/{start-AFFA3LKM.js → start-2ZLDP2OE.js} +30 -8
  124. package/dist/bundle/{state-PXKKXR3R.js → state-6SP27J2K.js} +9 -9
  125. package/dist/bundle/{store-CN6JEUC4.js → store-4UUY545Q.js} +42 -18
  126. package/dist/bundle/{store-IVV2BAGZ.js → store-EJN27MXI.js} +69 -28
  127. package/dist/bundle/store-maintenance-command-LETURZDC.js +60 -0
  128. package/dist/bundle/tokens-MTFJPTYT.js +107 -0
  129. package/dist/commands/account.d.ts +4 -0
  130. package/dist/commands/account.d.ts.map +1 -0
  131. package/dist/commands/account.js +33 -0
  132. package/dist/commands/account.js.map +1 -0
  133. package/dist/commands/config.d.ts.map +1 -1
  134. package/dist/commands/config.js +6 -5
  135. package/dist/commands/config.js.map +1 -1
  136. package/dist/commands/context.d.ts +4 -2
  137. package/dist/commands/context.d.ts.map +1 -1
  138. package/dist/commands/context.js.map +1 -1
  139. package/dist/commands/documents.d.ts +2 -0
  140. package/dist/commands/documents.d.ts.map +1 -1
  141. package/dist/commands/documents.js +39 -3
  142. package/dist/commands/documents.js.map +1 -1
  143. package/dist/config.d.ts +13 -0
  144. package/dist/config.d.ts.map +1 -1
  145. package/dist/config.js +32 -2
  146. package/dist/config.js.map +1 -1
  147. package/dist/documents-add.d.ts +49 -0
  148. package/dist/documents-add.d.ts.map +1 -0
  149. package/dist/documents-add.js +122 -0
  150. package/dist/documents-add.js.map +1 -0
  151. package/dist/errors.d.ts +1 -0
  152. package/dist/errors.d.ts.map +1 -1
  153. package/dist/errors.js +9 -1
  154. package/dist/errors.js.map +1 -1
  155. package/dist/knowledge.d.ts +1 -1
  156. package/dist/knowledge.d.ts.map +1 -1
  157. package/dist/knowledge.js +15 -17
  158. package/dist/knowledge.js.map +1 -1
  159. package/dist/model.d.ts +3 -0
  160. package/dist/model.d.ts.map +1 -1
  161. package/dist/model.js.map +1 -1
  162. package/dist/profile-lock.d.ts +1 -0
  163. package/dist/profile-lock.d.ts.map +1 -1
  164. package/dist/profile-lock.js +1 -0
  165. package/dist/profile-lock.js.map +1 -1
  166. package/dist/program.d.ts.map +1 -1
  167. package/dist/program.js +24 -15
  168. package/dist/program.js.map +1 -1
  169. package/dist/reasons.d.ts.map +1 -1
  170. package/dist/reasons.js +25 -0
  171. package/dist/reasons.js.map +1 -1
  172. package/dist/store.d.ts.map +1 -1
  173. package/dist/store.js +20 -0
  174. package/dist/store.js.map +1 -1
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/package.json +4 -4
  178. package/dist/bundle/chunk-AEX37ETW.js +0 -35
  179. package/dist/bundle/chunk-OTROVC4E.js +0 -62
  180. package/dist/bundle/chunk-Z5KC7XBR.js +0 -33
  181. package/dist/bundle/command-contract-BRW3AP44.js +0 -38
  182. package/dist/bundle/entry-ET6HGM7A.js +0 -22
  183. package/dist/bundle/first-run-JG52UZVO.js +0 -30
  184. package/dist/bundle/first-screen-CIL3GFAA.js +0 -36
  185. package/dist/bundle/google-CIWUVJ5C.js +0 -36
  186. package/dist/bundle/grants-3S4RL3WB.js +0 -104
  187. package/dist/bundle/oauth-PT4JEHLL.js +0 -22
  188. package/dist/bundle/prompt-3ZM64DCB.js +0 -17
  189. package/dist/bundle/server-PFHI35HA.js +0 -69
  190. package/dist/bundle/store-maintenance-command-MSY2QNEH.js +0 -59
  191. package/dist/bundle/tokens-P4LPNUFW.js +0 -102
  192. package/dist/bundle/{chunk-ZQ3GWKDQ.js → chunk-YVNHQFLC.js} +0 -0
  193. package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-CE73EWJ2.js} +3 -3
@@ -5,7 +5,7 @@ import {
5
5
  id,
6
6
  text,
7
7
  time
8
- } from "./chunk-V3NVXIQR.js";
8
+ } from "./chunk-D6Z43SOG.js";
9
9
  import {
10
10
  array,
11
11
  nullable,
@@ -16,9 +16,9 @@ import {
16
16
  strictObject,
17
17
  string,
18
18
  unknown
19
- } from "./chunk-FEZF3TII.js";
19
+ } from "./chunk-TOVWMURV.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/entities/note.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/entities/note.js
22
22
  var link = {
23
23
  target_text: nullable(text),
24
24
  kind: text,
@@ -11,9 +11,8 @@ import {
11
11
  mcpUrlOf,
12
12
  refuseWriteBeforeConnecting,
13
13
  registerPrompts,
14
- stdinFieldOf,
15
14
  syncsFirst
16
- } from "./chunk-Z42YYLTS.js";
15
+ } from "./chunk-GW3LBY3T.js";
17
16
  import {
18
17
  BinaryResource,
19
18
  Picture,
@@ -34,35 +33,56 @@ import {
34
33
  tool,
35
34
  toolKey,
36
35
  toolsFromCommands
37
- } from "./chunk-DJHLVUL6.js";
36
+ } from "./chunk-3ONWN3IA.js";
38
37
  import {
39
38
  agentJson,
40
39
  skillResource
41
- } from "./chunk-OXY6SSZG.js";
40
+ } from "./chunk-D7WB54P7.js";
41
+ import {
42
+ instructions
43
+ } from "./chunk-RNHGQ35R.js";
42
44
  import {
43
45
  answeredWire
44
- } from "./chunk-J4DIHPZ6.js";
46
+ } from "./chunk-4EDWLR22.js";
45
47
  import {
46
48
  StdioServerTransport,
47
49
  callerOf,
48
50
  callingAgent,
49
51
  serveStdio
50
- } from "./chunk-WYGWWHZP.js";
52
+ } from "./chunk-42G2XNPN.js";
51
53
  import {
52
54
  McpServer,
53
55
  ResourceTemplate
54
56
  } from "./chunk-5D4AEUVA.js";
55
57
  import {
56
- connectedFor,
57
- guardFor
58
- } from "./chunk-XDC3TWTL.js";
58
+ connectedFor
59
+ } from "./chunk-SS4LKLD7.js";
59
60
  import {
60
61
  lackedNeed,
61
62
  wholeList
62
- } from "./chunk-J24ZFCWM.js";
63
+ } from "./chunk-WRAUO5EJ.js";
64
+ import {
65
+ capability,
66
+ dateWindow,
67
+ guardFor,
68
+ servicesFor,
69
+ storedDeps
70
+ } from "./chunk-O6K2E7OA.js";
71
+ import {
72
+ imageSize
73
+ } from "./chunk-FBHSWQU7.js";
74
+ import {
75
+ mcpHttpMarker
76
+ } from "./chunk-5XSBCMAF.js";
77
+ import {
78
+ warmEmbedders
79
+ } from "./chunk-IMHW7VIV.js";
80
+ import {
81
+ stdinFieldOf
82
+ } from "./chunk-SEQWBZYH.js";
63
83
  import {
64
84
  findCommand
65
- } from "./chunk-RKELRWH7.js";
85
+ } from "./chunk-Y5PKRITX.js";
66
86
  import {
67
87
  DEFAULT_OUTPUT_BYTES,
68
88
  changesAuthorityAt,
@@ -75,52 +95,38 @@ import {
75
95
  rootOf2 as rootOf,
76
96
  sealed,
77
97
  snakeKeys
78
- } from "./chunk-33MGFUED.js";
98
+ } from "./chunk-SIWXYB4E.js";
79
99
  import {
80
100
  withCaller
81
- } from "./chunk-VJEOGKAN.js";
82
- import {
83
- readOnlyLockOf
84
- } from "./chunk-ZM5J6ZMB.js";
85
- import {
86
- mcpHttpMarker
87
- } from "./chunk-2TFXK3R4.js";
88
- import {
89
- instructions
90
- } from "./chunk-3QINVLZI.js";
91
- import {
92
- capability,
93
- dateWindow,
94
- imageSize,
95
- servicesFor,
96
- storedDeps
97
- } from "./chunk-44SBK6KB.js";
101
+ } from "./chunk-DA63E2UM.js";
98
102
  import {
99
103
  levelFor,
100
- readKeysForCommand,
101
- typedCommand
102
- } from "./chunk-6MQSQ4LX.js";
104
+ readKeysForCommand
105
+ } from "./chunk-F56DRBGY.js";
103
106
  import {
104
- warmEmbedders
105
- } from "./chunk-PO5RQQIG.js";
107
+ readOnlyLockOf
108
+ } from "./chunk-IKHOIXJR.js";
106
109
  import {
107
110
  openStore
108
- } from "./chunk-XNVFKMVR.js";
111
+ } from "./chunk-NI5PD5KM.js";
109
112
  import {
110
113
  pdfPreviewLimits
111
- } from "./chunk-UPOSDTPT.js";
114
+ } from "./chunk-WVJHZIDH.js";
115
+ import {
116
+ typedCommand
117
+ } from "./chunk-D6Z43SOG.js";
112
118
  import {
113
119
  timezoneOf
114
- } from "./chunk-EOOGWUTP.js";
120
+ } from "./chunk-ECEP4SO3.js";
115
121
  import {
116
122
  isCliFailure
117
- } from "./chunk-E4SDKMBJ.js";
123
+ } from "./chunk-4AOINPN2.js";
118
124
  import {
119
125
  mcpErrorResult
120
- } from "./chunk-UQLWMGSD.js";
126
+ } from "./chunk-PLP5527C.js";
121
127
  import {
122
128
  visibleControls
123
- } from "./chunk-2HF2MRXI.js";
129
+ } from "./chunk-6DCLZLGX.js";
124
130
  import {
125
131
  description,
126
132
  integer,
@@ -135,18 +141,18 @@ import {
135
141
  regex,
136
142
  strictObject,
137
143
  string
138
- } from "./chunk-FEZF3TII.js";
144
+ } from "./chunk-TOVWMURV.js";
139
145
  import {
140
146
  CliError
141
- } from "./chunk-4OSSOWDM.js";
147
+ } from "./chunk-ELJUBPY4.js";
142
148
  import {
143
149
  __name
144
150
  } from "./chunk-ZVVMGPBJ.js";
145
151
 
146
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/server.js
152
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/server.js
147
153
  import { randomUUID } from "node:crypto";
148
154
 
149
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
155
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
150
156
  var agentLog = /* @__PURE__ */ __name((open) => {
151
157
  let held;
152
158
  return {
@@ -165,7 +171,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
165
171
  };
166
172
  }, "agentLog");
167
173
 
168
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/resources.js
174
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/resources.js
169
175
  var LISTED = 100;
170
176
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
171
177
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -203,7 +209,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
203
209
  });
204
210
  }, "registerResources");
205
211
 
206
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/session.js
212
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/session.js
207
213
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
208
214
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
209
215
  var MessengerSession = class {
@@ -278,7 +284,7 @@ var MessengerSession = class {
278
284
  }
279
285
  };
280
286
 
281
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
287
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
282
288
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
283
289
  const _command = messenger.app.command;
284
290
  return {
@@ -332,7 +338,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
332
338
  };
333
339
  }, "attachmentsTools");
334
340
 
335
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
341
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
336
342
  var PHOTO_LIMIT = 512 * 1024;
337
343
  var IMAGE_TYPES = [
338
344
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -386,7 +392,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
386
392
  return new Uint8Array(Buffer.concat(chunks));
387
393
  }, "readUpTo");
388
394
 
389
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
395
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
390
396
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
391
397
  stats_charts: tool({
392
398
  title: "A chart from a chat's statistics",
@@ -423,14 +429,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
423
429
  })
424
430
  }), "statsTools");
425
431
 
426
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/tools.js
432
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/tools.js
427
433
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
428
434
  ...messagesPhotoTools(messenger),
429
435
  ...attachmentsTools(messenger),
430
436
  ...statsTools(messenger)
431
437
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
432
438
 
433
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/mcp/server.js
439
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/server.js
434
440
  var PER_RUN = /* @__PURE__ */ new Set([
435
441
  "streams",
436
442
  "stdin",
@@ -754,7 +760,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
754
760
  }, "serveOverStdio");
755
761
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
756
762
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
757
- const { serveOverHttp } = await import("./serve-Y6LQTFH5.js");
763
+ const { serveOverHttp } = await import("./serve-NDOAFA57.js");
758
764
  const appName = messenger.app.command;
759
765
  const appEnvPrefix = messenger.app.envPrefix;
760
766
  const listening = await serveOverHttp(build, {
@@ -9424,7 +9424,7 @@ var EnvironmentWorker = /* @__PURE__ */ (() => {
9424
9424
  const ctrl = new AbortController();
9425
9425
  const detachExternal = linkAbort(externalSignal, ctrl);
9426
9426
  const lease = new Lease(ctrl);
9427
- const agentToolset = await import("./node-KM3CUABH.js");
9427
+ const agentToolset = await import("./node-P4E63KXA.js");
9428
9428
  let leaseTtlMs;
9429
9429
  let runner;
9430
9430
  const heartbeatPromise = heartbeatLoop(sessionClient, work, lease, log, this.requestOptions, (ttlMs) => {
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wirecatDirectory
5
- } from "./chunk-AEX37ETW.js";
5
+ } from "./chunk-UTNRBOEN.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-4OSSOWDM.js";
8
+ } from "./chunk-ELJUBPY4.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/speech/models.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/speech/models.js
14
14
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
15
15
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
16
16
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
137
137
  return model;
138
138
  }, "speechModel");
139
139
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/speech/install.js
140
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/speech/install.js
141
141
  import { createHash, randomUUID } from "node:crypto";
142
142
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
143
143
  import { rename, rm } from "node:fs/promises";
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  REASONS
5
- } from "./chunk-FUITWY7O.js";
5
+ } from "./chunk-JPPPLKAO.js";
6
6
 
7
7
  // dist/version.js
8
- var VERSION = "0.63.0";
8
+ var VERSION = "0.65.0";
9
9
 
10
10
  // dist/identity.js
11
11
  var PACKAGE = "@wirecat/drive-cli";
@@ -1,17 +1,12 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- ADDED_PROVIDER,
5
4
  MIGRATIONS,
6
5
  SnapshotBudget,
7
6
  assertReadCompatible,
8
7
  botNamed,
9
8
  canonicalTagNamed,
10
9
  decodeProjectAnnotationSnapshot,
11
- filesAccountSql,
12
- folderProviderOf,
13
- folderProviderSql,
14
- isDocumentAccountProvider,
15
10
  migrate,
16
11
  openSqlite,
17
12
  openStoreContext,
@@ -28,28 +23,48 @@ import {
28
23
  tagMemberIds,
29
24
  thingOf,
30
25
  write
31
- } from "./chunk-XNVFKMVR.js";
32
- import {
33
- damagedFile
34
- } from "./chunk-E4SDKMBJ.js";
26
+ } from "./chunk-NI5PD5KM.js";
35
27
  import {
36
28
  fold
37
- } from "./chunk-ZOJU7ZFI.js";
29
+ } from "./chunk-FA6JNXCC.js";
30
+ import {
31
+ ADDED_PROVIDER,
32
+ filesAccountSql,
33
+ folderProviderOf,
34
+ folderProviderSql,
35
+ isDocumentAccountProvider
36
+ } from "./chunk-D6Z43SOG.js";
37
+ import {
38
+ damagedFile
39
+ } from "./chunk-4AOINPN2.js";
38
40
  import {
39
41
  CliError
40
- } from "./chunk-4OSSOWDM.js";
42
+ } from "./chunk-ELJUBPY4.js";
41
43
  import {
42
44
  __name
43
45
  } from "./chunk-ZVVMGPBJ.js";
44
46
 
45
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/damage.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/damage.js
46
48
  var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
47
49
  var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
48
50
  var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
49
51
  var WIRECAT_UNITS = ["memo-*", "mail-*", "tg-*", "max-*", "wirecat-*"];
50
52
  var seen = /* @__PURE__ */ __name((mark) => `\`${mark.command}\` found the store damaged at ${mark.at} (${mark.error})`, "seen");
51
- var explainDamage = /* @__PURE__ */ __name((health, command, mark = null) => {
52
- if (health.ok && !mark)
53
+ var journalSeen = /* @__PURE__ */ __name((store, { seen: seen2, command, at }) => {
54
+ const wal = `${store.replace(/^.*\//, "")}-wal`;
55
+ return seen2 === "shm-without-wal" ? `the store's journal file (${wal}) was missing when \`${command}\` opened the store at ${at}: another program deleted it, or a tool crashed while closing` : `the store's journal file (${wal}) was deleted or replaced by another program while \`${command}\` had the store open (${at})`;
56
+ }, "journalSeen");
57
+ var lossUnknown = /* @__PURE__ */ __name((lastOkAt, gone = false) => {
58
+ const since = lastOkAt ? `since the last deep check that passed (${lastOkAt})` : "since the store was made (no deep check that passed is on record)";
59
+ return `${gone ? "more rows may be gone" : "how many rows were lost is unknown"}: damage can take rows written ${since} without leaving a trace; a sync fetches again what the servers still hold`;
60
+ }, "lossUnknown");
61
+ var stopWriters = /* @__PURE__ */ __name((timers) => ({
62
+ command: timers?.length ? `systemctl --user stop ${timers.join(" ")}` : `systemctl --user stop ${WIRECAT_UNITS.map((unit) => `'${unit}'`).join(" ")}`,
63
+ why: "a tool that writes while the store is recovered damages the new file too",
64
+ destructive: false
65
+ }), "stopWriters");
66
+ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null, journal = null, lastOkAt = null, holders = null, timers = null, sqlite3Usable = true }) => {
67
+ if (health.ok && !mark && !journal)
53
68
  return null;
54
69
  const indexNames = (health.searchIndexes ?? []).map((index) => index.name);
55
70
  const badIndexes = (health.searchIndexes ?? []).filter((index) => !index.ok).map((index) => index.name);
@@ -58,42 +73,85 @@ var explainDamage = /* @__PURE__ */ __name((health, command, mark = null) => {
58
73
  const derived = [.../* @__PURE__ */ new Set([...tables.filter((table) => isDerivedTable(table, indexNames)), ...badIndexes])];
59
74
  const unopened = health.error !== void 0;
60
75
  const json = (health.invalidJson ?? []).map(({ table, column }) => `${table}.${column}`);
61
- const checked = health.ok ? `${seen(mark)}; the quick check reads too little to see it, and a deep check that passes clears it` : unopened ? `the store file cannot be opened: ${health.error}` : health.checked === "quick" ? "the store file's header or schema is damaged" : `the store file is damaged: ${health.problems ?? 0} problems` + (sources.length ? ` in the data of ${named(sources)}` : "") + (derived.length ? `${sources.length ? ", and" : " in"} the search data of ${named(derived)}` : "") + (json.length ? `; values that are not valid JSON in ${named(json)}` : "");
62
- const what = mark && !health.ok ? `${checked}; ${seen(mark)}` : checked;
76
+ const damaged = !health.ok || mark !== null;
77
+ const folder = health.path.replace(/\/[^/]*$/, "");
78
+ const checked = !damaged ? `every page of the store reads, but ${journalSeen(health.path, journal)}; what was written into it may be lost` : health.ok ? `${seen(mark)}; the quick check reads too little to see it, and a deep check that passes clears it` : unopened ? `the store file cannot be opened: ${health.error}` : health.checked === "quick" ? "the store file's header or schema is damaged" : `the store file is damaged: ${health.problems ?? 0} problems` + (sources.length ? ` in the data of ${named(sources)}` : "") + (derived.length ? `${sources.length ? ", and" : " in"} the search data of ${named(derived)}` : "") + (json.length ? `; values that are not valid JSON in ${named(json)}` : "");
79
+ const whatHappened = mark && !health.ok ? `${checked}; ${seen(mark)}` : checked;
63
80
  const impact = [
64
81
  ...sources.length ? [`some rows of ${named(sources)} cannot be read; a recovery keeps every row it can read and names the rest`] : [],
65
82
  ...derived.length ? [`searches may miss results or fail; ${named(derived)} hold nothing that is not elsewhere, and are rebuilt`] : [],
66
83
  ...json.length ? [`a read of a row with a broken JSON value fails ("malformed JSON"); a recovery clears those values`] : [],
67
- mark ? "reads that do not touch a damaged page work; every command that writes the store refuses until it is recovered" : "reads that do not touch a damaged page work; a write that touches one fails until the store is recovered"
84
+ ...!damaged ? ["everything works; rows written while the journal was gone may be missing, and a sync fetches them again"] : mark ? [
85
+ "reads that do not touch a damaged page work; every command that writes the store refuses until it is recovered"
86
+ ] : ["reads that do not touch a damaged page work; a write that touches one fails until the store is recovered"]
87
+ ];
88
+ const likelyCauses = [
89
+ ...journal ? [{ cause: journalSeen(health.path, journal), check: `ls -li --time-style=full-iso ${folder}/` }] : [],
90
+ ...holders?.length ? [
91
+ {
92
+ cause: `two programs wrote the file without seeing each other: ${holders.map(({ name, pid }) => `${name} (process ${pid})`).join(", ")} still ${holders.length === 1 ? "has" : "have"} it open`,
93
+ check: `fuser -v ${health.path}`
94
+ }
95
+ ] : [],
96
+ ...damaged ? [
97
+ {
98
+ cause: "the computer lost power or crashed while a tool was writing",
99
+ check: `journalctl --user ${WIRECAT_UNITS.map((unit) => `-u '${unit}'`).join(" ")} --since -14d | grep -i -e malformed -e corrupt -e 'disk full'`
100
+ },
101
+ { cause: "the disk filled up while a tool was writing", check: `df -h ${folder}` },
102
+ {
103
+ cause: "the file was copied, restored or synced while a tool had it open, or it sits in a synced or network folder",
104
+ check: `findmnt -T ${folder}`
105
+ },
106
+ {
107
+ cause: "a fault of the disk itself",
108
+ check: "journalctl -k --since -14d | grep -i -e 'I/O error' -e nvme -e ata"
109
+ }
110
+ ] : []
111
+ ];
112
+ const steps = [
113
+ stopWriters(timers),
114
+ ...(holders ?? []).map(({ pid, name }) => ({
115
+ command: `kill ${pid}`,
116
+ why: `${name} (process ${pid}) has the store open`,
117
+ destructive: true
118
+ })),
119
+ ...damaged && !sqlite3Usable ? [
120
+ {
121
+ command: "sudo apt install sqlite3",
122
+ why: "the recovery copies rows with the sqlite3 program, 3.43 or newer (on macOS: brew install sqlite)",
123
+ destructive: false
124
+ }
125
+ ] : [],
126
+ ...damaged ? [
127
+ {
128
+ command: `${command} store recover run`,
129
+ why: "copies every readable row into a new file and puts it in place of the store; the damaged file is kept beside it, and it prints the syncs that fetch again what was lost",
130
+ destructive: true
131
+ }
132
+ ] : [],
133
+ {
134
+ command: `${command} store recover`,
135
+ why: "checks every page again; a check that passes lifts the damage mark",
136
+ destructive: false
137
+ }
68
138
  ];
69
139
  return {
70
- what,
71
- causes: [
72
- "the computer lost power or crashed, or the disk filled up, while a tool was writing",
73
- "the file was copied, restored or synced while a tool had it open, or it sits in a synced or network folder",
74
- "a fault of the disk itself"
75
- ],
76
- investigate: [
77
- `journalctl --user ${WIRECAT_UNITS.map((unit) => `-u '${unit}'`).join(" ")} --since -14d | grep -i -e malformed -e corrupt -e 'disk full'`,
78
- "journalctl -k --since -14d | grep -i -e 'I/O error' -e nvme -e ata",
79
- `df -h ${health.path.replace(/\/[^/]*$/, "")}`,
80
- ...health.checked === "quick" || health.ok ? [`${command} store recover`] : []
81
- ],
140
+ whatHappened,
141
+ likelyCauses,
82
142
  impact,
83
- externalUnaffected: "only this computer's copy is damaged: Telegram, MAX, the mail servers and Google Drive keep their own data, so whatever is lost here can be fetched again by a sync",
84
- steps: [
85
- "stop every timer and server of the WireCat tools; `store recover run` lists the ones still running",
86
- `${command} store recover run`,
87
- "run the fetch commands it prints, then start the timers again"
88
- ]
143
+ externalDataSafe: "only this computer's copy is damaged: Telegram, MAX, WhatsApp, the mail servers and Google Drive keep their own data, so whatever is lost here can be fetched again by a sync",
144
+ lastOkAt,
145
+ loss: lossUnknown(lastOkAt),
146
+ steps
89
147
  };
90
- }, "explainDamage");
148
+ }, "storeDamageReport");
91
149
 
92
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
150
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
93
151
  import { realpathSync, statSync } from "node:fs";
94
152
  import { resolve } from "node:path";
95
153
 
96
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
154
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
97
155
  var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
98
156
  const creatable = /* @__PURE__ */ new Set();
99
157
  let people = 0, identities = 0;
@@ -156,11 +214,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
156
214
  }
157
215
  }, "copyPeople");
158
216
 
159
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
217
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
160
218
  import { createHash } from "node:crypto";
161
219
  var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
162
220
 
163
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
221
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
164
222
  var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
165
223
  const colon = collection.indexOf(":");
166
224
  const provider = collection.slice(0, colon);
@@ -204,7 +262,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
204
262
  };
205
263
  }, "currentCollection");
206
264
 
207
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
265
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
208
266
  var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
209
267
  const mappings = /* @__PURE__ */ new Map();
210
268
  const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
@@ -371,7 +429,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
371
429
  };
372
430
  }, "planTransfer");
373
431
 
374
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
432
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
375
433
  var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
376
434
  var MAX_ENTITIES = 1e3;
377
435
  var MAX_AUXILIARY = 1e4;
@@ -533,7 +591,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
533
591
  };
534
592
  }), "transferSnapshot");
535
593
 
536
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
594
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
537
595
  var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
538
596
  if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
539
597
  return provider ?? null;
@@ -705,7 +763,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
705
763
  database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
706
764
  }, "remapEntity");
707
765
 
708
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
766
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
709
767
  var locations = /* @__PURE__ */ __name((options) => {
710
768
  for (const value of [options.source, options.destination, options.collection])
711
769
  if (typeof value !== "string" || !value.trim())
@@ -807,7 +865,7 @@ var applyWith = /* @__PURE__ */ __name(async (location, options) => {
807
865
  }
808
866
  }, "applyWith");
809
867
 
810
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/health.js
868
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/health.js
811
869
  import { existsSync, statSync as statSync2 } from "node:fs";
812
870
  var JSON_COLUMNS = {
813
871
  accounts: ["settings"],
@@ -949,7 +1007,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
949
1007
  }
950
1008
  }, "storeHealth");
951
1009
 
952
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
1010
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
953
1011
  var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
954
1012
  if (!options || typeof options !== "object" || Array.isArray(options))
955
1013
  throw new CliError("validation_error", "project preview options are required");
@@ -975,7 +1033,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
975
1033
  });
976
1034
  }, "previewProjectAnnotationSnapshot");
977
1035
 
978
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
1036
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
979
1037
  var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
980
1038
  if (!options || typeof options !== "object" || Array.isArray(options))
981
1039
  throw new CliError("validation_error", "snapshot options are required");
@@ -997,7 +1055,8 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
997
1055
  }, "snapshotProjectAnnotations");
998
1056
 
999
1057
  export {
1000
- explainDamage,
1058
+ lossUnknown,
1059
+ storeDamageReport,
1001
1060
  invalidJson,
1002
1061
  QUICK_HEALTH_CHECKS,
1003
1062
  fts5Tables,