@wirecat/drive-cli 0.69.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 (228) hide show
  1. package/README.md +3 -2
  2. package/contracts/wirecat.json +14 -13
  3. package/dist/age.d.ts +0 -36
  4. package/dist/age.d.ts.map +1 -1
  5. package/dist/age.js +0 -22
  6. package/dist/age.js.map +1 -1
  7. package/dist/bin/drive.js +2 -2
  8. package/dist/bundle/{all-profiles-B4A737YW.js → all-profiles-3QJG2NAN.js} +13 -13
  9. package/dist/bundle/{anthropic-RZGPDESM.js → anthropic-PSWTEU6G.js} +8 -8
  10. package/dist/bundle/{app-server-OWEW7DY5.js → app-server-PVTA6ABR.js} +66 -58
  11. package/dist/bundle/{bun-V5QLYBZU.js → bun-LU5LP3JI.js} +2 -2
  12. package/dist/bundle/{bun-sqlite-KHLHXXGH.js → bun-sqlite-PYMKLBRU.js} +9 -9
  13. package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-22QQUKWA.js} +1 -1
  14. package/dist/bundle/{chunk-3YKAFLXY.js → chunk-26DHFMGZ.js} +2 -2
  15. package/dist/bundle/{chunk-Y2QVNVHK.js → chunk-2BVVU7GG.js} +1 -1
  16. package/dist/bundle/{chunk-7JKECODO.js → chunk-2LHAVY4U.js} +1 -11
  17. package/dist/bundle/{chunk-HEBZCKMU.js → chunk-2PUNKUYJ.js} +4389 -4709
  18. package/dist/bundle/chunk-2UUWXPOB.js +31 -0
  19. package/dist/bundle/{chunk-KUQDBWPU.js → chunk-35SCQ4VI.js} +31 -32
  20. package/dist/bundle/{chunk-O6PD7RZY.js → chunk-3EBBLKIT.js} +4 -4
  21. package/dist/bundle/{chunk-PV3AWPHR.js → chunk-3N2OFXB5.js} +5 -5
  22. package/dist/bundle/{chunk-SY2HLH5R.js → chunk-3UGYFXH6.js} +82 -25
  23. package/dist/bundle/{chunk-OUM4ZO53.js → chunk-4HWJOU7N.js} +1 -1
  24. package/dist/bundle/{chunk-6D44YQ5X.js → chunk-4PA4DHYV.js} +6 -6
  25. package/dist/bundle/{chunk-EA2OB75T.js → chunk-4QNW4NK6.js} +1 -1
  26. package/dist/bundle/{chunk-GK6KXBL6.js → chunk-6SJOTNHF.js} +4 -4
  27. package/dist/bundle/{chunk-NVDR72GP.js → chunk-6TNNT2MQ.js} +250 -174
  28. package/dist/bundle/{chunk-4YECZ6CN.js → chunk-6W763DZN.js} +12 -12
  29. package/dist/bundle/{chunk-IQ2QU2X6.js → chunk-6XFIITOG.js} +1024 -598
  30. package/dist/bundle/{chunk-AD7VI3XU.js → chunk-72C4YOCH.js} +7 -7
  31. package/dist/bundle/{chunk-6EL5AVXX.js → chunk-7PDHGZN4.js} +4 -4
  32. package/dist/bundle/{chunk-22SH77TG.js → chunk-ACUAV6VX.js} +64 -64
  33. package/dist/bundle/{chunk-BBJVV4E2.js → chunk-ASMMG72J.js} +68 -38
  34. package/dist/bundle/{chunk-XUHQ7DVT.js → chunk-B5KSXHJ7.js} +1 -1
  35. package/dist/bundle/{chunk-BVVXYZSU.js → chunk-BKSQBBYG.js} +9 -9
  36. package/dist/bundle/{chunk-5SJZDEIO.js → chunk-CJLVYIOP.js} +21 -21
  37. package/dist/bundle/chunk-COJSWDNU.js +170 -0
  38. package/dist/bundle/{chunk-GTDCP5OG.js → chunk-COOOO5B3.js} +4 -4
  39. package/dist/bundle/{chunk-LUZRVBQR.js → chunk-D5TGYUVU.js} +6 -6
  40. package/dist/bundle/{chunk-CZ4UEXCE.js → chunk-EOEU3AZN.js} +6 -6
  41. package/dist/bundle/{chunk-CU6RATZH.js → chunk-FCS26CYQ.js} +4 -4
  42. package/dist/bundle/{chunk-LRCSDAYK.js → chunk-FJH7DJWK.js} +4 -4
  43. package/dist/bundle/{chunk-U3RXH6RY.js → chunk-FP54WSIR.js} +4 -4
  44. package/dist/bundle/{chunk-3URYKAJP.js → chunk-FT3LN3HP.js} +1 -1
  45. package/dist/bundle/{chunk-CDSB7WVG.js → chunk-GBKNJWOZ.js} +8 -8
  46. package/dist/bundle/{chunk-4J5GJJ2I.js → chunk-GOWXXYEF.js} +2 -2
  47. package/dist/bundle/{chunk-PB6NWKH3.js → chunk-GPQ44Y2R.js} +2 -2
  48. package/dist/bundle/{chunk-E7URRFBB.js → chunk-GZ2D4KXG.js} +10 -15
  49. package/dist/bundle/{chunk-376ZGVUZ.js → chunk-HKY7X6NY.js} +4 -4
  50. package/dist/bundle/{chunk-6XNTELM5.js → chunk-HL52XXZX.js} +1 -1
  51. package/dist/bundle/{chunk-533XOW74.js → chunk-HMS6EEQL.js} +3 -3
  52. package/dist/bundle/{chunk-F5UUJU6R.js → chunk-I4RWW3UD.js} +49 -4
  53. package/dist/bundle/{chunk-TZ75K6R7.js → chunk-ICDCAQ6K.js} +8 -8
  54. package/dist/bundle/{chunk-WOUIHZRI.js → chunk-J5Q5FS2N.js} +18 -75
  55. package/dist/bundle/{chunk-EL2E3ABX.js → chunk-JDV7HNNQ.js} +13 -13
  56. package/dist/bundle/{chunk-ZUG67442.js → chunk-JZHBZOJR.js} +3 -3
  57. package/dist/bundle/{chunk-SEJBS7SI.js → chunk-KGERXYTV.js} +1 -1
  58. package/dist/bundle/{chunk-5TK2YQCO.js → chunk-KGYVHPGE.js} +2 -2
  59. package/dist/bundle/{chunk-HCZYJMBP.js → chunk-KYKW2W6X.js} +1 -1
  60. package/dist/bundle/{chunk-RLGQMMYE.js → chunk-L46C6HQ7.js} +35 -13
  61. package/dist/bundle/chunk-LXKYKRHD.js +387 -0
  62. package/dist/bundle/{chunk-N4ACIIQB.js → chunk-MIA7P6FZ.js} +2 -2
  63. package/dist/bundle/{chunk-ZBYKCVSV.js → chunk-MNLL5YLM.js} +2 -2
  64. package/dist/bundle/{chunk-UPCEHSIZ.js → chunk-OF422U5D.js} +21 -16
  65. package/dist/bundle/{chunk-JRFKCYMW.js → chunk-OJSBWP3F.js} +23 -6
  66. package/dist/bundle/{chunk-MHXZ62CU.js → chunk-P7CUM5IB.js} +1 -1
  67. package/dist/bundle/{chunk-I55XYREN.js → chunk-PRW6SYA3.js} +1094 -2526
  68. package/dist/bundle/chunk-Q7DOMFJ4.js +259 -0
  69. package/dist/bundle/{chunk-3RLRJHAI.js → chunk-QETR5HIZ.js} +12081 -12607
  70. package/dist/bundle/{chunk-QJGFQRTL.js → chunk-QFR2PNJN.js} +12 -12
  71. package/dist/bundle/{chunk-2Q4CB4EI.js → chunk-QNRRK3CN.js} +2 -2
  72. package/dist/bundle/{chunk-5B5NOAIA.js → chunk-QXC6IEH6.js} +45 -45
  73. package/dist/bundle/{chunk-T6X6EZ5N.js → chunk-RESDD3Q4.js} +3 -3
  74. package/dist/bundle/chunk-RJOQH5YY.js +1979 -0
  75. package/dist/bundle/{chunk-AMQGKMLZ.js → chunk-RWDKMU74.js} +3 -3
  76. package/dist/bundle/{chunk-VUPWDCYV.js → chunk-SAKO3P4H.js} +1 -1
  77. package/dist/bundle/{chunk-GHFBT2ZM.js → chunk-SDKQNOL5.js} +6 -6
  78. package/dist/bundle/{chunk-25FT44S3.js → chunk-SERXSCN3.js} +287 -569
  79. package/dist/bundle/{chunk-2DS2TDGW.js → chunk-TAFHYHKA.js} +20 -118
  80. package/dist/bundle/{chunk-XVH3WZSZ.js → chunk-TAUBRNC5.js} +53 -53
  81. package/dist/bundle/{chunk-2VFAXC6O.js → chunk-UDMNY63V.js} +22 -19
  82. package/dist/bundle/{chunk-EWUQIUTB.js → chunk-UTO2GO4P.js} +5 -5
  83. package/dist/bundle/{chunk-V4FMN5A6.js → chunk-WVDCCYS3.js} +17 -17
  84. package/dist/bundle/chunk-X4TIMMKJ.js +16 -0
  85. package/dist/bundle/chunk-XF4EXO2C.js +335 -0
  86. package/dist/bundle/{chunk-OOIAJRKQ.js → chunk-XMMFBPGC.js} +2 -2
  87. package/dist/bundle/{chunk-4ZFO2CVH.js → chunk-Y2NWGNUB.js} +5 -5
  88. package/dist/bundle/{chunk-IJCUAKR5.js → chunk-YJIGGUPI.js} +4 -4
  89. package/dist/bundle/{chunk-L342KHIZ.js → chunk-YMJ6IDGT.js} +6 -6
  90. package/dist/bundle/{chunk-WNMPIRRF.js → chunk-YPFWNVHV.js} +3 -3
  91. package/dist/bundle/{chunk-T4FMXDDV.js → chunk-YPNWIB6H.js} +3 -3
  92. package/dist/bundle/{chunk-FIVFP53N.js → chunk-YVI5SQPY.js} +1 -1
  93. package/dist/bundle/{chunk-RWQ7T4Y5.js → chunk-Z3KUSRCF.js} +2 -2
  94. package/dist/bundle/{chunk-WQOGHND4.js → chunk-Z56QFOBR.js} +1 -1
  95. package/dist/bundle/chunk-ZCR3IRZ2.js +823 -0
  96. package/dist/bundle/{chunk-SYUXKV2E.js → chunk-ZM63SUHG.js} +2 -2
  97. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-ZZ32DXTH.js} +1 -1
  98. package/dist/bundle/{cli-BS4L3HAP.js → cli-556DERZL.js} +88 -69
  99. package/dist/bundle/command-contract-VRTOAV6W.js +43 -0
  100. package/dist/bundle/{command-server-entry-CJ2CV7ZV.js → command-server-entry-AYLGNZWD.js} +33 -30
  101. package/dist/bundle/decode-QU24MWMN.js +299 -0
  102. package/dist/bundle/{dispatch-WBEOHZDV.js → dispatch-4KODNOXV.js} +9 -9
  103. package/dist/bundle/drive.js +11 -11
  104. package/dist/bundle/{echarts-QIXLXS3G.js → echarts-BXX4OQWC.js} +2 -2
  105. package/dist/bundle/{embed-YNZW5X6M.js → embed-KG27KG3D.js} +9 -9
  106. package/dist/bundle/{embedder-LRC2PKTS.js → embedder-IPAVUQUV.js} +12 -12
  107. package/dist/bundle/entry-MVXQETWS.js +25 -0
  108. package/dist/bundle/{failure-X6PSLVSO.js → failure-ESL7ETL4.js} +4 -4
  109. package/dist/bundle/first-run-4UVLW2WR.js +31 -0
  110. package/dist/bundle/first-screen-JAKAIINI.js +41 -0
  111. package/dist/bundle/google-22NXXJX5.js +45 -0
  112. package/dist/bundle/{google-api-7JDZDCWE.js → google-api-VCDBSNOW.js} +70 -62
  113. package/dist/bundle/grants-MQMTVCRQ.js +118 -0
  114. package/dist/bundle/{identity-E43WKN5F.js → identity-LOWMVGZY.js} +6 -6
  115. package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-2VECIDXF.js} +1 -1
  116. package/dist/bundle/{login-RBDJPQAG.js → login-7GBONT7V.js} +78 -70
  117. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-O6ACR2DX.js} +2 -2
  118. package/dist/bundle/meeting-combined-LVP4AZKA.js +27 -0
  119. package/dist/bundle/meeting-model-RAY5XDXZ.js +29 -0
  120. package/dist/bundle/meeting-semantic-G7PFOKU7.js +25 -0
  121. package/dist/bundle/{node-IEVT2FSJ.js → node-MPEQSFI3.js} +2 -2
  122. package/dist/bundle/{node-sqlite-IENH4TRX.js → node-sqlite-OLQMAYB4.js} +10 -10
  123. package/dist/bundle/oauth-SGH2I2BY.js +22 -0
  124. package/dist/bundle/{open-TZ5H7NYM.js → open-OXTE672W.js} +8 -8
  125. package/dist/bundle/{openai-XF2KB7W2.js → openai-EB3TPIZY.js} +32 -30
  126. package/dist/bundle/{process-6Q23D3TO.js → process-F6TKXWWA.js} +1 -1
  127. package/dist/bundle/{program-D5XWOHV5.js → program-4IFDZ7FM.js} +1356 -1338
  128. package/dist/bundle/{prompt-KUC5D4GX.js → prompt-F5RRHPN2.js} +8 -8
  129. package/dist/bundle/{reasons-KSYP5VDJ.js → reasons-UORHJDHK.js} +5 -5
  130. package/dist/bundle/{recognize-DPFW7HO3.js → recognize-DAVNZND3.js} +7 -7
  131. package/dist/bundle/{remote-MODTSUNH.js → remote-D5EYYIAU.js} +13 -13
  132. package/dist/bundle/{rerank-JK7SERLE.js → rerank-CND2GVLZ.js} +10 -10
  133. package/dist/bundle/{serve-BV2WHZLW.js → serve-ZHSPUIGX.js} +12 -12
  134. package/dist/bundle/server-DUVJWP3Q.js +80 -0
  135. package/dist/bundle/{server-N3WPEU7Z.js → server-YMAK4LHC.js} +54 -46
  136. package/dist/bundle/{services-SV6CFUCS.js → services-ZILSFJ6E.js} +79 -54
  137. package/dist/bundle/{sqlite-runtime-RZ5PLZVQ.js → sqlite-runtime-S5VPMZQH.js} +9 -9
  138. package/dist/bundle/{start-C6EXYXAL.js → start-CR6X25RT.js} +7 -7
  139. package/dist/bundle/{state-RAZIREVG.js → state-YFPHVIIJ.js} +9 -9
  140. package/dist/bundle/{store-DQKJKX2G.js → store-CL4ZJZRI.js} +23 -19
  141. package/dist/bundle/{store-2DLGLYS6.js → store-UODRT6X4.js} +31 -26
  142. package/dist/bundle/store-maintenance-command-DY5XIBWR.js +72 -0
  143. package/dist/bundle/tokens-AF7QOFOF.js +118 -0
  144. package/dist/catalog.d.ts +0 -28
  145. package/dist/catalog.d.ts.map +1 -1
  146. package/dist/catalog.js +0 -82
  147. package/dist/catalog.js.map +1 -1
  148. package/dist/commands/catalog.d.ts +3 -8
  149. package/dist/commands/catalog.d.ts.map +1 -1
  150. package/dist/commands/catalog.js +36 -109
  151. package/dist/commands/catalog.js.map +1 -1
  152. package/dist/commands/context.d.ts +3 -0
  153. package/dist/commands/context.d.ts.map +1 -1
  154. package/dist/commands/context.js +20 -0
  155. package/dist/commands/context.js.map +1 -1
  156. package/dist/commands/documents.d.ts.map +1 -1
  157. package/dist/commands/documents.js +30 -72
  158. package/dist/commands/documents.js.map +1 -1
  159. package/dist/commands/folders.d.ts +1 -1
  160. package/dist/commands/folders.d.ts.map +1 -1
  161. package/dist/commands/folders.js +45 -48
  162. package/dist/commands/folders.js.map +1 -1
  163. package/dist/commands/knowledge.d.ts +4 -21
  164. package/dist/commands/knowledge.d.ts.map +1 -1
  165. package/dist/commands/knowledge.js +3 -241
  166. package/dist/commands/knowledge.js.map +1 -1
  167. package/dist/commands/mirrors.d.ts +2 -2
  168. package/dist/commands/mirrors.d.ts.map +1 -1
  169. package/dist/commands/mirrors.js +46 -202
  170. package/dist/commands/mirrors.js.map +1 -1
  171. package/dist/commands/search.d.ts +1 -3
  172. package/dist/commands/search.d.ts.map +1 -1
  173. package/dist/commands/search.js +20 -42
  174. package/dist/commands/search.js.map +1 -1
  175. package/dist/commands/sync.d.ts.map +1 -1
  176. package/dist/commands/sync.js +36 -53
  177. package/dist/commands/sync.js.map +1 -1
  178. package/dist/config.d.ts.map +1 -1
  179. package/dist/config.js +2 -1
  180. package/dist/config.js.map +1 -1
  181. package/dist/contract-overrides.d.ts +0 -2
  182. package/dist/contract-overrides.d.ts.map +1 -1
  183. package/dist/contract-overrides.js +0 -317
  184. package/dist/contract-overrides.js.map +1 -1
  185. package/dist/knowledge.d.ts +1 -1
  186. package/dist/knowledge.d.ts.map +1 -1
  187. package/dist/knowledge.js +4 -3
  188. package/dist/knowledge.js.map +1 -1
  189. package/dist/list-queries.d.ts +0 -31
  190. package/dist/list-queries.d.ts.map +1 -1
  191. package/dist/list-queries.js +0 -36
  192. package/dist/list-queries.js.map +1 -1
  193. package/dist/program.d.ts.map +1 -1
  194. package/dist/program.js +2 -3
  195. package/dist/program.js.map +1 -1
  196. package/dist/provider-json.d.ts.map +1 -1
  197. package/dist/provider-json.js +5 -5
  198. package/dist/provider-json.js.map +1 -1
  199. package/dist/reasons.d.ts.map +1 -1
  200. package/dist/reasons.js +0 -10
  201. package/dist/reasons.js.map +1 -1
  202. package/dist/sync.d.ts.map +1 -1
  203. package/dist/sync.js +1 -2
  204. package/dist/sync.js.map +1 -1
  205. package/dist/transcripts.d.ts +0 -6
  206. package/dist/transcripts.d.ts.map +1 -1
  207. package/dist/transcripts.js +0 -13
  208. package/dist/transcripts.js.map +1 -1
  209. package/dist/version.d.ts +1 -1
  210. package/dist/version.js +1 -1
  211. package/package.json +3 -3
  212. package/dist/bundle/command-contract-HYURWSD6.js +0 -40
  213. package/dist/bundle/decode-E2NM5SSM.js +0 -165
  214. package/dist/bundle/entry-2IMSWRJU.js +0 -25
  215. package/dist/bundle/first-run-7CPHQDM5.js +0 -30
  216. package/dist/bundle/first-screen-OKZ7GMFR.js +0 -38
  217. package/dist/bundle/google-WDKDBDD4.js +0 -45
  218. package/dist/bundle/grants-AU25GWKF.js +0 -110
  219. package/dist/bundle/oauth-3JGSN47Z.js +0 -22
  220. package/dist/bundle/server-6YDI4Y36.js +0 -72
  221. package/dist/bundle/store-maintenance-command-UJ5F5L4H.js +0 -64
  222. package/dist/bundle/tokens-LY3WML55.js +0 -110
  223. package/dist/knowledge-query.d.ts +0 -77
  224. package/dist/knowledge-query.d.ts.map +0 -1
  225. package/dist/knowledge-query.js +0 -104
  226. package/dist/knowledge-query.js.map +0 -1
  227. package/dist/bundle/{chunk-XWBPP2HX.js → chunk-VKE77B3F.js} +0 -0
  228. package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js} +3 -3
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  endpoint
5
- } from "./chunk-L342KHIZ.js";
5
+ } from "./chunk-YMJ6IDGT.js";
6
6
  import {
7
7
  check,
8
8
  getDotPath,
@@ -17,15 +17,58 @@ import {
17
17
  strictObject,
18
18
  string,
19
19
  trim
20
- } from "./chunk-JRFKCYMW.js";
20
+ } from "./chunk-OJSBWP3F.js";
21
21
  import {
22
22
  CliError
23
- } from "./chunk-EA2OB75T.js";
23
+ } from "./chunk-4QNW4NK6.js";
24
24
  import {
25
25
  __name
26
26
  } from "./chunk-ZVVMGPBJ.js";
