@wirecat/drive-cli 0.59.0 → 0.60.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 (156) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bin/drive.js.map +1 -1
  3. package/dist/bundle/{all-profiles-CVISDGMF.js → all-profiles-537I27Z4.js} +11 -11
  4. package/dist/bundle/{anthropic-WLNQC23G.js → anthropic-X4NWVHDF.js} +7 -7
  5. package/dist/bundle/{app-server-P2VOONXF.js → app-server-KSHJKKS7.js} +47 -47
  6. package/dist/bundle/{bun-CDFBNTKV.js → bun-WTBGGCUC.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-MNZICITP.js → bun-sqlite-T7Y3JFFD.js} +6 -6
  8. package/dist/bundle/{chunk-YV4ABH6J.js → chunk-22ATLSNK.js} +3 -3
  9. package/dist/bundle/{chunk-CBM2XAEZ.js → chunk-246P2DCT.js} +3 -3
  10. package/dist/bundle/{chunk-H2BKXPBL.js → chunk-3TQHIHZI.js} +2 -2
  11. package/dist/bundle/{chunk-IGF6EXBR.js → chunk-4CBZEAQ7.js} +32 -32
  12. package/dist/bundle/{chunk-L5SE2XZP.js → chunk-4VHBDVY2.js} +1 -1
  13. package/dist/bundle/{chunk-IIP43FQJ.js → chunk-4XZXH2NM.js} +1 -1
  14. package/dist/bundle/{chunk-UWVNRPT7.js → chunk-57QVQGBE.js} +21 -21
  15. package/dist/bundle/{chunk-A6SLYOP2.js → chunk-5AMRCBMP.js} +67 -34
  16. package/dist/bundle/{chunk-ZSMCJKGP.js → chunk-5XHLQZAG.js} +27 -26
  17. package/dist/bundle/{chunk-YADXWQHV.js → chunk-67QXMO2G.js} +25 -25
  18. package/dist/bundle/{chunk-36B7AIGP.js → chunk-6HTKB4WC.js} +1 -1
  19. package/dist/bundle/{chunk-5C7K6XIT.js → chunk-73MNUSP3.js} +1 -1
  20. package/dist/bundle/{chunk-3KNZADHJ.js → chunk-73TTP6ET.js} +431 -187
  21. package/dist/bundle/{chunk-IBZ3IBO4.js → chunk-77C5XRH3.js} +5 -5
  22. package/dist/bundle/{chunk-PGKIOSN3.js → chunk-77YTRBL6.js} +10 -10
  23. package/dist/bundle/{chunk-TI55J3BA.js → chunk-ALWTUDZF.js} +3 -3
  24. package/dist/bundle/{chunk-HWLLVLAB.js → chunk-AXWXQNTC.js} +13 -10
  25. package/dist/bundle/{chunk-P7WPYKSB.js → chunk-CKGHRWVR.js} +2 -2
  26. package/dist/bundle/{chunk-JW2CVCUH.js → chunk-D6WIWOQC.js} +3 -3
  27. package/dist/bundle/{chunk-A6EG7ZDS.js → chunk-DMHGWL5D.js} +12 -12
  28. package/dist/bundle/{chunk-FICVPYE4.js → chunk-DQDKLZAK.js} +47 -47
  29. package/dist/bundle/{chunk-JSDVK3JA.js → chunk-EHAI773E.js} +1 -1
  30. package/dist/bundle/{chunk-UQPKAY6I.js → chunk-FO4TCH6P.js} +1 -1
  31. package/dist/bundle/{chunk-GJ4ZCIOP.js → chunk-FTZNUZO7.js} +3 -3
  32. package/dist/bundle/{chunk-6C6255U6.js → chunk-FZOCQQ66.js} +11 -11
  33. package/dist/bundle/{chunk-EHEZSV6I.js → chunk-GD6TQ6U4.js} +8 -8
  34. package/dist/bundle/{chunk-XCOCPXCM.js → chunk-GVRS5AIH.js} +2 -2
  35. package/dist/bundle/{chunk-DI5Z4SH5.js → chunk-HCJG7ENG.js} +2 -2
  36. package/dist/bundle/{chunk-AD62XJKO.js → chunk-HFGR33KD.js} +24 -24
  37. package/dist/bundle/{chunk-K4LXGZTE.js → chunk-HQVIK6PM.js} +36 -18
  38. package/dist/bundle/{chunk-YU3PTU3D.js → chunk-IRZ7OF3F.js} +1 -1
  39. package/dist/bundle/{chunk-LJ7E4HLQ.js → chunk-IXN7Y6JA.js} +1 -1
  40. package/dist/bundle/{chunk-7QTVIZII.js → chunk-JGUJJNGZ.js} +790 -325
  41. package/dist/bundle/{chunk-FVQCM7IQ.js → chunk-JQLIM6BH.js} +4 -4
  42. package/dist/bundle/{chunk-BSGOM3BD.js → chunk-K6XVRA6U.js} +1 -1
  43. package/dist/bundle/{chunk-3VSUT6BD.js → chunk-KEXTTZJM.js} +2 -2
  44. package/dist/bundle/{chunk-V36RIXFA.js → chunk-LJ77Y3TK.js} +1 -1
  45. package/dist/bundle/{chunk-II7LST64.js → chunk-LQSRVQ3V.js} +3 -2
  46. package/dist/bundle/{chunk-OKXSTWKW.js → chunk-MVNPE5FZ.js} +7 -7
  47. package/dist/bundle/{chunk-M6I2SQN7.js → chunk-MXP35VPO.js} +2 -2
  48. package/dist/bundle/{chunk-TJXPJ3A5.js → chunk-N7S2UPF3.js} +135 -60
  49. package/dist/bundle/{chunk-3KJTJDDT.js → chunk-O37ESNAP.js} +17 -17
  50. package/dist/bundle/{chunk-EVETU3TF.js → chunk-OMKUBCNN.js} +7 -7
  51. package/dist/bundle/{chunk-MUUHUHWC.js → chunk-OYNUBWD2.js} +1 -22
  52. package/dist/bundle/{chunk-PAEVBAM3.js → chunk-PDYHEWKG.js} +4 -4
  53. package/dist/bundle/{chunk-EORMZCVF.js → chunk-PETFPXLU.js} +2 -2
  54. package/dist/bundle/{chunk-GI5JBGXH.js → chunk-PPL5ASW2.js} +613 -372
  55. package/dist/bundle/{chunk-B5GBJ35N.js → chunk-QIJWSKZL.js} +2 -2
  56. package/dist/bundle/{chunk-OZH4ALTI.js → chunk-S36HRPNS.js} +1 -1
  57. package/dist/bundle/{chunk-KFZUODXB.js → chunk-SBHSNOU4.js} +34 -18
  58. package/dist/bundle/{chunk-F3FOL42A.js → chunk-SZXI4OXX.js} +1 -1
  59. package/dist/bundle/{chunk-3U22QTU6.js → chunk-TKW4QWCY.js} +12 -0
  60. package/dist/bundle/{chunk-6CQO2FIN.js → chunk-TVQDMP2F.js} +391 -282
  61. package/dist/bundle/{chunk-GT5KTGCN.js → chunk-TXMTMEHW.js} +4 -4
  62. package/dist/bundle/{chunk-IADOBOKB.js → chunk-UNJE63JK.js} +1 -1
  63. package/dist/bundle/{chunk-HIOJRPCT.js → chunk-UTFATA4K.js} +1 -1
  64. package/dist/bundle/{chunk-LPHMAQJQ.js → chunk-UVLSWLPZ.js} +15 -15
  65. package/dist/bundle/{chunk-KPRGTTJH.js → chunk-UVYVIHEA.js} +1 -1
  66. package/dist/bundle/{chunk-MKCNUI72.js → chunk-V2VMBM7O.js} +1 -1
  67. package/dist/bundle/{chunk-QTM7USFA.js → chunk-V7QMHMR3.js} +5 -5
  68. package/dist/bundle/{chunk-TFH5X46A.js → chunk-VRW6ZDTH.js} +18 -18
  69. package/dist/bundle/{chunk-OMMEQJOB.js → chunk-XDIEQ2CE.js} +2 -2
  70. package/dist/bundle/{chunk-MEAPA4EZ.js → chunk-XFXRGQXJ.js} +2 -2
  71. package/dist/bundle/{chunk-HMZAMHKN.js → chunk-YDN2RH5S.js} +1 -1
  72. package/dist/bundle/{chunk-P3ZTW2ZM.js → chunk-YGG7UA3C.js} +4 -4
  73. package/dist/bundle/{chunk-VT6GZAF4.js → chunk-YYHKVOVK.js} +4 -4
  74. package/dist/bundle/{chunk-V42KAPU3.js → chunk-ZPQS7XJA.js} +3 -3
  75. package/dist/bundle/command-contract-NUIWUVYB.js +39 -0
  76. package/dist/bundle/{decode-XTOMXMGN.js → decode-35N57AFW.js} +6 -6
  77. package/dist/bundle/{dispatch-T6TW2JJB.js → dispatch-CWXZW3PL.js} +1 -1
  78. package/dist/bundle/drive.js +10 -10
  79. package/dist/bundle/{echarts-RKKIOYVV.js → echarts-3P3QZWMU.js} +2 -2
  80. package/dist/bundle/{embed-STHKKA6G.js → embed-Q6Q5IOJQ.js} +7 -7
  81. package/dist/bundle/{embedder-3XZEWHRO.js → embedder-D44JDTAA.js} +10 -10
  82. package/dist/bundle/{entry-CNOYSSSD.js → entry-ZHCNI7XO.js} +9 -9
  83. package/dist/bundle/{failure-DNQYXP2T.js → failure-GRMMSDCZ.js} +2 -2
  84. package/dist/bundle/{first-run-F2SI24PK.js → first-run-3DC2SDWM.js} +10 -10
  85. package/dist/bundle/first-screen-YJF4YODC.js +37 -0
  86. package/dist/bundle/{google-BYNSAIQI.js → google-6ZZDKFBN.js} +10 -10
  87. package/dist/bundle/{google-api-4VTZH7OP.js → google-api-E6MOJ4ZD.js} +52 -52
  88. package/dist/bundle/grants-GWXDH5GM.js +105 -0
  89. package/dist/bundle/{identity-ARDPFYV5.js → identity-TID7S5NE.js} +4 -4
  90. package/dist/bundle/{instructions-N3OH5X2Y.js → instructions-ANJN4HV3.js} +1 -1
  91. package/dist/bundle/{login-4VQEC7VI.js → login-BGMK2ABH.js} +59 -61
  92. package/dist/bundle/{node-YU5JBNAA.js → node-VOB45ES2.js} +2 -2
  93. package/dist/bundle/{node-sqlite-3C6PSBIW.js → node-sqlite-TSX6XQY2.js} +7 -7
  94. package/dist/bundle/{oauth-D6NJFPYU.js → oauth-CEOYXW6C.js} +8 -8
  95. package/dist/bundle/{open-M2V2VYXO.js → open-3USWHGNR.js} +6 -6
  96. package/dist/bundle/{openai-ST2IWNUX.js → openai-YZ5VGPIP.js} +14 -14
  97. package/dist/bundle/{process-PYNNBBTV.js → process-44JS2W7L.js} +1 -1
  98. package/dist/bundle/{program-Q4VWV2MR.js → program-TZLAFKJV.js} +99 -82
  99. package/dist/bundle/{prompt-MFIOJMAF.js → prompt-SG7LAOXW.js} +6 -6
  100. package/dist/bundle/{reasons-LOQ5J73F.js → reasons-ZK3U3CIN.js} +3 -3
  101. package/dist/bundle/{recognize-FBLMWXNE.js → recognize-OFW7HWTM.js} +5 -5
  102. package/dist/bundle/{remote-XC3OXE4T.js → remote-YBDRZQZ5.js} +8 -8
  103. package/dist/bundle/{rerank-2XMKKF4S.js → rerank-TQQNS5FJ.js} +8 -8
  104. package/dist/bundle/{serve-Q2BQHNZB.js → serve-OPZXMVLH.js} +10 -10
  105. package/dist/bundle/{server-42HPV3AH.js → server-2D6DDIK5.js} +39 -39
  106. package/dist/bundle/server-R6G2O772.js +70 -0
  107. package/dist/bundle/{services-WU22S2MU.js → services-34WKT3NN.js} +29 -27
  108. package/dist/bundle/{sqlite-runtime-CSO6K6B2.js → sqlite-runtime-WPUMKLUV.js} +7 -7
  109. package/dist/bundle/{start-TZWKM4AH.js → start-ZXUJZ4JV.js} +1 -1
  110. package/dist/bundle/{state-FLUT7U7R.js → state-AV2RB3AQ.js} +7 -7
  111. package/dist/bundle/{store-TG6622NG.js → store-3M7N2Q5T.js} +15 -15
  112. package/dist/bundle/{store-HDWMJ44E.js → store-YKV4GAMS.js} +25 -19
  113. package/dist/bundle/store-maintenance-command-WDXNY4ZF.js +60 -0
  114. package/dist/bundle/tokens-F63RXXEF.js +103 -0
  115. package/dist/commands/config.d.ts.map +1 -1
  116. package/dist/commands/config.js +14 -5
  117. package/dist/commands/config.js.map +1 -1
  118. package/dist/commands/context.d.ts +4 -2
  119. package/dist/commands/context.d.ts.map +1 -1
  120. package/dist/commands/context.js.map +1 -1
  121. package/dist/commands/session.d.ts.map +1 -1
  122. package/dist/commands/session.js +5 -2
  123. package/dist/commands/session.js.map +1 -1
  124. package/dist/config.d.ts +7 -0
  125. package/dist/config.d.ts.map +1 -1
  126. package/dist/config.js +22 -3
  127. package/dist/config.js.map +1 -1
  128. package/dist/errors.js +4 -4
  129. package/dist/errors.js.map +1 -1
  130. package/dist/login.d.ts.map +1 -1
  131. package/dist/login.js +3 -5
  132. package/dist/login.js.map +1 -1
  133. package/dist/program.d.ts.map +1 -1
  134. package/dist/program.js +5 -1
  135. package/dist/program.js.map +1 -1
  136. package/dist/reasons.d.ts +1 -1
  137. package/dist/reasons.d.ts.map +1 -1
  138. package/dist/reasons.js +1 -22
  139. package/dist/reasons.js.map +1 -1
  140. package/dist/registry.d.ts +1 -1
  141. package/dist/registry.d.ts.map +1 -1
  142. package/dist/registry.js +2 -1
  143. package/dist/registry.js.map +1 -1
  144. package/dist/tokens.js +5 -5
  145. package/dist/tokens.js.map +1 -1
  146. package/dist/upload.js +1 -1
  147. package/dist/upload.js.map +1 -1
  148. package/dist/version.d.ts +1 -1
  149. package/dist/version.js +1 -1
  150. package/package.json +2 -2
  151. package/dist/bundle/command-contract-LQDNHZJU.js +0 -39
  152. package/dist/bundle/first-screen-TYYF6VXY.js +0 -37
  153. package/dist/bundle/grants-EUQXSICG.js +0 -105
  154. package/dist/bundle/server-EWZYN323.js +0 -70
  155. package/dist/bundle/store-maintenance-command-RHWRUREJ.js +0 -60
  156. package/dist/bundle/tokens-TXYURU4S.js +0 -103
