@wirecat/drive-cli 0.70.0 → 0.71.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 (164) hide show
  1. package/README.md +3 -2
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bundle/{all-profiles-FW3GK3QO.js → all-profiles-3QJG2NAN.js} +13 -13
  4. package/dist/bundle/{anthropic-QVKJT3II.js → anthropic-PSWTEU6G.js} +8 -8
  5. package/dist/bundle/{app-server-QU73RD5R.js → app-server-PVTA6ABR.js} +62 -62
  6. package/dist/bundle/{bun-5XCD5CBB.js → bun-LU5LP3JI.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-TIGSVNSV.js → bun-sqlite-PYMKLBRU.js} +9 -9
  8. package/dist/bundle/{chunk-BFKFKDPC.js → chunk-22QQUKWA.js} +1 -1
  9. package/dist/bundle/{chunk-RLNZ7NX5.js → chunk-26DHFMGZ.js} +2 -2
  10. package/dist/bundle/{chunk-RHSBXOQM.js → chunk-2BVVU7GG.js} +1 -1
  11. package/dist/bundle/{chunk-ILAQIBEO.js → chunk-2LHAVY4U.js} +1 -1
  12. package/dist/bundle/{chunk-GAHIHE4K.js → chunk-2PUNKUYJ.js} +3177 -3043
  13. package/dist/bundle/{chunk-DHX27E5M.js → chunk-2UUWXPOB.js} +3 -3
  14. package/dist/bundle/{chunk-RCTOWLCD.js → chunk-35SCQ4VI.js} +26 -26
  15. package/dist/bundle/{chunk-ZCXWV4XO.js → chunk-3EBBLKIT.js} +4 -4
  16. package/dist/bundle/{chunk-SONPLYV7.js → chunk-3N2OFXB5.js} +5 -5
  17. package/dist/bundle/{chunk-KSJAFMU5.js → chunk-3UGYFXH6.js} +42 -19
  18. package/dist/bundle/{chunk-HK225DAG.js → chunk-4HWJOU7N.js} +1 -1
  19. package/dist/bundle/{chunk-6DPOWBKA.js → chunk-4PA4DHYV.js} +6 -6
  20. package/dist/bundle/{chunk-54NDYVZA.js → chunk-4QNW4NK6.js} +1 -1
  21. package/dist/bundle/{chunk-2SBC4DVV.js → chunk-6SJOTNHF.js} +4 -4
  22. package/dist/bundle/{chunk-VVN6GHAZ.js → chunk-6TNNT2MQ.js} +223 -126
  23. package/dist/bundle/{chunk-5JTB4URG.js → chunk-6W763DZN.js} +12 -12
  24. package/dist/bundle/{chunk-FVTKFIQH.js → chunk-6XFIITOG.js} +383 -349
  25. package/dist/bundle/{chunk-54BQWRJL.js → chunk-72C4YOCH.js} +7 -7
  26. package/dist/bundle/{chunk-3UWRAIWA.js → chunk-7PDHGZN4.js} +4 -4
  27. package/dist/bundle/{chunk-REM5WHHQ.js → chunk-ACUAV6VX.js} +56 -56
  28. package/dist/bundle/{chunk-IGNIUDI3.js → chunk-ASMMG72J.js} +40 -33
  29. package/dist/bundle/{chunk-DVI72ZQG.js → chunk-B5KSXHJ7.js} +1 -1
  30. package/dist/bundle/{chunk-6BMTW5A6.js → chunk-BKSQBBYG.js} +7 -7
  31. package/dist/bundle/{chunk-HRATXUFH.js → chunk-CJLVYIOP.js} +21 -21
  32. package/dist/bundle/{chunk-RQNRYF6D.js → chunk-COJSWDNU.js} +3 -3
  33. package/dist/bundle/{chunk-FONIFRYI.js → chunk-COOOO5B3.js} +4 -4
  34. package/dist/bundle/{chunk-EG62WVR2.js → chunk-D5TGYUVU.js} +6 -6
  35. package/dist/bundle/{chunk-LMJBQFW6.js → chunk-EOEU3AZN.js} +6 -6
  36. package/dist/bundle/{chunk-GV5DGHSA.js → chunk-FCS26CYQ.js} +4 -4
  37. package/dist/bundle/{chunk-BD2K2ONK.js → chunk-FJH7DJWK.js} +4 -4
  38. package/dist/bundle/{chunk-FADAOLGB.js → chunk-FP54WSIR.js} +4 -4
  39. package/dist/bundle/{chunk-PAPY6Q6H.js → chunk-FT3LN3HP.js} +1 -1
  40. package/dist/bundle/{chunk-WJK6KTCS.js → chunk-GBKNJWOZ.js} +8 -8
  41. package/dist/bundle/{chunk-GJZSVSV3.js → chunk-GOWXXYEF.js} +2 -2
  42. package/dist/bundle/{chunk-LINBDWJK.js → chunk-GPQ44Y2R.js} +2 -2
  43. package/dist/bundle/{chunk-3AHBZP33.js → chunk-GZ2D4KXG.js} +8 -8
  44. package/dist/bundle/{chunk-ZHZYGY5R.js → chunk-HKY7X6NY.js} +4 -4
  45. package/dist/bundle/{chunk-GPDPEHYX.js → chunk-HL52XXZX.js} +1 -1
  46. package/dist/bundle/{chunk-BBFXQPKD.js → chunk-HMS6EEQL.js} +3 -3
  47. package/dist/bundle/{chunk-FYPW7NMH.js → chunk-I4RWW3UD.js} +49 -4
  48. package/dist/bundle/{chunk-HWUPU6WX.js → chunk-ICDCAQ6K.js} +8 -8
  49. package/dist/bundle/{chunk-NP7LJATI.js → chunk-J5Q5FS2N.js} +17 -22
  50. package/dist/bundle/{chunk-I7YSHUPW.js → chunk-JDV7HNNQ.js} +13 -13
  51. package/dist/bundle/{chunk-BBRMDMIR.js → chunk-JZHBZOJR.js} +3 -3
  52. package/dist/bundle/{chunk-QBAOIMVB.js → chunk-KGERXYTV.js} +1 -1
  53. package/dist/bundle/{chunk-7IBENBCK.js → chunk-KGYVHPGE.js} +2 -2
  54. package/dist/bundle/{chunk-ABZ2NYDT.js → chunk-KYKW2W6X.js} +1 -1
  55. package/dist/bundle/{chunk-AV5UKJZM.js → chunk-L46C6HQ7.js} +12 -12
  56. package/dist/bundle/{chunk-3TCMANIM.js → chunk-LXKYKRHD.js} +11 -11
  57. package/dist/bundle/{chunk-DVVUJ254.js → chunk-MIA7P6FZ.js} +2 -2
  58. package/dist/bundle/{chunk-PR7XD2DI.js → chunk-MNLL5YLM.js} +2 -2
  59. package/dist/bundle/{chunk-Q5C6YKAY.js → chunk-OF422U5D.js} +10 -10
  60. package/dist/bundle/{chunk-HHAZ6DCY.js → chunk-OJSBWP3F.js} +6 -6
  61. package/dist/bundle/{chunk-EDO5LZVF.js → chunk-P7CUM5IB.js} +1 -1
  62. package/dist/bundle/{chunk-P7PLKNPX.js → chunk-PRW6SYA3.js} +157 -70
  63. package/dist/bundle/{chunk-7QSRODXM.js → chunk-Q7DOMFJ4.js} +6 -6
  64. package/dist/bundle/{chunk-HYXXMSVD.js → chunk-QETR5HIZ.js} +503 -416
  65. package/dist/bundle/{chunk-YZPE72GE.js → chunk-QFR2PNJN.js} +12 -12
  66. package/dist/bundle/{chunk-MXNQZAJQ.js → chunk-QNRRK3CN.js} +2 -2
  67. package/dist/bundle/{chunk-PN4JYURZ.js → chunk-QXC6IEH6.js} +45 -45
  68. package/dist/bundle/{chunk-WWE5GO6G.js → chunk-RESDD3Q4.js} +3 -3
  69. package/dist/bundle/{chunk-YCL3SK4T.js → chunk-RJOQH5YY.js} +39 -38
  70. package/dist/bundle/{chunk-7C5KENNU.js → chunk-RWDKMU74.js} +3 -3
  71. package/dist/bundle/{chunk-GK3BJMGK.js → chunk-SAKO3P4H.js} +1 -1
  72. package/dist/bundle/{chunk-FN3RXBO7.js → chunk-SDKQNOL5.js} +6 -6
  73. package/dist/bundle/{chunk-TGS5VPJD.js → chunk-SERXSCN3.js} +167 -206
  74. package/dist/bundle/{chunk-3UZ4OH22.js → chunk-TAFHYHKA.js} +18 -116
  75. package/dist/bundle/{chunk-YRUR3E3E.js → chunk-TAUBRNC5.js} +35 -35
  76. package/dist/bundle/{chunk-P77FL6RY.js → chunk-UDMNY63V.js} +20 -17
  77. package/dist/bundle/{chunk-IFTX7AQU.js → chunk-UTO2GO4P.js} +5 -5
  78. package/dist/bundle/{chunk-3CHW7JGR.js → chunk-WVDCCYS3.js} +17 -17
  79. package/dist/bundle/{chunk-OY7TNUEC.js → chunk-X4TIMMKJ.js} +1 -1
  80. package/dist/bundle/{chunk-TNKQDS5A.js → chunk-XF4EXO2C.js} +6 -6
  81. package/dist/bundle/{chunk-BXPC5TFG.js → chunk-XMMFBPGC.js} +2 -2
  82. package/dist/bundle/{chunk-FCSHWUMW.js → chunk-Y2NWGNUB.js} +5 -5
  83. package/dist/bundle/{chunk-ML3R2UHV.js → chunk-YJIGGUPI.js} +4 -4
  84. package/dist/bundle/{chunk-DR57KDAY.js → chunk-YMJ6IDGT.js} +6 -6
  85. package/dist/bundle/{chunk-F5KJWRF5.js → chunk-YPFWNVHV.js} +3 -3
  86. package/dist/bundle/{chunk-XZBA6FVH.js → chunk-YPNWIB6H.js} +3 -3
  87. package/dist/bundle/{chunk-GA3URWIF.js → chunk-YVI5SQPY.js} +1 -1
  88. package/dist/bundle/{chunk-T5D4OGDC.js → chunk-Z3KUSRCF.js} +2 -2
  89. package/dist/bundle/{chunk-4WK26MPY.js → chunk-Z56QFOBR.js} +1 -1
  90. package/dist/bundle/{chunk-7DJNURKV.js → chunk-ZCR3IRZ2.js} +8 -8
  91. package/dist/bundle/{chunk-XOL346TJ.js → chunk-ZM63SUHG.js} +2 -2
  92. package/dist/bundle/{chunk-66PL7P4C.js → chunk-ZZ32DXTH.js} +1 -1
  93. package/dist/bundle/{cli-K4D4DIGQ.js → cli-556DERZL.js} +68 -68
  94. package/dist/bundle/command-contract-VRTOAV6W.js +43 -0
  95. package/dist/bundle/{command-server-entry-WREK3QBB.js → command-server-entry-AYLGNZWD.js} +33 -33
  96. package/dist/bundle/{decode-SEETPKBH.js → decode-QU24MWMN.js} +8 -8
  97. package/dist/bundle/{dispatch-SQCEURVK.js → dispatch-4KODNOXV.js} +9 -9
  98. package/dist/bundle/drive.js +11 -11
  99. package/dist/bundle/{echarts-WZ5RKFCX.js → echarts-BXX4OQWC.js} +2 -2
  100. package/dist/bundle/{embed-B2UCRZZR.js → embed-KG27KG3D.js} +9 -9
  101. package/dist/bundle/{embedder-4R6Z7G7L.js → embedder-IPAVUQUV.js} +12 -12
  102. package/dist/bundle/entry-MVXQETWS.js +25 -0
  103. package/dist/bundle/{failure-CYNXH3RQ.js → failure-ESL7ETL4.js} +4 -4
  104. package/dist/bundle/first-run-4UVLW2WR.js +31 -0
  105. package/dist/bundle/first-screen-JAKAIINI.js +41 -0
  106. package/dist/bundle/google-22NXXJX5.js +45 -0
  107. package/dist/bundle/{google-api-SAND2F7L.js → google-api-VCDBSNOW.js} +70 -70
  108. package/dist/bundle/grants-MQMTVCRQ.js +118 -0
  109. package/dist/bundle/{identity-JVVGS4U6.js → identity-LOWMVGZY.js} +6 -6
  110. package/dist/bundle/{instructions-JSMTSB22.js → instructions-2VECIDXF.js} +1 -1
  111. package/dist/bundle/{login-6WG3YBDU.js → login-7GBONT7V.js} +76 -76
  112. package/dist/bundle/{mcp-VFIOZDVY.js → mcp-O6ACR2DX.js} +2 -2
  113. package/dist/bundle/meeting-combined-LVP4AZKA.js +27 -0
  114. package/dist/bundle/meeting-model-RAY5XDXZ.js +29 -0
  115. package/dist/bundle/{meeting-semantic-5U7JQCFF.js → meeting-semantic-G7PFOKU7.js} +10 -10
  116. package/dist/bundle/{node-VJMVHOWD.js → node-MPEQSFI3.js} +2 -2
  117. package/dist/bundle/{node-sqlite-DCNT3HVE.js → node-sqlite-OLQMAYB4.js} +10 -10
  118. package/dist/bundle/oauth-SGH2I2BY.js +22 -0
  119. package/dist/bundle/{open-NFOEHVW7.js → open-OXTE672W.js} +8 -8
  120. package/dist/bundle/{openai-D47WY7EC.js → openai-EB3TPIZY.js} +19 -19
  121. package/dist/bundle/{process-Q2FRU5VA.js → process-F6TKXWWA.js} +1 -1
  122. package/dist/bundle/{program-T2AJJQEM.js → program-4IFDZ7FM.js} +142 -125
  123. package/dist/bundle/{prompt-YJSDABXN.js → prompt-F5RRHPN2.js} +8 -8
  124. package/dist/bundle/{reasons-WEHPCSJX.js → reasons-UORHJDHK.js} +5 -5
  125. package/dist/bundle/{recognize-6OBEIEB3.js → recognize-DAVNZND3.js} +7 -7
  126. package/dist/bundle/{remote-3SL2QJ7T.js → remote-D5EYYIAU.js} +13 -13
  127. package/dist/bundle/{rerank-L6F5SLIB.js → rerank-CND2GVLZ.js} +10 -10
  128. package/dist/bundle/{serve-GYSWIWH4.js → serve-ZHSPUIGX.js} +12 -12
  129. package/dist/bundle/server-DUVJWP3Q.js +80 -0
  130. package/dist/bundle/{server-GWWP3RIT.js → server-YMAK4LHC.js} +54 -54
  131. package/dist/bundle/{services-BDQBRXT5.js → services-ZILSFJ6E.js} +47 -47
  132. package/dist/bundle/{sqlite-runtime-ZSZGAUYB.js → sqlite-runtime-S5VPMZQH.js} +9 -9
  133. package/dist/bundle/{start-BJ275RUK.js → start-CR6X25RT.js} +7 -7
  134. package/dist/bundle/{state-HLNGFI2T.js → state-YFPHVIIJ.js} +9 -9
  135. package/dist/bundle/{store-OSRTGYGI.js → store-CL4ZJZRI.js} +23 -23
  136. package/dist/bundle/{store-I43KZNJW.js → store-UODRT6X4.js} +25 -25
  137. package/dist/bundle/store-maintenance-command-DY5XIBWR.js +72 -0
  138. package/dist/bundle/tokens-AF7QOFOF.js +118 -0
  139. package/dist/config.d.ts.map +1 -1
  140. package/dist/config.js +2 -1
  141. package/dist/config.js.map +1 -1
  142. package/dist/sync.d.ts.map +1 -1
  143. package/dist/sync.js +1 -2
  144. package/dist/sync.js.map +1 -1
  145. package/dist/transcripts.d.ts +0 -6
  146. package/dist/transcripts.d.ts.map +1 -1
  147. package/dist/transcripts.js +0 -13
  148. package/dist/transcripts.js.map +1 -1
  149. package/dist/version.d.ts +1 -1
  150. package/dist/version.js +1 -1
  151. package/package.json +3 -3
  152. package/dist/bundle/command-contract-V3F452QI.js +0 -43
  153. package/dist/bundle/entry-ORZYRJ5N.js +0 -25
  154. package/dist/bundle/first-run-KAKA6KBY.js +0 -31
  155. package/dist/bundle/first-screen-R645UHRH.js +0 -41
  156. package/dist/bundle/google-BSO3YB7N.js +0 -45
  157. package/dist/bundle/grants-PLNFYARD.js +0 -118
  158. package/dist/bundle/meeting-combined-SUKMFK3F.js +0 -27
  159. package/dist/bundle/meeting-model-S4YGKIFI.js +0 -29
  160. package/dist/bundle/oauth-KCMNQ3ZP.js +0 -22
  161. package/dist/bundle/server-BI46BSRE.js +0 -80
  162. package/dist/bundle/store-maintenance-command-FO7LEVSL.js +0 -72
  163. package/dist/bundle/tokens-DB7O7QNB.js +0 -118
  164. /package/dist/bundle/{chunk-ZI3YTXSF.js → chunk-VKE77B3F.js} +0 -0
