@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
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  TIME_LIMIT_FUNCTION,
5
5
  beforeTimeLimit
6
- } from "./chunk-OUM4ZO53.js";
6
+ } from "./chunk-4HWJOU7N.js";
7
7
  import {
8
8
  loadVectorExtension,
9
9
  vectorExtension
10
- } from "./chunk-4J5GJJ2I.js";
10
+ } from "./chunk-GOWXXYEF.js";
11
11
  import {
12
12
  refuseOwnerStoreInTests
13
- } from "./chunk-RWQ7T4Y5.js";
14
- import "./chunk-5SJZDEIO.js";
15
- import "./chunk-PV3AWPHR.js";
13
+ } from "./chunk-Z3KUSRCF.js";
14
+ import "./chunk-CJLVYIOP.js";
15
+ import "./chunk-3N2OFXB5.js";
16
16
  import "./chunk-Y5E2WNWB.js";
17
- import "./chunk-HCZYJMBP.js";
18
- import "./chunk-5TK2YQCO.js";
19
- import "./chunk-JRFKCYMW.js";
20
- import "./chunk-EA2OB75T.js";
17
+ import "./chunk-KYKW2W6X.js";
18
+ import "./chunk-KGYVHPGE.js";
19
+ import "./chunk-OJSBWP3F.js";
20
+ import "./chunk-4QNW4NK6.js";
21
21
  import {
22
22
  __name
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // 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/store/drivers/node-sqlite.js
25
+ // 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/store/drivers/node-sqlite.js
26
26
  import { DatabaseSync } from "node:sqlite";
27
27
  var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
28
28
  var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
@@ -0,0 +1,22 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ ownerLogin,
5
+ revokeAll
6
+ } from "./chunk-MIA7P6FZ.js";
7
+ import "./chunk-5D4AEUVA.js";
8
+ import "./chunk-HKY7X6NY.js";
9
+ import "./chunk-RESDD3Q4.js";
10
+ import "./chunk-Z56QFOBR.js";
11
+ import "./chunk-CJLVYIOP.js";
12
+ import "./chunk-3N2OFXB5.js";
13
+ import "./chunk-Y5E2WNWB.js";
14
+ import "./chunk-KYKW2W6X.js";
15
+ import "./chunk-KGYVHPGE.js";
16
+ import "./chunk-OJSBWP3F.js";
17
+ import "./chunk-4QNW4NK6.js";
18
+ import "./chunk-ZVVMGPBJ.js";
19
+ export {
20
+ ownerLogin,
21
+ revokeAll
22
+ };
@@ -6,15 +6,15 @@ import {
6
6
  openCache,
7
7
  openFile,
8
8
  storeCapable
9
- } from "./chunk-6D44YQ5X.js";
10
- import "./chunk-OUM4ZO53.js";
11
- import "./chunk-5SJZDEIO.js";
12
- import "./chunk-PV3AWPHR.js";
9
+ } from "./chunk-4PA4DHYV.js";
10
+ import "./chunk-4HWJOU7N.js";
11
+ import "./chunk-CJLVYIOP.js";
12
+ import "./chunk-3N2OFXB5.js";
13
13
  import "./chunk-Y5E2WNWB.js";
14
- import "./chunk-HCZYJMBP.js";
15
- import "./chunk-5TK2YQCO.js";
16
- import "./chunk-JRFKCYMW.js";
17
- import "./chunk-EA2OB75T.js";
14
+ import "./chunk-KYKW2W6X.js";
15
+ import "./chunk-KGYVHPGE.js";
16
+ import "./chunk-OJSBWP3F.js";
17
+ import "./chunk-4QNW4NK6.js";
18
18
  import "./chunk-ZVVMGPBJ.js";
19
19
  export {
20
20
  CAPABILITY_STATEMENTS,
@@ -3,49 +3,50 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  toModelRate
6
- } from "./chunk-LRCSDAYK.js";
7
- import "./chunk-EL2E3ABX.js";
6
+ } from "./chunk-FJH7DJWK.js";
7
+ import "./chunk-JDV7HNNQ.js";
8
8
  import {
9
9
  OPENAI_URL
10
- } from "./chunk-4ZFO2CVH.js";
10
+ } from "./chunk-Y2NWGNUB.js";
11
11
  import {
12
12
  refuseModelAddress
13
- } from "./chunk-GHFBT2ZM.js";
14
- import "./chunk-EWUQIUTB.js";
13
+ } from "./chunk-SDKQNOL5.js";
14
+ import "./chunk-UTO2GO4P.js";
15
15
  import "./chunk-5DPV7X27.js";
