@wirecat/drive-cli 0.67.0 → 0.68.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 (123) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-DVZUVAPQ.js → all-profiles-BU6XUFUP.js} +7 -7
  3. package/dist/bundle/{anthropic-Y45C45O2.js → anthropic-ZP5B7S2Z.js} +2 -2
  4. package/dist/bundle/{app-server-GTXUOUGD.js → app-server-EB4DH6T7.js} +49 -45
  5. package/dist/bundle/{bun-QVJV76QJ.js → bun-PWMM6L45.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-CC7PIAMH.js → bun-sqlite-6VPR2SVC.js} +3 -3
  7. package/dist/bundle/{chunk-JO7BJYAP.js → chunk-2UHQVRH2.js} +15 -15
  8. package/dist/bundle/{chunk-NFIR346J.js → chunk-2VYEGKQ3.js} +1 -1
  9. package/dist/bundle/{chunk-MEY7URZZ.js → chunk-43NEDPXB.js} +4 -4
  10. package/dist/bundle/{chunk-YVUAG7RF.js → chunk-5G2BY4B6.js} +15 -15
  11. package/dist/bundle/{chunk-T2VAEDJS.js → chunk-5W65QTYS.js} +3 -3
  12. package/dist/bundle/{chunk-LSAIXPAX.js → chunk-6HFZZ2PW.js} +1 -1
  13. package/dist/bundle/{chunk-AJ3DFPRT.js → chunk-6QR7NKMG.js} +1 -1
  14. package/dist/bundle/{chunk-NWYVOHIX.js → chunk-6WAC2LOS.js} +459 -419
  15. package/dist/bundle/{chunk-HJF2QGOX.js → chunk-74NCZKRW.js} +29 -16
  16. package/dist/bundle/{chunk-4VH7M2OD.js → chunk-7A77GYCE.js} +2 -2
  17. package/dist/bundle/{chunk-2PIA45FC.js → chunk-7BXVI7XF.js} +1 -1
  18. package/dist/bundle/{chunk-ETAFFY3J.js → chunk-7TNQZKRD.js} +52 -52
  19. package/dist/bundle/{chunk-E3XA56TS.js → chunk-AIEMFRBU.js} +1 -1
  20. package/dist/bundle/{chunk-EXWOOST5.js → chunk-AXYG2DDY.js} +111 -83
  21. package/dist/bundle/{chunk-LXRBTXCZ.js → chunk-BXHFJTU5.js} +2 -2
  22. package/dist/bundle/{chunk-OOBSSU2G.js → chunk-CK2SQ2CE.js} +14 -13
  23. package/dist/bundle/{chunk-MF46W7PQ.js → chunk-CMWFYZ45.js} +1 -1
  24. package/dist/bundle/{chunk-4G7WQNG7.js → chunk-CRIEW4FP.js} +1 -1
  25. package/dist/bundle/{chunk-RC72RU66.js → chunk-CVAJMRRD.js} +5 -5
  26. package/dist/bundle/{chunk-YI4DXASF.js → chunk-DIZBJLPM.js} +36 -32
  27. package/dist/bundle/{chunk-FS2PG2PE.js → chunk-DU23ET2O.js} +18 -18
  28. package/dist/bundle/{chunk-JY2GZDJL.js → chunk-DYLYH7VE.js} +3 -3
  29. package/dist/bundle/{chunk-C72WYRXD.js → chunk-EEE4H2PA.js} +10 -10
  30. package/dist/bundle/{chunk-2MEVCMBW.js → chunk-EOC7RHJ2.js} +3 -3
  31. package/dist/bundle/{chunk-ZH4H5XTA.js → chunk-EXWZCI5G.js} +1 -1
  32. package/dist/bundle/{chunk-VZ5KETIX.js → chunk-F7KAMSXA.js} +2 -2
  33. package/dist/bundle/{chunk-SJE7UGOW.js → chunk-FAMXUI2X.js} +4 -4
  34. package/dist/bundle/{chunk-IRULPE5M.js → chunk-GTLXBAJV.js} +297 -281
  35. package/dist/bundle/{chunk-UFNE57VY.js → chunk-IVOG6T6P.js} +2 -2
  36. package/dist/bundle/{chunk-MBLB4TQI.js → chunk-J5LXL435.js} +18 -18
  37. package/dist/bundle/{chunk-XZCF5XU7.js → chunk-JMZQBRRZ.js} +5 -5
  38. package/dist/bundle/{chunk-PDHN4GHU.js → chunk-JZ3MT7IE.js} +1 -1
  39. package/dist/bundle/{chunk-P6A77LMP.js → chunk-KPKIHJIT.js} +5 -7
  40. package/dist/bundle/{chunk-2Y3YBDZX.js → chunk-MLSXHTUB.js} +137 -135
  41. package/dist/bundle/{chunk-ZEPDEFVT.js → chunk-MOKEB656.js} +1 -1
  42. package/dist/bundle/{chunk-BHSLMJF7.js → chunk-MWCPKUU4.js} +4 -4
  43. package/dist/bundle/{chunk-ULH3TNUP.js → chunk-NV75QPML.js} +4 -4
  44. package/dist/bundle/{chunk-CWDC6QJM.js → chunk-O7T3WGCV.js} +4 -4
  45. package/dist/bundle/{chunk-JJHDV32D.js → chunk-PGPHEC2X.js} +1 -1
  46. package/dist/bundle/{chunk-AAZPDWRD.js → chunk-PJ3FKBXG.js} +1 -1
  47. package/dist/bundle/{chunk-MEQNAZ6R.js → chunk-PWIEOATY.js} +5 -5
  48. package/dist/bundle/{chunk-6ERQE4FS.js → chunk-Q6BD6RUH.js} +40 -40
  49. package/dist/bundle/{chunk-3RG6LL25.js → chunk-QKY24RWV.js} +10 -10
  50. package/dist/bundle/{chunk-ABJQ6IDU.js → chunk-QRSPFCRY.js} +16 -16
  51. package/dist/bundle/{chunk-U2ERT45N.js → chunk-QTRYJZL7.js} +4 -4
  52. package/dist/bundle/{chunk-SXJDCRXE.js → chunk-QVJMFZFW.js} +1 -1
  53. package/dist/bundle/{chunk-WBKYZZQT.js → chunk-QWGEOQHA.js} +1 -1
  54. package/dist/bundle/{chunk-AZKFZ7J7.js → chunk-R5FTCNLJ.js} +1 -1
  55. package/dist/bundle/{chunk-DAFKV6DJ.js → chunk-RT5NT62B.js} +12 -12
  56. package/dist/bundle/{chunk-UOAHZV3K.js → chunk-SOS4U2RF.js} +18 -18
  57. package/dist/bundle/{chunk-ZU5VQYNY.js → chunk-TI2OANJZ.js} +1 -1
  58. package/dist/bundle/{chunk-5DMPGTNR.js → chunk-U52QE4QV.js} +2 -2
  59. package/dist/bundle/{chunk-JLUQZZ26.js → chunk-UFPRP7MG.js} +7 -7
  60. package/dist/bundle/{chunk-WWW7YTFG.js → chunk-UIKVP23D.js} +1 -1
  61. package/dist/bundle/{chunk-WKIQKGOF.js → chunk-ULNN3LCY.js} +26 -24
  62. package/dist/bundle/{chunk-5TSILGTO.js → chunk-UUQJVKPB.js} +323 -323
  63. package/dist/bundle/{chunk-7AZCAUST.js → chunk-UYBLNGZ2.js} +1 -1
  64. package/dist/bundle/{chunk-V7E25BUU.js → chunk-WCNTDETD.js} +2 -2
  65. package/dist/bundle/{chunk-ZK46UHDP.js → chunk-WGX4DZPW.js} +2 -2
  66. package/dist/bundle/{chunk-7J2IP3WL.js → chunk-WUFZGPXX.js} +6 -6
  67. package/dist/bundle/{chunk-Y5WSRG3F.js → chunk-YUGTJBV3.js} +2 -2
  68. package/dist/bundle/{chunk-JCNEPYQZ.js → chunk-YYIWPH53.js} +12 -12
  69. package/dist/bundle/{chunk-RLH6BOEG.js → chunk-Z5BMYI2V.js} +5 -5
  70. package/dist/bundle/{chunk-FOMQ4MG3.js → chunk-ZAIE3G5I.js} +2 -2
  71. package/dist/bundle/{chunk-QOKPRFHM.js → chunk-ZSVMZH5O.js} +2 -2
  72. package/dist/bundle/{chunk-JEMBW6IO.js → chunk-ZVQDOKDY.js} +1 -1
  73. package/dist/bundle/{cli-U4LSBYDV.js → cli-L7P36YUH.js} +50 -50
  74. package/dist/bundle/{command-contract-UU5T24ZZ.js → command-contract-EYFGMKIG.js} +16 -16
  75. package/dist/bundle/{command-server-entry-PK6FBUPO.js → command-server-entry-H3VGPOLJ.js} +23 -23
  76. package/dist/bundle/{decode-3ZE6NBKV.js → decode-JEU6JWCV.js} +2 -2
  77. package/dist/bundle/drive.js +3 -3
  78. package/dist/bundle/{echarts-6FWNCNXK.js → echarts-SDZA2SWG.js} +2 -2
  79. package/dist/bundle/{embed-DGYBBZUW.js → embed-WUKOASQG.js} +3 -3
  80. package/dist/bundle/{embedder-O7A6VMWI.js → embedder-UBRAXRDZ.js} +6 -6
  81. package/dist/bundle/{entry-CDJ2QSU2.js → entry-C4NUQFTF.js} +6 -6
  82. package/dist/bundle/{first-run-UOQW7DN5.js → first-run-PKHBS7B4.js} +5 -5
  83. package/dist/bundle/{first-screen-SNDV4YKF.js → first-screen-QOVOM4BF.js} +17 -17
  84. package/dist/bundle/{google-HPX52KMC.js → google-XXHSMTVK.js} +14 -14
  85. package/dist/bundle/{google-api-HIMN4XL5.js → google-api-SQQ4BSNR.js} +51 -51
  86. package/dist/bundle/{grants-RO42I6E4.js → grants-2U4JVT6O.js} +56 -56
  87. package/dist/bundle/{identity-NFGHDPLL.js → identity-SRL6RSU2.js} +1 -1
  88. package/dist/bundle/{instructions-6JAQYCM6.js → instructions-7T6JJIFS.js} +1 -1
  89. package/dist/bundle/{login-RZOQN63N.js → login-N243GGEE.js} +56 -56
  90. package/dist/bundle/{node-KSIX3GIH.js → node-BZDMUFTW.js} +2 -2
  91. package/dist/bundle/{node-sqlite-4FJ6WJXN.js → node-sqlite-SZQCCMV2.js} +4 -4
  92. package/dist/bundle/{oauth-BKZAMFKK.js → oauth-CMAFXX6A.js} +4 -4
  93. package/dist/bundle/{open-4AQJGH42.js → open-RVTPKDA3.js} +2 -2
  94. package/dist/bundle/{openai-24F2OX55.js → openai-6NN63BMH.js} +13 -13
  95. package/dist/bundle/{process-7NOA2T7H.js → process-756VBE7E.js} +1 -1
  96. package/dist/bundle/{program-7JHMLDEX.js → program-B4QBJYB5.js} +78 -75
  97. package/dist/bundle/{prompt-NM66MAZ4.js → prompt-HGP2DSRW.js} +2 -2
  98. package/dist/bundle/{recognize-DBKV2JYZ.js → recognize-26SHB7HI.js} +1 -1
  99. package/dist/bundle/{remote-ABWUTBVB.js → remote-Z4PWHZ5N.js} +7 -7
  100. package/dist/bundle/{rerank-FQAU4ENY.js → rerank-QHJZJK3Q.js} +4 -4
  101. package/dist/bundle/{serve-QLJG4QZD.js → serve-MYJW5IEM.js} +6 -6
  102. package/dist/bundle/server-HBZPIHDX.js +74 -0
  103. package/dist/bundle/{server-VGZNK5XD.js → server-XFW3V7CR.js} +38 -36
  104. package/dist/bundle/{services-5KARVUHK.js → services-IQG2RVTO.js} +25 -25
  105. package/dist/bundle/{sqlite-runtime-ILF6EFQJ.js → sqlite-runtime-X4GB5PBV.js} +3 -3
  106. package/dist/bundle/{state-R2M56GPU.js → state-ATQK2X3W.js} +3 -3
  107. package/dist/bundle/{store-2OBVMUQL.js → store-MEHEUOJH.js} +11 -11
  108. package/dist/bundle/{store-DA4K7HWW.js → store-QUBUPK6F.js} +13 -13
  109. package/dist/bundle/store-maintenance-command-33ULVDWY.js +65 -0
  110. package/dist/bundle/tokens-A2GP4F34.js +111 -0
  111. package/dist/policy.d.ts +2 -0
  112. package/dist/policy.d.ts.map +1 -1
  113. package/dist/policy.js +3 -2
  114. package/dist/policy.js.map +1 -1
  115. package/dist/program.d.ts.map +1 -1
  116. package/dist/program.js +3 -2
  117. package/dist/program.js.map +1 -1
  118. package/dist/version.d.ts +1 -1
  119. package/dist/version.js +1 -1
  120. package/package.json +2 -2
  121. package/dist/bundle/server-NUBLY5SV.js +0 -74
  122. package/dist/bundle/store-maintenance-command-KSIPI5B5.js +0 -65
  123. package/dist/bundle/tokens-VQDGSHRB.js +0 -111