@@ -10,7 +10,7 @@ import {
10
10
  describeDriveProgram,
11
11
  examples,
12
12
  markProfileFree
13
- } from "./chunk-7C5KENNU.js";
13
+ } from "./chunk-RWDKMU74.js";
14
14
  import {
15
15
  DEFAULTS_ONLY,
16
16
  DEFAULT_LEVELS,
@@ -56,12 +56,11 @@ import {
56
56
  unknownProfile,
57
57
  withDefaults,
58
58
  writeConfig
59
- } from "./chunk-NP7LJATI.js";
59
+ } from "./chunk-J5Q5FS2N.js";
60
60
  import {
61
61
  MAX_ENTRIES,
62
- supported,
63
- tooManyEntries
64
- } from "./chunk-BXPC5TFG.js";
62
+ supported
63
+ } from "./chunk-XMMFBPGC.js";
65
64
  import {
66
65
  DOC,
67
66
  DOCUMENT_LIST_FIELDS,
@@ -84,7 +83,7 @@ import {
84
83
  syncDocuments,
85
84
  syncMirrors,
86
85
  watchMirrors
87
- } from "./chunk-VVN6GHAZ.js";
86
+ } from "./chunk-6TNNT2MQ.js";
88
87
  import {
89
88
  apiMethod,
90
89
  apiMethods,
@@ -93,7 +92,7 @@ import {
93
92
  schemas,
94
93
  validateApiParams,
95
94
  validateRequest
96
- } from "./chunk-2SBC4DVV.js";
95
+ } from "./chunk-6SJOTNHF.js";
97
96
  import {
98
97
  operations
99
98
  } from "./chunk-NYECVHFH.js";