27
27
 
28
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/settings.js
28
+ // 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/background/budget.js
29
+ var DEADLINE_MARGIN_MS = 5e3;
30
+ var DEADLINE_MARGIN_SHARE = 0.15;
31
+ var DEFAULT_REQUEST_MS = 2e3;
32
+ var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
33
+ var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
34
+ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal, now = Date.now } = {}) => {
35
+ const fits = requestsFor(deadline, requestMs);
36
+ const limit = fits === null ? requests ?? null : Math.min(fits, requests ?? fits);
37
+ const margin = deadline ? deadlineMargin(deadline) : 0;
38
+ let used = 0;
39
+ let stopped = null;
40
+ let last;
41
+ let slowest = 0;
42
+ return {
43
+ take() {
44
+ if (stopped)
45
+ return stopped;
46
+ const at = now();
47
+ if (last !== void 0)
48
+ slowest = Math.max(slowest, at - last);
49
+ if (signal?.aborted)
50
+ stopped = "cancelled";
51
+ else if (limit !== null && used >= limit)
52
+ stopped = "requests";
53
+ else if (deadline && at + margin + slowest >= deadline.endsAt)
54
+ stopped = "deadline";
55
+ if (stopped)
56
+ return stopped;
57
+ used += 1;
58
+ last = at;
59
+ return null;
60
+ },
61
+ get used() {
62
+ return used;
63
+ },
64
+ limit,
65
+ get stopped() {
66
+ return stopped;
67
+ }
68
+ };
69
+ }, "runBudget");
70
+
71
+ // 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/models/settings.js
29
72
  var MODEL_FIELDS = ["provider", "model", "base_url"];