@@ -4,7 +4,7 @@ import {
4
4
  MAX_ENTRIES,
5
5
  supported,
6
6
  tooManyEntries
7
- } from "./chunk-PDHN4GHU.js";
7
+ } from "./chunk-JZ3MT7IE.js";
8
8
  import {
9
9
  ACCOUNT_FREE_COMMANDS,
10
10
  ANY_PROFILE_COMMANDS,
@@ -15,7 +15,7 @@ import {
15
15
  describeDriveProgram,
16
16
  examples,
17
17
  markProfileFree
18
- } from "./chunk-Y5WSRG3F.js";
18
+ } from "./chunk-YUGTJBV3.js";
19
19
  import {
20
20
  DEFAULTS_ONLY,
21
21
  DEFAULT_LEVELS,
@@ -73,7 +73,7 @@ import {
73
73
  unknownProfile,
74
74
  withDefaults,
75
75
  writeConfig
76
- } from "./chunk-DAFKV6DJ.js";
76
+ } from "./chunk-RT5NT62B.js";
77
77
  import {
78
78
  DOC,
79
79
  DOCUMENT_LIST_FIELDS,
@@ -96,7 +96,7 @@ import {
96
96
  syncDocuments,
97
97
  syncMirrors,
98
98
  watchMirrors
99
- } from "./chunk-FS2PG2PE.js";
99
+ } from "./chunk-DU23ET2O.js";
100
100
  import {
101
101
  apiMethod,
102
102
  apiMethods,
@@ -105,7 +105,7 @@ import {
105
105
  schemas,
106
106
  validateApiParams,
107
107
  validateRequest
108
- } from "./chunk-2PIA45FC.js";
108
+ } from "./chunk-7BXVI7XF.js";
109
109
  import {
110
110
  operations
111
111
  } from "./chunk-NYECVHFH.js";