@@ -128,24 +127,24 @@ import {
128
127
  signInSteps,
129
128
  skillCommand,
130
129
  upgradeCommand
131
- } from "./chunk-FVTKFIQH.js";
130
+ } from "./chunk-6XFIITOG.js";
132
131
  import {
133
132
  googleError,
134
133
  offlineRefused
135
- } from "./chunk-RHSBXOQM.js";
136
- import "./chunk-QBAOIMVB.js";
137
- import "./chunk-YZPE72GE.js";
138
- import "./chunk-GPDPEHYX.js";
139
- import "./chunk-RCTOWLCD.js";
140
- import "./chunk-KSJAFMU5.js";
141
- import "./chunk-ZHZYGY5R.js";
134
+ } from "./chunk-2BVVU7GG.js";
135
+ import "./chunk-KGERXYTV.js";
136
+ import "./chunk-QFR2PNJN.js";
137
+ import "./chunk-HL52XXZX.js";
138
+ import "./chunk-35SCQ4VI.js";
139
+ import "./chunk-3UGYFXH6.js";
140
+ import "./chunk-HKY7X6NY.js";
142
141
  import {
143
142
  storeInfo
144
- } from "./chunk-REM5WHHQ.js";
145
- import "./chunk-HWUPU6WX.js";
146
- import "./chunk-3UZ4OH22.js";
147
- import "./chunk-AV5UKJZM.js";
148
- import "./chunk-WWE5GO6G.js";
143
+ } from "./chunk-ACUAV6VX.js";
144
+ import "./chunk-ICDCAQ6K.js";
145
+ import "./chunk-TAFHYHKA.js";
146
+ import "./chunk-L46C6HQ7.js";
147
+ import "./chunk-RESDD3Q4.js";
149
148
  import {
150
149
  LIST_QUERY_GUIDE,
151
150
  RecipientList,
@@ -160,39 +159,39 @@ import {
160
159
  typedQuery,
161
160
  unfilteredQuery,
162
161
  withQuery
163
- } from "./chunk-GAHIHE4K.js";
162
+ } from "./chunk-2PUNKUYJ.js";
164
163
  import {
165
164
  columnName,
166
165
  modelGateway,
167
166
  readSpreadsheet
168
- } from "./chunk-PN4JYURZ.js";
169
- import "./chunk-I7YSHUPW.js";
170
- import "./chunk-7QSRODXM.js";
171
- import "./chunk-3TCMANIM.js";
172
- import "./chunk-RQNRYF6D.js";
173
- import "./chunk-EG62WVR2.js";
167
+ } from "./chunk-QXC6IEH6.js";
168
+ import "./chunk-JDV7HNNQ.js";
169
+ import "./chunk-Q7DOMFJ4.js";
170
+ import "./chunk-LXKYKRHD.js";
171
+ import "./chunk-COJSWDNU.js";
172
+ import "./chunk-D5TGYUVU.js";
174
173
  import "./chunk-HTQTIKWP.js";
