@wirecat/drive-cli 0.65.0 → 0.67.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 (233) hide show
  1. package/contracts/wirecat.json +2899 -0
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bin/drive.js.map +1 -1
  4. package/dist/browse.d.ts +1 -1
  5. package/dist/browse.d.ts.map +1 -1
  6. package/dist/browse.js +1 -1
  7. package/dist/bundle/{all-profiles-PD7GJHFA.js → all-profiles-DVZUVAPQ.js} +14 -14
  8. package/dist/bundle/{anthropic-PJKFON5H.js → anthropic-Y45C45O2.js} +20 -13
  9. package/dist/bundle/{app-server-6ELQA6FJ.js → app-server-GTXUOUGD.js} +67 -56
  10. package/dist/bundle/{bun-P54TGES2.js → bun-QVJV76QJ.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-TND5ZRJH.js → bun-sqlite-CC7PIAMH.js} +9 -9
  12. package/dist/bundle/{chunk-Y5PKRITX.js → chunk-2MEVCMBW.js} +5 -5
  13. package/dist/bundle/{chunk-ZILALBYQ.js → chunk-2PIA45FC.js} +7 -5
  14. package/dist/bundle/{chunk-SIWXYB4E.js → chunk-2Y3YBDZX.js} +3123 -2851
  15. package/dist/bundle/{chunk-54V4H6PM.js → chunk-3RG6LL25.js} +12 -12
  16. package/dist/bundle/{chunk-UTNRBOEN.js → chunk-4G7WQNG7.js} +3 -2
  17. package/dist/bundle/{chunk-OWMZUWCM.js → chunk-4VH7M2OD.js} +6 -14
  18. package/dist/bundle/{chunk-EM7NL5ES.js → chunk-5DMPGTNR.js} +3 -3
  19. package/dist/bundle/{chunk-W2XY6C5S.js → chunk-5TK2YQCO.js} +2 -2
  20. package/dist/bundle/{chunk-NQ5XMSLA.js → chunk-5TSILGTO.js} +21668 -28647
  21. package/dist/bundle/{chunk-FBHSWQU7.js → chunk-6ERQE4FS.js} +319 -102
  22. package/dist/bundle/{chunk-4AOINPN2.js → chunk-7AZCAUST.js} +8 -2
  23. package/dist/bundle/{chunk-DA63E2UM.js → chunk-7J2IP3WL.js} +18 -15
  24. package/dist/bundle/{chunk-JPPPLKAO.js → chunk-7JKECODO.js} +1 -2
  25. package/dist/bundle/{chunk-SEQWBZYH.js → chunk-AAZPDWRD.js} +1 -1
  26. package/dist/bundle/{chunk-CWLL63JD.js → chunk-ABJQ6IDU.js} +17 -17
  27. package/dist/bundle/{chunk-PHOL2DZM.js → chunk-AJ3DFPRT.js} +63 -5
  28. package/dist/bundle/{chunk-4EDWLR22.js → chunk-AZKFZ7J7.js} +1 -1
  29. package/dist/bundle/{chunk-IMHW7VIV.js → chunk-BHSLMJF7.js} +5 -5
  30. package/dist/bundle/{chunk-EHU6EYGO.js → chunk-C72WYRXD.js} +12 -12
  31. package/dist/bundle/chunk-CWDC6QJM.js +72 -0
  32. package/dist/bundle/{chunk-TTP4NOP3.js → chunk-D4MVEOU2.js} +4 -4
  33. package/dist/bundle/{chunk-ZR2EJPMQ.js → chunk-DAFKV6DJ.js} +226 -18
  34. package/dist/bundle/{chunk-RNHGQ35R.js → chunk-E3XA56TS.js} +1 -1
  35. package/dist/bundle/{chunk-ELJUBPY4.js → chunk-EA2OB75T.js} +1 -1
  36. package/dist/bundle/{chunk-7TAP7Y2E.js → chunk-ETAFFY3J.js} +196 -112
  37. package/dist/bundle/{chunk-D6Z43SOG.js → chunk-EXWOOST5.js} +402 -362
  38. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
  39. package/dist/bundle/{chunk-HP3NT6JJ.js → chunk-FOMQ4MG3.js} +3 -3
  40. package/dist/bundle/{chunk-VMAMRFFC.js → chunk-FS2PG2PE.js} +117 -44
  41. package/dist/bundle/{chunk-6DCLZLGX.js → chunk-HCZYJMBP.js} +1 -1
  42. package/dist/bundle/{chunk-OFJXHEFT.js → chunk-HJF2QGOX.js} +93 -31
  43. package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-IJCUAKR5.js} +4 -4
  44. package/dist/bundle/{chunk-O6K2E7OA.js → chunk-IRULPE5M.js} +1522 -1107
  45. package/dist/bundle/{chunk-EU5MD24W.js → chunk-JCNEPYQZ.js} +13 -13
  46. package/dist/bundle/{chunk-VDZY3L7U.js → chunk-JEMBW6IO.js} +1 -1
  47. package/dist/bundle/{chunk-Z2ADO6UA.js → chunk-JJHDV32D.js} +2 -2
  48. package/dist/bundle/{chunk-FA6JNXCC.js → chunk-JLUQZZ26.js} +8 -8
  49. package/dist/bundle/{chunk-WRAUO5EJ.js → chunk-JO7BJYAP.js} +45 -22
  50. package/dist/bundle/{chunk-TOVWMURV.js → chunk-JRFKCYMW.js} +22 -7
  51. package/dist/bundle/{chunk-M7ELUGU6.js → chunk-JY2GZDJL.js} +4 -4
  52. package/dist/bundle/chunk-LSAIXPAX.js +47 -0
  53. package/dist/bundle/{chunk-WVJHZIDH.js → chunk-LXRBTXCZ.js} +3 -3
  54. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
  55. package/dist/bundle/{chunk-F56DRBGY.js → chunk-MBLB4TQI.js} +75 -20
  56. package/dist/bundle/{chunk-4Y5YBFMS.js → chunk-MEQNAZ6R.js} +7 -7
  57. package/dist/bundle/{chunk-XYE7XZPB.js → chunk-MEY7URZZ.js} +39 -35
  58. package/dist/bundle/{chunk-IBO23OID.js → chunk-MF46W7PQ.js} +2 -2
  59. package/dist/bundle/{chunk-7AQGVX5O.js → chunk-MW46BLWH.js} +60 -29
  60. package/dist/bundle/{chunk-VHQYWFWV.js → chunk-NFIR346J.js} +1 -1
  61. package/dist/bundle/{chunk-NI5PD5KM.js → chunk-NWYVOHIX.js} +18611 -16472
  62. package/dist/bundle/chunk-NYECVHFH.js +10283 -0
  63. package/dist/bundle/{chunk-D7WB54P7.js → chunk-OOBSSU2G.js} +546 -457
  64. package/dist/bundle/{chunk-VLXWAH5E.js → chunk-P6A77LMP.js} +4 -4
  65. package/dist/bundle/{chunk-ZD4MB7NH.js → chunk-PDHN4GHU.js} +5 -40
  66. package/dist/bundle/{chunk-PLP5527C.js → chunk-PV3AWPHR.js} +5 -5
  67. package/dist/bundle/{chunk-TMHF4BCL.js → chunk-QOKPRFHM.js} +2 -2
  68. package/dist/bundle/{chunk-JMJIH6JH.js → chunk-RC72RU66.js} +6 -6
  69. package/dist/bundle/{chunk-NQRTKYJB.js → chunk-RLH6BOEG.js} +47 -80
  70. package/dist/bundle/{chunk-II4S2DBJ.js → chunk-SJE7UGOW.js} +12 -6
  71. package/dist/bundle/{chunk-LMKPP2JP.js → chunk-SXJDCRXE.js} +1 -1
  72. package/dist/bundle/{chunk-B2LPCHQN.js → chunk-T2VAEDJS.js} +4 -4
  73. package/dist/bundle/{chunk-I272E6UR.js → chunk-U2ERT45N.js} +54 -117
  74. package/dist/bundle/{chunk-A27UVLPK.js → chunk-UFNE57VY.js} +3 -3
  75. package/dist/bundle/{chunk-5XSBCMAF.js → chunk-ULH3TNUP.js} +4 -4
  76. package/dist/bundle/{chunk-3ONWN3IA.js → chunk-UOAHZV3K.js} +161 -48
  77. package/dist/bundle/{chunk-ECEP4SO3.js → chunk-UPCEHSIZ.js} +10 -10
  78. package/dist/bundle/{chunk-42G2XNPN.js → chunk-V7E25BUU.js} +2 -2
  79. package/dist/bundle/{chunk-EZ2OLYEK.js → chunk-VZ5KETIX.js} +14 -5
  80. package/dist/bundle/{chunk-X7YGGWXI.js → chunk-WBKYZZQT.js} +3 -2
  81. package/dist/bundle/{chunk-GW3LBY3T.js → chunk-WKIQKGOF.js} +146 -133
  82. package/dist/bundle/{chunk-O7ZDCOZE.js → chunk-WWW7YTFG.js} +1 -1
  83. package/dist/bundle/{chunk-2AFI4KGI.js → chunk-XZCF5XU7.js} +7 -7
  84. package/dist/bundle/chunk-Y2QVNVHK.js +70 -0
  85. package/dist/bundle/{chunk-WRMJN6UQ.js → chunk-Y5WSRG3F.js} +3 -3
  86. package/dist/bundle/{chunk-A4QNADEX.js → chunk-YI4DXASF.js} +49 -49
  87. package/dist/bundle/{chunk-SS4LKLD7.js → chunk-YVUAG7RF.js} +371 -362
  88. package/dist/bundle/chunk-ZEPDEFVT.js +71 -0
  89. package/dist/bundle/{chunk-SE352DBY.js → chunk-ZH4H5XTA.js} +1 -1
  90. package/dist/bundle/{chunk-3HXNDF6Q.js → chunk-ZK46UHDP.js} +2 -2
  91. package/dist/bundle/{chunk-SNLSEYJO.js → chunk-ZU5VQYNY.js} +1 -1
  92. package/dist/bundle/cli-U4LSBYDV.js +1101 -0
  93. package/dist/bundle/command-contract-UU5T24ZZ.js +41 -0
  94. package/dist/bundle/{command-server-entry-36JXYIJB.js → command-server-entry-PK6FBUPO.js} +31 -30
  95. package/dist/bundle/{decode-T5ZW57WZ.js → decode-3ZE6NBKV.js} +8 -8
  96. package/dist/bundle/{dispatch-RMA2XFYA.js → dispatch-WBEOHZDV.js} +9 -9
  97. package/dist/bundle/drive.js +13 -13
  98. package/dist/bundle/{echarts-KQ44LPSF.js → echarts-6FWNCNXK.js} +2 -2
  99. package/dist/bundle/{embed-Q7XST53J.js → embed-DGYBBZUW.js} +9 -9
  100. package/dist/bundle/{embedder-RWZSBVW2.js → embedder-O7A6VMWI.js} +12 -12
  101. package/dist/bundle/entry-CDJ2QSU2.js +25 -0
  102. package/dist/bundle/{failure-7NP4QPIN.js → failure-X6PSLVSO.js} +4 -4
  103. package/dist/bundle/first-run-UOQW7DN5.js +30 -0
  104. package/dist/bundle/first-screen-SNDV4YKF.js +39 -0
  105. package/dist/bundle/google-HPX52KMC.js +45 -0
  106. package/dist/bundle/{google-api-P5DRHD7L.js → google-api-HIMN4XL5.js} +68 -63
  107. package/dist/bundle/grants-RO42I6E4.js +111 -0
  108. package/dist/bundle/{identity-VDV6CHRW.js → identity-NFGHDPLL.js} +8 -6
  109. package/dist/bundle/{instructions-Q45FVY6H.js → instructions-6JAQYCM6.js} +1 -1
  110. package/dist/bundle/{login-XKN3NI6X.js → login-RZOQN63N.js} +73 -70
  111. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
  112. package/dist/bundle/{node-MSW565D3.js → node-KSIX3GIH.js} +2 -2
  113. package/dist/bundle/{node-sqlite-S74XVVHL.js → node-sqlite-4FJ6WJXN.js} +10 -10
  114. package/dist/bundle/oauth-BKZAMFKK.js +22 -0
  115. package/dist/bundle/{open-P7UQG7XJ.js → open-4AQJGH42.js} +8 -8
  116. package/dist/bundle/{openai-DDHJ57KZ.js → openai-24F2OX55.js} +28 -21
  117. package/dist/bundle/{process-NMUB5SHK.js → process-7NOA2T7H.js} +1 -1
  118. package/dist/bundle/{program-PJNWP6JW.js → program-7JHMLDEX.js} +306 -692
  119. package/dist/bundle/{prompt-VOSMK4C2.js → prompt-NM66MAZ4.js} +8 -8
  120. package/dist/bundle/{reasons-KDAXOC5S.js → reasons-KSYP5VDJ.js} +5 -5
  121. package/dist/bundle/{recognize-GZIY63HS.js → recognize-DBKV2JYZ.js} +7 -7
  122. package/dist/bundle/{remote-V3YGN7LN.js → remote-ABWUTBVB.js} +13 -10
  123. package/dist/bundle/{rerank-XRU6AVN7.js → rerank-FQAU4ENY.js} +10 -10
  124. package/dist/bundle/{serve-NDOAFA57.js → serve-QLJG4QZD.js} +12 -12
  125. package/dist/bundle/server-NUBLY5SV.js +74 -0
  126. package/dist/bundle/{server-BKGWJYMC.js → server-VGZNK5XD.js} +47 -45
  127. package/dist/bundle/{services-TYDMFQCA.js → services-5KARVUHK.js} +44 -34
  128. package/dist/bundle/{sqlite-runtime-UAFJKSJR.js → sqlite-runtime-ILF6EFQJ.js} +9 -9
  129. package/dist/bundle/{start-2ZLDP2OE.js → start-C6EXYXAL.js} +7 -7
  130. package/dist/bundle/{state-6SP27J2K.js → state-R2M56GPU.js} +9 -9
  131. package/dist/bundle/{store-4UUY545Q.js → store-2OBVMUQL.js} +21 -19
  132. package/dist/bundle/{store-EJN27MXI.js → store-DA4K7HWW.js} +23 -21
  133. package/dist/bundle/store-maintenance-command-KSIPI5B5.js +65 -0
  134. package/dist/bundle/tokens-VQDGSHRB.js +111 -0
  135. package/dist/commands/config.d.ts.map +1 -1
  136. package/dist/commands/config.js +5 -3
  137. package/dist/commands/config.js.map +1 -1
  138. package/dist/commands/discovery.d.ts +0 -1
  139. package/dist/commands/discovery.d.ts.map +1 -1
  140. package/dist/commands/discovery.js +6 -26
  141. package/dist/commands/discovery.js.map +1 -1
  142. package/dist/commands/knowledge.d.ts.map +1 -1
  143. package/dist/commands/knowledge.js +7 -6
  144. package/dist/commands/knowledge.js.map +1 -1
  145. package/dist/commands/search.d.ts.map +1 -1
  146. package/dist/commands/search.js +15 -12
  147. package/dist/commands/search.js.map +1 -1
  148. package/dist/commands/sync.d.ts.map +1 -1
  149. package/dist/commands/sync.js +2 -1
  150. package/dist/commands/sync.js.map +1 -1
  151. package/dist/commands/transcripts.d.ts +4 -0
  152. package/dist/commands/transcripts.d.ts.map +1 -0
  153. package/dist/commands/transcripts.js +42 -0
  154. package/dist/commands/transcripts.js.map +1 -0
  155. package/dist/config.d.ts +10 -0
  156. package/dist/config.d.ts.map +1 -1
  157. package/dist/config.js +17 -3
  158. package/dist/config.js.map +1 -1
  159. package/dist/contract-overrides.d.ts +16 -4
  160. package/dist/contract-overrides.d.ts.map +1 -1
  161. package/dist/contract-overrides.js +86 -410
  162. package/dist/contract-overrides.js.map +1 -1
  163. package/dist/errors.d.ts.map +1 -1
  164. package/dist/errors.js +4 -0
  165. package/dist/errors.js.map +1 -1
  166. package/dist/google-api.d.ts.map +1 -1
  167. package/dist/google-api.js +4 -1
  168. package/dist/google-api.js.map +1 -1
  169. package/dist/google.d.ts.map +1 -1
  170. package/dist/google.js +31 -28
  171. package/dist/google.js.map +1 -1
  172. package/dist/identity.d.ts +4 -0
  173. package/dist/identity.d.ts.map +1 -1
  174. package/dist/identity.js +22 -0
  175. package/dist/identity.js.map +1 -1
  176. package/dist/knowledge.js +2 -2
  177. package/dist/knowledge.js.map +1 -1
  178. package/dist/list-queries.d.ts +10 -0
  179. package/dist/list-queries.d.ts.map +1 -1
  180. package/dist/list-queries.js +12 -1
  181. package/dist/list-queries.js.map +1 -1
  182. package/dist/login.d.ts.map +1 -1
  183. package/dist/login.js +2 -2
  184. package/dist/login.js.map +1 -1
  185. package/dist/model.d.ts +4 -1
  186. package/dist/model.d.ts.map +1 -1
  187. package/dist/program.d.ts.map +1 -1
  188. package/dist/program.js +10 -6
  189. package/dist/program.js.map +1 -1
  190. package/dist/reasons.d.ts.map +1 -1
  191. package/dist/reasons.js +0 -1
  192. package/dist/reasons.js.map +1 -1
  193. package/dist/state.d.ts.map +1 -1
  194. package/dist/state.js +2 -0
  195. package/dist/state.js.map +1 -1
  196. package/dist/store-transition.js +2 -2
  197. package/dist/store-transition.js.map +1 -1
  198. package/dist/store.d.ts.map +1 -1
  199. package/dist/store.js +7 -7
  200. package/dist/store.js.map +1 -1
  201. package/dist/sync.d.ts.map +1 -1
  202. package/dist/sync.js +5 -1
  203. package/dist/sync.js.map +1 -1
  204. package/dist/tokens.d.ts +9 -2
  205. package/dist/tokens.d.ts.map +1 -1
  206. package/dist/tokens.js +18 -15
  207. package/dist/tokens.js.map +1 -1
  208. package/dist/transcripts.d.ts +21 -0
  209. package/dist/transcripts.d.ts.map +1 -0
  210. package/dist/transcripts.js +48 -0
  211. package/dist/transcripts.js.map +1 -0
  212. package/dist/version.d.ts +1 -1
  213. package/dist/version.js +1 -1
  214. package/dist/wcat.d.ts +3 -0
  215. package/dist/wcat.d.ts.map +1 -0
  216. package/dist/wcat.js +4 -0
  217. package/dist/wcat.js.map +1 -0
  218. package/package.json +7 -7
  219. package/dist/bundle/chunk-CGQRZRTH.js +0 -26
  220. package/dist/bundle/chunk-IKHOIXJR.js +0 -27
  221. package/dist/bundle/chunk-SBZB7HMU.js +0 -1055
  222. package/dist/bundle/command-contract-25E4PYMD.js +0 -40
  223. package/dist/bundle/dist-PY3MVR3G.js +0 -21
  224. package/dist/bundle/entry-HPLW4QL2.js +0 -25
  225. package/dist/bundle/first-run-RL3RKYZW.js +0 -30
  226. package/dist/bundle/first-screen-NX3TM2VJ.js +0 -38
  227. package/dist/bundle/google-DPD5N6AQ.js +0 -42
  228. package/dist/bundle/grants-TX4MHLI4.js +0 -109
  229. package/dist/bundle/oauth-6R7AWAES.js +0 -22
  230. package/dist/bundle/server-QD2MUJJZ.js +0 -72
  231. package/dist/bundle/store-maintenance-command-LETURZDC.js +0 -60
  232. package/dist/bundle/tokens-MTFJPTYT.js +0 -107
  233. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