@@ -19,7 +19,7 @@ import {
19
19
  describeDriveProgram,
20
20
  examples,
21
21
  markProfileFree
22
- } from "./chunk-II7LST64.js";
22
+ } from "./chunk-LQSRVQ3V.js";
23
23
  import {
24
24
  DEFAULTS_ONLY,
25
25
  DEFAULT_LEVELS,
@@ -28,6 +28,7 @@ import {
28
28
  application,
29
29
  checkTextLimit,
30
30
  configIssues,
31
+ configPath,
31
32
  configuration,
32
33
  configuredMirrors,
33
34
  configuredSessions,
@@ -44,8 +45,9 @@ import {
44
45
  selectedFolders,
45
46
  textLimit,
46
47
  unknownProfile,
48
+ withDefaults,
47
49
  writeConfig
48
- } from "./chunk-K4LXGZTE.js";
50
+ } from "./chunk-HQVIK6PM.js";
49
51
  import {
50
52
  blockKey,
51
53
  blocksMarkdown,
@@ -64,7 +66,7 @@ import {
64
66
  syncDocuments,
65
67
  syncMirrors,
66
68
  watchMirrors
67
- } from "./chunk-UWVNRPT7.js";
69
+ } from "./chunk-57QVQGBE.js";
68
70
  import {
69
71
  apiMethod,
70
72
  apiMethods,
@@ -73,7 +75,7 @@ import {
73
75
  schemas,
74
76
  validateApiParams,
75
77
  validateRequest
76
- } from "./chunk-B5GBJ35N.js";
78
+ } from "./chunk-QIJWSKZL.js";
77
79
  import {
78
80
  DISCOVERY_DESCRIPTIONS,
79
81
  MEMO_SCENARIOS,
@@ -103,24 +105,24 @@ import {
103
105
  skillCommand,
104
106
  suggest,
105
107
  upgradeCommand
106
- } from "./chunk-6CQO2FIN.js";
108
+ } from "./chunk-TVQDMP2F.js";
107
109
  import {
108
110
  googleError
109
- } from "./chunk-FVQCM7IQ.js";
110
- import "./chunk-LJ7E4HLQ.js";
111
+ } from "./chunk-JQLIM6BH.js";
112
+ import "./chunk-IXN7Y6JA.js";
111
113
  import "./chunk-SBZB7HMU.js";
