@wirecat/zoom-cli 0.76.0 → 0.78.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 (219) hide show
  1. package/README.md +12 -11
  2. package/contracts/wirecat.json +53 -105
  3. package/dist/answer-entities.d.ts +1 -141
  4. package/dist/answer-entities.d.ts.map +1 -1
  5. package/dist/answer-entities.js +0 -31
  6. package/dist/answer-entities.js.map +1 -1
  7. package/dist/api.d.ts +18 -1
  8. package/dist/api.d.ts.map +1 -1
  9. package/dist/api.js +179 -54
  10. package/dist/api.js.map +1 -1
  11. package/dist/archive-commands.d.ts +0 -3
  12. package/dist/archive-commands.d.ts.map +1 -1
  13. package/dist/archive-commands.js +1 -54
  14. package/dist/archive-commands.js.map +1 -1
  15. package/dist/bin/zm.js +2 -2
  16. package/dist/bundle/{all-profiles-AAMFP7IN.js → all-profiles-7JN3N3E6.js} +11 -11
  17. package/dist/bundle/answer-policy-G2BNMPEX.js +122 -0
  18. package/dist/bundle/{anthropic-6KIS53QB.js → anthropic-U6O7UYGZ.js} +6 -6
  19. package/dist/bundle/{app-server-6QYNNYEU.js → app-server-G7BTC6CE.js} +78 -68
  20. package/dist/bundle/{bun-QVVCH4MJ.js → bun-VLROVUFK.js} +2 -2
  21. package/dist/bundle/{bun-sqlite-Y2ZFMNQ3.js → bun-sqlite-C5JLANDE.js} +7 -7
  22. package/dist/bundle/{chunk-25GMFXPF.js → chunk-2AWWMROP.js} +3244 -3674
  23. package/dist/bundle/{chunk-YESHGC3M.js → chunk-2LMD3JUD.js} +2 -2
  24. package/dist/bundle/{chunk-LGBLYFKI.js → chunk-2O66KMOR.js} +6 -2
  25. package/dist/bundle/{chunk-JADBHKBP.js → chunk-2USGT7LE.js} +1 -1
  26. package/dist/bundle/{chunk-M7WYBGQT.js → chunk-3A3B3JX4.js} +8 -8
  27. package/dist/bundle/{chunk-RJK5ADMH.js → chunk-3NZJKY7A.js} +103 -42
  28. package/dist/bundle/chunk-3QWYRZME.js +773 -0
  29. package/dist/bundle/{chunk-D2TGXSHQ.js → chunk-4QCLPSJ7.js} +5 -5
  30. package/dist/bundle/{chunk-XC4V6YCS.js → chunk-4XPVRZXE.js} +1 -1
  31. package/dist/bundle/{chunk-EZJSAYWZ.js → chunk-532FNLON.js} +31 -87
  32. package/dist/bundle/{chunk-QLUU3BV2.js → chunk-53TV72JG.js} +6 -6
  33. package/dist/bundle/{chunk-VJANMYEC.js → chunk-5DLK4OXF.js} +3 -3
  34. package/dist/bundle/chunk-5SM2IOAS.js +389 -0
  35. package/dist/bundle/{chunk-65VRWNDP.js → chunk-6MFEWAK4.js} +4 -4
  36. package/dist/bundle/{chunk-IUSY4ZJK.js → chunk-6NTNAEZF.js} +2379 -2114
  37. package/dist/bundle/{chunk-DQHS336B.js → chunk-7AMKSXMB.js} +7 -6
  38. package/dist/bundle/{chunk-IXPBSDKB.js → chunk-7EVB4UV7.js} +4 -4
  39. package/dist/bundle/chunk-7HEZQCHL.js +555 -0
  40. package/dist/bundle/{chunk-TYAFL66K.js → chunk-7IIQU5RA.js} +15 -31
  41. package/dist/bundle/{chunk-TK77DCE5.js → chunk-7K5O2VWO.js} +1 -1
  42. package/dist/bundle/{chunk-VG63EXRC.js → chunk-AEVSVVTP.js} +2 -2
  43. package/dist/bundle/chunk-B4V4DRVO.js +229 -0
  44. package/dist/bundle/{chunk-2HKUQ7DR.js → chunk-B6TUEQ4O.js} +3 -3
  45. package/dist/bundle/chunk-BAHXR4PA.js +259 -0
  46. package/dist/bundle/{chunk-ZFYNJERV.js → chunk-BGO7IEHY.js} +6 -6
  47. package/dist/bundle/{chunk-PFLJJQWW.js → chunk-BIUHLXL2.js} +54 -55
  48. package/dist/bundle/{chunk-5T7TBK5Y.js → chunk-C26V2XNV.js} +1 -1
  49. package/dist/bundle/chunk-C56OYYFG.js +170 -0
  50. package/dist/bundle/{chunk-MDTEAKA5.js → chunk-DLJPN47R.js} +8 -6
  51. package/dist/bundle/{chunk-FBVJGJDM.js → chunk-EV7QCFQR.js} +27 -574
  52. package/dist/bundle/{chunk-ORM73DZO.js → chunk-F2KZNAFF.js} +2 -2
  53. package/dist/bundle/{chunk-QY6GE7CL.js → chunk-F7IDYQLM.js} +2 -2
  54. package/dist/bundle/{chunk-WNXC42IU.js → chunk-FCGRXUAU.js} +9 -9
  55. package/dist/bundle/{chunk-ELW3LMJZ.js → chunk-FHOQWPQ6.js} +397 -157
  56. package/dist/bundle/{chunk-NQ356ERO.js → chunk-FMMCGQNT.js} +77 -10
  57. package/dist/bundle/{chunk-K3K3WKDB.js → chunk-FNLXFQN6.js} +1 -1
  58. package/dist/bundle/{chunk-YGKM2ZWF.js → chunk-FURKMNC2.js} +3 -3
  59. package/dist/bundle/{chunk-XRH2NKW4.js → chunk-FXHZHQKU.js} +6 -6
  60. package/dist/bundle/{chunk-GZYICXO4.js → chunk-GQ6EJDMV.js} +1 -1
  61. package/dist/bundle/{chunk-VABYJQYE.js → chunk-H34KEXTN.js} +24 -22
  62. package/dist/bundle/{chunk-HWYSJ4SL.js → chunk-H74NENWA.js} +3 -3
  63. package/dist/bundle/{chunk-Y2BGABXP.js → chunk-H7SRM26V.js} +3 -3
  64. package/dist/bundle/{chunk-VRA4RVQU.js → chunk-HGBZBQAE.js} +3 -3
  65. package/dist/bundle/{chunk-EZXW3ZCR.js → chunk-HI4QICF7.js} +12 -12
  66. package/dist/bundle/{chunk-LEVOI6Z3.js → chunk-HOJOVUO6.js} +14 -13
  67. package/dist/bundle/{chunk-XWQKRKMT.js → chunk-HUSIS3XO.js} +71 -252
  68. package/dist/bundle/chunk-IBINGDYF.js +335 -0
  69. package/dist/bundle/{chunk-55SWKR6Y.js → chunk-INJK7FNM.js} +337 -597
  70. package/dist/bundle/{chunk-CXHUOPN5.js → chunk-JOIAE3NO.js} +7 -7
  71. package/dist/bundle/{chunk-OFODCJ2A.js → chunk-KBTINKQF.js} +3 -3
  72. package/dist/bundle/{chunk-VCFSUGPE.js → chunk-KEAKNNXU.js} +4 -4
  73. package/dist/bundle/{chunk-XHVFX74L.js → chunk-LBTANUUH.js} +2 -2
  74. package/dist/bundle/chunk-LBV4673S.js +72 -0
  75. package/dist/bundle/chunk-LERF2FIK.js +295 -0
  76. package/dist/bundle/{chunk-UYZDH5LK.js → chunk-LX532BXO.js} +1 -1
  77. package/dist/bundle/{chunk-IVFNHIU4.js → chunk-M2M3U4UU.js} +81 -5
  78. package/dist/bundle/{chunk-JWMOHEDL.js → chunk-M5R2DURM.js} +10 -10
  79. package/dist/bundle/{chunk-4ERYXY4Y.js → chunk-MJMHUU3J.js} +1 -1
  80. package/dist/bundle/{chunk-GYTAHH5Y.js → chunk-MSMFYW6N.js} +2 -2
  81. package/dist/bundle/{chunk-X73YEFQE.js → chunk-MVLLWSV7.js} +20 -118
  82. package/dist/bundle/{chunk-RXUVXAMM.js → chunk-NO2LIHWA.js} +1 -1
  83. package/dist/bundle/{chunk-Y4WEAWU7.js → chunk-NS5XSCHC.js} +1 -1
  84. package/dist/bundle/{chunk-ZETM63M6.js → chunk-OAE6XR7E.js} +9 -60
  85. package/dist/bundle/{chunk-CS62FET6.js → chunk-OAYAGQ7C.js} +22 -22
  86. package/dist/bundle/{chunk-T2QVWRJF.js → chunk-OI4563JI.js} +39 -67
  87. package/dist/bundle/{chunk-WKT5RPSY.js → chunk-OOLNK3Y5.js} +8 -8
  88. package/dist/bundle/{chunk-EBIK5Q73.js → chunk-ORSTSBWU.js} +1 -1
  89. package/dist/bundle/{chunk-GB5LI5RM.js → chunk-P5QO7Y3H.js} +6 -6
  90. package/dist/bundle/{chunk-3D5PETD2.js → chunk-PJMQE4PW.js} +29 -9
  91. package/dist/bundle/{chunk-KEFDP6NL.js → chunk-Q4AKIAIA.js} +12 -12
  92. package/dist/bundle/{chunk-CPOFLYPU.js → chunk-Q4CNLEAY.js} +29 -29
  93. package/dist/bundle/{chunk-UAV74EY4.js → chunk-RJIJR6KH.js} +1 -1
  94. package/dist/bundle/{chunk-GPIQY4YB.js → chunk-TEFHNXXX.js} +14 -14
  95. package/dist/bundle/{chunk-FMJ4QSSU.js → chunk-TFDD4Q5Z.js} +10 -10
  96. package/dist/bundle/{chunk-HUHH25AG.js → chunk-TXDCIM5D.js} +3017 -1599
  97. package/dist/bundle/{chunk-FGRFIXG2.js → chunk-U2Z35B3W.js} +2 -2
  98. package/dist/bundle/{chunk-WZJ7ZYR4.js → chunk-UHBQM54J.js} +4 -4
  99. package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-UIBKGH5P.js} +1 -1
  100. package/dist/bundle/{chunk-5EII5RIL.js → chunk-UKYO3HNO.js} +1 -1
  101. package/dist/bundle/{chunk-7RORMNKP.js → chunk-V53TIJLY.js} +2 -2
  102. package/dist/bundle/{chunk-OOYIPK4F.js → chunk-VMA7SILL.js} +1 -1
  103. package/dist/bundle/chunk-VW36ZSAE.js +88 -0
  104. package/dist/bundle/chunk-WEAMGNST.js +31 -0
  105. package/dist/bundle/{chunk-EPPE6ZTS.js → chunk-WJTXO2EI.js} +1 -1
  106. package/dist/bundle/{chunk-4JPOELCT.js → chunk-WOYPWXZK.js} +4 -4
  107. package/dist/bundle/{chunk-OINDAHXC.js → chunk-XCOGI4JE.js} +4 -4
  108. package/dist/bundle/{chunk-CE5Y7PQU.js → chunk-XOG7B7K5.js} +4 -4
  109. package/dist/bundle/chunk-XSF5OBVZ.js +224 -0
  110. package/dist/bundle/{chunk-B7ZREOBD.js → chunk-XXD4YPHQ.js} +12 -12
  111. package/dist/bundle/{chunk-35AH33VJ.js → chunk-YAPDU3SV.js} +1 -1
  112. package/dist/bundle/{chunk-R47GYLNN.js → chunk-YHQ3TEGB.js} +29 -27
  113. package/dist/bundle/{chunk-LOEK6IFQ.js → chunk-YLNUKNGD.js} +87 -35
  114. package/dist/bundle/{chunk-6SXCGS3A.js → chunk-YNYQGZUW.js} +7 -7
  115. package/dist/bundle/{chunk-OWZETMRE.js → chunk-YZKVCTZI.js} +8 -8
  116. package/dist/bundle/{chunk-UG2QDGAH.js → chunk-ZCVO6GAT.js} +1 -1
  117. package/dist/bundle/{chunk-YEBWRWE3.js → chunk-ZDZASHSQ.js} +17 -17
  118. package/dist/bundle/chunk-ZZJ5IWNT.js +101 -0
  119. package/dist/bundle/{cli-FHMLYHUZ.js → cli-YALONJ4V.js} +135 -84
  120. package/dist/bundle/command-contract-DMR5EOIN.js +45 -0
  121. package/dist/bundle/{command-server-entry-YEZM52R5.js → command-server-entry-W4XTBUZE.js} +35 -31
  122. package/dist/bundle/config-4TLDRXRL.js +109 -0
  123. package/dist/bundle/{decode-SIYRMJOK.js → decode-IFQHVCFX.js} +16 -8
  124. package/dist/bundle/{dispatch-SMER3WDX.js → dispatch-GOJB4TDK.js} +9 -9
  125. package/dist/bundle/{dist-BSJETSFE.js → dist-H7XFUMRX.js} +25 -22
  126. package/dist/bundle/{echarts-UZJ6AREV.js → echarts-HPUHPJCO.js} +2 -2
  127. package/dist/bundle/{embed-A7DSHVI7.js → embed-ESU3WZYW.js} +7 -7
  128. package/dist/bundle/{embedder-WQBR4UGS.js → embedder-BV6O76B3.js} +10 -10
  129. package/dist/bundle/{failure-73UQXQTW.js → failure-SWVCYFQX.js} +3 -3
  130. package/dist/bundle/first-run-OEJGAQAE.js +29 -0
  131. package/dist/bundle/first-screen-QLM4IABL.js +45 -0
  132. package/dist/bundle/{folders-BH4SV6SI.js → folders-VQGKBM3P.js} +5 -5
  133. package/dist/bundle/{instructions-SDDUBGH4.js → instructions-UUX57I3V.js} +1 -1
  134. package/dist/bundle/{main-KL4FN5F3.js → main-UIKADOFB.js} +24 -24
  135. package/dist/bundle/{mcp-GN4FTJX5.js → mcp-VMS6PBCU.js} +2 -2
  136. package/dist/bundle/meeting-combined-SKJISCC7.js +26 -0
  137. package/dist/bundle/meeting-model-YG3Z5KCB.js +26 -0
  138. package/dist/bundle/meeting-semantic-F6GUICB7.js +23 -0
  139. package/dist/bundle/{meetings-URPXBHV7.js → meetings-KIBUPLPW.js} +37 -7
  140. package/dist/bundle/{node-ELCNUOCE.js → node-AM3JCAWB.js} +2 -2
  141. package/dist/bundle/{node-sqlite-QLSNHZBM.js → node-sqlite-VM6VS3RU.js} +8 -8
  142. package/dist/bundle/{oauth-LZ64S7Y3.js → oauth-AX5Z32H6.js} +8 -8
  143. package/dist/bundle/{open-WB4HUPQT.js → open-SSGOOOZG.js} +6 -6
  144. package/dist/bundle/openai-YIP73X2B.js +28 -0
  145. package/dist/bundle/{output-file-AHPQA5LR.js → output-file-FR226A64.js} +6 -6
  146. package/dist/bundle/{process-67DAKAAQ.js → process-5ZEK2VFY.js} +1 -1
  147. package/dist/bundle/{program-CIMACIBE.js → program-ROJAJHCB.js} +424 -251
  148. package/dist/bundle/{prompt-GG53UBDJ.js → prompt-6Y7A4453.js} +6 -6
  149. package/dist/bundle/{recognize-CFJ3CAEH.js → recognize-R5W25WKH.js} +5 -5
  150. package/dist/bundle/{remote-BLEM7C3Q.js → remote-PA4FQUZK.js} +11 -11
  151. package/dist/bundle/{rerank-ERN6PC66.js → rerank-CYX3UFTM.js} +8 -8
  152. package/dist/bundle/run-log-FHERL3H6.js +136 -0
  153. package/dist/bundle/{serve-FJPPTJXH.js → serve-MM5QEZJW.js} +15 -15
  154. package/dist/bundle/{server-FLUSDUGM.js → server-JQQAH7E5.js} +64 -54
  155. package/dist/bundle/server-W2BBONCQ.js +85 -0
  156. package/dist/bundle/{services-LXC6DVUQ.js → services-Y2DOQONM.js} +85 -54
  157. package/dist/bundle/{speech-WFEZTKXA.js → speech-O6WLX34V.js} +34 -18
  158. package/dist/bundle/{sqlite-runtime-KN33VSP7.js → sqlite-runtime-LQTBZMFH.js} +7 -7
  159. package/dist/bundle/{state-TXS4ZHIT.js → state-AIDPZLVH.js} +7 -7
  160. package/dist/bundle/{store-ZUREZYZB.js → store-BA4FQS5V.js} +26 -20
  161. package/dist/bundle/{store-MUOXLVL4.js → store-UNDS2TBG.js} +30 -22
  162. package/dist/bundle/store-connection-ADBJ36T4.js +102 -0
  163. package/dist/bundle/store-maintenance-command-IB6ML4UI.js +77 -0
  164. package/dist/bundle/{streaming-ZSCHRC5S.js → streaming-UFHT5MR2.js} +7 -7
  165. package/dist/bundle/{tokens-YVDOY4EV.js → tokens-Z32UKGQB.js} +10 -10
  166. package/dist/bundle/zm.js +9 -9
  167. package/dist/bundle/{zoom-app-O6GIMB7Y.js → zoom-app-6U46XBTG.js} +8 -8
  168. package/dist/commands.d.ts.map +1 -1
  169. package/dist/commands.js +3 -0
  170. package/dist/commands.js.map +1 -1
  171. package/dist/first-screen.d.ts.map +1 -1
  172. package/dist/first-screen.js +3 -5
  173. package/dist/first-screen.js.map +1 -1
  174. package/dist/meeting-integration-commands.d.ts.map +1 -1
  175. package/dist/meeting-integration-commands.js +46 -28
  176. package/dist/meeting-integration-commands.js.map +1 -1
  177. package/dist/meeting-source.d.ts.map +1 -1
  178. package/dist/meeting-source.js +15 -1
  179. package/dist/meeting-source.js.map +1 -1
  180. package/dist/permissions.d.ts +8 -4
  181. package/dist/permissions.d.ts.map +1 -1
  182. package/dist/permissions.js +25 -24
  183. package/dist/permissions.js.map +1 -1
  184. package/dist/program-bindings.d.ts.map +1 -1
  185. package/dist/program-bindings.js +8 -5
  186. package/dist/program-bindings.js.map +1 -1
  187. package/dist/program.d.ts +2 -1
  188. package/dist/program.d.ts.map +1 -1
  189. package/dist/program.js.map +1 -1
  190. package/dist/remote-meetings.d.ts +38 -8
  191. package/dist/remote-meetings.d.ts.map +1 -1
  192. package/dist/remote-meetings.js +52 -29
  193. package/dist/remote-meetings.js.map +1 -1
  194. package/dist/run.js +1 -1
  195. package/dist/version.d.ts +1 -1
  196. package/dist/version.js +1 -1
  197. package/dist/zoom-app.d.ts.map +1 -1
  198. package/dist/zoom-app.js +1 -0
  199. package/dist/zoom-app.js.map +1 -1
  200. package/package.json +5 -4
  201. package/skills/zoom-cli/SKILL.md +88 -236
  202. package/skills/zoom-cli/references/archive.md +59 -0
  203. package/skills/zoom-cli/references/people-and-projects.md +51 -0
  204. package/skills/zoom-cli/references/prepare.md +78 -0
  205. package/skills/zoom-cli/references/search.md +71 -0
  206. package/skills/zoom-cli/references/setup.md +31 -0
  207. package/skills/zoom-cli/references/zoom-live.md +27 -0
  208. package/dist/bundle/answer-policy-ETAELI4A.js +0 -110
  209. package/dist/bundle/chunk-64N7MY3I.js +0 -161
  210. package/dist/bundle/command-contract-HUZ4I23S.js +0 -41
  211. package/dist/bundle/config-KVTWN7QZ.js +0 -97
  212. package/dist/bundle/first-run-SY6XSUZ3.js +0 -29
  213. package/dist/bundle/first-screen-ZDMODGWS.js +0 -39
  214. package/dist/bundle/openai-KN6JE4QU.js +0 -28
  215. package/dist/bundle/run-log-S67YPJF6.js +0 -124
  216. package/dist/bundle/server-UNJY3TSJ.js +0 -74
  217. package/dist/bundle/store-connection-NRNEBUPU.js +0 -90
  218. package/dist/bundle/store-maintenance-command-OBOPYFZ5.js +0 -65
  219. /package/dist/bundle/{chunk-BDCC2J2Z.js → chunk-SHTHNBHG.js} +0 -0