@@ -4,18 +4,18 @@ import {
4
4
  readSharedSection,
5
5
  sharedConfigPath,
6
6
  writeSharedSection
7
- } from "./chunk-4Y5YBFMS.js";
7
+ } from "./chunk-MEQNAZ6R.js";
8
8
  import {
9
9
  storePath
10
- } from "./chunk-UTNRBOEN.js";
10
+ } from "./chunk-4G7WQNG7.js";
11
11
  import {
12
12
  CliError
13
- } from "./chunk-ELJUBPY4.js";
13
+ } from "./chunk-EA2OB75T.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
19
19
  var PERMISSION_ANSWERS = ["readonly", "allow"];
20
20
  var QUESTIONS = ["languages", "tools", "permissions"];
21
21
  var SECTION = "setup";
@@ -1,46 +1,16 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ DOC,
5
+ SHEET
6
+ } from "./chunk-FS2PG2PE.js";
3
7
  import {
4
8
  CliError
5
- } from "./chunk-ELJUBPY4.js";
9
+ } from "./chunk-EA2OB75T.js";
6
10
  import {
7
11
  __name
8
12
  } from "./chunk-ZVVMGPBJ.js";
9
13
 
10
- // dist/model.js
11
- var FOLDER = "application/vnd.google-apps.folder";
12
- var DOC = "application/vnd.google-apps.document";
13
- var SHEET = "application/vnd.google-apps.spreadsheet";
14
- var metadataJson = /* @__PURE__ */ __name(({ modifiedAt, canDownload, createdAt, driveId, lastModifiedBy, providerMetadata, ...rest }) => ({
15
- ...rest,
16
- ...providerMetadata === void 0 ? {} : { provider_metadata: providerMetadata },
17
- ...modifiedAt === void 0 ? {} : { modified_at: modifiedAt },
18
- can_download: canDownload,
19
- ...createdAt === void 0 ? {} : { created_at: createdAt },
20
- ...driveId === void 0 ? {} : { drive_id: driveId },
21
- ...lastModifiedBy === void 0 ? {} : { last_modified_by: lastModifiedBy }
22
- }), "metadataJson");
23
- var DOCUMENT_LIST_FIELDS = Object.keys({
24
- id: true,
25
- name: true,
26
- mime: true,
27
- parents: true,
28
- version: true,
29
- url: true,
30
- trashed: true,
31
- size: true,
32
- description: true,
33
- owners: true,
34
- provider_metadata: true,
35
- modified_at: true,
36
- can_download: true,
37
- created_at: true,
38
- drive_id: true,
39
- last_modified_by: true,
40
- reference: true,
41
- tabs: true
42
- });
43
-
44
14
  // dist/supported.js