30
73
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
31
74
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -95,6 +138,8 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
95
138
  }, "modelTarget");
96
139
 
97
140
  export {
141
+ deadlineMargin,
142
+ runBudget,
98
143
  modelSettingsShape,
99
144
  resolveModelSettings,
100
145
  modelTarget
@@ -4,24 +4,24 @@ import {
4
4
  embeddingKeys,
5
5
  endpointKeyName,
6
6
  modelGateway
7
- } from "./chunk-5B5NOAIA.js";
7
+ } from "./chunk-QXC6IEH6.js";
8
8
  import {
9
9
  modelAddressAllowed,
10
10
  onThisComputer
11
- } from "./chunk-L342KHIZ.js";
11
+ } from "./chunk-YMJ6IDGT.js";
12
12
  import {
13
13
  readSharedSection,
14
14
  sharedConfigPath,
15
15
  writeSharedSection
16
- } from "./chunk-CDSB7WVG.js";
16
+ } from "./chunk-GBKNJWOZ.js";
17
17
  import {
18
18
  storePath
19
- } from "./chunk-RWQ7T4Y5.js";
19
+ } from "./chunk-Z3KUSRCF.js";
20
20
  import {
21
21
  Credentials,
22
22
  isMovedRun,
23
23
  resolvePaths
24
- } from "./chunk-5SJZDEIO.js";
24
+ } from "./chunk-CJLVYIOP.js";
25
25
  import {
26
26
  check,
27
27
  getDotPath,
@@ -34,15 +34,15 @@ import {
34
34
  strictObject,
35
35
  string,
36
36
  trim
37
- } from "./chunk-JRFKCYMW.js";
37
+ } from "./chunk-OJSBWP3F.js";
38
38
  import {
39
39
  CliError
40
- } from "./chunk-EA2OB75T.js";
40
+ } from "./chunk-4QNW4NK6.js";
41
41
  import {
42
42
  __name
43
43
  } from "./chunk-ZVVMGPBJ.js";