112
- import "./chunk-YU3PTU3D.js";
113
- import "./chunk-A6SLYOP2.js";
114
- import "./chunk-KFZUODXB.js";
114
+ import "./chunk-IRZ7OF3F.js";
115
+ import "./chunk-5AMRCBMP.js";
116
+ import "./chunk-SBHSNOU4.js";
115
117
  import {
116
118
  modelGateway,
117
119
  storeInfo
118
- } from "./chunk-FICVPYE4.js";
120
+ } from "./chunk-DQDKLZAK.js";
119
121
  import {
120
122
  RecipientList,
121
123
  SendJournal,
122
124
  sendGuard
123
- } from "./chunk-ZSMCJKGP.js";
125
+ } from "./chunk-5XHLQZAG.js";
124
126
  import {
125
127
  LIST_QUERY_GUIDE,
126
128
  listQuery,
@@ -131,13 +133,13 @@ import {
131
133
  typedQuery,
132
134
  unfilteredQuery,
133
135
  withQuery
134
- } from "./chunk-TFH5X46A.js";
136
+ } from "./chunk-VRW6ZDTH.js";
135
137
  import {
136
138
  commandsText,
137
139
  inSection
138
- } from "./chunk-EVETU3TF.js";
140
+ } from "./chunk-OMKUBCNN.js";
139
141
  import "./chunk-HTQTIKWP.js";