45
15
  var MAX_ENTRIES = 1e4;
46
16
  var tooManyEntries = /* @__PURE__ */ __name(() => new CliError("provider_error", `the chosen folders hold more than ${MAX_ENTRIES} entries, the most one sync reads; choose fewer or smaller folders with \`folders remove\` and \`folders add\``, { reason: "listing.too-large" }), "tooManyEntries");
@@ -61,11 +31,6 @@ var supported = /* @__PURE__ */ __name((file) => {
61
31
  }, "supported");
62
32
 
63
33
  export {
64
- FOLDER,
65
- DOC,
66
- SHEET,
67
- metadataJson,
68
- DOCUMENT_LIST_FIELDS,
69
34
  MAX_ENTRIES,
70
35
  tooManyEntries,
71
36
  XLSX,
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  visibleControls
5
- } from "./chunk-6DCLZLGX.js";
5
+ } from "./chunk-HCZYJMBP.js";
6
6
  import {
7
7
  BASE_REASONS,
8
8
  COMMON_DETAILS,
@@ -10,16 +10,16 @@ import {
10
10
  CRASH_REASON,
11
11
  stepOf,
12
12
  writes
13
- } from "./chunk-TOVWMURV.js";
13
+ } from "./chunk-JRFKCYMW.js";
14
14
  import {
15
15
  errorCodes,
16
16
  isCliError
17
- } from "./chunk-ELJUBPY4.js";
17
+ } from "./chunk-EA2OB75T.js";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
22
+ // 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/exit-codes.js
23
23
  var EXIT_CODES = {
24
24
  validation_error: 2,
25
25
  configuration_error: 3,
@@ -40,7 +40,7 @@ var EXIT_CODES = {
40
40
  var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
41
41
  var GENERIC_FAILURE = 1;
42
42
 
43
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
43
+ // 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/failure.js
44
44
  var recognise = /* @__PURE__ */ __name((failure) => {
45
45
  if (isCliError(failure))
46
46
  return failure;
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-JMJIH6JH.js";
6
+ } from "./chunk-RC72RU66.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  import { dirname } from "node:path";
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PRAGMAS
5
- } from "./chunk-VDZY3L7U.js";
5
+ } from "./chunk-JEMBW6IO.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-ELJUBPY4.js";
8
+ } from "./chunk-EA2OB75T.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
14
14
  var SQLITE_WARNING = "SQLite is an experimental feature";