175
- import "./chunk-5JTB4URG.js";
174
+ import "./chunk-6W763DZN.js";
176
175
  import {
177
176
  latestVersion,
178
177
  runUpdate,
179
178
  updateNotice
180
- } from "./chunk-FADAOLGB.js";
181
- import "./chunk-GA3URWIF.js";
182
- import "./chunk-ZCXWV4XO.js";
183
- import "./chunk-FCSHWUMW.js";
184
- import "./chunk-FN3RXBO7.js";
179
+ } from "./chunk-FP54WSIR.js";
180
+ import "./chunk-YVI5SQPY.js";
181
+ import "./chunk-3EBBLKIT.js";
182
+ import "./chunk-Y2NWGNUB.js";
183
+ import "./chunk-SDKQNOL5.js";
185
184
  import {
186
185
  applyDocumentTransfer,
187
186
  previewDocumentTransfer
188
- } from "./chunk-3CHW7JGR.js";
189
- import "./chunk-IFTX7AQU.js";
187
+ } from "./chunk-WVDCCYS3.js";
188
+ import "./chunk-UTO2GO4P.js";
190
189
  import "./chunk-5DPV7X27.js";
191
- import "./chunk-6BMTW5A6.js";
192
- import "./chunk-DVI72ZQG.js";
193
- import "./chunk-EDO5LZVF.js";
194
- import "./chunk-LINBDWJK.js";
195
- import "./chunk-3UWRAIWA.js";
190
+ import "./chunk-BKSQBBYG.js";
191
+ import "./chunk-B5KSXHJ7.js";
192
+ import "./chunk-P7CUM5IB.js";
193
+ import "./chunk-GPQ44Y2R.js";
194
+ import "./chunk-7PDHGZN4.js";
196
195
  import {
197
196
  CEILING_KEY,
198
197
  FETCH,
@@ -227,56 +226,57 @@ import {
227
226
  renderAnswer,
228
227
  resolveAISettings,
229
228
  rootOf,
229
+ runBudgetOf,
230
230
  settingRows,
231
231
  sharedCommand,
232
232
  sharedContracts,
233
233
  snakeKeys
234
- } from "./chunk-TGS5VPJD.js";
234
+ } from "./chunk-SERXSCN3.js";
235
235
  import {
236
236
  modelTarget
237
- } from "./chunk-FYPW7NMH.js";
238
- import "./chunk-54BQWRJL.js";
237
+ } from "./chunk-I4RWW3UD.js";
238
+ import "./chunk-72C4YOCH.js";
239
239
  import {
240
240
  readOnlyLockOf,
241
241
  readOnlyRefusal
242
- } from "./chunk-PR7XD2DI.js";
243
- import "./chunk-4WK26MPY.js";
244
- import "./chunk-TNKQDS5A.js";
242
+ } from "./chunk-MNLL5YLM.js";
243
+ import "./chunk-Z56QFOBR.js";
244
+ import "./chunk-XF4EXO2C.js";
245
245
  import {
246
246
  setupPermissionCeiling
247
- } from "./chunk-GV5DGHSA.js";
247
+ } from "./chunk-FCS26CYQ.js";
248
248
  import {
249
249
  hostFetch
250
- } from "./chunk-DR57KDAY.js";
250
+ } from "./chunk-YMJ6IDGT.js";
251
251
  import {
252
252
  note
253
- } from "./chunk-BBFXQPKD.js";
254
- import "./chunk-FONIFRYI.js";
255
- import "./chunk-XZBA6FVH.js";
256
- import "./chunk-MXNQZAJQ.js";
253
+ } from "./chunk-HMS6EEQL.js";
254
+ import "./chunk-COOOO5B3.js";
255
+ import "./chunk-YPNWIB6H.js";
256
+ import "./chunk-QNRRK3CN.js";
257
257
  import {
258
258
  CATALOG_QUERY,
259
259
  IMPORTED_DOCUMENT_QUERY,
260
260
  openStore
261
- } from "./chunk-HYXXMSVD.js";
262
- import "./chunk-BBRMDMIR.js";
263
- import "./chunk-7DJNURKV.js";
264
- import "./chunk-3AHBZP33.js";
265
- import "./chunk-OY7TNUEC.js";
266
- import "./chunk-6DPOWBKA.js";
261
+ } from "./chunk-QETR5HIZ.js";
262
+ import "./chunk-JZHBZOJR.js";
263
+ import "./chunk-ZCR3IRZ2.js";
264
+ import "./chunk-GZ2D4KXG.js";
265
+ import "./chunk-X4TIMMKJ.js";
266
+ import "./chunk-4PA4DHYV.js";
267
267
  import {
268
268
  FACT_STATUSES,
269
269
  MEMORY_KINDS,
270
270
  MEMORY_SCOPES,
271
271
  MEMORY_STATUSES,
272
272
  inRun
273
- } from "./chunk-YCL3SK4T.js";
274
- import "./chunk-GK3BJMGK.js";
275
- import "./chunk-RLNZ7NX5.js";
276
- import "./chunk-DHX27E5M.js";
273
+ } from "./chunk-RJOQH5YY.js";
274
+ import "./chunk-SAKO3P4H.js";
275
+ import "./chunk-26DHFMGZ.js";
276
+ import "./chunk-2UUWXPOB.js";
277
277
  import {
278
278
  FACT_TYPES
279
- } from "./chunk-P7PLKNPX.js";
279
+ } from "./chunk-PRW6SYA3.js";
280
280
  import {
281
281
  defineQuery,
282
282
  parseLucene,
@@ -285,35 +285,35 @@ import {
285
285
  timezoneOf,
286
286
  validateQuery,
287
287
  zonedMoment
288
- } from "./chunk-Q5C6YKAY.js";
289
- import "./chunk-WJK6KTCS.js";
290
- import "./chunk-PAPY6Q6H.js";
288
+ } from "./chunk-OF422U5D.js";
289
+ import "./chunk-GBKNJWOZ.js";
290
+ import "./chunk-FT3LN3HP.js";
291
291
  import "./chunk-D72URWJE.js";