@@ -0,0 +1,170 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ formatMeetingReference
5
+ } from "./chunk-FHOQWPQ6.js";
6
+ import {
7
+ CliError
8
+ } from "./chunk-FNLXFQN6.js";
9
+ import {
10
+ __name
11
+ } from "./chunk-ZVVMGPBJ.js";
12
+
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
14
+ var positive = /* @__PURE__ */ __name((value, name, max) => {
15
+ if (!Number.isSafeInteger(value) || value < 1 || value > max)
16
+ throw new CliError("validation_error", `Invalid ${name}`);
17
+ return value;
18
+ }, "positive");
19
+ var cancel = /* @__PURE__ */ __name((signal) => {
20
+ if (signal?.aborted)
21
+ throw new CliError("cancelled", "Meeting semantic operation was cancelled");
22
+ }, "cancel");
23
+ var account = /* @__PURE__ */ __name((accountId) => positive(accountId, "authorized meeting account", Number.MAX_SAFE_INTEGER), "account");
24
+ var descriptor = /* @__PURE__ */ __name((model) => {
25
+ if (!model || typeof model.key !== "string" || !model.key.trim() || model.key.length > 1e3 || typeof model.model !== "string" || !model.model.trim() || !["local", "remote"].includes(model.kind))
26
+ throw new CliError("validation_error", "An explicit meeting embedding model is required");
27
+ return { key: model.key, model: model.model, kind: model.kind, dims: positive(model.dims, "model dimensions", 8192) };
28
+ }, "descriptor");
29
+ var textBudget = /* @__PURE__ */ __name((options) => ({
30
+ maxRows: positive(options.maxRows ?? 1e4, "transcript row budget", 1e5),
31
+ maxTextBytes: positive(options.maxTextBytes ?? 4 * 1024 * 1024, "transcript text byte budget", 64 * 1024 * 1024)
32
+ }), "textBudget");
33
+ var validateVector = /* @__PURE__ */ __name((vector, dims) => {
34
+ if (!(vector instanceof Float32Array) || vector.length !== dims || !vector.some((value) => value !== 0) || vector.some((value) => !Number.isFinite(value)))
35
+ throw new CliError("invalid_response", "Meeting model returned an invalid vector");
36
+ return vector;
37
+ }, "validateVector");
38
+ var readMeetingSemantic = /* @__PURE__ */ __name(async (store, accountId, query, embedder, options = {}) => {
39
+ const accountIdSnapshot = account(accountId);
40
+ const model = descriptor(embedder);
41
+ if (typeof query !== "string" || !query.trim() || Buffer.byteLength(query, "utf8") > 64 * 1024)
42
+ throw new CliError("validation_error", "Meeting semantic query requires 1\u201365536 UTF-8 bytes");
43
+ const limit = positive(options.limit ?? 20, "semantic result limit", 1e3);
44
+ const maxChunks = positive(options.maxChunks ?? 1e3, "semantic candidate budget", 1e4);
45
+ const afterChunkId = options.afterChunkId === void 0 ? void 0 : positive(options.afterChunkId, "semantic candidate cursor", Number.MAX_SAFE_INTEGER);
46
+ const budget = textBudget(options);
47
+ const signal = options.signal;
48
+ cancel(signal);
49
+ const vectors = await embedder.embed([query], "query");
50
+ cancel(signal);
51
+ if (vectors.length !== 1)
52
+ throw new CliError("invalid_response", "Meeting query model returned another vector count");
53
+ const vector = validateVector(vectors[0], model.dims);
54
+ const result = await store.nearest(model.key, vector, {
55
+ accountId: accountIdSnapshot,
56
+ limit,
57
+ maxChunks,
58
+ ...budget,
59
+ ...afterChunkId === void 0 ? {} : { afterChunkId },
60
+ ...signal ? { signal } : {}
61
+ });
62
+ cancel(signal);
63
+ const items = result.items.map((hit) => {
64
+ positive(hit.meetingId, "semantic meeting ID", Number.MAX_SAFE_INTEGER);
65
+ positive(hit.transcriptId, "semantic transcript ID", Number.MAX_SAFE_INTEGER);
66
+ if (!Number.isSafeInteger(hit.firstPosition) || hit.firstPosition < 0 || !Number.isSafeInteger(hit.lastPosition) || hit.lastPosition < hit.firstPosition || !Number.isFinite(hit.score))
67
+ throw new CliError("invalid_response", "Meeting semantic hit contains invalid provenance");
68
+ const ref = {
69
+ type: "meeting",
70
+ accountId: accountIdSnapshot,
71
+ meetingId: hit.meetingId,
72
+ transcriptId: hit.transcriptId
73
+ };
74
+ return {
75
+ ...hit,
76
+ reference: formatMeetingReference(ref),
77
+ firstCueReference: formatMeetingReference({ ...ref, cuePosition: hit.firstPosition }),
78
+ lastCueReference: formatMeetingReference({ ...ref, cuePosition: hit.lastPosition })
79
+ };
80
+ });
81
+ return {
82
+ ...result,
83
+ accountId: accountIdSnapshot,
84
+ model,
85
+ items,
86
+ coverage: {
87
+ scope: "current-indexed-vectors",
88
+ candidateScanComplete: result.complete,
89
+ indexCompleteness: "unknown",
90
+ archiveCompleteness: "unknown"
91
+ }
92
+ };
93
+ }, "readMeetingSemantic");
94
+ var proposeMeetingEmbedding = /* @__PURE__ */ __name(async (store, accountId, selected, options = {}) => {
95
+ const accountIdSnapshot = account(accountId);
96
+ const model = descriptor(selected);
97
+ const signal = options.signal;
98
+ cancel(signal);
99
+ const status = await store.status({ accountId: accountIdSnapshot, model: model.key, ...signal ? { signal } : {} });
100
+ cancel(signal);
101
+ return {
102
+ accountId: accountIdSnapshot,
103
+ model,
104
+ status,
105
+ applied: false,
106
+ scope: "existing-current-chunks",
107
+ rebuildRequired: "explicit"
108
+ };
109
+ }, "proposeMeetingEmbedding");
110
+ var applyMeetingEmbedding = /* @__PURE__ */ __name(async (store, accountId, embedder, options = {}) => {
111
+ const accountIdSnapshot = account(accountId);
112
+ const model = descriptor(embedder);
113
+ const maxChunks = positive(options.maxChunks ?? 100, "embedding chunk budget", 1e3);
114
+ const budget = textBudget(options);
115
+ const maxVectorBytes = positive(options.maxVectorBytes ?? 8 * 1024 * 1024, "vector payload byte budget", 64 * 1024 * 1024);
116
+ const afterHash = options.afterHash;
117
+ if (afterHash !== void 0 && !/^[0-9a-f]{64}$/.test(afterHash))
118
+ throw new CliError("validation_error", "Invalid embedding chunk cursor");
119
+ const signal = options.signal;
120
+ cancel(signal);
121
+ const page = await store.chunksToEmbed(model.key, {
122
+ accountId: accountIdSnapshot,
123
+ limit: maxChunks,
124
+ ...budget,
125
+ ...afterHash === void 0 ? {} : { afterHash },
126
+ ...signal ? { signal } : {}
127
+ });
128
+ cancel(signal);
129
+ if (typeof page.hasMore !== "boolean" || page.nextHash !== void 0 && !/^[0-9a-f]{64}$/.test(page.nextHash) || page.hasMore && (page.items.length === 0 || page.nextHash === void 0))
130
+ throw new CliError("invalid_response", "Meeting chunk page cannot advance");
131
+ if (page.items.length > maxChunks || page.items.length * model.dims * 4 > maxVectorBytes)
132
+ throw new CliError("validation_error", "Embedding batch exceeds its chunk or vector payload budget");
133
+ const items = page.items.map(({ hash, text }) => ({ hash, text }));
134
+ if (items.some(({ hash, text }) => !/^[0-9a-f]{64}$/.test(hash) || typeof text !== "string") || new Set(items.map(({ hash }) => hash)).size !== items.length)
135
+ throw new CliError("invalid_response", "Meeting chunk page is invalid");
136
+ if (items.reduce((bytes, item) => bytes + Buffer.byteLength(item.text, "utf8"), 0) > budget.maxTextBytes)
137
+ throw new CliError("validation_error", "Embedding batch exceeds its text byte budget");
138
+ if (!items.length)
139
+ return {
140
+ accountId: accountIdSnapshot,
141
+ model,
142
+ saved: 0,
143
+ skipped: 0,
144
+ hasMore: page.hasMore,
145
+ ...page.nextHash === void 0 ? {} : { nextHash: page.nextHash }
146
+ };
147
+ const vectors = await embedder.embed(items.map(({ text }) => text), "passage");
148
+ cancel(signal);
149
+ if (vectors.length !== items.length)
150
+ throw new CliError("invalid_response", "Meeting model returned another vector count");
151
+ const rows = items.map(({ hash }, index) => ({ hash, vector: validateVector(vectors[index], model.dims) }));
152
+ const saved = await store.saveCurrent(model.key, model.dims, rows, {
153
+ accountId: accountIdSnapshot,
154
+ ...signal ? { signal } : {}
155
+ });
156
+ return {
157
+ accountId: accountIdSnapshot,
158
+ model,
159
+ ...saved,
160
+ hasMore: page.hasMore,
161
+ ...page.nextHash === void 0 ? {} : { nextHash: page.nextHash }
162
+ };
163
+ }, "applyMeetingEmbedding");
164
+
165
+ export {
166
+ validateVector,
167
+ readMeetingSemantic,
168
+ proposeMeetingEmbedding,
169
+ applyMeetingEmbedding
170
+ };
@@ -3,17 +3,17 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  checkCancelled,
5
5
  object