15
15
  var quieted = /* @__PURE__ */ new WeakSet();
16
16
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
31
31
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
32
32
  }, "isSqliteWarning");
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/store/open.js
35
35
  var openCache = /* @__PURE__ */ __name(async (path) => {
36
36
  const database = await openFile(path);
37
37
  try {
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
44
44
  }, "openCache");
45
45
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
46
46
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
47
- const { openWithBunSqlite } = await import("./bun-sqlite-TND5ZRJH.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-CC7PIAMH.js");
48
48
  return await openWithBunSqlite(path);
49
49
  }, "openUnderBun");
50
50
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
51
51
  quietSqliteWarning();
52
- const { openWithNodeSqlite } = await import("./node-sqlite-S74XVVHL.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-4FJ6WJXN.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -4,23 +4,24 @@ import {
4
4
  embeddingKeys,
5
5
  endpointKeyName,
6
6
  modelGateway
7
- } from "./chunk-FBHSWQU7.js";
7
+ } from "./chunk-6ERQE4FS.js";
8
8
  import {
9
- endpoint
10
- } from "./chunk-OWMZUWCM.js";
9
+ modelAddressAllowed,
10
+ onThisComputer
11
+ } from "./chunk-AJ3DFPRT.js";
11
12
  import {
12
13
  readSharedSection,
13
14
  sharedConfigPath,
14
15
  writeSharedSection
15
- } from "./chunk-4Y5YBFMS.js";
16
+ } from "./chunk-MEQNAZ6R.js";
16
17
  import {
17
18
  storePath
18
- } from "./chunk-UTNRBOEN.js";
19
+ } from "./chunk-4G7WQNG7.js";
19
20
  import {
20
21
  Credentials,
21
22
  isMovedRun,
22
23
  resolvePaths
23
- } from "./chunk-7AQGVX5O.js";
24
+ } from "./chunk-MW46BLWH.js";
24
25
  import {
25
26
  check,
26
27
  getDotPath,
@@ -33,69 +34,15 @@ import {
33
34
  strictObject,
34
35
  string,
35
36
  trim
36
- } from "./chunk-TOVWMURV.js";
37
+ } from "./chunk-JRFKCYMW.js";
37
38
  import {
38
- CliError,
39
- isCliError
40
- } from "./chunk-ELJUBPY4.js";
39
+ CliError
40
+ } from "./chunk-EA2OB75T.js";
41
41
  import {
42
42
  __name
43
43
  } from "./chunk-ZVVMGPBJ.js";