@@ -143,16 +143,16 @@ import {
143
143
  signInSteps,
144
144
  skillCommand,
145
145
  upgradeCommand
146
- } from "./chunk-5TSILGTO.js";
147
- import "./chunk-ZH4H5XTA.js";
148
- import "./chunk-ZU5VQYNY.js";
149
- import "./chunk-WKIQKGOF.js";
150
- import "./chunk-OOBSSU2G.js";
146
+ } from "./chunk-UUQJVKPB.js";
147
+ import "./chunk-EXWZCI5G.js";
148
+ import "./chunk-TI2OANJZ.js";
149
+ import "./chunk-ULNN3LCY.js";
150
+ import "./chunk-CK2SQ2CE.js";
151
151
  import {
152
152
  storeInfo
153
- } from "./chunk-ETAFFY3J.js";
154
- import "./chunk-RLH6BOEG.js";
155
- import "./chunk-YVUAG7RF.js";
153
+ } from "./chunk-7TNQZKRD.js";
154
+ import "./chunk-Z5BMYI2V.js";
155
+ import "./chunk-5G2BY4B6.js";
156
156
  import {
157
157
  LIST_QUERY_GUIDE,
158
158
  listQuery,
@@ -163,45 +163,45 @@ import {
163
163
  typedQuery,
164
164
  unfilteredQuery,
165
165
  withQuery
166
- } from "./chunk-JO7BJYAP.js";
166
+ } from "./chunk-2UHQVRH2.js";
167
167
  import {
168
168
  RecipientList,
169
169
  SendJournal,
170
170
  newOperationId,
171
171
  sendGuard
172
- } from "./chunk-IRULPE5M.js";
172
+ } from "./chunk-GTLXBAJV.js";
173
173
  import {
174
174
  columnName,
175
175
  modelGateway,
176
176
  readSpreadsheet
177
- } from "./chunk-6ERQE4FS.js";
178
- import "./chunk-JCNEPYQZ.js";
179
- import "./chunk-U2ERT45N.js";
177
+ } from "./chunk-Q6BD6RUH.js";
178
+ import "./chunk-YYIWPH53.js";
179
+ import "./chunk-QTRYJZL7.js";
180
180
  import "./chunk-HTQTIKWP.js";