6
- } from "./chunk-FGRFIXG2.js";
6
+ } from "./chunk-U2Z35B3W.js";
7
7
  import {
8
8
  acquireLock
9
- } from "./chunk-GPIQY4YB.js";
9
+ } from "./chunk-TEFHNXXX.js";
10
10
  import {
11
11
  Credentials
12
- } from "./chunk-CS62FET6.js";
12
+ } from "./chunk-OAYAGQ7C.js";
13
13
  import {
14
14
  CliError,
15
15
  isCliError
16
- } from "./chunk-K3K3WKDB.js";
16
+ } from "./chunk-FNLXFQN6.js";
17
17
  import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
@@ -23,7 +23,7 @@ import { createHash } from "node:crypto";
23
23
  import { join } from "node:path";
24
24
  import { setTimeout as delay } from "node:timers/promises";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/oauth/storage.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/oauth/storage.js
27
27
  var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
28
28
  var parse = /* @__PURE__ */ __name((raw) => {
29
29
  let value;
@@ -50,7 +50,9 @@ var previousOf = /* @__PURE__ */ __name((raw) => {
50
50
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, field]) => field !== void 0)), "defined");
51
51
  var oauthAccount = /* @__PURE__ */ __name((providerId, profile) => {
52
52
  if (!profile.trim())
53
- throw new CliError("validation_error", "name a profile: a sign-in always belongs to one");
53
+ throw new CliError("validation_error", "name a profile: a sign-in always belongs to one", {
54
+ reason: "profile.missing"
55
+ });
54
56
  return `oauth:${providerId}:${profile}`;
55
57
  }, "oauthAccount");
56
58
  var standardCodec = /* @__PURE__ */ __name((providerId) => ({