16
16
  import {
17
17
  endpointFetch,
18
+ onThisComputer,
18
19
  providerWaitMs
19
- } from "./chunk-L342KHIZ.js";
20
+ } from "./chunk-YMJ6IDGT.js";
20
21
  import {
21
22
  OPENAI_TRANSCRIBE_MODEL,
22
23
  VAD,
23
24
  filesPresent,
24
25
  modelsDirectory,
25
26
  vadPath
26
- } from "./chunk-GTDCP5OG.js";
27
- import "./chunk-CDSB7WVG.js";
28
- import "./chunk-RWQ7T4Y5.js";
27
+ } from "./chunk-COOOO5B3.js";
28
+ import "./chunk-GBKNJWOZ.js";
29
+ import "./chunk-Z3KUSRCF.js";
29
30
  import {
30
31
  DEFAULT_RETRY,
31
32
  backoffMs
32
- } from "./chunk-5SJZDEIO.js";
33
- import "./chunk-PV3AWPHR.js";
33
+ } from "./chunk-CJLVYIOP.js";
34
+ import "./chunk-3N2OFXB5.js";
34
35
  import "./chunk-Y5E2WNWB.js";
35
- import "./chunk-HCZYJMBP.js";
36
- import "./chunk-5TK2YQCO.js";
37
- import "./chunk-JRFKCYMW.js";
36
+ import "./chunk-KYKW2W6X.js";
37
+ import "./chunk-KGYVHPGE.js";
38
+ import "./chunk-OJSBWP3F.js";
38
39
  import {
39
40
  CliError
40
- } from "./chunk-EA2OB75T.js";
41
+ } from "./chunk-4QNW4NK6.js";
41
42
  import {
42
43
  __name
43
44
  } from "./chunk-ZVVMGPBJ.js";
44
45
 
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/speech/openai.js
46
+ // 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/speech/openai.js
46
47
  import { setTimeout as wait } from "node:timers/promises";
47
48
 
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/speech/wav.js
49
+ // 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/speech/wav.js
49
50
  var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
50
51
  const bytes = Buffer.alloc(44 + samples.length * 2);
51
52
  bytes.write("RIFF", 0, "ascii");
@@ -66,7 +67,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
66
67
  return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
67
68
  }, "encodeWav");
68
69
 
69
- // 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/speech/openai.js
70
+ // 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/speech/openai.js
70
71
  var LONGEST_REQUEST_SECONDS = 600;
71
72
  var JOINED_SECONDS = 0.2;
72
73
  var PAD_SECONDS = 0.2;
@@ -121,27 +122,28 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
121
122
  const retry = options.retry ?? RETRY;
122
123
  const sleep = options.sleep ?? sleeping;
123
124
  const random = options.random ?? Math.random;