181
- import "./chunk-3RG6LL25.js";
181
+ import "./chunk-QKY24RWV.js";
182
182
  import {
183
183
  latestVersion,
184
184
  runUpdate,
185
185
  updateNotice
186
186
  } from "./chunk-D4MVEOU2.js";
187
187
  import "./chunk-FIVFP53N.js";
188
- import "./chunk-C72WYRXD.js";
189
- import "./chunk-ULH3TNUP.js";
190
- import "./chunk-5DMPGTNR.js";
191
- import "./chunk-VZ5KETIX.js";
192
- import "./chunk-SJE7UGOW.js";
193
- import "./chunk-CWDC6QJM.js";
188
+ import "./chunk-EEE4H2PA.js";
189
+ import "./chunk-NV75QPML.js";
190
+ import "./chunk-U52QE4QV.js";
191
+ import "./chunk-F7KAMSXA.js";
192
+ import "./chunk-FAMXUI2X.js";
193
+ import "./chunk-O7T3WGCV.js";
194
194
  import {
195
195
  applyDocumentTransfer,
196
196
  previewDocumentTransfer
197
- } from "./chunk-ABJQ6IDU.js";
198
- import "./chunk-BHSLMJF7.js";
197
+ } from "./chunk-QRSPFCRY.js";
198
+ import "./chunk-MWCPKUU4.js";
199
199
  import "./chunk-5DPV7X27.js";