140
- import "./chunk-PAEVBAM3.js";
142
+ import "./chunk-PDYHEWKG.js";
141
143
  import {
142
144
  FETCH,
143
145
  InvalidArgumentError,
@@ -167,30 +169,31 @@ import {
167
169
  renderAnswer,
168
170
  resolveAISettings,
169
171
  rootOf,
172
+ settingRows,
170
173
  snakeKeys
171
- } from "./chunk-3KNZADHJ.js";
172
- import "./chunk-EHEZSV6I.js";
173
- import "./chunk-6C6255U6.js";
174
+ } from "./chunk-73TTP6ET.js";
175
+ import "./chunk-GD6TQ6U4.js";
176
+ import "./chunk-FZOCQQ66.js";
174
177
  import {
175
178
  setupPermissionCeiling
176
- } from "./chunk-JW2CVCUH.js";
177
- import "./chunk-HWLLVLAB.js";
179
+ } from "./chunk-D6WIWOQC.js";
180
+ import "./chunk-AXWXQNTC.js";
178
181
  import {
179
182
  readOnlyLockOf,
180
183
  readOnlyRefusal
181
- } from "./chunk-IIP43FQJ.js";
182
- import "./chunk-GT5KTGCN.js";
183
- import "./chunk-GJ4ZCIOP.js";
184
- import "./chunk-5C7K6XIT.js";
185
- import "./chunk-DI5Z4SH5.js";
184
+ } from "./chunk-4XZXH2NM.js";
185
+ import "./chunk-TXMTMEHW.js";
186
+ import "./chunk-FTZNUZO7.js";
187
+ import "./chunk-73MNUSP3.js";
188
+ import "./chunk-HCJG7ENG.js";
186
189
  import {
187
190
  newOperationId
188
- } from "./chunk-7QTVIZII.js";
191
+ } from "./chunk-JGUJJNGZ.js";
189
192
  import {
190
193
  columnName,
191
194
  readSpreadsheet
192
- } from "./chunk-YADXWQHV.js";
193
- import "./chunk-A6EG7ZDS.js";
195
+ } from "./chunk-67QXMO2G.js";
196
+ import "./chunk-DMHGWL5D.js";
194
197
  import {
195
198
  CEILING_KEY,
196
199
  LEVELS,
@@ -199,40 +202,40 @@ import {
199
202
  layerPermissions,
200
203
  levelFor,
201
204
  parseDuration
202
- } from "./chunk-AD62XJKO.js";
203
- import "./chunk-HMZAMHKN.js";
205
+ } from "./chunk-HFGR33KD.js";
206
+ import "./chunk-YDN2RH5S.js";
204
207
  import {
205
208
  latestVersion,
206
209
  runUpdate,
207
210
  updateNotice
208
- } from "./chunk-P7WPYKSB.js";
211
+ } from "./chunk-CKGHRWVR.js";
209
212
  import "./chunk-ZYCLPJ7U.js";
210
- import "./chunk-JSDVK3JA.js";
211
- import "./chunk-EORMZCVF.js";
212
- import "./chunk-P3ZTW2ZM.js";
213
+ import "./chunk-EHAI773E.js";
214
+ import "./chunk-PETFPXLU.js";
215
+ import "./chunk-YGG7UA3C.js";
213
216
  import "./chunk-5DPV7X27.js";
214
- import "./chunk-TI55J3BA.js";
217
+ import "./chunk-ALWTUDZF.js";
215
218
  import {
216
219
  applyDocumentTransfer,
217
220
  previewDocumentTransfer
218
- } from "./chunk-LPHMAQJQ.js";
221
+ } from "./chunk-UVLSWLPZ.js";
219
222
  import {
220
223
  note
221
- } from "./chunk-VT6GZAF4.js";
222
- import "./chunk-H2BKXPBL.js";
224
+ } from "./chunk-YYHKVOVK.js";
225
+ import "./chunk-3TQHIHZI.js";
223
226
  import {
224
227
  CATALOG_QUERY,
225
228
  IMPORTED_DOCUMENT_QUERY,
226
229
  openStore
227
- } from "./chunk-GI5JBGXH.js";
228
- import "./chunk-IADOBOKB.js";
230
+ } from "./chunk-PPL5ASW2.js";
231
+ import "./chunk-UNJE63JK.js";
229
232
  import {
230
233
  FACT_STATUSES,
231
234
  FACT_TYPES,
232
235
  MEMORY_KINDS,
233
236
  MEMORY_SCOPES,
234
237
  MEMORY_STATUSES
235
- } from "./chunk-TJXPJ3A5.js";
238
+ } from "./chunk-N7S2UPF3.js";
236
239
  import {
237
240
  dateRange,
238
241
  defineQuery,
@@ -242,17 +245,17 @@ import {
242
245
  timezoneOf,
243
246
  validateQuery,
244
247
  zonedMoment
245
- } from "./chunk-L5SE2XZP.js";
246
- import "./chunk-HIOJRPCT.js";
247
- import "./chunk-OKXSTWKW.js";
248
- import "./chunk-IBZ3IBO4.js";
248
+ } from "./chunk-4VHBDVY2.js";
249
+ import "./chunk-UTFATA4K.js";
250
+ import "./chunk-MVNPE5FZ.js";
251
+ import "./chunk-77C5XRH3.js";
249
252
  import {
250
253
  storePath
251
- } from "./chunk-3VSUT6BD.js";
252
- import "./chunk-QTM7USFA.js";
253
- import "./chunk-BSGOM3BD.js";
254
- import "./chunk-OMMEQJOB.js";
255
- import "./chunk-F3FOL42A.js";
254
+ } from "./chunk-KEXTTZJM.js";
255
+ import "./chunk-V7QMHMR3.js";
256
+ import "./chunk-K6XVRA6U.js";
257
+ import "./chunk-XDIEQ2CE.js";
258
+ import "./chunk-SZXI4OXX.js";
256
259
  import "./chunk-D72URWJE.js";