125
+ const who = options.label ?? "OpenAI";
124
126
  for (let attempt = 1; ; attempt++) {
125
127
  interrupted(options.signal);
126
128
  let response;
127
129
  try {
128
130
  response = await post(url, {
129
131
  method: "POST",
130
- headers: { authorization: `Bearer ${options.apiKey}` },
132
+ headers: options.apiKey ? { authorization: `Bearer ${options.apiKey}` } : {},
131
133
  body: formOf(wav, options),
132
134
  ...options.signal ? { signal: options.signal } : {}
133
135
  });
134
136
  } catch {
135
137
  interrupted(options.signal);
136
138
  if (attempt > retry.retries)
137
- throw new CliError("network_error", "OpenAI could not be reached", { reason: "network.failed" });
139
+ throw new CliError("network_error", `${who} could not be reached`, { reason: "network.failed" });
138
140
  await sleep(backoffMs(attempt, retry, random), options.signal);
139
141
  continue;
140
142
  }
141
143
  if (response.ok) {
142
144
  const body = await response.json().catch(() => interrupted(options.signal));
143
145
  if (typeof body?.text !== "string")
144
- throw new CliError("invalid_response", "OpenAI answered without a transcript", {
146
+ throw new CliError("invalid_response", `${who} answered without a transcript`, {
145
147
  reason: "provider.invalid-response"
146
148
  });
147
149
  return body.text.trim();
@@ -150,15 +152,15 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
150
152
  const status = response.status;
151
153
  const said = `HTTP ${status}${code ? `, ${code}` : type ? `, ${type}` : ""}`;
152
154
  if (status === 401)
153
- throw new CliError("authentication_error", `OpenAI refused the key (${said}) \u2014 set it again with \`models keys set openai\``, { reason: "auth.failed" });
155
+ throw new CliError("authentication_error", `${who} refused the key (${said}) \u2014 set it again with \`${options.keyHint ?? "models keys set openai"}\``, { reason: "auth.failed" });
154
156
  if (status === 403)
155
- throw new CliError("permission_error", `OpenAI refused the request (${said}) \u2014 it answers this when the country or region is not supported, or the key's project may not use the model`, { reason: "access.denied" });
157
+ throw new CliError("permission_error", `${who} refused the request (${said}) \u2014 OpenAI answers this when the country or region is not supported, or the key's project may not use the model`, { reason: "access.denied" });
156
158
  if (status === 413)
157
- throw new CliError("validation_error", `OpenAI refused the audio as too large (${said})`, {
159
+ throw new CliError("validation_error", `${who} refused the audio as too large (${said})`, {
158
160
  reason: "transcription.too-large"
159
161
  });
160
162
  if (EXHAUSTED.has(code ?? "") || EXHAUSTED.has(type ?? ""))
161
- throw new CliError("permission_error", `OpenAI refused: the account's credit, spend limit or usage limit is used up (${said}) \u2014 see the billing page`, { reason: "transcription.quota-exhausted" });
163
+ throw new CliError("permission_error", `${who} refused: the account's credit, spend limit or usage limit is used up (${said}) \u2014 see the billing page`, { reason: "transcription.quota-exhausted" });
162
164
  const again = status === 408 || status === 429 || status >= 500;
163
165
  const asked = providerWaitMs(response.headers, () => /* @__PURE__ */ new Date());
164
166
  if (again && attempt <= retry.retries && (asked === void 0 || asked <= retry.maxRetryAfterMs)) {
@@ -166,13 +168,13 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
166
168
  continue;
167
169
  }
168
170
  if (status === 429)
169
- throw new CliError("rate_limited", `OpenAI answered ${said}`, {
171
+ throw new CliError("rate_limited", `${who} answered ${said}`, {
170
172
  reason: "provider.rate-limited",
171
173
  ...asked === void 0 ? {} : { retry_after_ms: asked }
172
174
  });
173
175
  if (status >= 500)
174
- throw new CliError([502, 503, 504].includes(status) ? "provider_unavailable" : "provider_error", `OpenAI answered ${said}`, { reason: [502, 503, 504].includes(status) ? "provider.unavailable" : "provider.refused" });
175
- throw new CliError("provider_error", `OpenAI answered ${said}`, { reason: "provider.refused" });
176
+ throw new CliError([502, 503, 504].includes(status) ? "provider_unavailable" : "provider_error", `${who} answered ${said}`, { reason: [502, 503, 504].includes(status) ? "provider.unavailable" : "provider.refused" });
177
+ throw new CliError("provider_error", `${who} answered ${said}`, { reason: "provider.refused" });
176
178
  }
177
179
  }, "send");
178
180
  var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
@@ -189,7 +191,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
189
191
  return pieces;
190
192
  }, "piecesOf");
191
193
  var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
192
- const { openSpeechCutter } = await import("./recognize-DPFW7HO3.js");
194
+ const { openSpeechCutter } = await import("./recognize-DAVNZND3.js");
193
195
  return openSpeechCutter(vadModel);
194
196
  }, "openCutter");
195
197
  var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
@@ -199,7 +201,7 @@ var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
199
201
  }, "checkKeywords");
200
202
  var transcribeOpenAI = /* @__PURE__ */ __name(async (audio, options) => {
201
203
  refuseModelAddress(options.env ?? process.env, options.baseUrl ?? OPENAI_URL, "audio");
202
- if (!options.apiKey)
204
+ if (!options.apiKey && !onThisComputer(options.baseUrl ?? OPENAI_URL))
203
205
  throw new CliError("authentication_error", "no OpenAI key \u2014 `models keys set openai`, or OPENAI_API_KEY", {
204
206
  reason: "transcription.no-key"
205
207
  });
@@ -5,7 +5,7 @@ import {
5
5
  __name
6
6
  } from "./chunk-ZVVMGPBJ.js";
7
7
 
8
- // 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/embeddings/process.js
8
+ // 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/embeddings/process.js
9
9
  import { spawn } from "node:child_process";
10
10
  import { createInterface } from "node:readline";
11
11
  import { fileURLToPath } from "node:url";