200
- import "./chunk-XZCF5XU7.js";
201
- import "./chunk-AAZPDWRD.js";
202
- import "./chunk-NFIR346J.js";
203
- import "./chunk-QOKPRFHM.js";
204
- import "./chunk-2MEVCMBW.js";
200
+ import "./chunk-JMZQBRRZ.js";
201
+ import "./chunk-PJ3FKBXG.js";
202
+ import "./chunk-2VYEGKQ3.js";
203
+ import "./chunk-ZSVMZH5O.js";
204
+ import "./chunk-EOC7RHJ2.js";
205
205
  import {
206
206
  FETCH,
207
207
  InvalidArgumentError,
@@ -216,6 +216,7 @@ import {
216
216
  commandWords,
217
217
  customizeSharedCommand,
218
218
  environmentOf,
219
+ fetchesOnly,
219
220
  flatten,
220
221
  grantsAuthority,
221
222
  hasSharedContract,
@@ -232,8 +233,8 @@ import {
232
233
  settingRows,
233
234
  sharedContracts,
234
235
  snakeKeys
235
- } from "./chunk-2Y3YBDZX.js";
236
- import "./chunk-7J2IP3WL.js";
236
+ } from "./chunk-MLSXHTUB.js";
237
+ import "./chunk-WUFZGPXX.js";
237
238
  import {
238
239
  CEILING_KEY,
239
240
  LEVELS,
@@ -241,33 +242,33 @@ import {
241
242
  layerPermissions,
242
243
  levelFor,
243
244
  parseDuration
244
- } from "./chunk-MBLB4TQI.js";
245
+ } from "./chunk-J5LXL435.js";
245
246
  import {
246
247
  modelTarget
247
- } from "./chunk-4VH7M2OD.js";
248
+ } from "./chunk-7A77GYCE.js";
248
249
  import {
249
250
  setupPermissionCeiling
250
- } from "./chunk-P6A77LMP.js";
251
+ } from "./chunk-KPKIHJIT.js";
251
252
  import {
252
253
  readOnlyLockOf,
253
254
  readOnlyRefusal
254
- } from "./chunk-ZEPDEFVT.js";
255
- import "./chunk-WWW7YTFG.js";
255
+ } from "./chunk-MOKEB656.js";
256
+ import "./chunk-UIKVP23D.js";
256
257
  import {
257
258
  hostFetch
258
- } from "./chunk-AJ3DFPRT.js";
259
- import "./chunk-UFNE57VY.js";
260
- import "./chunk-T2VAEDJS.js";
261
- import "./chunk-FOMQ4MG3.js";
262
- import "./chunk-JJHDV32D.js";
259
+ } from "./chunk-6QR7NKMG.js";
260
+ import "./chunk-IVOG6T6P.js";
261
+ import "./chunk-5W65QTYS.js";
262
+ import "./chunk-ZAIE3G5I.js";
263
+ import "./chunk-PGPHEC2X.js";
263
264
  import {
264
265
  CATALOG_QUERY,
265
266
  IMPORTED_DOCUMENT_QUERY,
266
267
  openStore
267
- } from "./chunk-NWYVOHIX.js";
268
- import "./chunk-LXRBTXCZ.js";
269
- import "./chunk-JLUQZZ26.js";
270
- import "./chunk-RC72RU66.js";
268
+ } from "./chunk-6WAC2LOS.js";
269
+ import "./chunk-BXHFJTU5.js";
270
+ import "./chunk-UFPRP7MG.js";
271
+ import "./chunk-CVAJMRRD.js";
271
272
  import {
272
273
  FACT_STATUSES,
273
274
  FACT_TYPES,
@@ -275,7 +276,7 @@ import {
275
276
  MEMORY_SCOPES,
276
277
  MEMORY_STATUSES,
277
278
  inRun
278
- } from "./chunk-EXWOOST5.js";
279
+ } from "./chunk-AXYG2DDY.js";
279
280
  import {
280
281
  defineQuery,
281
282
  parseLucene,
@@ -284,10 +285,10 @@ import {
284
285
  validateQuery,
285
286
  zonedMoment
286
287
  } from "./chunk-UPCEHSIZ.js";
287
- import "./chunk-WBKYZZQT.js";
288
- import "./chunk-7AZCAUST.js";
289
- import "./chunk-MEQNAZ6R.js";
290
- import "./chunk-SXJDCRXE.js";
288
+ import "./chunk-QWGEOQHA.js";
289
+ import "./chunk-UYBLNGZ2.js";
290
+ import "./chunk-PWIEOATY.js";
291
+ import "./chunk-QVJMFZFW.js";
291
292
  import "./chunk-D72URWJE.js";
292
293
  import {
293
294
  installerOf
@@ -296,15 +297,15 @@ import {
296
297
  DRIVE_APP,
297
298
  PACKAGE,
298
299
  VERSION
299
- } from "./chunk-LSAIXPAX.js";
300
+ } from "./chunk-6HFZZ2PW.js";
300
301
  import {
301
302
  REASONS
302
303
  } from "./chunk-7JKECODO.js";
303
304
  import "./chunk-XWBPP2HX.js";
304
- import "./chunk-JEMBW6IO.js";
305
+ import "./chunk-ZVQDOKDY.js";
305
306
  import {
306
307
  storePath
307
- } from "./chunk-4G7WQNG7.js";
308
+ } from "./chunk-CRIEW4FP.js";
308
309
  import {
309
310
  processStreams,
310
311
  saveConfigFile,
@@ -2179,7 +2180,7 @@ var profileLocked2 = /* @__PURE__ */ __name((env, name) => import_proper_lockfil
2179
2180
  var removal = {
2180
2181
  signOut: /* @__PURE__ */ __name(async (profile, { env, keyring, mayRevoke }) => {
2181
2182
  const storage = readConfig(env).profiles[profile]?.storage ?? "keyring";
2182
- const { sessionKeeper } = await import("./tokens-VQDGSHRB.js");
2183
+ const { sessionKeeper } = await import("./tokens-A2GP4F34.js");
2183
2184
  const { revoked } = await sessionKeeper({
2184
2185
  env,
2185
2186
  name: profile,
@@ -2493,10 +2494,11 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((env, what) => {
2493
2494
  }, "refuseUnderReadOnly");
2494
2495
  var checkPolicy = /* @__PURE__ */ __name(async (env, profile, key, mutates, flags = {}, ask) => {
2495
2496
  const { levels, readOnly, lock } = policySettings(env, profile, flags);
2496
- const { level } = levelFor(levels, key, DEFAULT_LEVELS);
2497
+ const { level, key: named } = levelFor(levels, key, DEFAULT_LEVELS);
2497
2498
  if (mutates && lock)
2498
2499
  throw readOnlyRefusal(lock, "change local or Google data");
2499
- if (level === "deny" || mutates && (readOnly || level === "readonly"))
2500
+ const answerOnly = flags.fetches === true && flags.readOnly !== true && named === CEILING_KEY;
2501
+ if (level === "deny" || mutates && !answerOnly && (readOnly || level === "readonly"))
2500
2502
  throw new CliError("permission_error", "profile policy refuses this operation", {
2501
2503
  reason: "policy.denied",
2502
2504
  permission: key
@@ -2694,7 +2696,7 @@ var installModelCommands = /* @__PURE__ */ __name((program, { env, output, strea
2694
2696
  const download = /* @__PURE__ */ __name(async (kind, id, acceptTerms) => {
2695
2697
  if (policyFlags().offline)
2696
2698
  throw offlineRefused("downloading a model needs the network");
2697
- const { downloadImageModel, downloadTextModel } = await import("./services-5KARVUHK.js");
2699
+ const { downloadImageModel, downloadTextModel } = await import("./services-IQG2RVTO.js");
2698
2700
  const progress = /* @__PURE__ */ __name((line) => {
2699
2701
  if (!program.opts().quiet)
2700
2702
  streams.diagnostic(line);
@@ -22464,7 +22466,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
22464
22466
  const app = application(env, { file: args.clientFile, clientId: args.clientId, profile: selected() });
22465
22467
  if (!app.clientSecret)
22466
22468
  streams.diagnostic("your Google app has no secret here, and Google refuses a Desktop app without one: set DRIVE_GOOGLE_CLIENT_SECRET\n");
22467
- const { login } = await import("./login-RZOQN63N.js");
22469
+ const { login } = await import("./login-N243GGEE.js");
22468
22470
  output(itemOf(await login({
22469
22471
  env,
22470
22472
  profile: selected(),
@@ -22495,7 +22497,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
22495
22497
  const name = selected();
22496
22498
  const config = readConfig(env);
22497
22499
  const profile = activeProfile(env, name);
22498
- const { credentials } = await import("./tokens-VQDGSHRB.js");
22500
+ const { credentials } = await import("./tokens-A2GP4F34.js");
22499
22501
  const store = credentials(env, profile.storage, options.keyring);
22500
22502
  store.remove(name);
22501
22503
  writeConfig(env, config);
@@ -22542,7 +22544,7 @@ var selection = /* @__PURE__ */ __name((env, name, source) => {
22542
22544
  return { profile, state, options: { source, destination, collection: `google-drive:${profile.principal}`, env } };
22543
22545
  }, "selection");
22544
22546
  var checkStoreImport = /* @__PURE__ */ __name(async (env, name, source, bindings) => {
22545
- const { ensureSqlite } = await import("./sqlite-runtime-ILF6EFQJ.js");
22547
+ const { ensureSqlite } = await import("./sqlite-runtime-X4GB5PBV.js");
22546
22548
  await ensureSqlite();
22547
22549
  const { state, options } = selection(env, name, source);
22548
22550
  const preview = await previewDocumentTransfer({ ...options, bindings });
@@ -22751,7 +22753,7 @@ var installTranscriptCommands = /* @__PURE__ */ __name((program, context) => {
22751
22753
  // dist/commands/upgrade.js
22752
22754
  import { join as join8 } from "node:path";
22753
22755
 
22754
- // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/update/index.js
22756
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/update/index.js
22755
22757
  import { realpathSync } from "node:fs";
22756
22758
  import { fileURLToPath } from "node:url";
22757
22759
  var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
@@ -23178,7 +23180,7 @@ var openIndex = /* @__PURE__ */ __name(async (env, name, rescan = false) => {
23178
23180
  activeProfile(env, name);
23179
23181
  if (env.DRIVE_STORE)
23180
23182
  throw new CliError("configuration_error", "DRIVE_STORE has been retired; use MESSAGING_STORE to select the shared database", { reason: "store.override-retired" });
23181
- const { openAppStore } = await import("./cli-U4LSBYDV.js");
23183
+ const { openAppStore } = await import("./cli-L7P36YUH.js");
23182
23184
  const store = await openAppStore(env, { app: { command: "drive", version: VERSION }, provider: DRIVE_PROVIDER });
23183
23185
  const index = indexOver(store, env);
23184
23186
  try {
@@ -23229,7 +23231,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
23229
23231
  linkMessages: /* @__PURE__ */ __name((documents, since) => store.notes.linkMessages({ documents, ...since ? { since } : {} }), "linkMessages"),
23230
23232
  knowledge: documentKnowledge2(store, async (principal) => (await folder(principal, false))?.id),
23231
23233
  openPictures: /* @__PURE__ */ __name(async () => {
23232
- const { openPictureEmbedderFor, savePicture } = await import("./services-5KARVUHK.js");
23234
+ const { openPictureEmbedderFor, savePicture } = await import("./services-IQG2RVTO.js");
23233
23235
  const embedder = pictureEmbedder ?? await openPictureEmbedderFor({ env, command: "drive" });
23234
23236
  return {
23235
23237
  save: /* @__PURE__ */ __name((reference, bytes) => savePicture(store, { ref: reference }, bytes, { embedder }), "save"),
@@ -23248,7 +23250,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
23248
23250
  has_more: false,
23249
23251
  meaning_skipped: "this Google account has no imported sources"
23250
23252
  };
23251
- const { searchNotes } = await import("./services-5KARVUHK.js");
23253
+ const { searchNotes } = await import("./services-IQG2RVTO.js");
23252
23254
  const result = await searchNotes(store, query, {
23253
23255
  ...options,
23254
23256
  folderIds: selected ? [selected.id] : [],
@@ -23281,7 +23283,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
23281
23283
  };
23282
23284
  }, "search"),
23283
23285
  embed: /* @__PURE__ */ __name(async (max) => {
23284
- const { embedNotes } = await import("./services-5KARVUHK.js");
23286
+ const { embedNotes } = await import("./services-IQG2RVTO.js");
23285
23287
  return embedNotes(store, { maxChunks: max, env, command: "drive" });
23286
23288
  }, "embed"),
23287
23289
  close: /* @__PURE__ */ __name(() => store.close(), "close")
@@ -23568,7 +23570,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23568
23570
  }, "output");
23569
23571
  const signal = /* @__PURE__ */ __name(() => environment().signal, "signal");
23570
23572
  const signedIn = /* @__PURE__ */ __name(async (name, scope2) => {
23571
- const { authorizedClient, checkAuthorization } = await import("./tokens-VQDGSHRB.js");
23573
+ const { authorizedClient, checkAuthorization } = await import("./tokens-A2GP4F34.js");
23572
23574
  const client = authorizedClient(env, name, environment().keyring, signal());
23573
23575
  await checkAuthorization(client, scope2);
23574
23576
  return client;
@@ -23578,7 +23580,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23578
23580
  const fake = environment().source;
23579
23581
  if (fake)
23580
23582
  return fake(name);
23581
- const [{ googleSource }, client] = await Promise.all([import("./google-HPX52KMC.js"), signedIn(name)]);
23583
+ const [{ googleSource }, client] = await Promise.all([import("./google-XXHSMTVK.js"), signedIn(name)]);
23582
23584
  return googleSource(client);
23583
23585
  }, "source");
23584
23586
  const withIndex = /* @__PURE__ */ __name(async (fn, profile) => {
@@ -23723,7 +23725,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23723
23725
  if (fake)
23724
23726
  return await fake.call(method, params, body);
23725
23727
  const [{ googleApi }, client] = await Promise.all([
23726
- import("./google-api-HIMN4XL5.js"),
23728
+ import("./google-api-SQQ4BSNR.js"),
23727
23729
  signedIn(selected(), descriptor.scope)
23728
23730
  ]);
23729
23731
  return await googleApi(client).call(method, params, body);
@@ -23749,7 +23751,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23749
23751
  if (fake)
23750
23752
  return fake(id, mime);
23751
23753
  const [{ googleDownload }, client] = await Promise.all([
23752
- import("./google-api-HIMN4XL5.js"),
23754
+ import("./google-api-SQQ4BSNR.js"),
23753
23755
  signedIn(selected(), apiMethod(method).scope)
23754
23756
  ]);
23755
23757
  return googleDownload(client)(id, mime);
@@ -23767,7 +23769,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23767
23769
  let request = environment().uploadRequest;
23768
23770
  if (!request) {
23769
23771
  const [{ googleUploadRequest }, client] = await Promise.all([
23770
- import("./google-api-HIMN4XL5.js"),
23772
+ import("./google-api-SQQ4BSNR.js"),
23771
23773
  signedIn(selected(), apiMethod(method).scope)
23772
23774
  ]);
23773
23775
  request = googleUploadRequest(client);
@@ -23914,8 +23916,9 @@ Availability: unavailable \u2014 ${availability.reason}
23914
23916
  }
23915
23917
  const mutates = method ? apiMethod(method).mutates : writes(metadata.effects);
23916
23918
  const key = method ? `api.${method}` : path.join(".");
23919
+ const fetches = !method && fetchesOnly(action);
23917
23920
  for (const permission of method ? methodPolicyKeys(method) : [key])
23918
- await checkPolicy(env, selected(), permission, mutates, flags, askOnce);
23921
+ await checkPolicy(env, selected(), permission, mutates, { ...flags, fetches }, askOnce);
23919
23922
  checkedMethod = method;
23920
23923
  if (flags.offline && (method || metadata.effects?.remote !== "none"))
23921
23924
  throw offlineRefused();
@@ -23979,7 +23982,7 @@ var mcpCommand = /* @__PURE__ */ __name(() => {
23979
23982
  const environment = environmentOf(action);
23980
23983
  if (environment.api)
23981
23984
  return;
23982
- const { grantAvailability } = await import("./grants-RO42I6E4.js");
23985
+ const { grantAvailability } = await import("./grants-2U4JVT6O.js");
23983
23986
  availability = grantAvailability(rootOf(root), environment.env ?? process.env, environment.keyring);
23984
23987
  });
23985
23988
  }, "mcpCommand");
@@ -3,8 +3,8 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  pasteHint,
5
5
  readSecret
6
- } from "./chunk-FOMQ4MG3.js";
7
- import "./chunk-JJHDV32D.js";
6
+ } from "./chunk-ZAIE3G5I.js";
7
+ import "./chunk-PGPHEC2X.js";
8
8
  import "./chunk-MW46BLWH.js";
9
9
  import "./chunk-PV3AWPHR.js";
10
10
  import "./chunk-Y5E2WNWB.js";
@@ -8,7 +8,7 @@ import {
8
8
  openRecognizer,
9
9
  openSpeechCutter,
10
10
  toModelRate
11
- } from "./chunk-JY2GZDJL.js";
11
+ } from "./chunk-DYLYH7VE.js";
12
12
  import "./chunk-MW46BLWH.js";
13
13
  import "./chunk-PV3AWPHR.js";
14
14
  import "./chunk-Y5E2WNWB.js";
@@ -8,14 +8,14 @@ import {
8
8
  openRemote,
9
9
  remoteKey,
10
10
  remoteModel
11
- } from "./chunk-SJE7UGOW.js";
12
- import "./chunk-CWDC6QJM.js";
13
- import "./chunk-BHSLMJF7.js";
11
+ } from "./chunk-FAMXUI2X.js";
12
+ import "./chunk-O7T3WGCV.js";
13
+ import "./chunk-MWCPKUU4.js";
14
14
  import "./chunk-5DPV7X27.js";
15
- import "./chunk-AJ3DFPRT.js";
16
- import "./chunk-T2VAEDJS.js";
17
- import "./chunk-MEQNAZ6R.js";
18
- import "./chunk-4G7WQNG7.js";
15
+ import "./chunk-6QR7NKMG.js";
16
+ import "./chunk-5W65QTYS.js";
17
+ import "./chunk-PWIEOATY.js";
18
+ import "./chunk-CRIEW4FP.js";
19
19
  import "./chunk-MW46BLWH.js";
20
20
  import "./chunk-PV3AWPHR.js";
21
21
  import "./chunk-Y5E2WNWB.js";
@@ -4,10 +4,10 @@ import {
4
4
  defaultThreads,
5
5
  loadModel,
6
6
  truncated
7
- } from "./chunk-BHSLMJF7.js";
7
+ } from "./chunk-MWCPKUU4.js";
8
8
  import "./chunk-5DPV7X27.js";
9
- import "./chunk-T2VAEDJS.js";
10
- import "./chunk-4G7WQNG7.js";
9
+ import "./chunk-5W65QTYS.js";
10
+ import "./chunk-CRIEW4FP.js";
11
11
  import "./chunk-MW46BLWH.js";
12
12
  import "./chunk-PV3AWPHR.js";
13
13
  import "./chunk-Y5E2WNWB.js";
@@ -19,7 +19,7 @@ import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
23
23
  var openReranker = /* @__PURE__ */ __name(async (model, directory, { threads = defaultThreads() } = {}) => {
24
24
  const { ort, tokenizer, session } = await loadModel(model, directory, threads);
25
25
  const typeIds = session.inputNames.includes("token_type_ids");
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  listen
5
- } from "./chunk-ZU5VQYNY.js";
5
+ } from "./chunk-TI2OANJZ.js";
6
6
  import {
7
7
  ownerLogin
8
- } from "./chunk-ZK46UHDP.js";
8
+ } from "./chunk-WGX4DZPW.js";
9
9
  import {
10
10
  WebStandardStreamableHTTPServerTransport,
11
11
  createMcpHandler,
@@ -20,9 +20,9 @@ import {
20
20
  calledTools,
21
21
  httpActivityFile,
22
22
  httpLock
23
- } from "./chunk-ULH3TNUP.js";
24
- import "./chunk-5DMPGTNR.js";
25
- import "./chunk-WWW7YTFG.js";
23
+ } from "./chunk-NV75QPML.js";
24
+ import "./chunk-U52QE4QV.js";
25
+ import "./chunk-UIKVP23D.js";
26
26
  import "./chunk-MW46BLWH.js";
27
27
  import "./chunk-PV3AWPHR.js";
28
28
  import "./chunk-Y5E2WNWB.js";
@@ -36,7 +36,7 @@ import {
36
36
  __name
37
37
  } from "./chunk-ZVVMGPBJ.js";
38
38
 
39
- // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
39
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
40
40
  import { randomUUID } from "node:crypto";
41
41
  var MCP_PATH = "/mcp";
42
42
  var AS_METADATA = "/.well-known/oauth-authorization-server";
@@ -0,0 +1,74 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ PER_RUN,
5
+ createServer,
6
+ envelope,
7
+ serveOverHttpUntilStopped,
8
+ serveOverStdio
9
+ } from "./chunk-DIZBJLPM.js";
10
+ import "./chunk-SOS4U2RF.js";
11
+ import "./chunk-ULNN3LCY.js";
12
+ import "./chunk-CK2SQ2CE.js";
13
+ import "./chunk-AIEMFRBU.js";
14
+ import "./chunk-R5FTCNLJ.js";
15
+ import "./chunk-WCNTDETD.js";
16
+ import "./chunk-5D4AEUVA.js";
17
+ import "./chunk-5G2BY4B6.js";
18
+ import "./chunk-2UHQVRH2.js";
19
+ import "./chunk-GTLXBAJV.js";
20
+ import "./chunk-Q6BD6RUH.js";
21
+ import "./chunk-YYIWPH53.js";
22
+ import "./chunk-D4MVEOU2.js";
23
+ import "./chunk-FIVFP53N.js";
24
+ import "./chunk-NV75QPML.js";
25
+ import "./chunk-U52QE4QV.js";
26
+ import "./chunk-F7KAMSXA.js";
27
+ import "./chunk-FAMXUI2X.js";
28
+ import "./chunk-O7T3WGCV.js";
29
+ import "./chunk-QRSPFCRY.js";
30
+ import "./chunk-MWCPKUU4.js";
31
+ import "./chunk-5DPV7X27.js";
32
+ import "./chunk-PJ3FKBXG.js";
33
+ import "./chunk-EOC7RHJ2.js";
34
+ import "./chunk-MLSXHTUB.js";
35
+ import "./chunk-WUFZGPXX.js";
36
+ import "./chunk-J5LXL435.js";
37
+ import "./chunk-7A77GYCE.js";
38
+ import "./chunk-KPKIHJIT.js";
39
+ import "./chunk-MOKEB656.js";
40
+ import "./chunk-UIKVP23D.js";
41
+ import "./chunk-6QR7NKMG.js";
42
+ import "./chunk-IVOG6T6P.js";
43
+ import "./chunk-5W65QTYS.js";
44
+ import "./chunk-PGPHEC2X.js";
45
+ import "./chunk-6WAC2LOS.js";
46
+ import "./chunk-BXHFJTU5.js";
47
+ import "./chunk-UFPRP7MG.js";
48
+ import "./chunk-CVAJMRRD.js";
49
+ import "./chunk-AXYG2DDY.js";
50
+ import "./chunk-UPCEHSIZ.js";
51
+ import "./chunk-QWGEOQHA.js";
52
+ import "./chunk-UYBLNGZ2.js";
53
+ import "./chunk-PWIEOATY.js";
54
+ import "./chunk-QVJMFZFW.js";
55
+ import "./chunk-D72URWJE.js";
56
+ import "./chunk-M4OP5ASJ.js";
57
+ import "./chunk-XWBPP2HX.js";
58
+ import "./chunk-ZVQDOKDY.js";
59
+ import "./chunk-CRIEW4FP.js";
60
+ import "./chunk-MW46BLWH.js";
61
+ import "./chunk-PV3AWPHR.js";
62
+ import "./chunk-Y5E2WNWB.js";
63
+ import "./chunk-HCZYJMBP.js";
64
+ import "./chunk-5TK2YQCO.js";
65
+ import "./chunk-JRFKCYMW.js";
66
+ import "./chunk-EA2OB75T.js";
67
+ import "./chunk-ZVVMGPBJ.js";
68
+ export {
69
+ PER_RUN,
70
+ createServer,
71
+ envelope,
72
+ serveOverHttpUntilStopped,
73
+ serveOverStdio
74
+ };