257
260
  import {
258
261
  installerOf
@@ -261,21 +264,21 @@ import {
261
264
  DRIVE_APP,
262
265
  PACKAGE,
263
266
  VERSION
264
- } from "./chunk-MEAPA4EZ.js";
267
+ } from "./chunk-XFXRGQXJ.js";
265
268
  import {
266
269
  REASONS
267
- } from "./chunk-MUUHUHWC.js";
270
+ } from "./chunk-OYNUBWD2.js";
268
271
  import "./chunk-LK2E2ELG.js";
269
- import "./chunk-KPRGTTJH.js";
272
+ import "./chunk-UVYVIHEA.js";
270
273
  import {
271
274
  processStreams,
272
275
  saveConfigFile,
273
276
  writeSecurely
274
- } from "./chunk-CBM2XAEZ.js";
275
- import "./chunk-V36RIXFA.js";
277
+ } from "./chunk-246P2DCT.js";
278
+ import "./chunk-LJ77Y3TK.js";
276
279
  import "./chunk-Y5E2WNWB.js";
277
280
  import "./chunk-HIP43OGZ.js";
278
- import "./chunk-UQPKAY6I.js";
281
+ import "./chunk-FO4TCH6P.js";
279
282
  import {
280
283
  array,
281
284
  boolean,
@@ -299,7 +302,7 @@ import {
299
302
  string,
300
303
  unknown,
301
304
  writes
302
- } from "./chunk-3U22QTU6.js";
305
+ } from "./chunk-TKW4QWCY.js";
303
306
  import {
304
307
  CliError,
305
308
  isCliError
@@ -2617,7 +2620,10 @@ var installConfigCommands = /* @__PURE__ */ __name((program, { env, selected, ou
2617
2620
  const config = annotate(program.command("config"), { effects: LOCAL_READ }).description("read and change settings; credentials are kept apart");
2618
2621
  examples(annotate(config.command("show"), { effects: LOCAL_READ }).description("show the defaults and every profile's settings"), ["drive config show"]).action(() => {
2619
2622
  const file = inspectConfig(env, known());
2620
- output(itemOf(knownOnly(file.config, known())));
2623
+ output(itemOf({
2624
+ ...knownOnly(file.config, known()),
2625
+ settings: settingRows(file.raw, configuration.declaredSettings)
2626
+ }));
2621
2627
  for (const issue of file.issues)
2622
2628
  streams.diagnostic(`${issue.what}, so it is left out${issue.fix ? ` \u2014 \`${issue.fix}\` removes it` : ""}`);
2623
2629
  });
@@ -2663,7 +2669,7 @@ var installConfigCommands = /* @__PURE__ */ __name((program, { env, selected, ou
2663
2669
  const added = issuesOf(next).filter((issue) => !before.has(JSON.stringify(issue)) || !elsewhere.has(JSON.stringify(issue)));
2664
2670
  if (added.length)
2665
2671
  throw refusal(added);
2666
- saveConfigFile(file.path, next);
2672
+ saveConfigFile(file.path, withDefaults(next));
2667
2673
  output(itemOf({ key, updated: true, scope: name }));
2668
2674
  });
2669
2675
  examples(annotate(grantsAuthority(config.command("unset")), { effects: LOCAL_WRITE }).description("remove one setting from this profile, the defaults or the top of the file"), ["drive personal config unset max_text_chars", "drive personal config unset permissions.files --defaults"]).argument("<key>", "the setting, permissions.<key> or models.<purpose>.<field>; any key, known or not").option("--defaults", "change the defaults instead of this profile").action((key, args) => {
@@ -2694,10 +2700,16 @@ var installConfigCommands = /* @__PURE__ */ __name((program, { env, selected, ou
2694
2700
  break;
2695
2701
  delete holder[section];
2696
2702
  }
2697
- saveConfigFile(file.path, next);
2703
+ saveConfigFile(file.path, withDefaults(next, [at.join(".")]));
2698
2704
  }
2699
2705
  output(itemOf({ key, removed, scope: name }));
2700
2706
  });
2707
+ examples(annotate(grantsAuthority(config.command("migrate")), { effects: LOCAL_WRITE }).description("write each setting the file lacks at its default, keeping yours"), ["drive config migrate"]).action(() => {
2708
+ const path = configPath(env);
2709
+ const added = configuration.migrate(path);
2710
+ output(itemOf({ config_file: path, added }));
2711
+ streams.diagnostic(added.length > 0 ? `added ${added.join(", ")} to ${path}` : `${path} already has every setting`);
2712
+ });
2701
2713
  }, "installConfigCommands");
2702
2714
  var installModelCommands = /* @__PURE__ */ __name((program, { env, output, streams, policyFlags }) => {
2703
2715
  const models = annotate(program.command("models"), { effects: LOCAL_READ }).description("choose the memory model and download the search model");
@@ -2718,7 +2730,7 @@ var installModelCommands = /* @__PURE__ */ __name((program, { env, output, strea
2718
2730
  throw new CliError("permission_error", "downloading a model needs the network; --offline was requested", {
2719
2731
  reason: "offline.refused"
2720
2732
  });
2721
- const { downloadImageModel, downloadTextModel } = await import("./services-WU22S2MU.js");
2733
+ const { downloadImageModel, downloadTextModel } = await import("./services-34WKT3NN.js");
2722
2734
  const progress = /* @__PURE__ */ __name((line) => {
2723
2735
  if (!program.opts().quiet)
2724
2736
  streams.diagnostic(line);
@@ -22537,7 +22549,7 @@ var grants = /* @__PURE__ */ __name((raw) => {
22537
22549
  var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
22538
22550
  const { env, streams, options, selected, output, policyFlags } = context;
22539
22551
  const session = annotate(program.command("session"), { effects: LOCAL_READ }).description("sign in to Google and manage local profiles");
22540
- examples(annotate(session.command("start"), { mcp: false, effects: REMOTE_WRITE }).description("sign in to Google in the browser; read-only unless you pass --grant write"), ["drive personal session start", "drive work session start --grant write,activity"]).option("--client-file <file>", "path to your own Desktop OAuth client JSON, used instead of WireCat's").option("--credential-storage <storage>", "where the sign-in is kept: keyring (the default, which falls back to a private file by itself when no keyring works), or file, not recommended", "keyring").option("--no-browser", "print the sign-in URL instead of opening a browser").option("--grant <scopes>", "also ask for these permissions, comma-separated: write (change Drive files and Docs), activity (read Drive Activity history), apps (see installed Drive apps)", grants).action(async (args) => {
22552
+ examples(annotate(session.command("start"), { mcp: false, effects: REMOTE_WRITE }).description("sign in to Google in the browser; read-only unless you pass --grant write"), ["drive personal session start", "drive work session start --grant write,activity"]).option("--client-file <file>", "path to your own Desktop OAuth client JSON, used instead of WireCat's").option("--credential-storage <storage>", "where the sign-in is kept: keyring (the default, which falls back to a private file by itself when no keyring works), or file, not recommended", "keyring").option("--no-browser", "print the sign-in URL instead of opening a browser").option("--grant <scopes>", "also ask for these permissions, comma-separated: write (change Drive files and Docs), activity (read Drive Activity history), apps (see installed Drive apps)", grants).action(async (args, command) => {
22541
22553
  if (args.credentialStorage !== "keyring" && args.credentialStorage !== "file")
22542
22554
  throw new CliError("validation_error", "credential storage is keyring or file");
22543
22555
  const signal = context.signal();
@@ -22547,7 +22559,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
22547
22559
  json: json === true || jsonl === true || !process.stdout.isTTY,
22548
22560
  answers: false
22549
22561
  });
22550
- const { login } = await import("./login-4VQEC7VI.js");
22562
+ const { login } = await import("./login-BGMK2ABH.js");
22551
22563
  output(itemOf(await login({
22552
22564
  env,
22553
22565
  profile: selected(),
@@ -22556,9 +22568,10 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
22556
22568
  ...Object.fromEntries([...args.grant ?? []].map((grant) => [grant, true])),
22557
22569
  ...options.keyring ? { keyring: options.keyring } : {},
22558
22570
  ...signal ? { signal } : {},
22559
- openBrowser: args.browser ? options.openBrowser ?? (async () => {
22560
- }) : async () => {
22561
- },
22571
+ openBrowser: /* @__PURE__ */ __name(async (url) => {
22572
+ if (args.browser)
22573
+ await options.openBrowser?.(url, command);
22574
+ }, "openBrowser"),
22562
22575
  showUrl: /* @__PURE__ */ __name((url) => {
22563
22576
  steps.openUrl(url, "Choose the Google account and allow access to Drive");
22564
22577
  streams.diagnostic(`Open Google sign-in: ${url}
@@ -22577,7 +22590,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
22577
22590
  const name = selected();
22578
22591
  const config = readConfig(env);
22579
22592
  const profile = activeProfile(env, name);
22580
- const { credentials } = await import("./tokens-TXYURU4S.js");
22593
+ const { credentials } = await import("./tokens-F63RXXEF.js");
22581
22594
  const store = credentials(env, profile.storage, options.keyring);
22582
22595
  store.remove(name);
22583
22596
  writeConfig(env, config);
@@ -22624,7 +22637,7 @@ var selection = /* @__PURE__ */ __name((env, name, source) => {
22624
22637
  return { profile, state, options: { source, destination, collection: `google-drive:${profile.principal}`, env } };
22625
22638
  }, "selection");
22626
22639
  var checkStoreImport = /* @__PURE__ */ __name(async (env, name, source, bindings) => {
22627
- const { ensureSqlite } = await import("./sqlite-runtime-CSO6K6B2.js");
22640
+ const { ensureSqlite } = await import("./sqlite-runtime-WPUMKLUV.js");
22628
22641
  await ensureSqlite();
22629
22642
  const { state, options } = selection(env, name, source);
22630
22643
  const preview = await previewDocumentTransfer({ ...options, bindings });
@@ -22798,7 +22811,7 @@ var installSyncCommands = /* @__PURE__ */ __name((program, context) => {
22798
22811
  // dist/commands/upgrade.js
22799
22812
  import { join as join7 } from "node:path";
22800
22813
 
22801
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/update/index.js
22814
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/update/index.js
22802
22815
  import { realpathSync } from "node:fs";
22803
22816
  import { fileURLToPath } from "node:url";
22804
22817
  var QUIET_WORDS = [
@@ -23217,9 +23230,9 @@ var DRIVE_PROVIDER = {
23217
23230
  var openIndex = /* @__PURE__ */ __name(async (env, name, rescan = false) => {
23218
23231
  if (name)
23219
23232
  activeProfile(env, name);
23220
- const { ensureSqlite } = await import("./sqlite-runtime-CSO6K6B2.js");
23233
+ const { ensureSqlite } = await import("./sqlite-runtime-WPUMKLUV.js");
23221
23234
  await ensureSqlite();
23222
- const { openStore: openStore2, storePath: storePath2 } = await import("./store-HDWMJ44E.js");
23235
+ const { openStore: openStore2, storePath: storePath2 } = await import("./store-YKV4GAMS.js");
23223
23236
  if (env.DRIVE_STORE)
23224
23237
  throw new CliError("configuration_error", "DRIVE_STORE has been retired; use MESSAGING_STORE to select the shared database", { reason: "store.override-retired" });
23225
23238
  const store = await openStore2({ path: storePath2(env), env, command: "drive", version: VERSION });
@@ -23264,7 +23277,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
23264
23277
  linkMessages: /* @__PURE__ */ __name((documents, since) => store.notes.linkMessages({ documents, ...since ? { since } : {} }), "linkMessages"),
23265
23278
  knowledge: documentKnowledge2(store, async (principal) => (await folder(principal, false))?.id),
23266
23279
  openPictures: /* @__PURE__ */ __name(async () => {
23267
- const { openPictureEmbedderFor, savePicture } = await import("./services-WU22S2MU.js");
23280
+ const { openPictureEmbedderFor, savePicture } = await import("./services-34WKT3NN.js");
23268
23281
  const embedder = pictureEmbedder ?? await openPictureEmbedderFor({ env, command: "drive" });
23269
23282
  return {
23270
23283
  save: /* @__PURE__ */ __name((reference, bytes) => savePicture(store, { ref: reference }, bytes, { embedder }), "save"),
@@ -23283,7 +23296,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
23283
23296
  has_more: false,
23284
23297
  meaning_skipped: "this Google account has no imported sources"
23285
23298
  };
23286
- const { searchNotes } = await import("./services-WU22S2MU.js");
23299
+ const { searchNotes } = await import("./services-34WKT3NN.js");
23287
23300
  const result = await searchNotes(store, query, {
23288
23301
  ...options,
23289
23302
  folderIds: selected ? [selected.id] : [],
@@ -23314,7 +23327,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
23314
23327
  };
23315
23328
  }, "search"),
23316
23329
  embed: /* @__PURE__ */ __name(async (max) => {
23317
- const { embedNotes } = await import("./services-WU22S2MU.js");
23330
+ const { embedNotes } = await import("./services-34WKT3NN.js");
23318
23331
  return embedNotes(store, { maxChunks: max, env, command: "drive" });
23319
23332
  }, "embed"),
23320
23333
  close: /* @__PURE__ */ __name(() => store.close(), "close")
@@ -23348,7 +23361,7 @@ var uploadFile = /* @__PURE__ */ __name(async (input) => {
23348
23361
  throw new CliError("validation_error", "the file to upload could not be read", { reason: "file.unreadable" });
23349
23362
  }
23350
23363
  if (!stat.isFile())
23351
- throw new CliError("validation_error", "upload takes one file, not a folder", { reason: "file.not-file" });
23364
+ throw new CliError("validation_error", "upload takes one file, not a folder", { reason: "file.not-a-file" });
23352
23365
  const size2 = stat.size;
23353
23366
  const name = input.name ?? basename(path);
23354
23367
  const chunk = input.chunkBytes ?? CHUNK_BYTES;
@@ -23532,7 +23545,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23532
23545
  if (lock !== void 0) {
23533
23546
  profileName(lock);
23534
23547
  if (named !== void 0 && profileName(named) !== lock)
23535
- throw new CliError("permission_error", `this process is locked to profile ${lock} (DRIVE_PROFILE_LOCK) \u2014 profile ${named} is refused`, { reason: "profile.lock-refused" });
23548
+ throw new CliError("permission_error", `this process is locked to profile ${lock} (DRIVE_PROFILE_LOCK) \u2014 profile ${named} is refused`, { reason: "profile.locked" });
23536
23549
  return lock;
23537
23550
  }
23538
23551
  if (named)
@@ -23601,7 +23614,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23601
23614
  }, "output");
23602
23615
  const signal = /* @__PURE__ */ __name(() => environment().signal, "signal");
23603
23616
  const signedIn = /* @__PURE__ */ __name(async (name, scope2) => {
23604
- const { authorizedClient, checkAuthorization } = await import("./tokens-TXYURU4S.js");
23617
+ const { authorizedClient, checkAuthorization } = await import("./tokens-F63RXXEF.js");
23605
23618
  const client = authorizedClient(env, name, environment().keyring, signal());
23606
23619
  await checkAuthorization(client, scope2);
23607
23620
  return client;
@@ -23611,7 +23624,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23611
23624
  const fake = environment().source;
23612
23625
  if (fake)
23613
23626
  return fake(name);
23614
- const [{ googleSource }, client] = await Promise.all([import("./google-BYNSAIQI.js"), signedIn(name)]);
23627
+ const [{ googleSource }, client] = await Promise.all([import("./google-6ZZDKFBN.js"), signedIn(name)]);
23615
23628
  return googleSource(client);
23616
23629
  }, "source");
23617
23630
  const withIndex = /* @__PURE__ */ __name(async (fn) => {
@@ -23753,7 +23766,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23753
23766
  if (fake)
23754
23767
  return await fake.call(method, params, body);
23755
23768
  const [{ googleApi }, client] = await Promise.all([
23756
- import("./google-api-4VTZH7OP.js"),
23769
+ import("./google-api-E6MOJ4ZD.js"),
23757
23770
  signedIn(selected(), descriptor.scope)
23758
23771
  ]);
23759
23772
  return await googleApi(client).call(method, params, body);
@@ -23779,7 +23792,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23779
23792
  if (fake)
23780
23793
  return fake(id, mime);
23781
23794
  const [{ googleDownload }, client] = await Promise.all([
23782
- import("./google-api-4VTZH7OP.js"),
23795
+ import("./google-api-E6MOJ4ZD.js"),
23783
23796
  signedIn(selected(), apiMethod(method).scope)
23784
23797
  ]);
23785
23798
  return googleDownload(client)(id, mime);
@@ -23797,7 +23810,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
23797
23810
  let request = environment().uploadRequest;
23798
23811
  if (!request) {
23799
23812
  const [{ googleUploadRequest }, client] = await Promise.all([
23800
- import("./google-api-4VTZH7OP.js"),
23813
+ import("./google-api-E6MOJ4ZD.js"),
23801
23814
  signedIn(selected(), apiMethod(method).scope)
23802
23815
  ]);
23803
23816
  request = googleUploadRequest(client);
@@ -23868,6 +23881,10 @@ Availability: unavailable \u2014 ${availability.reason}
23868
23881
  }, "previewWrite");
23869
23882
  if (ACCOUNT_FREE_COMMANDS.has(words) && !agent())
23870
23883
  return previewWrite();
23884
+ if (words === "config migrate") {
23885
+ refuseUnderReadOnly(env, "change a setting");
23886
+ previewWrite();
23887
+ }
23871
23888
  if (ANY_PROFILE_COMMANDS.has(words)) {
23872
23889
  if (profileWord() ?? env.DRIVE_PROFILE ?? env.DRIVE_PROFILE_LOCK)
23873
23890
  selected();
@@ -23998,7 +24015,7 @@ var mcpCommand = /* @__PURE__ */ __name(() => {
23998
24015
  const environment = environmentOf(action);
23999
24016
  if (environment.api)
24000
24017
  return;
24001
- const { grantAvailability } = await import("./grants-EUQXSICG.js");
24018
+ const { grantAvailability } = await import("./grants-GWXDH5GM.js");
24002
24019
  availability = grantAvailability(rootOf(root), environment.env ?? process.env, environment.keyring);
24003
24020
  });
24004
24021
  }, "mcpCommand");
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSecret
5
- } from "./chunk-OMMEQJOB.js";
6
- import "./chunk-F3FOL42A.js";
7
- import "./chunk-CBM2XAEZ.js";
8
- import "./chunk-V36RIXFA.js";
5
+ } from "./chunk-XDIEQ2CE.js";
6
+ import "./chunk-SZXI4OXX.js";
7
+ import "./chunk-246P2DCT.js";
8
+ import "./chunk-LJ77Y3TK.js";
9
9
  import "./chunk-Y5E2WNWB.js";
10
10
  import "./chunk-HIP43OGZ.js";
11
- import "./chunk-UQPKAY6I.js";
12
- import "./chunk-3U22QTU6.js";
11
+ import "./chunk-FO4TCH6P.js";
12
+ import "./chunk-TKW4QWCY.js";
13
13
  import "./chunk-EBLA7GXY.js";
14
14
  import "./chunk-ZVVMGPBJ.js";
15
15
  export {
@@ -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-MUUHUHWC.js";
5
+ } from "./chunk-OYNUBWD2.js";
6
6
  import "./chunk-LK2E2ELG.js";
7
- import "./chunk-UQPKAY6I.js";
8
- import "./chunk-3U22QTU6.js";
7
+ import "./chunk-FO4TCH6P.js";
8
+ import "./chunk-TKW4QWCY.js";
9
9
  import "./chunk-EBLA7GXY.js";
10
10
  import "./chunk-ZVVMGPBJ.js";
11
11
  export {
@@ -8,13 +8,13 @@ import {
8
8
  openRecognizer,
9
9
  openSpeechCutter,
10
10
  toModelRate
11
- } from "./chunk-V42KAPU3.js";
12
- import "./chunk-CBM2XAEZ.js";
13
- import "./chunk-V36RIXFA.js";
11
+ } from "./chunk-ZPQS7XJA.js";
12
+ import "./chunk-246P2DCT.js";
13
+ import "./chunk-LJ77Y3TK.js";
14
14
  import "./chunk-Y5E2WNWB.js";
15
15
  import "./chunk-HIP43OGZ.js";
16
- import "./chunk-UQPKAY6I.js";
17
- import "./chunk-3U22QTU6.js";
16
+ import "./chunk-FO4TCH6P.js";
17
+ import "./chunk-TKW4QWCY.js";
18
18
  import "./chunk-EBLA7GXY.js";
19
19
  import "./chunk-ZVVMGPBJ.js";
20
20
  export {
@@ -8,17 +8,17 @@ import {
8
8
  openRemote,
9
9
  remoteKey,
10
10
  remoteModel
11
- } from "./chunk-EORMZCVF.js";
12
- import "./chunk-P3ZTW2ZM.js";
11
+ } from "./chunk-PETFPXLU.js";
12
+ import "./chunk-YGG7UA3C.js";
13
13
  import "./chunk-5DPV7X27.js";
14
- import "./chunk-TI55J3BA.js";
15
- import "./chunk-3VSUT6BD.js";
16
- import "./chunk-CBM2XAEZ.js";
17
- import "./chunk-V36RIXFA.js";
14
+ import "./chunk-ALWTUDZF.js";
15
+ import "./chunk-KEXTTZJM.js";
16
+ import "./chunk-246P2DCT.js";
17
+ import "./chunk-LJ77Y3TK.js";
18
18
  import "./chunk-Y5E2WNWB.js";
19
19
  import "./chunk-HIP43OGZ.js";
20
- import "./chunk-UQPKAY6I.js";
21
- import "./chunk-3U22QTU6.js";
20
+ import "./chunk-FO4TCH6P.js";
21
+ import "./chunk-TKW4QWCY.js";
22
22
  import "./chunk-EBLA7GXY.js";
23
23
  import "./chunk-ZVVMGPBJ.js";
24
24
  export {
@@ -4,22 +4,22 @@ import {
4
4
  defaultThreads,
5
5
  loadModel,
6
6
  truncated
7
- } from "./chunk-P3ZTW2ZM.js";
7
+ } from "./chunk-YGG7UA3C.js";
8
8
  import "./chunk-5DPV7X27.js";
9
- import "./chunk-TI55J3BA.js";
10
- import "./chunk-3VSUT6BD.js";
11
- import "./chunk-CBM2XAEZ.js";
12
- import "./chunk-V36RIXFA.js";
9
+ import "./chunk-ALWTUDZF.js";
10
+ import "./chunk-KEXTTZJM.js";
11
+ import "./chunk-246P2DCT.js";
12
+ import "./chunk-LJ77Y3TK.js";
13
13
  import "./chunk-Y5E2WNWB.js";
14
14
  import "./chunk-HIP43OGZ.js";
15
- import "./chunk-UQPKAY6I.js";
16
- import "./chunk-3U22QTU6.js";
15
+ import "./chunk-FO4TCH6P.js";
16
+ import "./chunk-TKW4QWCY.js";
17
17
  import "./chunk-EBLA7GXY.js";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/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-YU3PTU3D.js";
5
+ } from "./chunk-IRZ7OF3F.js";
6
6
  import {
7
7
  ownerLogin
8
- } from "./chunk-M6I2SQN7.js";
8
+ } from "./chunk-MXP35VPO.js";
9
9
  import {
10
10
  WebStandardStreamableHTTPServerTransport,
11
11
  createMcpHandler,
@@ -20,15 +20,15 @@ import {
20
20
  calledTools,
21
21
  httpActivityFile,
22
22
  httpLock
23
- } from "./chunk-GT5KTGCN.js";
24
- import "./chunk-GJ4ZCIOP.js";
25
- import "./chunk-5C7K6XIT.js";
26
- import "./chunk-CBM2XAEZ.js";
27
- import "./chunk-V36RIXFA.js";
23
+ } from "./chunk-TXMTMEHW.js";
24
+ import "./chunk-FTZNUZO7.js";
25
+ import "./chunk-73MNUSP3.js";
26
+ import "./chunk-246P2DCT.js";
27
+ import "./chunk-LJ77Y3TK.js";
28
28
  import "./chunk-Y5E2WNWB.js";
29
29
  import "./chunk-HIP43OGZ.js";
30
- import "./chunk-UQPKAY6I.js";
31
- import "./chunk-3U22QTU6.js";
30
+ import "./chunk-FO4TCH6P.js";
31
+ import "./chunk-TKW4QWCY.js";
32
32
  import {
33
33
  CliError
34
34
  } from "./chunk-EBLA7GXY.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.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
39
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/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";