44
44
 
45
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/ai.js
45
+ // 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/models/ai.js
46
46
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
47
47
  var DEFAULT_BASE_URL = {
48
48
  anthropic: "https://api.anthropic.com",
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  DOC
5
- } from "./chunk-NVDR72GP.js";
5
+ } from "./chunk-6TNNT2MQ.js";
6
6
  import {
7
7
  operations
8
8
  } from "./chunk-NYECVHFH.js";
9
9
  import {
10
10
  privateFiles
11
- } from "./chunk-IQ2QU2X6.js";
11
+ } from "./chunk-6XFIITOG.js";
12
12
  import {
13
13
  commandPathKey,
14
14
  commandPermissions
15
- } from "./chunk-2DS2TDGW.js";
15
+ } from "./chunk-TAFHYHKA.js";
16
16
  import {
17
17
  listQuery,
18
18
  queryTerms,
19
19
  typedQuery,
20
20
  withQuery
21
- } from "./chunk-HEBZCKMU.js";
21
+ } from "./chunk-2PUNKUYJ.js";
22
22
  import {
23
23
  AI_ENTRIES,
24
24
  LEVELS,
@@ -28,29 +28,29 @@ import {
28
28
  settingsFor,
29
29
  usableProfileName,
30
30
  withSettingDefaults
31
- } from "./chunk-25FT44S3.js";
32
- import {
33
- note
34
- } from "./chunk-533XOW74.js";
31
+ } from "./chunk-SERXSCN3.js";
35
32
  import {
36
33
  MAX_TEXT_CHARS
37
- } from "./chunk-ZUG67442.js";
34
+ } from "./chunk-JZHBZOJR.js";
35
+ import {
36
+ TRANSCRIPT_WORDS
37
+ } from "./chunk-PRW6SYA3.js";
38
38
  import {
39
39
  dateRange,
40
40
  queryError,
41
41
  queryFieldsOf,
42
42
  timezoneOf
43
- } from "./chunk-UPCEHSIZ.js";
43
+ } from "./chunk-OF422U5D.js";
44
44
  import {
45
45
  DRIVE_APP
46
- } from "./chunk-SYUXKV2E.js";
46
+ } from "./chunk-ZM63SUHG.js";
47
47
  import {
48
48
  BASE_CONSTANTS,
49
49
  baseConstantsSchema,
50
50
  loadConstants,
51
51
  resolvePaths,
52
52
  saveConfigFile
53
- } from "./chunk-5SJZDEIO.js";
53
+ } from "./chunk-CJLVYIOP.js";
54
54
  import {
55
55
  array,
56
56
  boolean,
@@ -76,17 +76,16 @@ import {
76
76
  string,
77
77
  transform,
78
78
  trim,
79
- union,
80
- unknown
81
- } from "./chunk-JRFKCYMW.js";
79
+ union
80
+ } from "./chunk-OJSBWP3F.js";
82
81
  import {
83
82
  CliError
84
- } from "./chunk-EA2OB75T.js";
83
+ } from "./chunk-4QNW4NK6.js";
85
84
  import {
86
85
  __name
87
86
  } from "./chunk-ZVVMGPBJ.js";
