@wirecat/zoom-cli 0.83.0 → 0.84.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 (481) hide show
  1. package/README.md +10 -10
  2. package/contracts/wirecat.json +34 -1
  3. package/dist/account-removal.d.ts +1 -1
  4. package/dist/account-removal.d.ts.map +1 -1
  5. package/dist/account-removal.js +1 -1
  6. package/dist/account-removal.js.map +1 -1
  7. package/dist/agent-skill.js +1 -1
  8. package/dist/agent-skill.js.map +1 -1
  9. package/dist/answer-entities.d.ts +1 -1
  10. package/dist/answer-entities.d.ts.map +1 -1
  11. package/dist/answer-entities.js +1 -1
  12. package/dist/answer-entities.js.map +1 -1
  13. package/dist/answer-output.d.ts +2 -2
  14. package/dist/answer-output.d.ts.map +1 -1
  15. package/dist/answer-output.js +1 -1
  16. package/dist/answer-output.js.map +1 -1
  17. package/dist/answer-policy.d.ts.map +1 -1
  18. package/dist/answer-policy.js +1 -2
  19. package/dist/answer-policy.js.map +1 -1
  20. package/dist/answers.js +1 -1
  21. package/dist/answers.js.map +1 -1
  22. package/dist/api.d.ts +2 -2
  23. package/dist/api.d.ts.map +1 -1
  24. package/dist/api.js +1 -1
  25. package/dist/api.js.map +1 -1
  26. package/dist/archive-commands.d.ts +1 -1
  27. package/dist/archive-commands.d.ts.map +1 -1
  28. package/dist/archive-commands.js +1 -2
  29. package/dist/archive-commands.js.map +1 -1
  30. package/dist/archive-import.d.ts +1 -1
  31. package/dist/archive-import.d.ts.map +1 -1
  32. package/dist/archive-import.js +1 -1
  33. package/dist/archive-import.js.map +1 -1
  34. package/dist/archive-transcripts.d.ts +1 -1
  35. package/dist/archive-transcripts.d.ts.map +1 -1
  36. package/dist/archive-transcripts.js +1 -2
  37. package/dist/archive-transcripts.js.map +1 -1
  38. package/dist/bin/main.js +3 -3
  39. package/dist/bin/main.js.map +1 -1
  40. package/dist/bin/zm.js +11 -11
  41. package/dist/bundle/answer-policy-OQQWAUHH.js +33 -0
  42. package/dist/bundle/chunk-3YDF76DP.js +922 -0
  43. package/dist/bundle/chunk-AEWYRB6F.js +8 -0
  44. package/dist/bundle/{chunk-OGTN2KVG.js → chunk-AF2Z6VOG.js} +4 -14
  45. package/dist/bundle/{chunk-26TW5RZ6.js → chunk-DAYBU7WR.js} +61 -94
  46. package/dist/bundle/{chunk-2DK5BBFF.js → chunk-JD63PEI3.js} +3 -8
  47. package/dist/bundle/{chunk-H6A4NWYJ.js → chunk-L5ZYKXAY.js} +114 -128
  48. package/dist/bundle/{chunk-R6IA5UQB.js → chunk-W4TDCCT3.js} +8 -2
  49. package/dist/bundle/{chunk-XEOZTA3H.js → chunk-W6YFWJDR.js} +2 -5
  50. package/dist/bundle/{chunk-434YFJAE.js → chunk-WSGD5Q6L.js} +3 -9
  51. package/dist/bundle/config-MP5YLHEY.js +29 -0
  52. package/dist/bundle/{folders-ROKVKSCT.js → folders-B2GKJOC2.js} +2 -7
  53. package/dist/bundle/{main-GCK3VYAA.js → main-YZPLPXB7.js} +19 -41
  54. package/dist/bundle/{output-file-RYIOIXMD.js → output-file-PKA7MJEP.js} +3 -11
  55. package/dist/bundle/{program-OYLVYA4Z.js → program-7JY6XJ6K.js} +642 -801
  56. package/dist/bundle/run-log-ML7ZCWXD.js +54 -0
  57. package/dist/bundle/store-connection-LQGKS3DN.js +21 -0
  58. package/dist/bundle/streaming-PRGWGNHY.js +12 -0
  59. package/dist/bundle/tokens-57RJVBK6.js +18 -0
  60. package/dist/bundle/zm.js +4 -161
  61. package/dist/bundle/{zoom-app-4F4YY4OI.js → zoom-app-EYJST6GF.js} +5 -13
  62. package/dist/chat-file.d.ts +1 -1
  63. package/dist/chat-file.d.ts.map +1 -1
  64. package/dist/commands.js +1 -1
  65. package/dist/commands.js.map +1 -1
  66. package/dist/config-issues.d.ts +1 -1
  67. package/dist/config-issues.d.ts.map +1 -1
  68. package/dist/config-issues.js +1 -1
  69. package/dist/config-issues.js.map +1 -1
  70. package/dist/config.d.ts +1 -2
  71. package/dist/config.d.ts.map +1 -1
  72. package/dist/config.js +1 -2
  73. package/dist/config.js.map +1 -1
  74. package/dist/contacts-commands.d.ts +1 -1
  75. package/dist/contacts-commands.d.ts.map +1 -1
  76. package/dist/contacts-commands.js +1 -1
  77. package/dist/contacts-commands.js.map +1 -1
  78. package/dist/contract-overrides.js +1 -1
  79. package/dist/contract-overrides.js.map +1 -1
  80. package/dist/errors.d.ts +1 -1
  81. package/dist/errors.d.ts.map +1 -1
  82. package/dist/execution.d.ts +1 -1
  83. package/dist/execution.d.ts.map +1 -1
  84. package/dist/execution.js +1 -1
  85. package/dist/execution.js.map +1 -1
  86. package/dist/files.d.ts +2 -2
  87. package/dist/files.d.ts.map +1 -1
  88. package/dist/files.js +1 -1
  89. package/dist/files.js.map +1 -1
  90. package/dist/first-screen.js +1 -1
  91. package/dist/first-screen.js.map +1 -1
  92. package/dist/identity.d.ts +1 -1
  93. package/dist/identity.d.ts.map +1 -1
  94. package/dist/identity.js +6 -0
  95. package/dist/identity.js.map +1 -1
  96. package/dist/ingestion-search-commands.d.ts +1 -1
  97. package/dist/ingestion-search-commands.d.ts.map +1 -1
  98. package/dist/ingestion-search-commands.js +1 -1
  99. package/dist/ingestion-search-commands.js.map +1 -1
  100. package/dist/local-transcription-commands.d.ts +1 -1
  101. package/dist/local-transcription-commands.d.ts.map +1 -1
  102. package/dist/local-transcription-commands.js +1 -2
  103. package/dist/local-transcription-commands.js.map +1 -1
  104. package/dist/local-transcription.d.ts +1 -2
  105. package/dist/local-transcription.d.ts.map +1 -1
  106. package/dist/local-transcription.js +3 -3
  107. package/dist/local-transcription.js.map +1 -1
  108. package/dist/meeting-commands.d.ts +1 -1
  109. package/dist/meeting-commands.d.ts.map +1 -1
  110. package/dist/meeting-commands.js +1 -2
  111. package/dist/meeting-commands.js.map +1 -1
  112. package/dist/meeting-communications-binding.d.ts +1 -2
  113. package/dist/meeting-communications-binding.d.ts.map +1 -1
  114. package/dist/meeting-communications-binding.js.map +1 -1
  115. package/dist/meeting-context-commands.d.ts +1 -1
  116. package/dist/meeting-context-commands.d.ts.map +1 -1
  117. package/dist/meeting-context-commands.js +1 -1
  118. package/dist/meeting-context-commands.js.map +1 -1
  119. package/dist/meeting-context.d.ts +2 -4
  120. package/dist/meeting-context.d.ts.map +1 -1
  121. package/dist/meeting-context.js +1 -1
  122. package/dist/meeting-context.js.map +1 -1
  123. package/dist/meeting-integration-commands.d.ts +1 -1
  124. package/dist/meeting-integration-commands.d.ts.map +1 -1
  125. package/dist/meeting-integration-commands.js +1 -2
  126. package/dist/meeting-integration-commands.js.map +1 -1
  127. package/dist/meeting-integration.d.ts +1 -1
  128. package/dist/meeting-integration.d.ts.map +1 -1
  129. package/dist/meeting-integration.js +1 -1
  130. package/dist/meeting-integration.js.map +1 -1
  131. package/dist/meeting-inventory.d.ts +1 -1
  132. package/dist/meeting-inventory.d.ts.map +1 -1
  133. package/dist/meeting-inventory.js +1 -1
  134. package/dist/meeting-inventory.js.map +1 -1
  135. package/dist/meeting-preparation.d.ts +1 -2
  136. package/dist/meeting-preparation.d.ts.map +1 -1
  137. package/dist/meeting-preparation.js +1 -1
  138. package/dist/meeting-preparation.js.map +1 -1
  139. package/dist/meeting-project-candidates.d.ts +1 -1
  140. package/dist/meeting-project-candidates.d.ts.map +1 -1
  141. package/dist/meeting-project-evidence-commands.d.ts +1 -1
  142. package/dist/meeting-project-evidence-commands.d.ts.map +1 -1
  143. package/dist/meeting-project-evidence-commands.js +1 -2
  144. package/dist/meeting-project-evidence-commands.js.map +1 -1
  145. package/dist/meeting-read-command-bindings.js +1 -1
  146. package/dist/meeting-read-command-bindings.js.map +1 -1
  147. package/dist/meeting-review-commands.d.ts +1 -3
  148. package/dist/meeting-review-commands.d.ts.map +1 -1
  149. package/dist/meeting-review-commands.js +1 -2
  150. package/dist/meeting-review-commands.js.map +1 -1
  151. package/dist/meeting-search-commands.d.ts +2 -3
  152. package/dist/meeting-search-commands.d.ts.map +1 -1
  153. package/dist/meeting-search-commands.js +2 -4
  154. package/dist/meeting-search-commands.js.map +1 -1
  155. package/dist/meeting-searches-commands.d.ts +1 -2
  156. package/dist/meeting-searches-commands.d.ts.map +1 -1
  157. package/dist/meeting-searches-commands.js +1 -2
  158. package/dist/meeting-searches-commands.js.map +1 -1
  159. package/dist/meeting-selection-options.d.ts +1 -1
  160. package/dist/meeting-selection-options.d.ts.map +1 -1
  161. package/dist/meeting-selection-options.js +1 -2
  162. package/dist/meeting-selection-options.js.map +1 -1
  163. package/dist/meeting-semantic-commands.d.ts +1 -2
  164. package/dist/meeting-semantic-commands.d.ts.map +1 -1
  165. package/dist/meeting-semantic-commands.js +1 -1
  166. package/dist/meeting-semantic-commands.js.map +1 -1
  167. package/dist/meeting-semantic.d.ts +2 -2
  168. package/dist/meeting-semantic.d.ts.map +1 -1
  169. package/dist/meeting-semantic.js +1 -1
  170. package/dist/meeting-semantic.js.map +1 -1
  171. package/dist/meeting-source.d.ts +1 -1
  172. package/dist/meeting-source.d.ts.map +1 -1
  173. package/dist/meeting-stats-commands.d.ts +1 -3
  174. package/dist/meeting-stats-commands.d.ts.map +1 -1
  175. package/dist/meeting-stats-commands.js +1 -2
  176. package/dist/meeting-stats-commands.js.map +1 -1
  177. package/dist/models-commands.d.ts +1 -1
  178. package/dist/models-commands.d.ts.map +1 -1
  179. package/dist/models-commands.js +1 -1
  180. package/dist/models-commands.js.map +1 -1
  181. package/dist/occurrence-schedule.d.ts +1 -1
  182. package/dist/occurrence-schedule.d.ts.map +1 -1
  183. package/dist/permissions.d.ts +1 -1
  184. package/dist/permissions.d.ts.map +1 -1
  185. package/dist/permissions.js +1 -2
  186. package/dist/permissions.js.map +1 -1
  187. package/dist/profile.js +1 -1
  188. package/dist/profile.js.map +1 -1
  189. package/dist/program-bindings.js +1 -1
  190. package/dist/program-bindings.js.map +1 -1
  191. package/dist/program.d.ts +1 -2
  192. package/dist/program.d.ts.map +1 -1
  193. package/dist/program.js +1 -1
  194. package/dist/program.js.map +1 -1
  195. package/dist/progress-commands.d.ts +1 -1
  196. package/dist/progress-commands.d.ts.map +1 -1
  197. package/dist/progress-commands.js +1 -2
  198. package/dist/progress-commands.js.map +1 -1
  199. package/dist/read-only.js +1 -1
  200. package/dist/read-only.js.map +1 -1
  201. package/dist/recording-archive.d.ts.map +1 -1
  202. package/dist/recording-archive.js +1 -2
  203. package/dist/recording-archive.js.map +1 -1
  204. package/dist/recording-manifest.js +1 -1
  205. package/dist/recording-manifest.js.map +1 -1
  206. package/dist/recording-partial-store.d.ts +2 -3
  207. package/dist/recording-partial-store.d.ts.map +1 -1
  208. package/dist/recording-partial-store.js +1 -1
  209. package/dist/recording-partial-store.js.map +1 -1
  210. package/dist/recording-promotion-store.d.ts +1 -2
  211. package/dist/recording-promotion-store.d.ts.map +1 -1
  212. package/dist/recording-promotion-store.js +1 -2
  213. package/dist/recording-promotion-store.js.map +1 -1
  214. package/dist/recording-schedule-commands.d.ts +1 -1
  215. package/dist/recording-schedule-commands.d.ts.map +1 -1
  216. package/dist/recording-schedule-commands.js +1 -1
  217. package/dist/recording-schedule-commands.js.map +1 -1
  218. package/dist/recording-schedule-store.js +1 -1
  219. package/dist/recording-schedule-store.js.map +1 -1
  220. package/dist/recording-schedule-systemd.js +1 -1
  221. package/dist/recording-schedule-systemd.js.map +1 -1
  222. package/dist/recording-schedule.d.ts +1 -1
  223. package/dist/recording-schedule.d.ts.map +1 -1
  224. package/dist/recording-schedule.js +1 -1
  225. package/dist/recording-schedule.js.map +1 -1
  226. package/dist/recording-sync-store.d.ts +1 -1
  227. package/dist/recording-sync-store.d.ts.map +1 -1
  228. package/dist/recording-sync-store.js +1 -2
  229. package/dist/recording-sync-store.js.map +1 -1
  230. package/dist/recording-sync.d.ts +1 -1
  231. package/dist/recording-sync.d.ts.map +1 -1
  232. package/dist/recording-sync.js +1 -1
  233. package/dist/recording-sync.js.map +1 -1
  234. package/dist/recording-writer-lease.d.ts +1 -1
  235. package/dist/recording-writer-lease.d.ts.map +1 -1
  236. package/dist/recording-writer-lease.js +1 -1
  237. package/dist/recording-writer-lease.js.map +1 -1
  238. package/dist/recordings.d.ts +1 -1
  239. package/dist/recordings.d.ts.map +1 -1
  240. package/dist/recordings.js.map +1 -1
  241. package/dist/remote-meetings.d.ts +19 -19
  242. package/dist/remote-meetings.d.ts.map +1 -1
  243. package/dist/remote-meetings.js +1 -1
  244. package/dist/remote-meetings.js.map +1 -1
  245. package/dist/request-events.d.ts +1 -1
  246. package/dist/request-events.d.ts.map +1 -1
  247. package/dist/request-events.js +1 -1
  248. package/dist/request-events.js.map +1 -1
  249. package/dist/run-log.d.ts +1 -1
  250. package/dist/run-log.d.ts.map +1 -1
  251. package/dist/run-log.js +1 -1
  252. package/dist/run-log.js.map +1 -1
  253. package/dist/run.d.ts +1 -1
  254. package/dist/run.d.ts.map +1 -1
  255. package/dist/run.js +1 -2
  256. package/dist/run.js.map +1 -1
  257. package/dist/series-inventory.d.ts +2 -2
  258. package/dist/series-inventory.js +1 -1
  259. package/dist/series-inventory.js.map +1 -1
  260. package/dist/setup-commands.d.ts +1 -1
  261. package/dist/setup-commands.d.ts.map +1 -1
  262. package/dist/setup-commands.js +1 -1
  263. package/dist/setup-commands.js.map +1 -1
  264. package/dist/store-commands.d.ts +1 -1
  265. package/dist/store-commands.d.ts.map +1 -1
  266. package/dist/store-commands.js +1 -2
  267. package/dist/store-commands.js.map +1 -1
  268. package/dist/store-connection.d.ts +1 -3
  269. package/dist/store-connection.d.ts.map +1 -1
  270. package/dist/store-connection.js +14 -14
  271. package/dist/store-connection.js.map +1 -1
  272. package/dist/sync-progress.d.ts +4 -4
  273. package/dist/sync-progress.d.ts.map +1 -1
  274. package/dist/sync-progress.js +1 -1
  275. package/dist/sync-progress.js.map +1 -1
  276. package/dist/tokens.d.ts +1 -1
  277. package/dist/tokens.d.ts.map +1 -1
  278. package/dist/tokens.js +1 -1
  279. package/dist/tokens.js.map +1 -1
  280. package/dist/unified-search.d.ts +1 -1
  281. package/dist/unified-search.d.ts.map +1 -1
  282. package/dist/upcoming-meetings.d.ts +2 -2
  283. package/dist/upcoming-meetings.js +1 -1
  284. package/dist/upcoming-meetings.js.map +1 -1
  285. package/dist/upgrade.d.ts.map +1 -1
  286. package/dist/upgrade.js +1 -2
  287. package/dist/upgrade.js.map +1 -1
  288. package/dist/version.d.ts +1 -1
  289. package/dist/version.js +1 -1
  290. package/dist/watch-commands.d.ts +1 -2
  291. package/dist/watch-commands.d.ts.map +1 -1
  292. package/dist/watch-commands.js +1 -2
  293. package/dist/watch-commands.js.map +1 -1
  294. package/dist/watch-service.d.ts +1 -1
  295. package/dist/watch-service.d.ts.map +1 -1
  296. package/dist/watch-service.js +1 -1
  297. package/dist/watch-service.js.map +1 -1
  298. package/dist/zoom-app.d.ts +2 -2
  299. package/dist/zoom-app.d.ts.map +1 -1
  300. package/dist/zoom-app.js +1 -1
  301. package/dist/zoom-app.js.map +1 -1
  302. package/dist/zoom-search-commands.d.ts +1 -1
  303. package/dist/zoom-search-commands.d.ts.map +1 -1
  304. package/dist/zoom-search-commands.js +1 -1
  305. package/dist/zoom-search-commands.js.map +1 -1
  306. package/dist/zoom-session.d.ts +1 -1
  307. package/dist/zoom-session.d.ts.map +1 -1
  308. package/dist/zoom-session.js +1 -1
  309. package/dist/zoom-session.js.map +1 -1
  310. package/package.json +3 -3
  311. package/scenarios/person-in-meetings.md +1 -1
  312. package/skills/zoom-cli/SKILL.md +1 -1
  313. package/skills/zoom-cli/references/people-and-projects.md +5 -5
  314. package/skills/zoom-cli/references/prepare.md +2 -2
  315. package/dist/bundle/agent-3HDWEZ5M.js +0 -47
  316. package/dist/bundle/all-profiles-RY2OMSDL.js +0 -321
  317. package/dist/bundle/answer-policy-IFVXPPGW.js +0 -131
  318. package/dist/bundle/anthropic-36VPSF7B.js +0 -91
  319. package/dist/bundle/app-server-ZVJVUGB7.js +0 -267
  320. package/dist/bundle/bun-F4M4KCNA.js +0 -169
  321. package/dist/bundle/bun-sqlite-IOPYIUA7.js +0 -76
  322. package/dist/bundle/chunk-2IBKKVVZ.js +0 -335
  323. package/dist/bundle/chunk-2S54TM4N.js +0 -230
  324. package/dist/bundle/chunk-3AQHKXVR.js +0 -161
  325. package/dist/bundle/chunk-3CW2C7ZA.js +0 -217
  326. package/dist/bundle/chunk-3KUEZK5Z.js +0 -73
  327. package/dist/bundle/chunk-3PXUQFHX.js +0 -2333
  328. package/dist/bundle/chunk-3QN5KDFZ.js +0 -3012
  329. package/dist/bundle/chunk-575JMTDR.js +0 -562
  330. package/dist/bundle/chunk-5B2LV4MS.js +0 -26
  331. package/dist/bundle/chunk-5WL5RHOO.js +0 -167
  332. package/dist/bundle/chunk-6C7ESL5N.js +0 -295
  333. package/dist/bundle/chunk-6E4KLYNP.js +0 -229
  334. package/dist/bundle/chunk-7JDXR75Q.js +0 -465
  335. package/dist/bundle/chunk-AK3H2C65.js +0 -1349
  336. package/dist/bundle/chunk-AQ5RIOUE.js +0 -633
  337. package/dist/bundle/chunk-AQLUAQXJ.js +0 -1259
  338. package/dist/bundle/chunk-ASTLGFTR.js +0 -12270
  339. package/dist/bundle/chunk-ATHBB7OU.js +0 -106
  340. package/dist/bundle/chunk-B2NM65RD.js +0 -80
  341. package/dist/bundle/chunk-B4KHDXJE.js +0 -64
  342. package/dist/bundle/chunk-BAFC7WNI.js +0 -276
  343. package/dist/bundle/chunk-BBGJQMRI.js +0 -34
  344. package/dist/bundle/chunk-BTLZYRIW.js +0 -1007
  345. package/dist/bundle/chunk-BZDS2X6Y.js +0 -5150
  346. package/dist/bundle/chunk-C7JPYWYQ.js +0 -77
  347. package/dist/bundle/chunk-CDQUW25G.js +0 -3752
  348. package/dist/bundle/chunk-CJWGJBHW.js +0 -1044
  349. package/dist/bundle/chunk-D72URWJE.js +0 -532
  350. package/dist/bundle/chunk-D7RCUODT.js +0 -185
  351. package/dist/bundle/chunk-DFDN6AUB.js +0 -21
  352. package/dist/bundle/chunk-DNCLQPOM.js +0 -7
  353. package/dist/bundle/chunk-DQJECJUE.js +0 -2257
  354. package/dist/bundle/chunk-E4JQ3MCW.js +0 -2338
  355. package/dist/bundle/chunk-E4ODYLEK.js +0 -209
  356. package/dist/bundle/chunk-EE45N67Q.js +0 -86
  357. package/dist/bundle/chunk-EEEU4MKK.js +0 -210
  358. package/dist/bundle/chunk-ESN3W2MZ.js +0 -2624
  359. package/dist/bundle/chunk-ETIZGA4P.js +0 -340
  360. package/dist/bundle/chunk-F44QK6CK.js +0 -52
  361. package/dist/bundle/chunk-FH2UFNH6.js +0 -54
  362. package/dist/bundle/chunk-FTH6WGYO.js +0 -24
  363. package/dist/bundle/chunk-FWACRG4X.js +0 -160
  364. package/dist/bundle/chunk-FXBHOCJK.js +0 -24600
  365. package/dist/bundle/chunk-G5SZL7G2.js +0 -150
  366. package/dist/bundle/chunk-G6CHEFAG.js +0 -108
  367. package/dist/bundle/chunk-GHJD7PE6.js +0 -1068
  368. package/dist/bundle/chunk-GZ7WBU5Y.js +0 -18
  369. package/dist/bundle/chunk-HKLRI2LB.js +0 -555
  370. package/dist/bundle/chunk-HMD4FZYY.js +0 -133
  371. package/dist/bundle/chunk-HO4JGD4Q.js +0 -16
  372. package/dist/bundle/chunk-HTQTIKWP.js +0 -928
  373. package/dist/bundle/chunk-HUAHLO6N.js +0 -29
  374. package/dist/bundle/chunk-IANKXHSE.js +0 -46
  375. package/dist/bundle/chunk-IQZXFWFI.js +0 -170
  376. package/dist/bundle/chunk-ISQ23VKV.js +0 -123
  377. package/dist/bundle/chunk-JEH33ZCD.js +0 -58
  378. package/dist/bundle/chunk-JUNQYWQ2.js +0 -228
  379. package/dist/bundle/chunk-JUXMVQWJ.js +0 -799
  380. package/dist/bundle/chunk-KHQDWYCG.js +0 -82
  381. package/dist/bundle/chunk-KYRYD4CR.js +0 -38
  382. package/dist/bundle/chunk-LBGT6W4R.js +0 -377
  383. package/dist/bundle/chunk-LN7HRYTH.js +0 -80
  384. package/dist/bundle/chunk-MEB7HBTM.js +0 -95
  385. package/dist/bundle/chunk-MEEFWYX3.js +0 -388
  386. package/dist/bundle/chunk-MNOAMJ6H.js +0 -94
  387. package/dist/bundle/chunk-MYHPXJDG.js +0 -142
  388. package/dist/bundle/chunk-NGI37RFW.js +0 -692
  389. package/dist/bundle/chunk-NZMWD7Y3.js +0 -68149
  390. package/dist/bundle/chunk-O6IECJRM.js +0 -54
  391. package/dist/bundle/chunk-OBWL3BUV.js +0 -800
  392. package/dist/bundle/chunk-OEEWVKJX.js +0 -53
  393. package/dist/bundle/chunk-OQYZ3W4K.js +0 -374
  394. package/dist/bundle/chunk-P3ZCTYGW.js +0 -101
  395. package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
  396. package/dist/bundle/chunk-PVEBAHFU.js +0 -100
  397. package/dist/bundle/chunk-R2B6PUVI.js +0 -206
  398. package/dist/bundle/chunk-RLOH7RDN.js +0 -362
  399. package/dist/bundle/chunk-RQ4AXSCJ.js +0 -616
  400. package/dist/bundle/chunk-RYGTCRFZ.js +0 -140
  401. package/dist/bundle/chunk-S4PXWIE4.js +0 -408
  402. package/dist/bundle/chunk-SDZZYZLL.js +0 -58
  403. package/dist/bundle/chunk-SHQAYUK6.js +0 -1199
  404. package/dist/bundle/chunk-T3W4V4A6.js +0 -63
  405. package/dist/bundle/chunk-TCT5D2X2.js +0 -6848
  406. package/dist/bundle/chunk-TDWPOSPR.js +0 -198
  407. package/dist/bundle/chunk-TER3N27H.js +0 -353
  408. package/dist/bundle/chunk-TMTNP7QN.js +0 -214
  409. package/dist/bundle/chunk-TO5UEWXR.js +0 -288
  410. package/dist/bundle/chunk-TXDR6YSF.js +0 -23
  411. package/dist/bundle/chunk-TY7NDMFY.js +0 -46
  412. package/dist/bundle/chunk-UAWSINMC.js +0 -875
  413. package/dist/bundle/chunk-UBH7YF3C.js +0 -9354
  414. package/dist/bundle/chunk-UEAE3JUU.js +0 -46576
  415. package/dist/bundle/chunk-UHR363OD.js +0 -357
  416. package/dist/bundle/chunk-UM52A76S.js +0 -259
  417. package/dist/bundle/chunk-URP6BTHN.js +0 -624
  418. package/dist/bundle/chunk-UWQEAA6S.js +0 -13
  419. package/dist/bundle/chunk-VR7QZGRU.js +0 -185
  420. package/dist/bundle/chunk-VRH5PBSL.js +0 -755
  421. package/dist/bundle/chunk-VTLQTQKY.js +0 -1756
  422. package/dist/bundle/chunk-VTYNLTDW.js +0 -331
  423. package/dist/bundle/chunk-WY7XG6TE.js +0 -76
  424. package/dist/bundle/chunk-XH23ML2V.js +0 -195
  425. package/dist/bundle/chunk-XYF76A26.js +0 -27556
  426. package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
  427. package/dist/bundle/chunk-ZDYJAEVB.js +0 -84
  428. package/dist/bundle/chunk-ZJ63HDBT.js +0 -71
  429. package/dist/bundle/chunk-ZT4ZPUIO.js +0 -218
  430. package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
  431. package/dist/bundle/cli-JK6PQSSN.js +0 -1270
  432. package/dist/bundle/command-contract-F3QNBKPX.js +0 -46
  433. package/dist/bundle/command-server-entry-DJLGN62J.js +0 -176
  434. package/dist/bundle/config-TYYMV3HV.js +0 -118
  435. package/dist/bundle/decode-ZZICNNFF.js +0 -31
  436. package/dist/bundle/dispatch-FKMIPCPQ.js +0 -412
  437. package/dist/bundle/dist-NQPF25XI.js +0 -322
  438. package/dist/bundle/dist-PAKDDIBT.js +0 -191
  439. package/dist/bundle/dist-XUFQCJXW.js +0 -7577
  440. package/dist/bundle/echarts-QMAA7HH5.js +0 -42501
  441. package/dist/bundle/embed-T64EUKUI.js +0 -38
  442. package/dist/bundle/embedder-ZEKISZXI.js +0 -111
  443. package/dist/bundle/failure-XTWBYI2A.js +0 -25
  444. package/dist/bundle/first-run-ZFNY4RRH.js +0 -29
  445. package/dist/bundle/first-screen-LPGCHRHZ.js +0 -47
  446. package/dist/bundle/instructions-4H7UREH2.js +0 -11
  447. package/dist/bundle/mcp-5HFPWC3W.js +0 -167
  448. package/dist/bundle/meeting-combined-7HDPOUPB.js +0 -28
  449. package/dist/bundle/meeting-model-MVUW7UPQ.js +0 -26
  450. package/dist/bundle/meeting-semantic-IF633WGX.js +0 -23
  451. package/dist/bundle/meetings-RY2AAPHV.js +0 -332
  452. package/dist/bundle/node-KM3CUABH.js +0 -2340
  453. package/dist/bundle/node-P3PUHKYH.js +0 -176
  454. package/dist/bundle/node-TLZSIHIJ.js +0 -21
  455. package/dist/bundle/node-sqlite-ASAZJNHE.js +0 -74
  456. package/dist/bundle/oauth-4U3OCK3W.js +0 -20
  457. package/dist/bundle/oauth-AJARLPSY.js +0 -46
  458. package/dist/bundle/open-SEJRY2ZI.js +0 -23
  459. package/dist/bundle/openai-FZDSC2AA.js +0 -28
  460. package/dist/bundle/process-AFIXYXWL.js +0 -91
  461. package/dist/bundle/prompt-BCRD64F4.js +0 -17
  462. package/dist/bundle/public-SVJILCNI.js +0 -206
  463. package/dist/bundle/recognize-25ITJWGX.js +0 -26
  464. package/dist/bundle/remote-5FBAJX7O.js +0 -32
  465. package/dist/bundle/rerank-2HGWWORY.js +0 -52
  466. package/dist/bundle/run-log-7HRF4Y47.js +0 -145
  467. package/dist/bundle/serve-RL35MSJD.js +0 -199
  468. package/dist/bundle/server-QUSBWACP.js +0 -229
  469. package/dist/bundle/server-SCK2SRDK.js +0 -96
  470. package/dist/bundle/services-BGRIQNDC.js +0 -609
  471. package/dist/bundle/speech-4W3ZMTFK.js +0 -89
  472. package/dist/bundle/sqlite-runtime-K3KLRZCV.js +0 -20
  473. package/dist/bundle/state-GYL4C74G.js +0 -36
  474. package/dist/bundle/store-27UQMNEO.js +0 -189
  475. package/dist/bundle/store-NLYH5SQX.js +0 -316
  476. package/dist/bundle/store-connection-CZILWRSR.js +0 -112
  477. package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +0 -84
  478. package/dist/bundle/streaming-73EKEGPF.js +0 -18
  479. package/dist/bundle/surface-CV3C4RV2.js +0 -82
  480. package/dist/bundle/tokens-PY3S22LY.js +0 -27
  481. /package/dist/bundle/{chunk-7ECP5ZQR.js → chunk-7O7XM37N.js} +0 -0