292
292
  import {
293
293
  installerOf
294
- } from "./chunk-66PL7P4C.js";
294
+ } from "./chunk-ZZ32DXTH.js";
295
295
  import {
296
296
  DRIVE_APP,
297
297
  PACKAGE,
298
298
  VERSION
299
- } from "./chunk-XOL346TJ.js";
299
+ } from "./chunk-ZM63SUHG.js";
300
300
  import {
301
301
  REASONS
302
- } from "./chunk-ILAQIBEO.js";
303
- import "./chunk-ZI3YTXSF.js";
304
- import "./chunk-HK225DAG.js";
302
+ } from "./chunk-2LHAVY4U.js";
303
+ import "./chunk-VKE77B3F.js";
304
+ import "./chunk-4HWJOU7N.js";
305
305
  import {
306
306
  storePath
307
- } from "./chunk-T5D4OGDC.js";
307
+ } from "./chunk-Z3KUSRCF.js";
308
308
  import {
309
309
  processStreams,
310
310
  saveConfigFile,
311
311
  writeSecurely
312
- } from "./chunk-HRATXUFH.js";
313
- import "./chunk-SONPLYV7.js";
312
+ } from "./chunk-CJLVYIOP.js";
313
+ import "./chunk-3N2OFXB5.js";
314
314
  import "./chunk-Y5E2WNWB.js";