88
87
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/oauth/client-file.js
88
+ // 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/oauth/client-file.js
90
89
  import { readFileSync } from "node:fs";
91
90
  var readClientFile = /* @__PURE__ */ __name((location, options = {}) => {
92
91
  if (!options.shipped && typeof location === "string") {
@@ -107,7 +106,7 @@ var readClientFile = /* @__PURE__ */ __name((location, options = {}) => {
107
106
  }
108
107
  }, "readClientFile");
109
108
 
110
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/constants/obscure.js
109
+ // 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/constants/obscure.js
111
110
  import { createDecipheriv } from "node:crypto";
112
111
  var KEY = Buffer.from("d43012779aa2dded3e98092a3dbcf5d8980c564172f5ce0a5fd0574e5f740339", "hex");
113
112
  var reveal = /* @__PURE__ */ __name((obscured) => {
@@ -116,7 +115,7 @@ var reveal = /* @__PURE__ */ __name((obscured) => {
116
115
  return Buffer.concat([decipher.update(bytes.subarray(16)), decipher.final()]).toString("utf8");
117
116
  }, "reveal");
118
117
 
119
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/constants/index.js
118
+ // 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/constants/index.js
120
119
  var CORE_CONSTANTS = new URL("../../constants.json", new URL("constants/index.js", import.meta.resolve("@wirecat/cli-core")).href);
121
120
  var constantsSchema = object({
122
121
  ...baseConstantsSchema.entries,
@@ -245,28 +244,11 @@ var registry = /* @__PURE__ */ __name((entity, schema, native, examples) => ({
245
244
  backend: "native",
246
245
  fields: queryFieldsOf(schema, { native, examples }).map((field) => field.native ? { ...field, operators: ["term", "phrase"] } : field)
247
246
  }), "registry");
248
- var folderRow = strictObject({ id: string() });
249
- var mirrorRow = strictObject({ id: string(), path: string(), folder: string() });
250
247
  var sessionRow = strictObject({
251
248
  profile: string(),
252
249
  selected_folders: number(),
253
250
  storage: picklist(["keyring", "file"])
254
251
  });
255
- var tagRow = strictObject({ tag: string() });
256
- var linkRow = looseObject({
257
- id: string(),
258
- from: string(),
259
- to: nullable(string()),
260
- kind: string(),
261
- role: nullable(string()),
262
- confirmed: boolean(),
263
- origin: picklist(["file", "owner", "suggested", "message"])
264
- });
265
- var identityRow = looseObject({
266
- google_id: nullable(string()),
267
- role: picklist(["owner", "last-editor"]),
268
- person: nullable(record(string(), unknown()))
269
- });
270
252
  var fileRow = looseObject({
271
253
  id: optional(string()),
272
254
  name: optional(string()),
@@ -285,28 +267,10 @@ var transcriptRow = strictObject({
285
267
  var TRANSCRIPTS_QUERY = registry("drive_transcript", transcriptRow, ["owned_by_me"], {
286
268
  owned_by_me: "owned_by_me:false"
287
269
  });
288
- var FOLDERS_QUERY = registry("drive_selected_folder", folderRow, ["id"], { id: "id:FOLDER_ID" });
289
- var MIRRORS_QUERY = registry("drive_mirror", mirrorRow, ["id", "path", "folder"], {
290
- id: "id:example",
291
- path: 'path:"/example/notes"',
292
- folder: "folder:FOLDER_ID"
293
- });
294
270
  var SESSIONS_QUERY = registry("drive_session", sessionRow, ["profile", "storage"], {
295
271
  profile: "profile:personal",
296
272
  storage: "storage:keyring"
297
273
  });
298
- var TAGS_QUERY = registry("drive_document_tag", tagRow, ["tag"], { tag: "tag:budget" });
299
- var NOTES_QUERY = registry("note", note, ["text"], { text: "text:review" });
300
- var LINKS_QUERY = registry("drive_document_relationship", linkRow, ["id", "role", "origin", "confirmed"], {
301
- id: "id:1",
302
- role: "role:reviewer",
303
- origin: "origin:owner",
304
- confirmed: "confirmed:true"
305
- });
306
- var IDENTITIES_QUERY = registry("drive_document_identity", identityRow, ["google_id", "role"], {
307
- google_id: "google_id:example",
308
- role: "role:owner"
309
- });
310
274
  var FILES_QUERY = {
311
275
  entity: "drive_remote_file",
312
276
  backend: "native",
@@ -354,14 +318,6 @@ var driveFileQuery = /* @__PURE__ */ __name((words, timezone) => {
354
318
 
355
319
  // dist/transcripts.js
356
320
  var TRANSCRIPT_MODES = ["include", "skip", "exclude"];
357
- var TRANSCRIPT_WORDS = [
358
- "Transcript",
359
- "Notes by Gemini",
360
- "\u0422\u0440\u0430\u043D\u0441\u043A\u0440\u0438\u043F\u0442",
361
- "\u0417\u0430\u043C\u0435\u0442\u043A\u0438 Gemini",
362
- "Transcripci\xF3n",
363
- "Notas de Gemini"
364
- ];
365
321
  var folded = /* @__PURE__ */ __name((text) => text.normalize("NFC").toLowerCase(), "folded");
366
322
  var isTranscript = /* @__PURE__ */ __name((words) => (file) => file.mime === DOC && !file.trashed && words.some((word) => folded(file.name).includes(folded(word))), "isTranscript");
367
323
  var transcriptsDriveQuery = /* @__PURE__ */ __name((words) => {
@@ -577,7 +533,6 @@ var googleAppOf = /* @__PURE__ */ __name((env, { file, clientId, profile } = {})
577
533
  }, "googleAppOf");
578
534
  var application = /* @__PURE__ */ __name((env, choice = {}) => googleAppOf(env, choice).client, "application");
579
535
  var selectedFolders = /* @__PURE__ */ __name((env, profile, filter = {}) => activeProfile(env, profile).roots.flatMap((id) => filter.id === void 0 || id === filter.id ? [{ id }] : []), "selectedFolders");
580
- var configuredMirrors = /* @__PURE__ */ __name((env, profile, filter = {}) => (activeProfile(env, profile).mirrors ?? []).filter((row) => Object.entries(filter).every(([key, value]) => row[key] === value)), "configuredMirrors");
581
536
  var configuredSessions = /* @__PURE__ */ __name((env, filter, knownPermissions) => Object.entries(readConfig(env, knownPermissions).profiles).flatMap(([name, row]) => (filter.profile === void 0 || filter.profile === name) && (filter.storage === void 0 || filter.storage === row.storage) ? [{ profile: name, selected_folders: row.roots.length, storage: row.storage }] : []), "configuredSessions");
582
537
  var maxAddProfiles = /* @__PURE__ */ __name((env) => readConfig(env).defaults?.max_add_profiles ?? DEFAULT_ADD_PROFILES, "maxAddProfiles");
583
538
  var checkAddProfiles = /* @__PURE__ */ __name((value) => {
@@ -596,22 +551,11 @@ export {
596
551
  permissionNames,
597
552
  DEFAULT_LEVELS,
598
553
  methodPolicyKeys,
599
- folderRow,
600
- mirrorRow,
601
554
  sessionRow,
602
- tagRow,
603
- linkRow,
604
- identityRow,
605
555
  fileRow,
606
556
  transcriptRow,
607
557
  TRANSCRIPTS_QUERY,
608
- FOLDERS_QUERY,
609
- MIRRORS_QUERY,
610
558
  SESSIONS_QUERY,
611
- TAGS_QUERY,
612
- NOTES_QUERY,
613
- LINKS_QUERY,
614
- IDENTITIES_QUERY,
615
559
  FILES_QUERY,
616
560
  bindQuery,
617
561
  termsOf,
@@ -641,7 +585,6 @@ export {
641
585
  googleAppOf,
642
586
  application,
643
587
  selectedFolders,
644
- configuredMirrors,
645
588
  configuredSessions,
646
589
  maxAddProfiles,
647
590
  checkAddProfiles,
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-EA2OB75T.js";
5
+ } from "./chunk-4QNW4NK6.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
10
+ // 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/files/atomic-write.js
11
11
  import { randomUUID } from "node:crypto";
12
12
  import { constants } from "node:fs";
13
13
  import { link, open, realpath, rename, unlink } from "node:fs/promises";
@@ -45,7 +45,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
45
45
  }
46
46
  }, "writeFileAtomic");
47
47
 
48
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
48
+ // 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/files/ordinary-file.js
49
49
  import { constants as constants2 } from "node:fs";
50
50
  import { lstat, open as open2 } from "node:fs/promises";
51
51
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -111,21 +111,21 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
111
111
  }
112
112
  }, "syncDirectory");
113
113
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/lock.js
114
+ // 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/files/lock.js
115
115
  import { mkdir as mkdir2 } from "node:fs/promises";
116
116
  import { basename as basename2, dirname as dirname2 } from "node:path";
117
117
 
118
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
118
+ // 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/files/native-writer-lease.js
119
119
  import { randomUUID as randomUUID2 } from "node:crypto";
120
120
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
121
121
  import { hostname as hostname2 } from "node:os";
122
122
  import { join as join3 } from "node:path";
123
123
 
124
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
124
+ // 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/files/native-lease-inspection.js
125
125
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
126
126
  import { join as join2 } from "node:path";
127
127
 
128
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
128
+ // 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/files/native-lease-owner.js
129
129
  import { hostname } from "node:os";
130
130
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
131
131
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -170,7 +170,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
170
170
  }
171
171
  }, "leaseOwnerStatus");
172
172
 
173
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
173
+ // 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/files/native-lease-inspection.js
174
174
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
175
175
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
176
176
  options.signal?.throwIfAborted();
@@ -229,7 +229,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
229
229
  return { inspect, recover };
230
230
  }, "leaseInspection");
231
231
 
232
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
232
+ // 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/files/native-lease-release.js
233
233
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
234
234
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
235
235
  let releasing;
@@ -254,7 +254,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
254
254
  };
255
255
  }, "ownedNativeLease");
256
256
 
257
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
257
+ // 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/files/native-writer-lease.js
258
258
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
259
259
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
260
260
  const { markerDirectory, legacyMarker } = layout;
@@ -325,7 +325,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
325
325
  };
326
326
  }, "nativeWriterLeaseStore");