@@ -1,140 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- parseReference
5
- } from "./chunk-7JDXR75Q.js";
6
- import {
7
- __name
8
- } from "./chunk-ZVVMGPBJ.js";
9
-
10
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/links.js
11
- var LINK_VERSION = "v1";
12
- var DEFAULT_LINK_CONFIG = { base: "https://wirecat.dev/o", enabled: true };
13
- var APP_PREFIX = "wirecat://open";
14
- var MAX_PATH = 512;
15
- var MAX_SEGMENTS = 6;
16
- var TASK_FILTERS = ["overdue", "today", "tomorrow", "undated"];
17
- var DATE = /^\d{4}-\d{2}-\d{2}$/;
18
- var DATE_TIME = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})$/;
19
- var isMoment = /* @__PURE__ */ __name((text, pattern) => pattern.test(text) && !Number.isNaN(Date.parse(text)), "isMoment");
20
- var partsOf = /* @__PURE__ */ __name((target) => {
21
- switch (target.type) {
22
- case "message":
23
- return ["msg", target.provider, target.account, target.chat, target.message];
24
- case "chat":
25
- return ["chat", target.provider, target.account, target.chat];
26
- case "task":
27
- case "person":
28
- case "project":
29
- return [target.type, target.id];
30
- case "tasks":
31
- return target.filter === "new" ? ["tasks", "new", target.since] : ["tasks", target.filter];
32
- case "proposal":
33
- return ["proposal", target.id];
34
- case "digest":
35
- return ["digest", target.date];
36
- case "sync":
37
- return target.account === void 0 ? ["sync", target.tool] : ["sync", target.tool, target.account];
38
- case "meeting":
39
- return ["meeting", target.provider, target.account, target.meeting];
40
- }
41
- }, "partsOf");
42
- var pathOf = /* @__PURE__ */ __name((target) => partsOf(target).map(encodeURIComponent).join("/"), "pathOf");
43
- var targetOfParts = /* @__PURE__ */ __name((parts) => {
44
- const [kind, ...rest] = parts;
45
- const [a = "", b = "", c = "", d = ""] = rest;
46
- switch (kind) {
47
- case "msg":
48
- return rest.length === 4 ? { type: "message", provider: a, account: b, chat: c, message: d } : null;
49
- case "chat":
50
- return rest.length === 3 ? { type: "chat", provider: a, account: b, chat: c } : null;
51
- case "task":
52
- case "person":
53
- case "project":
54
- return rest.length === 1 ? { type: kind, id: a } : null;
55
- case "tasks":
56
- if (rest.length === 1 && TASK_FILTERS.includes(a))
57
- return { type: "tasks", filter: a };
58
- return rest.length === 2 && a === "new" && (isMoment(b, DATE) || isMoment(b, DATE_TIME)) ? { type: "tasks", filter: "new", since: b } : null;
59
- case "proposal":
60
- return rest.length === 1 ? { type: "proposal", id: a } : null;
61
- case "digest":
62
- return rest.length === 1 && isMoment(a, DATE) ? { type: "digest", date: a } : null;
63
- case "sync":
64
- return rest.length === 1 || rest.length === 2 ? { type: "sync", tool: a, ...rest.length === 2 ? { account: b } : {} } : null;
65
- case "meeting":
66
- return rest.length === 3 ? { type: "meeting", provider: a, account: b, meeting: c } : null;
67
- default:
68
- return null;
69
- }
70
- }, "targetOfParts");
71
- var targetOfPath = /* @__PURE__ */ __name((path) => {
72
- const raw = path.split("/");
73
- if (raw.some((part) => part === ""))
74
- return null;
75
- try {
76
- return targetOfParts(raw.map(decodeURIComponent));
77
- } catch {
78
- return null;
79
- }
80
- }, "targetOfPath");
81
- var formatLink = /* @__PURE__ */ __name((target) => `/${LINK_VERSION}/${pathOf(target)}`, "formatLink");
82
- var parseLink = /* @__PURE__ */ __name((text) => {
83
- const link = text.trim();
84
- const path = link.startsWith(`${APP_PREFIX}/`) ? link.slice(APP_PREFIX.length) : link.startsWith("https://") && link.includes("#") ? link.slice(link.indexOf("#") + 1) : link;
85
- if (path.length > MAX_PATH || !path.startsWith(`/${LINK_VERSION}/`))
86
- return null;
87
- const rest = path.split("?")[0].slice(LINK_VERSION.length + 2);
88
- if (rest.split("/").length + 1 > MAX_SEGMENTS)
89
- return null;
90
- return targetOfPath(rest);
91
- }, "parseLink");
92
- var LINK_ONLY = /* @__PURE__ */ new Set(["tasks", "proposal", "digest", "sync"]);
93
- var FROM_REFERENCE = /* @__PURE__ */ new Set(["message", "chat", "task", "person", "project"]);
94
- var ENTITY_KINDS = /* @__PURE__ */ new Set(["person", "project"]);
95
- var refsForLink = /* @__PURE__ */ __name((refs) => [
96
- ...refs.filter((ref) => !ENTITY_KINDS.has(ref.slice(0, ref.indexOf(":")))),
97
- ...refs.filter((ref) => ENTITY_KINDS.has(ref.slice(0, ref.indexOf(":"))))
98
- ], "refsForLink");
99
- var linkTargetOf = /* @__PURE__ */ __name((ref) => {
100
- const text = ref.trim();
101
- const colon = text.indexOf(":");
102
- if (colon < 0)
103
- return null;
104
- const kind = text.slice(0, colon);
105
- if (LINK_ONLY.has(kind))
106
- return targetOfPath(`${kind}/${text.slice(colon + 1)}`);
107
- try {
108
- const reference = parseReference(text);
109
- return FROM_REFERENCE.has(reference.type) ? reference : null;
110
- } catch {
111
- return null;
112
- }
113
- }, "linkTargetOf");
114
- var linkConfigOf = /* @__PURE__ */ __name((section) => {
115
- const value = section && typeof section === "object" ? section : {};
116
- const base = typeof value.base === "string" && /^https:\/\/[^\s#?]+$/.test(value.base) ? value.base.replace(/\/+$/, "") : DEFAULT_LINK_CONFIG.base;
117
- return { base, enabled: typeof value.enabled === "boolean" ? value.enabled : DEFAULT_LINK_CONFIG.enabled };
118
- }, "linkConfigOf");
119
- var linkFor = /* @__PURE__ */ __name((ref, { form, config = DEFAULT_LINK_CONFIG, env = process.env }) => {
120
- if (!config.enabled || env.WIRECAT_LINKS === "off")
121
- return null;
122
- const target = typeof ref === "string" ? linkTargetOf(ref) : ref;
123
- if (target === null)
124
- return null;
125
- const path = formatLink(target);
126
- if (path.length > MAX_PATH || parseLink(path) === null)
127
- return null;
128
- return form === "app" ? `${APP_PREFIX}${path}` : `${config.base}#${path}`;
129
- }, "linkFor");
130
-
131
- export {
132
- LINK_VERSION,
133
- DEFAULT_LINK_CONFIG,
134
- formatLink,
135
- parseLink,
136
- refsForLink,
137
- linkTargetOf,
138
- linkConfigOf,
139
- linkFor
140
- };
@@ -1,408 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- CliError
5
- } from "./chunk-IANKXHSE.js";
6
- import {
7
- __name
8
- } from "./chunk-ZVVMGPBJ.js";
9
-
10
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
11
- import { randomUUID } from "node:crypto";
12
- import { constants } from "node:fs";
13
- import { link, open, realpath, rename, unlink } from "node:fs/promises";
14
- import { basename, dirname, join } from "node:path";
15
- var openFolder = /* @__PURE__ */ __name((folder) => process.platform === "win32" ? Promise.resolve(void 0) : open(folder, constants.O_RDONLY | (constants.O_DIRECTORY ?? 0) | (constants.O_NOFOLLOW ?? 0)), "openFolder");
16
- var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384, overwrite = true, signal, beforePublish } = {}) => {
17
- signal?.throwIfAborted();
18
- const folder = await realpath(dirname(path));
19
- const target = join(folder, basename(path));
20
- const directory = await openFolder(folder);
21
- try {
22
- const temporary = join(folder, `.${basename(path)}.${randomUUID()}.tmp`);
23
- let handle = await open(temporary, "wx", mode);
24
- let published = false;
25
- try {
26
- await handle.writeFile(content);
27
- await handle.sync();
28
- await handle.close();
29
- handle = void 0;
30
- signal?.throwIfAborted();
31
- await beforePublish?.();
32
- if (overwrite)
33
- await rename(temporary, target);
34
- else
35
- await link(temporary, target);
36
- published = overwrite;
37
- await directory?.sync();
38
- } finally {
39
- await handle?.close().catch(() => void 0);
40
- if (!published)
41
- await unlink(temporary).catch(() => void 0);
42
- }
43
- } finally {
44
- await directory?.close().catch(() => void 0);
45
- }
46
- }, "writeFileAtomic");
47
-
48
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
49
- import { constants as constants2 } from "node:fs";
50
- import { lstat, open as open2 } from "node:fs/promises";
51
- var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
52
- var sameIdentity = /* @__PURE__ */ __name((left, right) => left.ino === right.ino && deviceOf(left.dev) === deviceOf(right.dev), "sameIdentity");
53
- var openOrdinaryFile = /* @__PURE__ */ __name(async (path, options = {}) => {
54
- const before = await lstat(path, { bigint: true });
55
- if (before.isSymbolicLink())
56
- throw new CliError("validation_error", "archive path must be an ordinary file without a symlink");
57
- if (!before.isFile())
58
- throw new CliError("validation_error", "archive path must be an ordinary file");
59
- const access = options.writable ? constants2.O_RDWR : constants2.O_RDONLY;
60
- const flags = process.platform === "win32" ? access : access | (constants2.O_NOFOLLOW ?? 0) | (constants2.O_NONBLOCK ?? 0);
61
- const file = await open2(path, flags);
62
- try {
63
- const opened = await file.stat({ bigint: true });
64
- const after = await lstat(path, { bigint: true });
65
- if (!opened.isFile() || !after.isFile() || before.ino !== opened.ino || before.ino !== after.ino)
66
- throw new CliError("validation_error", "archive file changed while opening");
67
- if (process.platform === "win32" && before.dev === 0n && after.dev === 0n) {
68
- const witness = await open2(path, flags);
69
- try {
70
- const identified = await witness.stat({ bigint: true });
71
- const final = await lstat(path, { bigint: true });
72
- if (opened.dev === 0n || !identified.isFile() || !final.isFile() || !sameIdentity(identified, opened) || final.ino !== before.ino || final.dev !== 0n && deviceOf(final.dev) !== deviceOf(opened.dev))
73
- throw new CliError("validation_error", "archive file changed while opening");
74
- } finally {
75
- await witness.close();
76
- }
77
- } else if (deviceOf(before.dev) !== deviceOf(opened.dev) || deviceOf(before.dev) !== deviceOf(after.dev)) {
78
- throw new CliError("validation_error", "archive file changed while opening");
79
- }
80
- return file;
81
- } catch (error) {
82
- await file.close();
83
- throw error;
84
- }
85
- }, "openOrdinaryFile");
86
- var sameOrdinaryFile = /* @__PURE__ */ __name(async (path, created) => {
87
- let file;
88
- try {
89
- file = await openOrdinaryFile(path);
90
- } catch (error) {
91
- if (error instanceof CliError || typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT")
92
- return false;
93
- throw error;
94
- }
95
- try {
96
- return sameIdentity(created, await file.stat({ bigint: true }));
97
- } finally {
98
- await file.close();
99
- }
100
- }, "sameOrdinaryFile");
101
- var syncDirectory = /* @__PURE__ */ __name(async (path) => {
102
- if (process.platform === "win32")
103
- return;
104
- const directory = await open2(path, constants2.O_RDONLY | (constants2.O_DIRECTORY ?? 0) | (constants2.O_NOFOLLOW ?? 0));
105
- try {
106
- if (!(await directory.stat()).isDirectory())
107
- throw new CliError("validation_error", "archive publication directory must be ordinary");
108
- await directory.sync();
109
- } finally {
110
- await directory.close();
111
- }
112
- }, "syncDirectory");
113
-
114
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/lock.js
115
- import { mkdir as mkdir2 } from "node:fs/promises";
116
- import { basename as basename2, dirname as dirname2 } from "node:path";
117
-
118
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
119
- import { randomUUID as randomUUID2 } from "node:crypto";
120
- import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
121
- import { hostname as hostname2 } from "node:os";
122
- import { join as join3 } from "node:path";
123
-
124
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
125
- import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
126
- import { join as join2 } from "node:path";
127
-
128
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
129
- import { hostname } from "node:os";
130
- var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
131
- var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
132
- signal?.throwIfAborted();
133
- try {
134
- const file = await openOrdinaryFile(path);
135
- try {
136
- if ((await file.stat()).size > 4096)
137
- return null;
138
- const buffer = Buffer.alloc(4097);
139
- let size = 0;
140
- while (size < buffer.length) {
141
- signal?.throwIfAborted();
142
- const { bytesRead } = await file.read(buffer, size, buffer.length - size, size);
143
- if (bytesRead === 0)
144
- break;
145
- size += bytesRead;
146
- }
147
- signal?.throwIfAborted();
148
- if (size > 4096)
149
- return null;
150
- const owner = JSON.parse(buffer.subarray(0, size).toString("utf8"));
151
- if (owner?.version !== 1 || !Number.isSafeInteger(owner.pid) || owner.pid <= 0 || typeof owner.host !== "string" || !owner.host.trim() || !/^[a-f0-9-]{36}$/.test(owner.nonce) || name !== `${owner.pid}-${owner.nonce}.json`)
152
- return null;
153
- return owner;
154
- } finally {
155
- await file.close();
156
- }
157
- } catch {
158
- signal?.throwIfAborted();
159
- return null;
160
- }
161
- }, "readLeaseOwner");
162
- var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
163
- if (owner.host !== hostname())
164
- return "foreign";
165
- try {
166
- process.kill(owner.pid, 0);
167
- return "active";
168
- } catch (error) {
169
- return typeof error === "object" && error !== null && "code" in error && error.code === "ESRCH" ? "stale" : "active";
170
- }
171
- }, "leaseOwnerStatus");
172
-
173
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
174
- var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
175
- const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
176
- options.signal?.throwIfAborted();
177
- const root = await realpath2(destination);
178
- options.signal?.throwIfAborted();
179
- const folder = join2(root, markerDirectory);
180
- let names;
181
- try {
182
- if ((await lstat2(folder)).isSymbolicLink())
183
- throw new Error("symlink");
184
- names = await readdir(folder);
185
- } catch (error) {
186
- options.signal?.throwIfAborted();
187
- if (missingLeaseFile(error))
188
- return [];
189
- throw new CliError("configuration_error", "archive lock directory could not be read");
190
- }
191
- options.signal?.throwIfAborted();
192
- const result = [];
193
- for (const name of names.sort()) {
194
- options.signal?.throwIfAborted();
195
- const owner = await readLeaseOwner(join2(folder, name), name, options.signal);
196
- result.push({
197
- name,
198
- status: owner ? leaseOwnerStatus(owner) : "unrecognized",
199
- pid: owner?.pid ?? null,
200
- host: owner?.host ?? null
201
- });
202
- }
203
- return result;
204
- }, "inspect");
205
- const recover = /* @__PURE__ */ __name(async (destination, options = {}) => {
206
- options.signal?.throwIfAborted();
207
- const root = await realpath2(destination);
208
- const locks = await inspect(root, options);
209
- const removed = [];
210
- if (options.apply)
211
- for (const lock of locks) {
212
- options.signal?.throwIfAborted();
213
- if (lock.status !== "stale")
214
- continue;
215
- const path = join2(root, markerDirectory, lock.name);
216
- const owner = await readLeaseOwner(path, lock.name, options.signal);
217
- if (!owner || leaseOwnerStatus(owner) !== "stale")
218
- continue;
219
- try {
220
- await unlink2(path);
221
- removed.push(lock.name);
222
- } catch (error) {
223
- if (!missingLeaseFile(error))
224
- throw new CliError("configuration_error", "stale archive lock could not be removed");
225
- }
226
- }
227
- return { locks, removed };
228
- }, "recover");
229
- return { inspect, recover };
230
- }, "leaseInspection");
231
-
232
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
233
- import { rmdir, unlink as unlink3 } from "node:fs/promises";
234
- var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
235
- let releasing;
236
- const held = /* @__PURE__ */ __name(async () => {
237
- if (!await sameOrdinaryFile(path, identity))
238
- return false;
239
- const current = await readLeaseOwner(path, name);
240
- return current?.host === owner.host && current.pid === owner.pid && current.nonce === owner.nonce;
241
- }, "held");
242
- const release = /* @__PURE__ */ __name(async () => {
243
- if (!await held())
244
- throw new CliError("configuration_error", "owned archive lock changed before release");
245
- await unlink3(path);
246
- await rmdir(folder).catch(() => void 0);
247
- }, "release");
248
- return {
249
- held,
250
- release: /* @__PURE__ */ __name(() => releasing ??= release().catch((error) => {
251
- releasing = void 0;
252
- throw error;
253
- }), "release")
254
- };
255
- }, "ownedNativeLease");
256
-
257
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
258
- var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
259
- var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
260
- const { markerDirectory, legacyMarker } = layout;
261
- if (!validName(markerDirectory) || legacyMarker !== void 0 && (!validName(legacyMarker) || legacyMarker === markerDirectory))
262
- throw new CliError("validation_error", "archive lock layout requires distinct ordinary entry names");
263
- const inspection = leaseInspection(markerDirectory);
264
- return {
265
- ...inspection,
266
- acquire: /* @__PURE__ */ __name(async (destination, { signal } = {}) => {
267
- signal?.throwIfAborted();
268
- const root = await realpath3(destination);
269
- signal?.throwIfAborted();
270
- const folder = join3(root, markerDirectory);
271
- const owner = { version: 1, pid: process.pid, host: hostname2(), nonce: randomUUID2() };
272
- const name = `${owner.pid}-${owner.nonce}.json`;
273
- const path = join3(folder, name);
274
- const marker = /* @__PURE__ */ __name(async (attempt = 1) => {
275
- await mkdir(folder, { recursive: true });
276
- try {
277
- if ((await lstat3(folder)).isSymbolicLink())
278
- throw new CliError("validation_error", "archive lock directory must not be a symlink");
279
- await inspection.recover(root, { apply: true, signal });
280
- signal?.throwIfAborted();
281
- return await open3(path, "wx", 384);
282
- } catch (error) {
283
- if (attempt < 5 && missingLeaseFile(error))
284
- return marker(attempt + 1);
285
- throw error;
286
- }
287
- }, "marker");
288
- const file = await marker();
289
- let retained = false;
290
- let identity;
291
- try {
292
- identity = await file.stat({ bigint: true });
293
- await file.writeFile(JSON.stringify(owner));
294
- await file.sync();
295
- await file.close();
296
- signal?.throwIfAborted();
297
- const inspected = await inspection.inspect(root, { signal });
298
- const own = inspected.find((lock) => lock.name === name);
299
- if (own?.status !== "active" || own.pid !== owner.pid || own.host !== owner.host)
300
- throw new CliError("configuration_error", "archive writer lost its lock before acquisition");
301
- const locks = inspected.filter((lock) => lock.name !== name);
302
- if (locks.length)
303
- return { status: "busy", locks };
304
- if (legacyMarker) {
305
- try {
306
- await lstat3(join3(root, legacyMarker));
307
- return { status: "legacy" };
308
- } catch (error) {
309
- if (!missingLeaseFile(error))
310
- throw error;
311
- }
312
- }
313
- signal?.throwIfAborted();
314
- retained = true;
315
- return { status: "acquired", lease: ownedNativeLease(path, name, owner, folder, identity) };
316
- } finally {
317
- await file.close().catch(() => void 0);
318
- if (!retained) {
319
- if (identity && await sameOrdinaryFile(path, identity))
320
- await unlink4(path).catch(() => void 0);
321
- await rmdir2(folder).catch(() => void 0);
322
- }
323
- }
324
- }, "acquire")
325
- };
326
- }, "nativeWriterLeaseStore");
327
-
328
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/lock.js
329
- var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
330
- const folder = dirname2(path);
331
- await mkdir2(folder, { recursive: true, mode: 448 });
332
- const acquired = await nativeWriterLeaseStore({ markerDirectory: basename2(path) }).acquire(folder, {
333
- ...signal ? { signal } : {}
334
- });
335
- if (acquired.status === "acquired")
336
- return acquired.lease;
337
- throw new CliError("validation_error", `${basename2(path)} is locked by another process`, {
338
- reason: "file.locked",
339
- ...acquired.status === "busy" ? { holders: acquired.locks } : {}
340
- });
341
- }, "acquireLock");
342
-
343
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
344
- var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
345
- if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
346
- throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
347
- const file = await openOrdinaryFile(path);
348
- try {
349
- if ((await file.stat()).size > maxBytes)
350
- throw new CliError("validation_error", "input file exceeds its byte budget");
351
- const chunks = [], buffer = Buffer.alloc(Math.min(65536, maxBytes + 1));
352
- let bytes = 0;
353
- for (; ; ) {
354
- const { bytesRead } = await file.read(buffer, 0, Math.min(buffer.length, maxBytes - bytes + 1), null);
355
- if (bytesRead === 0)
356
- break;
357
- bytes += bytesRead;
358
- if (bytes > maxBytes)
359
- throw new CliError("validation_error", "input file exceeds its byte budget");
360
- chunks.push(Buffer.from(buffer.subarray(0, bytesRead)));
361
- }
362
- try {
363
- return new TextDecoder("utf-8", { fatal: true }).decode(Buffer.concat(chunks, bytes));
364
- } catch {
365
- throw new CliError("validation_error", "input file must contain valid UTF-8");
366
- }
367
- } finally {
368
- await file.close();
369
- }
370
- }, "readBoundedUtf8File");
371
-
372
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/files/safe-name.js
373
- import { basename as basename3, extname } from "node:path";
374
- var MOST_NAME_BYTES = 200;
375
- var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");
376
- var shortened = /* @__PURE__ */ __name((name, most) => {
377
- if (bytesOf(name) <= most)
378
- return name;
379
- const extension = extname(name);
380
- const kept = bytesOf(extension) <= 32 ? extension : "";
381
- let stem = "";
382
- for (const character of name.slice(0, name.length - kept.length)) {
383
- if (bytesOf(stem + character) + bytesOf(kept) > most)
384
- break;
385
- stem += character;
386
- }
387
- return stem + kept;
388
- }, "shortened");
389
- var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
390
- let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
391
- if (platform === "win32") {
392
- plain = plain.replace(/[<>:"|?*]/g, "_").replace(/[. ]+$/, "");
393
- if (/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(plain))
394
- return void 0;
395
- }
396
- return plain === "" ? void 0 : shortened(plain, MOST_NAME_BYTES);
397
- }, "safeName");
398
-
399
- export {
400
- writeFileAtomic,
401
- openOrdinaryFile,
402
- sameOrdinaryFile,
403
- syncDirectory,
404
- readBoundedUtf8File,
405
- nativeWriterLeaseStore,
406
- acquireLock,
407
- safeName
408
- };
@@ -1,58 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- importFrom
5
- } from "./chunk-Y5E2WNWB.js";
6
- import {
7
- CliError
8
- } from "./chunk-IANKXHSE.js";
9
- import {
10
- __name
11
- } from "./chunk-ZVVMGPBJ.js";
12
-
13
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
14
- import { readFileSync } from "node:fs";
15
- var musl = /* @__PURE__ */ __name(() => {
16
- if (process.platform !== "linux")
17
- return false;
18
- try {
19
- return readFileSync("/proc/self/maps", "utf8").includes("ld-musl");
20
- } catch {
21
- return false;
22
- }
23
- }, "musl");
24
- var found;
25
- var vectorExtension = /* @__PURE__ */ __name(() => {
26
- found ??= locate();
27
- return found;
28
- }, "vectorExtension");
29
- var locate = /* @__PURE__ */ __name(async () => {
30
- const onMusl = musl();
31
- const target = `${process.platform}-${process.arch}${onMusl ? "-musl" : ""}`;
32
- let path;
33
- try {
34
- const { extensionFor } = await importFrom(new URL("store/vector-extension.js", import.meta.resolve("@wirecat/cli-core")).href, "@wirecat/cli-core-sqlite");
35
- path = extensionFor({ musl: onMusl });
36
- } catch {
37
- path = void 0;
38
- }
39
- if (path === void 0) {
40
- found = void 0;
41
- throw new CliError("configuration_error", `the message store needs the sqlite-vec extension, and @wirecat/cli-core-sqlite has none for ${target} \u2014 reinstall the CLI so its dependencies install with it (an install that skips optional or native packages leaves it out)`, { reason: "store.vector-extension-missing", target });
42
- }
43
- return path;
44
- }, "locate");
45
- var loadVectorExtension = /* @__PURE__ */ __name((database, path) => {
46
- try {
47
- database.loadExtension(path);
48
- } catch (error) {
49
- throw new CliError("configuration_error", `the sqlite-vec extension did not load on ${process.platform}-${process.arch} \u2014 reinstall the CLI; on macOS under Bun, @wirecat/cli-core-sqlite's SQLite must be installed, since the system's cannot load extensions`, { reason: "store.vector-extension-failed", cause: error instanceof Error ? error.message : String(error) });
50
- } finally {
51
- database.enableLoadExtension?.(false);
52
- }
53
- }, "loadVectorExtension");
54
-
55
- export {
56
- vectorExtension,
57
- loadVectorExtension
58
- };