315
- import "./chunk-ABZ2NYDT.js";
316
- import "./chunk-7IBENBCK.js";
315
+ import "./chunk-KYKW2W6X.js";
316
+ import "./chunk-KGYVHPGE.js";
317
317
  import {
318
318
  array,
319
319
  boolean,
@@ -336,11 +336,11 @@ import {
336
336
  string,
337
337
  unknown,
338
338
  writes
339
- } from "./chunk-HHAZ6DCY.js";
339
+ } from "./chunk-OJSBWP3F.js";
340
340
  import {
341
341
  CliError,
342
342
  isCliError
343
- } from "./chunk-54NDYVZA.js";
343
+ } from "./chunk-4QNW4NK6.js";
344
344
  import {
345
345
  __commonJS,
346
346
  __name,
@@ -2179,7 +2179,7 @@ var profileLocked2 = /* @__PURE__ */ __name((env, name) => import_proper_lockfil
2179
2179
  var removal = {
2180
2180
  signOut: /* @__PURE__ */ __name(async (profile, { env, keyring, mayRevoke }) => {
2181
2181
  const storage = readConfig(env).profiles[profile]?.storage ?? "keyring";
2182
- const { sessionKeeper } = await import("./tokens-DB7O7QNB.js");
2182
+ const { sessionKeeper } = await import("./tokens-AF7QOFOF.js");
2183
2183
  const { revoked } = await sessionKeeper({
2184
2184
  env,
2185
2185
  name: profile,
@@ -2200,7 +2200,7 @@ var installAccountCommands = /* @__PURE__ */ __name((program, _context) => {
2200
2200
  annotate(program.command("account"), { effects: LOCAL_READ }).description("remove this profile from this computer").addCommand(accountRemoveCommand(DRIVE_APP, removal, { resolveSettings: configuration.resolveSettings }));
2201
2201
  }, "installAccountCommands");
2202
2202
 
2203
- // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/documents/queries.js
2203
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/documents/queries.js
2204
2204
  var registry = /* @__PURE__ */ __name((entity, schema, native, examples3) => ({
2205
2205
  entity,
2206
2206
  backend: "native",
@@ -2344,7 +2344,7 @@ var memorySearch = /* @__PURE__ */ __name((words) => {
2344
2344
  return { text: text.join(" "), ...scope === void 0 ? {} : { scope } };
2345
2345
  }, "memorySearch");
2346
2346
 
2347
- // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/documents/words.js
2347
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/documents/words.js
2348
2348
  var wordsOf = /* @__PURE__ */ __name((words) => {
2349
2349
  const profile = words.profile ?? "personal";
2350
2350
  const place = words.place ?? words.provider;
@@ -2413,35 +2413,25 @@ var staleCopy = /* @__PURE__ */ __name((provider, lastSync, now = Date.now()) =>
2413
2413
  };
2414
2414
  }, "staleCopy");
2415
2415
 
2416
- // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/documents/catalog.js
2416
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/documents/catalog.js
2417
2417
  var CATALOG_TREE_LIMIT = 1e4;
2418
2418
  var CATALOG_PAGE = 1e3;
2419
2419
  var PARENT_BATCH = 200;
2420
- var anyParent = /* @__PURE__ */ __name((ids) => {
2421
- const ast = parseLucene(Array.from({ length: Math.max(2, ids.length) }, () => "parent:x").join(" OR "), {
2422
- defaultField: "none"
2423
- });
2424
- const clauses = ast.root.clauses;
2425
- clauses.forEach((clause, i) => {
2426
- clause.node.value = ids[Math.min(i, ids.length - 1)];
2427
- });
2428
- return validateQuery(ast, CATALOG_QUERY);
2429
- }, "anyParent");
2430
2420
  var catalogSource = /* @__PURE__ */ __name((catalog, principal) => ({
2431
2421
  get: /* @__PURE__ */ __name((externalId) => catalog.get(principal, catalogId({ externalId })), "get"),
2432
2422
  children: /* @__PURE__ */ __name((externalId, page) => catalog.list(principal, { parent: catalogId({ externalId }), ...page }), "children"),
2433
- // Each read scans the account's catalog, so the branches cut at the depth are asked about 200 at a time.
2423
+ // Each read scans the account's catalog, so the branches cut at the depth are asked about 200 at a time, in one read.
2434
2424
  withChildren: /* @__PURE__ */ __name(async (externalIds) => {
2435
2425
  const found = /* @__PURE__ */ new Set();
2436
2426
  for (let start = 0; start < externalIds.length; start += PARENT_BATCH) {
2437
2427
  const batch = new Set(externalIds.slice(start, start + PARENT_BATCH));
2438
- const ast = anyParent([...batch].map((externalId) => catalogId({ externalId })));
2428
+ const parent = [...batch].map((externalId) => catalogId({ externalId }));
2439
2429
  for (let offset = 0; ; offset += CATALOG_PAGE) {
2440
- const page = await catalog.list(principal, { ast, limit: CATALOG_PAGE, offset });
2430
+ const page = await catalog.list(principal, { parent, limit: CATALOG_PAGE, offset });
2441
2431
  for (const item of page.items)
2442
- for (const parent of item.parents)
2443
- if (batch.delete(parent))
2444
- found.add(parent);
2432
+ for (const parent2 of item.parents)
2433
+ if (batch.delete(parent2))
2434
+ found.add(parent2);
2445
2435
  if (!page.hasMore || batch.size === 0)
2446
2436
  break;
2447
2437
  }
@@ -2624,7 +2614,7 @@ var addDocumentCatalogCommandsDefinition = /* @__PURE__ */ __name((program, help
2624
2614
  }, "addDocumentCatalogCommandsDefinition");
2625
2615
  var addDocumentCatalogCommands = honoursDryRun(sharedCommand(addDocumentCatalogCommandsDefinition));
2626
2616
 
2627
- // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/documents/documents.js
2617
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/documents/documents.js
2628
2618
  import { writeFileSync } from "node:fs";
2629
2619
  var addLocalDocumentCommandsDefinition = /* @__PURE__ */ __name((program, helpers) => {
2630
2620
  const { output, lastSync } = helpers;
@@ -2680,7 +2670,7 @@ var addLocalDocumentCommandsDefinition = /* @__PURE__ */ __name((program, helper
2680
2670
  }, "addLocalDocumentCommandsDefinition");
2681
2671
  var addLocalDocumentCommands = honoursDryRun(sharedCommand(addLocalDocumentCommandsDefinition));
2682
2672
 
2683
- // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/documents/folders.js
2673
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/documents/folders.js
2684
2674
  var addDocumentFolderCommandsDefinition = /* @__PURE__ */ __name((program, helpers) => {
2685
2675
  const { output } = helpers;
2686
2676
  const wording = wordsOf(helpers.words);
@@ -2715,7 +2705,7 @@ var addDocumentFolderCommands = /* @__PURE__ */ __name((program, helpers) => {
2715
2705
  return folders;
2716
2706
  }, "addDocumentFolderCommands");
2717
2707
 
2718
- // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/documents/knowledge.js
2708
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/documents/knowledge.js
2719
2709
  var addDocumentKnowledgeCommandsDefinition = /* @__PURE__ */ __name((program, helpers) => {
2720
2710
  const { run: run3, output, author, decider } = helpers;
2721
2711
  const wording = wordsOf(helpers.words);
@@ -2863,7 +2853,7 @@ var addDocumentKnowledgeCommandsDefinition = /* @__PURE__ */ __name((program, he
2863
2853
  }, "addDocumentKnowledgeCommandsDefinition");
2864
2854
  var addDocumentKnowledgeCommands = honoursDryRun(sharedCommand(addDocumentKnowledgeCommandsDefinition));
2865
2855
 
2866
- // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/documents/mirrors.js
2856
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/documents/mirrors.js
2867
2857
  import { statSync } from "node:fs";
2868
2858
  import { resolve } from "node:path";
2869
2859
  var addDocumentMirrorCommandsDefinition = /* @__PURE__ */ __name((program, helpers) => {
@@ -3028,7 +3018,7 @@ var describeCycle = /* @__PURE__ */ __name((cycle) => {
3028
3018
  }, "describeCycle");
3029
3019
  var addDocumentMirrorCommands = honoursDryRun(sharedCommand(addDocumentMirrorCommandsDefinition));
3030
3020
 
3031
- // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/documents/search.js
3021
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/documents/search.js
3032
3022
  var notImported = /* @__PURE__ */ __name((app, { profile, chosen, documents }) => {
3033
3023
  if (documents > 0)
3034
3024
  return void 0;
@@ -3049,21 +3039,49 @@ var addDocumentSearchCommandDefinition = /* @__PURE__ */ __name((program, helper
3049
3039
  }, "addDocumentSearchCommandDefinition");
3050
3040
  var addDocumentSearchCommand = honoursDryRun(sharedCommand(addDocumentSearchCommandDefinition));
3051
3041
 
3052
- // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/documents/sync.js
3042
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/documents/sync.js
3053
3043
  var addDocumentSyncCommandsDefinition = /* @__PURE__ */ __name((program, helpers) => {
3054
3044
  const { output } = helpers;
3055
3045
  const wording = wordsOf(helpers.words);
3056
3046
  const { prefix, text } = wording;
3057
- const sync2 = examples2(annotate(program.command("sync"), { effects: FETCH }).summary("import what changed in the chosen folders, and finish an unfinished sync").description(`import what changed in the chosen folders, and finish an unfinished sync; one sync reads at most ${helpers.maxEntries} entries under the chosen folders, and as many changes`), [`${prefix} sync`, `${prefix} sync --rescan --limit 500`]).option("--limit <n>", text.syncLimit, positive, 200).option("--rescan", "read every chosen folder again instead of only what changed").option("--embed", "also index pending text for meaning search, with a model already downloaded").action(async (args) => {
3058
- const result = await helpers.sync(args);
3047
+ const sync2 = examples2(
3048
+ // Cooperative: it stops on its own at its budget, its deadline or a cancel and keeps its work, so it gets a sync's
3049
+ // deadline (15 min in a terminal, 45 s over MCP) instead of a one-shot's 30 s.
3050
+ annotate(program.command("sync"), { effects: FETCH, cooperative: true, partial: true }).summary("import what changed in the chosen folders, and finish an unfinished sync").description(`import what changed in the chosen folders, and finish an unfinished sync; one sync walks about ${helpers.maxEntries} entries under the chosen folders, saves where it stopped, and the next sync goes on from there`),
3051
+ [`${prefix} sync`, `${prefix} sync --rescan --limit 500`]
3052
+ ).option("--limit <n>", text.syncLimit, positive, 200).option("--rescan", "read every chosen folder again instead of only what changed; each --rescan starts the walk over, so run it once and continue with a plain sync").option("--embed", "also index pending text for meaning search, with a model already downloaded").action(async (args, command) => {
3053
+ const deadline = environmentOf(command).deadline?.();
3054
+ const result = await helpers.sync({ ...args, budget: runBudgetOf(command), ...deadline ? { deadline } : {} });
3055
+ const unfinished = result.complete === false || result.pending > 0;
3056
+ const moved = (result.walk?.listed ?? 0) > 0 || [result.saved, result.names_only, result.removed, result.unchanged].some((count) => (count ?? 0) > 0);
3057
+ const again = `${wording.app} ${helpers.profile()} sync`;
3058
+ const timeout = command.optsWithGlobals().timeout;
3059
+ const next = unfinished && !result.errors.length && moved ? [
3060
+ {
3061
+ kind: "command",
3062
+ step: "sync.run",
3063
+ command: "sync",
3064
+ args: {
3065
+ limit: args.limit,
3066
+ ...timeout === void 0 ? {} : { timeout },
3067
+ ...args.embed ? { embed: true } : {}
3068
+ },
3069
+ why: "the sync stopped before the end of its pass; running it again goes on from there",
3070
+ safe_to_auto_execute: true
3071
+ }
3072
+ ] : [];
3059
3073
  output(itemOf(result, {
3060
3074
  meta: result.errors.length ? {
3061
3075
  complete: false,
3062
3076
  issues: [{ code: "provider_error", reason: "sync.partial", source: wording.source }]
3063
- } : {}
3077
+ } : unfinished ? { complete: false } : {},
3078
+ next
3064
3079
  }));
3065
- if (result.errors.length || result.pending)
3066
- helpers.diagnostic(`${result.pending} source operations remain; run ${wording.app} ${helpers.profile()} sync again
3080
+ if (result.walk)
3081
+ helpers.diagnostic(`${result.walk.folders_left} folders remain to list; run ${again} again
3082
+ `);
3083
+ else if (result.errors.length || result.pending)
3084
+ helpers.diagnostic(`${result.pending} source operations remain; run ${again} again
3067
3085
  `);
3068
3086
  if (result.errors.length)
3069
3087
  throw new CliError("provider_error", "sync completed partially; failed operations remain pending", {
@@ -3434,7 +3452,7 @@ var installModelCommands = /* @__PURE__ */ __name((program, { env, output, strea
3434
3452
  const download = /* @__PURE__ */ __name(async (kind, id, acceptTerms) => {
3435
3453
  if (policyFlags().offline)
3436
3454
  throw offlineRefused("downloading a model needs the network");
3437
- const { downloadImageModel, downloadTextModel } = await import("./services-BDQBRXT5.js");
3455
+ const { downloadImageModel, downloadTextModel } = await import("./services-ZILSFJ6E.js");
3438
3456
  const progress = /* @__PURE__ */ __name((line) => {
3439
3457
  if (!program.opts().quiet)
3440
3458
  streams.diagnostic(line);
@@ -22470,7 +22488,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
22470
22488
  const app = application(env, { file: args.clientFile, clientId: args.clientId, profile: selected() });
22471
22489
  if (!app.clientSecret)
22472
22490
  streams.diagnostic("your Google app has no secret here, and Google refuses a Desktop app without one: set DRIVE_GOOGLE_CLIENT_SECRET\n");
22473
- const { login } = await import("./login-6WG3YBDU.js");
22491
+ const { login } = await import("./login-7GBONT7V.js");
22474
22492
  output(itemOf(await login({
22475
22493
  env,
22476
22494
  profile: selected(),
@@ -22501,7 +22519,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
22501
22519
  const name = selected();
22502
22520
  const config = readConfig(env);
22503
22521
  const profile = activeProfile(env, name);
22504
- const { credentials } = await import("./tokens-DB7O7QNB.js");
22522
+ const { credentials } = await import("./tokens-AF7QOFOF.js");
22505
22523
  const store = credentials(env, profile.storage, options.keyring);
22506
22524
  store.remove(name);
22507
22525
  writeConfig(env, config);
@@ -22548,7 +22566,7 @@ var selection = /* @__PURE__ */ __name((env, name, source) => {
22548
22566
  return { profile, state, options: { source, destination, collection: `google-drive:${profile.principal}`, env } };
22549
22567
  }, "selection");
22550
22568
  var checkStoreImport = /* @__PURE__ */ __name(async (env, name, source, bindings) => {
22551
- const { ensureSqlite } = await import("./sqlite-runtime-ZSZGAUYB.js");
22569
+ const { ensureSqlite } = await import("./sqlite-runtime-S5VPMZQH.js");
22552
22570
  await ensureSqlite();
22553
22571
  const { state, options } = selection(env, name, source);
22554
22572
  const preview = await previewDocumentTransfer({ ...options, bindings });
@@ -22639,7 +22657,6 @@ var sync = /* @__PURE__ */ __name(async (source, index, env, name, max, signal,
22639
22657
  pictures: profile.picture_search,
22640
22658
  textLimit: textLimit(env, name),
22641
22659
  maxEntries: MAX_ENTRIES,
22642
- limitError: tooManyEntries,
22643
22660
  isFolder: /* @__PURE__ */ __name((file) => file.mime === FOLDER, "isFolder"),
22644
22661
  skipReason,
22645
22662
  retryable,
@@ -22751,7 +22768,7 @@ var installTranscriptCommands = /* @__PURE__ */ __name((program, context) => {
22751
22768
  // dist/commands/upgrade.js
22752
22769
  import { join as join8 } from "node:path";
22753
22770
 
22754
- // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/update/index.js
22771
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/update/index.js
22755
22772
  import { realpathSync } from "node:fs";
22756
22773
  import { fileURLToPath } from "node:url";
22757
22774
  var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
@@ -23179,7 +23196,7 @@ var openIndex = /* @__PURE__ */ __name(async (env, name, rescan = false) => {
23179
23196
  activeProfile(env, name);
23180
23197
  if (env.DRIVE_STORE)
23181
23198
  throw new CliError("configuration_error", "DRIVE_STORE has been retired; use MESSAGING_STORE to select the shared database", { reason: "store.override-retired" });
23182
- const { openAppStore } = await import("./cli-K4D4DIGQ.js");
23199
+ const { openAppStore } = await import("./cli-556DERZL.js");
23183
23200
  const store = await openAppStore(env, { app: { command: "drive", version: VERSION }, provider: DRIVE_PROVIDER });
23184
23201
  const index = indexOver(store, env);
23185
23202
  try {
@@ -23230,7 +23247,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
23230
23247
  linkMessages: /* @__PURE__ */ __name((documents, since) => store.notes.linkMessages({ documents, ...since ? { since } : {} }), "linkMessages"),
23231
23248
  knowledge: documentKnowledge2(store, async (principal) => (await folder(principal, false))?.id),
23232
23249
  openPictures: /* @__PURE__ */ __name(async () => {
23233
- const { openPictureEmbedderFor, savePicture } = await import("./services-BDQBRXT5.js");
23250
+ const { openPictureEmbedderFor, savePicture } = await import("./services-ZILSFJ6E.js");
23234
23251
  const embedder = pictureEmbedder ?? await openPictureEmbedderFor({ env, command: "drive" });
23235
23252
  return {
23236
23253
  save: /* @__PURE__ */ __name((reference, bytes) => savePicture(store, { ref: reference }, bytes, { embedder }), "save"),
@@ -23249,7 +23266,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
23249
23266
  has_more: false,
23250
23267
  meaning_skipped: "this Google account has no imported sources"
23251
23268
  };
23252
- const { searchNotes } = await import("./services-BDQBRXT5.js");
23269
+ const { searchNotes } = await import("./services-ZILSFJ6E.js");
23253
23270
  const result = await searchNotes(store, query, {
23254
23271
  ...options,
23255
23272
  folderIds: selected ? [selected.id] : [],
@@ -23282,7 +23299,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
23282
23299
  };
23283
23300
  }, "search"),
23284
23301
  embed: /* @__PURE__ */ __name(async (max) => {
23285
- const { embedNotes } = await import("./services-BDQBRXT5.js");
23302
+ const { embedNotes } = await import("./services-ZILSFJ6E.js");
23286
23303
  return embedNotes(store, { maxChunks: max, env, command: "drive" });
23287
23304
  }, "embed"),
23288
23305
  close: /* @__PURE__ */ __name(() => store.close(), "close")
@@ -23569,7 +23586,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23569
23586
  }, "output");
23570
23587
  const signal = /* @__PURE__ */ __name(() => environment().signal, "signal");
23571
23588
  const signedIn = /* @__PURE__ */ __name(async (name, scope2) => {
23572
- const { authorizedClient, checkAuthorization } = await import("./tokens-DB7O7QNB.js");
23589
+ const { authorizedClient, checkAuthorization } = await import("./tokens-AF7QOFOF.js");
23573
23590
  const client = authorizedClient(env, name, environment().keyring, signal());
23574
23591
  await checkAuthorization(client, scope2);
23575
23592
  return client;
@@ -23579,7 +23596,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23579
23596
  const fake = environment().source;
23580
23597
  if (fake)
23581
23598
  return fake(name);
23582
- const [{ googleSource }, client] = await Promise.all([import("./google-BSO3YB7N.js"), signedIn(name)]);
23599
+ const [{ googleSource }, client] = await Promise.all([import("./google-22NXXJX5.js"), signedIn(name)]);
23583
23600
  return googleSource(client);
23584
23601
  }, "source");
23585
23602
  const withIndex = /* @__PURE__ */ __name(async (fn, profile) => {
@@ -23723,7 +23740,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23723
23740
  if (fake)
23724
23741
  return await fake.call(method, params, body);
23725
23742
  const [{ googleApi }, client] = await Promise.all([
23726
- import("./google-api-SAND2F7L.js"),
23743
+ import("./google-api-VCDBSNOW.js"),
23727
23744
  signedIn(selected(), descriptor.scope)
23728
23745
  ]);
23729
23746
  return await googleApi(client).call(method, params, body);
@@ -23749,7 +23766,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23749
23766
  if (fake)
23750
23767
  return fake(id, mime);
23751
23768
  const [{ googleDownload }, client] = await Promise.all([
23752
- import("./google-api-SAND2F7L.js"),
23769
+ import("./google-api-VCDBSNOW.js"),
23753
23770
  signedIn(selected(), apiMethod(method).scope)
23754
23771
  ]);
23755
23772
  return googleDownload(client)(id, mime);
@@ -23767,7 +23784,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23767
23784
  let request = environment().uploadRequest;
23768
23785
  if (!request) {
23769
23786
  const [{ googleUploadRequest }, client] = await Promise.all([
23770
- import("./google-api-SAND2F7L.js"),
23787
+ import("./google-api-VCDBSNOW.js"),
23771
23788
  signedIn(selected(), apiMethod(method).scope)
23772
23789
  ]);
23773
23790
  request = googleUploadRequest(client);
@@ -23980,7 +23997,7 @@ var mcpCommand = /* @__PURE__ */ __name(() => {
23980
23997
  const environment = environmentOf(action);
23981
23998
  if (environment.api)
23982
23999
  return;
23983
- const { grantAvailability } = await import("./grants-PLNFYARD.js");
24000
+ const { grantAvailability } = await import("./grants-MQMTVCRQ.js");
23984
24001
  availability = grantAvailability(rootOf(root), environment.env ?? process.env, environment.keyring);
23985
24002
  });
23986
24003
  }, "mcpCommand");
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  pasteHint,
5
5
  readSecret
6
- } from "./chunk-XZBA6FVH.js";
7
- import "./chunk-MXNQZAJQ.js";
8
- import "./chunk-HRATXUFH.js";
9
- import "./chunk-SONPLYV7.js";
6
+ } from "./chunk-YPNWIB6H.js";
7
+ import "./chunk-QNRRK3CN.js";
8
+ import "./chunk-CJLVYIOP.js";
9
+ import "./chunk-3N2OFXB5.js";
10
10
  import "./chunk-Y5E2WNWB.js";
11
- import "./chunk-ABZ2NYDT.js";
12
- import "./chunk-7IBENBCK.js";
13
- import "./chunk-HHAZ6DCY.js";
14
- import "./chunk-54NDYVZA.js";
11
+ import "./chunk-KYKW2W6X.js";
12
+ import "./chunk-KGYVHPGE.js";
13
+ import "./chunk-OJSBWP3F.js";
14
+ import "./chunk-4QNW4NK6.js";
15
15
  import "./chunk-ZVVMGPBJ.js";
16
16
  export {
17
17
  pasteHint,
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  REASONS
5
- } from "./chunk-ILAQIBEO.js";
6
- import "./chunk-ZI3YTXSF.js";
7
- import "./chunk-7IBENBCK.js";
8
- import "./chunk-HHAZ6DCY.js";
9
- import "./chunk-54NDYVZA.js";
5
+ } from "./chunk-2LHAVY4U.js";
6
+ import "./chunk-VKE77B3F.js";
7
+ import "./chunk-KGYVHPGE.js";
8
+ import "./chunk-OJSBWP3F.js";
9
+ import "./chunk-4QNW4NK6.js";
10
10
  import "./chunk-ZVVMGPBJ.js";
11
11
  export {
12
12
  REASONS