327
327
 
328
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/lock.js
328
+ // 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/files/lock.js
329
329
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
330
330
  const folder = dirname2(path);
331
331
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -340,7 +340,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
340
340
  });
341
341
  }, "acquireLock");
342
342
 
343
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
343
+ // 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/files/bounded-utf8.js
344
344
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
345
345
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
346
346
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -369,7 +369,7 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
369
369
  }
370
370
  }, "readBoundedUtf8File");
371
371
 
372
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/files/safe-name.js
372
+ // 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/files/safe-name.js
373
373
  import { basename as basename3 } from "node:path";
374
374
  var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
375
375
  let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-EA2OB75T.js";
5
+ } from "./chunk-4QNW4NK6.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/limits.js
10
+ // 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/attachments/limits.js
11
11
  var MAX_FILE_BYTES = 50 * 1024 * 1024;
12
12
  var MAX_TEXT_CHARS = 2e6;
13
13
  var ATTACHMENT_LIMIT_ENV = [
@@ -33,7 +33,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
33
33
  return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
34
34
  }, "pdfPreviewLimits");
35
35
 
36
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
36
+ // 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/domain/google-documents.js
37
37
  var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
38
38
  var ID = /^[\w-]{10,}$/;
39
39
  var trimUrl = /* @__PURE__ */ __name((url) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // 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/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -15,12 +15,12 @@ import {
15
15
  string,
16
16
  text,
17
17
  unknown
18
- } from "./chunk-JRFKCYMW.js";
18
+ } from "./chunk-OJSBWP3F.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
23
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
24
24
  var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