44
44
 
45
- // dist/errors.js
46
- var googleError = /* @__PURE__ */ __name((error) => {
47
- if (isCliError(error))
48
- return error;
49
- const value = error;
50
- if (value?.name === "AbortError" || value?.code === "ERR_CANCELED")
51
- return new CliError("cancelled", "Google operation was cancelled", { reason: "command.cancelled" });
52
- const status = value?.status ?? value?.response?.status;
53
- const payload = value?.response?.data?.error;
54
- const reason = typeof payload === "string" ? payload : payload?.errors?.[0]?.reason;
55
- const told = status === 403 && typeof reason === "string" && /^[A-Za-z]{1,64}$/.test(reason) ? { google_reason: reason } : {};
56
- const disabled = typeof payload === "object" && payload !== null && Array.isArray(payload.details) && payload.details.some((detail) => detail !== null && typeof detail === "object" && "@type" in detail && detail["@type"] === "type.googleapis.com/google.rpc.ErrorInfo" && "domain" in detail && detail.domain === "googleapis.com" && "reason" in detail && detail.reason === "SERVICE_DISABLED");
57
- if (reason === "invalid_grant" || reason === "invalid_token")
58
- return new CliError("authentication_error", "Google sign-in is no longer valid \u2014 run drive <profile> session start again", {
59
- reason: "oauth.expired"
60
- });
61
- if (reason === "invalid_client")
62
- return new CliError("configuration_error", "Google rejected the OAuth application; check its Desktop client setup", {
63
- reason: "sign-in.client-rejected"
64
- });
65
- if (status === 403 && (reason === "accessNotConfigured" || disabled))
66
- return new CliError("configuration_error", "Google API is disabled for this OAuth project; its owner must enable it in Google Cloud API Library", { reason: "api.disabled", status });
67
- if (reason === "rateLimitExceeded" || reason === "userRateLimitExceeded" || reason === "dailyLimitExceeded" || reason === "quotaExceeded")
68
- return new CliError("rate_limited", "Google rate limit reached; retry the command", {
69
- retryable: true,
70
- ...status ? { status } : {},
71
- ...told
72
- });
73
- if (reason === "exportSizeLimitExceeded")
74
- return new CliError("validation_error", "Google exports at most 10 MB of a native file; this one is larger", {
75
- reason: "export.too-large"
76
- });
77
- if (status === 401)
78
- return new CliError("authentication_error", "Google sign-in expired \u2014 run drive <profile> session start again", {
79
- reason: "oauth.expired"
80
- });
81
- if (status === 403)
82
- return new CliError("permission_error", "Google denied this operation; check access and OAuth permissions", {
83
- status,
84
- ...told
85
- });
86
- if (status === 404)
87
- return new CliError("not_found", "Google source is unavailable or no longer accessible", { status });
88
- if (status === 429)
89
- return new CliError("rate_limited", "Google rate limit reached; retry the command", { retryable: true, status });
90
- if (status !== void 0)
91
- return new CliError("provider_error", `Google request failed (HTTP ${status})`, { status });
92
- return new CliError("provider_unavailable", "Google request failed; no request or credential details were logged", {
93
- retryable: true
94
- });
95
- }, "googleError");
96
- var offlineRefused = /* @__PURE__ */ __name((what = "this command may require network access") => new CliError("permission_error", `${what}; --offline was requested`, { reason: "offline.refused" }), "offlineRefused");
97
-
98
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/models/ai.js
45
+ // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/models/ai.js
99
46
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
100
47
  var DEFAULT_BASE_URL = {
101
48
  anthropic: "https://api.anthropic.com",
@@ -107,13 +54,7 @@ var OFFICIAL = {
107
54
  "https://api.anthropic.com": "anthropic"
108
55
  };
109
56
  var SECTION = "ai";
110
- var loopback = /* @__PURE__ */ __name((hostname) => hostname === "localhost" || hostname === "[::1]" || /^127(\.\d{1,3}){3}$/.test(hostname), "loopback");
111
- var aiAddressAllowed = /* @__PURE__ */ __name((value) => {
112
- if (!endpoint(value))
113
- return false;
114
- const url = new URL(value);
115
- return url.protocol === "https:" || loopback(url.hostname);
116
- }, "aiAddressAllowed");
57
+ var aiAddressAllowed = modelAddressAllowed;
117
58
  var consentShape = strictObject({
118
59
  origin: string(),
119
60
  model: string(),
@@ -147,10 +88,10 @@ var aiSettingOf = /* @__PURE__ */ __name((given) => {
147
88
  const checked = safeParse(settingShape, draft);
148
89
  if (!checked.success) {
149
90
  const field = getDotPath(checked.issues[0]);
150
- throw new CliError("validation_error", field === "provider" ? `the provider is one of ${AI_PROVIDERS.join(", ")}` : field === "base_url" ? "this address is not allowed: use https, or http only on this computer" : "name the model, 1 to 200 characters", { reason: field === "base_url" ? "ai.address-refused" : "ai.setting-invalid" });
91
+ throw new CliError("validation_error", field === "provider" ? `the provider is one of ${AI_PROVIDERS.join(", ")}` : field === "base_url" ? "this address is not allowed: use https, or http only on this computer" : "name the model, 1 to 200 characters", { reason: field === "base_url" ? "model.address-refused" : "ai.setting-invalid" });
151
92
  }
152
- if (checked.output.provider === "ollama" && !loopback(new URL(aiBaseUrl(checked.output)).hostname))
153
- throw new CliError("validation_error", "Ollama is read only on this computer", { reason: "ai.address-refused" });
93
+ if (checked.output.provider === "ollama" && !onThisComputer(aiBaseUrl(checked.output)))
94
+ throw new CliError("validation_error", "Ollama is read only on this computer", { reason: "model.address-refused" });
154
95
  return given.allowImages ? {
155
96
  ...checked.output,
156
97
  images: { origin: aiOrigin(checked.output), model: checked.output.model, at: (/* @__PURE__ */ new Date()).toISOString() }
@@ -191,15 +132,38 @@ var aiKeys = /* @__PURE__ */ __name((app, env, keyring) => {
191
132
  remove: /* @__PURE__ */ __name((origin) => credentials.remove(account(origin)), "remove")
192
133
  };
193
134
  }, "aiKeys");
194
- var aiNeedsKey = /* @__PURE__ */ __name((setting) => setting.provider !== "ollama", "aiNeedsKey");
195
- var keyFor = /* @__PURE__ */ __name((setting, deps) => aiNeedsKey(setting) ? aiKeys(deps.app, deps.env, deps.keyring).read(aiOrigin(setting))?.key : void 0, "keyFor");
135
+ var aiNeedsKey = /* @__PURE__ */ __name((setting) => aiLeavesComputer(setting), "aiNeedsKey");
136
+ var aiTakesKey = /* @__PURE__ */ __name((setting) => setting.provider !== "ollama", "aiTakesKey");
137
+ var keyFor = /* @__PURE__ */ __name((setting, deps) => aiTakesKey(setting) ? aiKeys(deps.app, deps.env, deps.keyring).read(aiOrigin(setting))?.key : void 0, "keyFor");
196
138
  var gatewayFor = /* @__PURE__ */ __name((setting, deps, key) => modelGateway({
197
139
  resolve: /* @__PURE__ */ __name(() => aiTarget(setting), "resolve"),
198
140
  consent: /* @__PURE__ */ __name(() => true, "consent"),
199
141
  key: /* @__PURE__ */ __name(() => key, "key"),
142
+ env: deps.env,
200
143
  ...deps.fetch ? { fetch: deps.fetch } : {},
201
144
  ...deps.signal ? { signal: deps.signal } : {}
202
145
  }), "gatewayFor");
146
+ var aiLeavesComputer = /* @__PURE__ */ __name((setting) => !onThisComputer(aiBaseUrl(setting)), "aiLeavesComputer");
147
+ var sharedModel = /* @__PURE__ */ __name((deps) => {
148
+ const setting = readAiSetting(aiSettingPath(deps.env));
149
+ if (!setting)
150
+ return void 0;
151
+ return { target: { ...aiTarget(setting), baseUrl: aiBaseUrl(setting) }, key: keyFor(setting, deps), setting };
152
+ }, "sharedModel");
153
+ var aiTextReader = /* @__PURE__ */ __name((deps) => {
154
+ const setting = readAiSetting(aiSettingPath(deps.env));
155
+ if (!setting)
156
+ return { refused: "ai.not-set" };
157
+ const key = keyFor(setting, deps);
158
+ if (aiNeedsKey(setting) && !key)
159
+ return { refused: "ai.key-missing" };
160
+ const gateway = gatewayFor(setting, deps, key);
161
+ return {
162
+ by: `${setting.provider}/${setting.model}`,
163
+ leavesComputer: aiLeavesComputer(setting),
164
+ complete: /* @__PURE__ */ __name(async (request) => (await gateway.complete(request)).text, "complete")
165
+ };
166
+ }, "aiTextReader");
203
167
  var reasonOf = /* @__PURE__ */ __name((error) => {
204
168
  if (!(error instanceof CliError))
205
169
  return "ai.failed";
@@ -210,6 +174,8 @@ var reasonOf = /* @__PURE__ */ __name((error) => {
210
174
  return "ai.key-rejected";
211
175
  if (reason === "model.unreachable")
212
176
  return "ai.unreachable";
177
+ if (reason === "model.empty-answer")
178
+ return "ai.empty-answer";
213
179
  if (status === 402)
214
180
  return "ai.no-credit";
215
181
  if (status === 404)
@@ -250,8 +216,9 @@ export {
250
216
  aiOrigin,
251
217
  aiImagesAllowed,
252
218
  aiKeys,
253
- aiNeedsKey,
254
- checkAi,
255
- googleError,
256
- offlineRefused
219
+ aiTakesKey,
220
+ aiLeavesComputer,
221
+ sharedModel,
222
+ aiTextReader,
223
+ checkAi
257
224
  };
@@ -1,16 +1,22 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ refuseModelAddress
5
+ } from "./chunk-CWDC6QJM.js";
3
6
  import {
4
7
  unit
5
- } from "./chunk-IMHW7VIV.js";
8
+ } from "./chunk-BHSLMJF7.js";
9
+ import {
10
+ onThisComputer
11
+ } from "./chunk-AJ3DFPRT.js";
6
12
  import {
7
13
  CliError
8
- } from "./chunk-ELJUBPY4.js";
14
+ } from "./chunk-EA2OB75T.js";
9
15
  import {
10
16
  __name
11
17
  } from "./chunk-ZVVMGPBJ.js";
12
18
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
14
20
  import { setTimeout } from "node:timers/promises";
15
21
  var OPENAI_URL = "https://api.openai.com/v1";
16
22
  var OPENAI_MODELS = {
@@ -19,8 +25,7 @@ var OPENAI_MODELS = {
19
25
  };
20
26
  var DEFAULT_OPENAI_MODEL = "text-embedding-3-small";
21
27
  var PER_REQUEST = 256;
22
- var LOCAL = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]", "::1"]);
23
- var isLocal = /* @__PURE__ */ __name((baseUrl) => LOCAL.has(new URL(baseUrl).hostname), "isLocal");
28
+ var isLocal = /* @__PURE__ */ __name((baseUrl) => onThisComputer(baseUrl), "isLocal");
24
29
  var remoteModel = /* @__PURE__ */ __name(({ model = DEFAULT_OPENAI_MODEL, baseUrl, dims }) => {
25
30
  const known = baseUrl === void 0 ? OPENAI_MODELS[model] : void 0;
26
31
  if (baseUrl === void 0 && !known) {
@@ -39,7 +44,8 @@ var remoteModel = /* @__PURE__ */ __name(({ model = DEFAULT_OPENAI_MODEL, baseUr
39
44
  };
40
45
  }, "remoteModel");
41
46
  var remoteKey = /* @__PURE__ */ __name(({ provider, model, dims }) => `${provider}:${model}:${dims}`, "remoteKey");
42
- var openRemote = /* @__PURE__ */ __name((remote, apiKey, { concurrency = 4, fetch: post = fetch, tries = 5 } = {}) => {
47
+ var openRemote = /* @__PURE__ */ __name((remote, apiKey, { concurrency = 4, fetch: post = fetch, tries = 5, env }) => {
48
+ refuseModelAddress(env ?? process.env, remote.baseUrl, "text to embed");
43
49
  const request = /* @__PURE__ */ __name(async (input) => {
44
50
  for (let attempt = 1; ; attempt++) {
45
51
  let response;
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wirecatDirectory
5
- } from "./chunk-UTNRBOEN.js";
5
+ } from "./chunk-4G7WQNG7.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-ELJUBPY4.js";
8
+ } from "./chunk-EA2OB75T.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/speech/models.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/speech/models.js
14
14
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
15
15
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
16
16
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
137
137
  return model;
138
138
  }, "speechModel");
139
139
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/speech/install.js
140
+ // node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/speech/install.js
141
141
  import { createHash, randomUUID } from "node:crypto";
142
142
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
143
143
  import { rename, rm } from "node:fs/promises";