25
25
  var logRecordSchema = strictObject({
26
26
  time: isoTime,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
8
8
  var CONTROL = (
9
9
  // biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
10
10
  /[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
@@ -5,24 +5,26 @@ import {
5
5
  LIST_QUERY_GUIDE,
6
6
  nativeTerms,
7
7
  throughWrapper
8
- } from "./chunk-HEBZCKMU.js";
8
+ } from "./chunk-2PUNKUYJ.js";
9
9
  import {
10
+ DEFAULT_CONFIG,
10
11
  environmentOf,
11
12
  itemOf,
12
13
  listOf,
13
14
  nextStep,
14
15
  renderAnswer,
15
- snakeKeys
16
- } from "./chunk-25FT44S3.js";
16
+ snakeKeys,
17
+ withAgentLevels
18
+ } from "./chunk-SERXSCN3.js";
17
19
  import {
18
20
  readOnlyLockOf
19
- } from "./chunk-ZBYKCVSV.js";
21
+ } from "./chunk-MNLL5YLM.js";
20
22
  import {
21
23
  formatReference
22
- } from "./chunk-I55XYREN.js";
24
+ } from "./chunk-RJOQH5YY.js";
23
25
  import {
24
26
  queryError
25
- } from "./chunk-UPCEHSIZ.js";
27
+ } from "./chunk-OF422U5D.js";
26
28
  import {
27
29
  array,
28
30
  boolean,
@@ -32,15 +34,15 @@ import {
32
34
  safeParse,
33
35
  strictObject,
34
36
  string
35
- } from "./chunk-JRFKCYMW.js";
37
+ } from "./chunk-OJSBWP3F.js";
36
38
  import {
37
39
  CliError
38
- } from "./chunk-EA2OB75T.js";
40
+ } from "./chunk-4QNW4NK6.js";
39
41
  import {
40
42
  __name
41
43
  } from "./chunk-ZVVMGPBJ.js";
42
44
 
43
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
45
+ // 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/messenger/lacks.js
44
46
  var COMMAND_NEEDS = {
45
47
  "account update": ["updateProfile", "change the profile"],
46
48
  "account sessions list": ["sessions", "list the account's sessions"],
@@ -90,16 +92,34 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
90
92
  return group;
91
93
  }, "hideNever");
92
94
 
93
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/paging.js
95
+ // 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/paging.js
94
96
  var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
95
97
  if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
96
98
  throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
97
99
  return Number(value);
98
100
  }, "positiveCount");
101
+ var configuredLimit = /* @__PURE__ */ __name((command, most = Number.POSITIVE_INFINITY) => {
102
+ const { resolveSettings, env } = environmentOf(command);
103
+ const { limit: _typed, ...flags } = command.optsWithGlobals();
104
+ const configured = resolveSettings?.(flags, { needsProfile: false, ...env ? { env } : {} }).limit ?? DEFAULT_CONFIG.defaults.limit;
105
+ return Math.min(configured, most);
106
+ }, "configuredLimit");
99
107
  var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
100
108
  var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
109
+ var pagingOf = /* @__PURE__ */ __name((command) => {
110
+ const environment = environmentOf(command);
111
+ const flags = command.optsWithGlobals();
112
+ if (!environment.resolveSettings)
113
+ return { limit: flags.limit ?? DEFAULT_CONFIG.defaults.limit, page: flags.page ?? 1 };
114
+ const { limit, page } = environment.resolveSettings(withAgentLevels(command, command.optsWithGlobals()), {
115
+ env: environment.env ?? process.env,
116
+ needsProfile: false,
117
+ readOnly: true
118
+ });
119
+ return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
120
+ }, "pagingOf");
101
121
 
102
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
122
+ // 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/messenger/chat-answers.js
103
123
  var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
104
124
  var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
105
125
  var settingsOf = /* @__PURE__ */ __name((settings) => defined({
@@ -361,7 +381,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
361
381
  ...createdAt === void 0 ? {} : { created_at: createdAt }
362
382
  }), "sessionAnswer");
363
383
 
364
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/background/relay.js
384
+ // 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/background/relay.js
365
385
  import { createHash } from "node:crypto";
366
386
  import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
367
387
  import { createConnection, createServer } from "node:net";
@@ -582,7 +602,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
582
602
  }, () => finish({ error: stopped() }));
583
603
  }), "relayCommand");
584
604
 
585
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
605
+ // 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/messenger/serve-relay.js
586
606
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
587
607
  close: /* @__PURE__ */ __name(async () => {
588
608
  }, "close"),
@@ -677,8 +697,10 @@ export {
677
697
  lentConnection,
678
698
  serveRelay,
679
699
  positiveCount,
700
+ configuredLimit,
680
701
  withPaging,
681
702
  window,
703
+ pagingOf,
682
704
  chatRef,
683
705
  chatAnswer,
684
706
  memberAnswer,