@wirecat/zoom-cli 0.60.1 → 0.61.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 (178) hide show
  1. package/README.md +3 -3
  2. package/dist/answers.d.ts +16 -0
  3. package/dist/answers.d.ts.map +1 -1
  4. package/dist/bin/zm.js +2 -2
  5. package/dist/bundle/{chunk-3R437ICM.js → all-profiles-HZLIU6RZ.js} +11 -7
  6. package/dist/bundle/answer-policy-GRODO2DY.js +96 -0
  7. package/dist/bundle/{anthropic-CSLAACWX.js → anthropic-O2YYPCVK.js} +4 -4
  8. package/dist/bundle/{app-server-RYYXX6QV.js → app-server-YYCANTUE.js} +50 -50
  9. package/dist/bundle/{bun-JVDJVDHL.js → bun-UEFRULAT.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-B5CZHAV4.js → bun-sqlite-VVYKOY7S.js} +3 -3
  11. package/dist/bundle/{chunk-KNAS4VEA.js → chunk-2M2U43IF.js} +2 -2
  12. package/dist/bundle/{chunk-QKSCDALS.js → chunk-35X6G276.js} +1 -1
  13. package/dist/bundle/{chunk-PPHUBORC.js → chunk-3TGR4RDD.js} +32 -34
  14. package/dist/bundle/{chunk-WEUXLXOZ.js → chunk-4XI4PDEH.js} +31 -21
  15. package/dist/bundle/{chunk-W5EUHV3J.js → chunk-4XPIOW5L.js} +1 -1
  16. package/dist/bundle/{chunk-XS72YFPV.js → chunk-5NRBNGR3.js} +2 -2
  17. package/dist/bundle/{chunk-VVKHF6VJ.js → chunk-67WW33JB.js} +49 -24
  18. package/dist/bundle/{chunk-KYUIU5UR.js → chunk-6LHTWR3X.js} +2 -2
  19. package/dist/bundle/{chunk-K6NPOZUP.js → chunk-6RV7KXDF.js} +7 -7
  20. package/dist/bundle/{chunk-46R2JTGO.js → chunk-6SLGIPLT.js} +2 -2
  21. package/dist/bundle/{chunk-IQENQXUJ.js → chunk-77GJITSU.js} +2 -2
  22. package/dist/bundle/{chunk-BO7J5Z3T.js → chunk-7ATLKYBN.js} +17 -17
  23. package/dist/bundle/{chunk-VJBVNDFR.js → chunk-7DMMNCY2.js} +3 -3
  24. package/dist/bundle/chunk-ABCHE4YP.js +217 -0
  25. package/dist/bundle/{chunk-Y3YURIZF.js → chunk-AOSIU5T6.js} +51 -38
  26. package/dist/bundle/{chunk-HYZ545ON.js → chunk-B3PTSX5D.js} +2 -2
  27. package/dist/bundle/{chunk-GEVHI226.js → chunk-B45MFBBF.js} +6 -6
  28. package/dist/bundle/{chunk-6BJQBVMN.js → chunk-BNUNZTOU.js} +25 -25
  29. package/dist/bundle/{chunk-ZDRDCANC.js → chunk-BPQNTYLN.js} +388 -299
  30. package/dist/bundle/{chunk-VLE3FWE3.js → chunk-CMG54Q4X.js} +120 -32
  31. package/dist/bundle/{chunk-RACSKYNX.js → chunk-COU66X3X.js} +7 -5
  32. package/dist/bundle/{chunk-AOZGGGUK.js → chunk-CUSGSXSR.js} +2 -2
  33. package/dist/bundle/{chunk-MFS52LTZ.js → chunk-DLAFGSTN.js} +1 -1
  34. package/dist/bundle/{chunk-V53IB5AU.js → chunk-E4QPLXZT.js} +47 -47
  35. package/dist/bundle/{chunk-EUHQ5D4K.js → chunk-E4T7IJJO.js} +26 -26
  36. package/dist/bundle/{chunk-3LBA63D5.js → chunk-F32GKBMF.js} +22 -5
  37. package/dist/bundle/{chunk-YEZQ7SD7.js → chunk-FAOVUALC.js} +13 -13
  38. package/dist/bundle/{chunk-EF2RCQ3L.js → chunk-FBJC7OCI.js} +1 -1
  39. package/dist/bundle/{chunk-HIAO4MPA.js → chunk-FQ54A7GI.js} +1 -1
  40. package/dist/bundle/{chunk-ES6UWVTM.js → chunk-FXY45HU7.js} +6 -6
  41. package/dist/bundle/{chunk-REC3AZP6.js → chunk-GNHPYQMM.js} +2 -2
  42. package/dist/bundle/{chunk-TY5PBEH2.js → chunk-H5EAHMQN.js} +11 -11
  43. package/dist/bundle/chunk-HF233RN4.js +335 -0
  44. package/dist/bundle/{chunk-RUEPZTNA.js → chunk-HTGBUE2U.js} +2 -2
  45. package/dist/bundle/{chunk-HAUAEGGI.js → chunk-IKZFR645.js} +10 -10
  46. package/dist/bundle/chunk-JKWYXBGK.js +380 -0
  47. package/dist/bundle/{chunk-EN5DBDKW.js → chunk-KGZHRJ7H.js} +4 -4
  48. package/dist/bundle/{chunk-ZK7Y5K63.js → chunk-KPZIQKOF.js} +1 -1
  49. package/dist/bundle/{chunk-PAEBFJUC.js → chunk-KXYURHVE.js} +118 -95
  50. package/dist/bundle/{chunk-IRX2YVAH.js → chunk-KZGHGU2M.js} +4 -4
  51. package/dist/bundle/{chunk-ZXQCA3ZW.js → chunk-KZV5GU7G.js} +8 -8
  52. package/dist/bundle/{chunk-R4SRXI7M.js → chunk-L7VIPVHL.js} +166 -102
  53. package/dist/bundle/{chunk-XLJV3ZOH.js → chunk-LPJ3S6GE.js} +1 -1
  54. package/dist/bundle/{chunk-HBYE4EP2.js → chunk-LX6DO44O.js} +1 -1
  55. package/dist/bundle/{chunk-N27LOY3D.js → chunk-LXOSBFWW.js} +7 -7
  56. package/dist/bundle/{chunk-KXEC5FVT.js → chunk-M3EVVGR6.js} +2 -2
  57. package/dist/bundle/{chunk-YLATWUE7.js → chunk-MBMDF5EL.js} +6 -6
  58. package/dist/bundle/{chunk-AZZPMHP2.js → chunk-MTAVA2LS.js} +2 -2
  59. package/dist/bundle/{chunk-7IDNHVJS.js → chunk-MVRCLMQL.js} +2 -2
  60. package/dist/bundle/{chunk-LVHZQCP4.js → chunk-NVN4O5IC.js} +14 -10
  61. package/dist/bundle/{chunk-4TCQT57W.js → chunk-O3WVOAT7.js} +408 -420
  62. package/dist/bundle/{chunk-UWVNY5CA.js → chunk-OLZE27RS.js} +2 -2
  63. package/dist/bundle/{chunk-XX7KVQIG.js → chunk-OMUX4LSS.js} +4 -4
  64. package/dist/bundle/{chunk-IQSBMAYB.js → chunk-OU46OTTE.js} +3 -3
  65. package/dist/bundle/{chunk-Z4D6M62I.js → chunk-OVVDOVLN.js} +2 -2
  66. package/dist/bundle/{chunk-WB7MQHUI.js → chunk-P2NRA7E5.js} +2 -2
  67. package/dist/bundle/{chunk-PEMLI3T7.js → chunk-PCUPOGKR.js} +6 -4
  68. package/dist/bundle/{chunk-OEEMCNAO.js → chunk-QHT2LZRW.js} +6 -6
  69. package/dist/bundle/{decode-CTQJQYNU.js → chunk-RGOBGHWE.js} +21 -18
  70. package/dist/bundle/{chunk-Q7U627RY.js → chunk-RSXLI5GP.js} +79 -59
  71. package/dist/bundle/{chunk-LPY2ISJK.js → chunk-S726LZCH.js} +6 -6
  72. package/dist/bundle/{chunk-PATM7JGR.js → chunk-SVBM6F4Z.js} +1 -1
  73. package/dist/bundle/{chunk-X7YPTYM4.js → chunk-T7IQMYPW.js} +15 -3
  74. package/dist/bundle/{chunk-WFT2GGFH.js → chunk-TD4Y5LXG.js} +25 -22
  75. package/dist/bundle/{chunk-FZMRHNOP.js → chunk-U4Y2QQ2D.js} +3 -3
  76. package/dist/bundle/{chunk-CGCJ6P3A.js → chunk-UPWHCUVA.js} +617 -380
  77. package/dist/bundle/{chunk-FWJ3Q7NO.js → chunk-UYAKSUT5.js} +5 -5
  78. package/dist/bundle/{chunk-LPDYI5GR.js → chunk-VARX3SBT.js} +1 -1
  79. package/dist/bundle/{chunk-WWNZS7ZY.js → chunk-WVYSOV3C.js} +16 -4
  80. package/dist/bundle/{chunk-VKUS2V4L.js → chunk-XOJGXWTK.js} +8 -8
  81. package/dist/bundle/{chunk-OBUKZ2ZM.js → chunk-XX2PDQ54.js} +31 -211
  82. package/dist/bundle/{chunk-43BX56ZI.js → chunk-XZ4OVTA5.js} +9 -9
  83. package/dist/bundle/{chunk-Z5H47R4G.js → chunk-YESOQEOB.js} +735 -826
  84. package/dist/bundle/{cli-CYKEKT5P.js → cli-O4LAGYXI.js} +60 -54
  85. package/dist/bundle/command-contract-67QKBY6M.js +38 -0
  86. package/dist/bundle/config-ABURZDD2.js +78 -0
  87. package/dist/bundle/decode-WRMZJJCR.js +20 -0
  88. package/dist/bundle/{dist-YLSQKPPY.js → dist-SQK4GIJT.js} +14 -14
  89. package/dist/bundle/{echarts-4OQHS575.js → echarts-3DOOJSQR.js} +2 -2
  90. package/dist/bundle/{embed-P2BKRRJD.js → embed-OYRHTMFI.js} +4 -4
  91. package/dist/bundle/{embedder-HC6ZARP5.js → embedder-ZAYCL22W.js} +7 -7
  92. package/dist/bundle/{first-run-UERFFXBV.js → first-run-QXSPIXOQ.js} +8 -8
  93. package/dist/bundle/first-screen-MD6HWIJW.js +36 -0
  94. package/dist/bundle/{folders-RSLPTZLJ.js → folders-EXQLKXVK.js} +2 -2
  95. package/dist/bundle/{instructions-3QZBKKPF.js → instructions-GFEOB7XJ.js} +1 -1
  96. package/dist/bundle/{main-2T6D77JC.js → main-RADF3CRI.js} +16 -16
  97. package/dist/bundle/{mcp-OQBZXELQ.js → mcp-WSGVVZWI.js} +2 -2
  98. package/dist/bundle/{meetings-ZIDSQZBJ.js → meetings-6BIIT42H.js} +4 -4
  99. package/dist/bundle/{node-R2BLYUSB.js → node-A3B2YRQI.js} +2 -2
  100. package/dist/bundle/{node-sqlite-7CGHAHIS.js → node-sqlite-XRP5FUDY.js} +3 -3
  101. package/dist/bundle/{oauth-UBCYXTWV.js → oauth-YICY4AN4.js} +5 -5
  102. package/dist/bundle/{open-AWUB4Q7Z.js → open-4CNKSQRB.js} +2 -2
  103. package/dist/bundle/openai-YYRO3X7I.js +22 -0
  104. package/dist/bundle/{output-file-SN22HAVL.js → output-file-7BXYV6OL.js} +3 -3
  105. package/dist/bundle/{process-IX5YWGDP.js → process-A45QXKID.js} +1 -1
  106. package/dist/bundle/{program-STYPTNT3.js → program-DTP7BRTW.js} +415 -428
  107. package/dist/bundle/{prompt-MAYUHEGN.js → prompt-5LMKO7SE.js} +3 -3
  108. package/dist/bundle/{recognize-FVTNXRTF.js → recognize-MB6WRGUD.js} +4 -2
  109. package/dist/bundle/{remote-WCPRU73L.js → remote-PD7WMTTS.js} +5 -5
  110. package/dist/bundle/{rerank-6CBLZBCV.js → rerank-7E6GQ5Y6.js} +5 -5
  111. package/dist/bundle/{run-log-G4WZTOBW.js → run-log-TCFK4LEC.js} +53 -53
  112. package/dist/bundle/{chunk-XNUFDYR6.js → serve-JBT2BWHK.js} +8 -6
  113. package/dist/bundle/server-CFIKEPLG.js +66 -0
  114. package/dist/bundle/{chunk-INARC5O7.js → server-H2UPGGBI.js} +43 -10
  115. package/dist/bundle/{services-326Z3TNE.js → services-SJOTKL5V.js} +33 -26
  116. package/dist/bundle/{speech-KSZ7RKM3.js → speech-4SL25GSC.js} +28 -5
  117. package/dist/bundle/{state-EPB3L2JM.js → state-FVMTDZ6B.js} +4 -4
  118. package/dist/bundle/{store-KO242JBK.js → store-DNPKBUVO.js} +13 -13
  119. package/dist/bundle/{store-7WX7SW2R.js → store-TI77SCNL.js} +15 -15
  120. package/dist/bundle/store-connection-GIFWWMNO.js +76 -0
  121. package/dist/bundle/store-maintenance-command-WBKGF2CZ.js +55 -0
  122. package/dist/bundle/{streaming-M6VDKBBH.js → streaming-UHAHGPH5.js} +4 -4
  123. package/dist/bundle/{tokens-BTNXHR7T.js → tokens-Y2MX6JBL.js} +4 -4
  124. package/dist/bundle/zm.js +1 -1
  125. package/dist/commands.d.ts +1 -2
  126. package/dist/commands.d.ts.map +1 -1
  127. package/dist/commands.js +3 -16
  128. package/dist/commands.js.map +1 -1
  129. package/dist/contract-overrides.d.ts +0 -2
  130. package/dist/contract-overrides.d.ts.map +1 -1
  131. package/dist/contract-overrides.js +0 -158
  132. package/dist/contract-overrides.js.map +1 -1
  133. package/dist/program-bindings.d.ts +1 -1
  134. package/dist/program-bindings.d.ts.map +1 -1
  135. package/dist/program-bindings.js +16 -18
  136. package/dist/program-bindings.js.map +1 -1
  137. package/dist/program.d.ts +2 -4
  138. package/dist/program.d.ts.map +1 -1
  139. package/dist/program.js.map +1 -1
  140. package/dist/read-only.d.ts.map +1 -1
  141. package/dist/read-only.js +3 -0
  142. package/dist/read-only.js.map +1 -1
  143. package/dist/run.d.ts.map +1 -1
  144. package/dist/run.js +82 -32
  145. package/dist/run.js.map +1 -1
  146. package/dist/setup-commands.d.ts.map +1 -1
  147. package/dist/setup-commands.js +8 -46
  148. package/dist/setup-commands.js.map +1 -1
  149. package/dist/store-commands.d.ts.map +1 -1
  150. package/dist/store-commands.js +4 -1
  151. package/dist/store-commands.js.map +1 -1
  152. package/dist/version.d.ts +1 -1
  153. package/dist/version.js +1 -1
  154. package/package.json +3 -3
  155. package/dist/bundle/all-profiles-E6KXASLY.js +0 -25
  156. package/dist/bundle/answer-policy-YWCC55NB.js +0 -96
  157. package/dist/bundle/chunk-DBSWVZES.js +0 -48
  158. package/dist/bundle/chunk-WYRYLBST.js +0 -390
  159. package/dist/bundle/chunk-YLBNPI7H.js +0 -2
  160. package/dist/bundle/command-contract-P45QCCXM.js +0 -38
  161. package/dist/bundle/config-JYKTLEA3.js +0 -79
  162. package/dist/bundle/first-screen-VFIS7FX3.js +0 -36
  163. package/dist/bundle/mcp-4VHVUMCR.js +0 -92
  164. package/dist/bundle/mcp-6CLW2IZM.js +0 -189
  165. package/dist/bundle/serve-3IDUVTZL.js +0 -19
  166. package/dist/bundle/server-7GU36TER.js +0 -66
  167. package/dist/bundle/server-VHRS5UAL.js +0 -53
  168. package/dist/bundle/store-connection-K3MNDCQQ.js +0 -76
  169. package/dist/bundle/store-maintenance-command-GJDJYI2U.js +0 -54
  170. package/dist/mcp-command.d.ts +0 -33
  171. package/dist/mcp-command.d.ts.map +0 -1
  172. package/dist/mcp-command.js +0 -143
  173. package/dist/mcp-command.js.map +0 -1
  174. package/dist/mcp.d.ts +0 -30
  175. package/dist/mcp.d.ts.map +0 -1
  176. package/dist/mcp.js +0 -110
  177. package/dist/mcp.js.map +0 -1
  178. /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-62EDJKGP.js} +0 -0
@@ -20,7 +20,7 @@ import {
20
20
  tool,
21
21
  toolKey,
22
22
  toolsFromCommands
23
- } from "./chunk-6BJQBVMN.js";
23
+ } from "./chunk-BNUNZTOU.js";
24
24
  import {
25
25
  CHART_KINDS,
26
26
  CHART_SIZE,
@@ -29,32 +29,30 @@ import {
29
29
  chartRenderer,
30
30
  chatChart,
31
31
  keepRefreshedRefs,
32
+ mcpUrlOf,
32
33
  refuseWriteBeforeConnecting,
33
34
  registerPrompts,
34
35
  stdinFieldOf,
35
36
  syncsFirst
36
- } from "./chunk-VLE3FWE3.js";
37
- import {
38
- mcpUrlOf
39
- } from "./chunk-DBSWVZES.js";
37
+ } from "./chunk-CMG54Q4X.js";
40
38
  import {
41
39
  agentJson,
42
40
  skillResource
43
- } from "./chunk-YEZQ7SD7.js";
41
+ } from "./chunk-FAOVUALC.js";
44
42
  import {
45
43
  instructions
46
- } from "./chunk-XLJV3ZOH.js";
44
+ } from "./chunk-LPJ3S6GE.js";
47
45
  import {
48
46
  mcpHttpMarker
49
- } from "./chunk-XX7KVQIG.js";
47
+ } from "./chunk-OMUX4LSS.js";
50
48
  import {
51
49
  answeredWire
52
- } from "./chunk-EF2RCQ3L.js";
50
+ } from "./chunk-FBJC7OCI.js";
53
51
  import {
54
52
  StdioServerTransport,
55
53
  callerOf,
56
54
  serveStdio
57
- } from "./chunk-KNAS4VEA.js";
55
+ } from "./chunk-2M2U43IF.js";
58
56
  import {
59
57
  McpServer,
60
58
  ResourceTemplate
@@ -62,21 +60,21 @@ import {
62
60
  import {
63
61
  connectedFor,
64
62
  guardFor
65
- } from "./chunk-EUHQ5D4K.js";
63
+ } from "./chunk-E4T7IJJO.js";
66
64
  import {
67
65
  lackedNeed,
68
66
  wholeList
69
- } from "./chunk-WFT2GGFH.js";
67
+ } from "./chunk-TD4Y5LXG.js";
70
68
  import {
71
69
  capability,
72
70
  dateWindow,
73
71
  imageSize,
74
72
  servicesFor,
75
73
  storedDeps
76
- } from "./chunk-Z5H47R4G.js";
74
+ } from "./chunk-YESOQEOB.js";
77
75
  import {
78
76
  findCommand
79
- } from "./chunk-OEEMCNAO.js";
77
+ } from "./chunk-QHT2LZRW.js";
80
78
  import {
81
79
  DEFAULT_OUTPUT_BYTES,
82
80
  changesAuthorityAt,
@@ -89,33 +87,33 @@ import {
89
87
  rootOf2 as rootOf,
90
88
  sealed,
91
89
  snakeKeys
92
- } from "./chunk-Y3YURIZF.js";
90
+ } from "./chunk-AOSIU5T6.js";
93
91
  import {
94
92
  readOnlyLockOf
95
- } from "./chunk-KYUIU5UR.js";
93
+ } from "./chunk-6LHTWR3X.js";
96
94
  import {
97
95
  withCaller
98
- } from "./chunk-VKUS2V4L.js";
96
+ } from "./chunk-XOJGXWTK.js";
99
97
  import {
100
98
  typedCommand
101
- } from "./chunk-WEUXLXOZ.js";
99
+ } from "./chunk-4XI4PDEH.js";
102
100
  import {
103
101
  isCliFailure
104
- } from "./chunk-IQENQXUJ.js";
102
+ } from "./chunk-77GJITSU.js";
105
103
  import {
106
104
  levelFor,
107
105
  readKeysForCommand
108
- } from "./chunk-AOZGGGUK.js";
106
+ } from "./chunk-CUSGSXSR.js";
109
107
  import {
110
108
  warmEmbedders
111
- } from "./chunk-GEVHI226.js";
109
+ } from "./chunk-B45MFBBF.js";
112
110
  import {
113
111
  openStore,
114
112
  pdfPreviewLimits
115
- } from "./chunk-CGCJ6P3A.js";
113
+ } from "./chunk-UPWHCUVA.js";
116
114
  import {
117
115
  timezoneOf
118
- } from "./chunk-LVHZQCP4.js";
116
+ } from "./chunk-NVN4O5IC.js";
119
117
  import {
120
118
  CliError,
121
119
  description,
@@ -133,15 +131,15 @@ import {
133
131
  strictObject,
134
132
  string,
135
133
  visibleControls
136
- } from "./chunk-R4SRXI7M.js";
134
+ } from "./chunk-L7VIPVHL.js";
137
135
  import {
138
136
  __name
139
137
  } from "./chunk-ZVVMGPBJ.js";
140
138
 
141
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/server.js
139
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/server.js
142
140
  import { randomUUID } from "node:crypto";
143
141
 
144
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
142
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
145
143
  var agentLog = /* @__PURE__ */ __name((open) => {
146
144
  let held;
147
145
  return {
@@ -160,7 +158,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
160
158
  };
161
159
  }, "agentLog");
162
160
 
163
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/resources.js
161
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/resources.js
164
162
  var LISTED = 100;
165
163
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
166
164
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -198,7 +196,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
198
196
  });
199
197
  }, "registerResources");
200
198
 
201
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/session.js
199
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/session.js
202
200
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
203
201
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
204
202
  var MessengerSession = class {
@@ -273,7 +271,7 @@ var MessengerSession = class {
273
271
  }
274
272
  };
275
273
 
276
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
274
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
277
275
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
278
276
  const _command = messenger.app.command;
279
277
  return {
@@ -327,7 +325,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
327
325
  };
328
326
  }, "attachmentsTools");
329
327
 
330
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
328
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
331
329
  var PHOTO_LIMIT = 512 * 1024;
332
330
  var IMAGE_TYPES = [
333
331
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -381,7 +379,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
381
379
  return new Uint8Array(Buffer.concat(chunks));
382
380
  }, "readUpTo");
383
381
 
384
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
382
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
385
383
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
386
384
  stats_charts: tool({
387
385
  title: "A chart from a chat's statistics",
@@ -418,14 +416,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
418
416
  })
419
417
  }), "statsTools");
420
418
 
421
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/tools.js
419
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/tools.js
422
420
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
423
421
  ...messagesPhotoTools(messenger),
424
422
  ...attachmentsTools(messenger),
425
423
  ...statsTools(messenger)
426
424
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
427
425
 
428
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/server.js
426
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/server.js
429
427
  var PER_RUN = /* @__PURE__ */ new Set([
430
428
  "streams",
431
429
  "stdin",
@@ -749,7 +747,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
749
747
  }, "serveOverStdio");
750
748
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
751
749
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
752
- const { serveOverHttp } = await import("./serve-3IDUVTZL.js");
750
+ const { serveOverHttp } = await import("./serve-JBT2BWHK.js");
753
751
  const appName = messenger.app.command;
754
752
  const appEnvPrefix = messenger.app.envPrefix;
755
753
  const listening = await serveOverHttp(build, {
@@ -5,19 +5,19 @@ import {
5
5
  id,
6
6
  text,
7
7
  time
8
- } from "./chunk-WWNZS7ZY.js";
8
+ } from "./chunk-WVYSOV3C.js";
9
9
  import {
10
10
  filesPresent,
11
11
  sharedModelsDirectory
12
- } from "./chunk-PEMLI3T7.js";
12
+ } from "./chunk-PCUPOGKR.js";
13
13
  import {
14
14
  TASK_ORIGINS,
15
15
  TASK_STATES,
16
16
  TASK_TYPES
17
- } from "./chunk-K6NPOZUP.js";
17
+ } from "./chunk-6RV7KXDF.js";
18
18
  import {
19
19
  TAG_TYPES
20
- } from "./chunk-Z4D6M62I.js";
20
+ } from "./chunk-OVVDOVLN.js";
21
21
  import {
22
22
  CliError,
23
23
  array,
@@ -33,18 +33,18 @@ import {
33
33
  strictObject,
34
34
  traceIdOf,
35
35
  writeSecurely
36
- } from "./chunk-R4SRXI7M.js";
36
+ } from "./chunk-L7VIPVHL.js";
37
37
  import {
38
38
  __name
39
39
  } from "./chunk-ZVVMGPBJ.js";
40
40
 
41
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/run.js
41
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/runs/run.js
42
42
  import { randomUUID } from "node:crypto";
43
43
  import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
44
44
  import { userInfo } from "node:os";
45
45
  import { join, sep } from "node:path";
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
48
48
  var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
49
49
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
50
50
  var renamed = /* @__PURE__ */ __name((record, name) => Object.fromEntries(Object.entries(record).map(([key, value]) => [name(key), value])), "renamed");
@@ -57,7 +57,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
57
57
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
58
58
  }), "snakeLogger");
59
59
 
60
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
60
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
61
61
  var diagnostic = {
62
62
  event: true,
63
63
  operation: true,
@@ -127,7 +127,7 @@ var LOG_ATTRIBUTES = [
127
127
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
128
128
  ].sort();
129
129
 
130
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/run.js
130
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/runs/run.js
131
131
  var KEEP_RUNS_FOR_DAYS = 30;
132
132
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
133
133
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -480,7 +480,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
480
480
  };
481
481
  }, "metadataOf");
482
482
 
483
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/scope.js
483
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/runs/scope.js
484
484
  import { AsyncLocalStorage } from "node:async_hooks";
485
485
  import { randomBytes } from "node:crypto";
486
486
  var scopes = new AsyncLocalStorage();
@@ -518,7 +518,7 @@ var attempts = new AsyncLocalStorage();
518
518
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
519
519
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
520
520
 
521
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/duration.js
521
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/duration.js
522
522
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
523
523
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
524
524
  var parseDuration = /* @__PURE__ */ __name((value, source) => {
@@ -532,7 +532,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
532
532
  return ms;
533
533
  }, "parseDuration");
534
534
 
535
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/guarded.js
535
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/sends/guarded.js
536
536
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
537
537
  var sentIds = /* @__PURE__ */ __name((typed, message) => ({
538
538
  messageId: message.id,
@@ -638,7 +638,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled =
638
638
  }, "guardedWrite");
639
639
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
640
640
 
641
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/embeddings/models.js
641
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/embeddings/models.js
642
642
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
643
643
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
644
644
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -797,7 +797,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
797
797
  var vectorModelKey = /* @__PURE__ */ __name((model) => `local:${model.id}:${model.dims}`, "vectorModelKey");
798
798
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
799
799
 
800
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/images/picture/models.js
800
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/images/picture/models.js
801
801
  import { join as join2 } from "node:path";
802
802
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
803
803
  var IMAGE_MODELS = [
@@ -851,7 +851,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
851
851
  var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
852
852
  var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
853
853
 
854
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/entities/task.js
854
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/entities/task.js
855
855
  var closeSuggestion = strictObject({
856
856
  as: picklist(["done", "dismissed"]),
857
857
  /** The agent's name. */
@@ -893,7 +893,7 @@ var task = strictObject({
893
893
  updated_at: optional(time)
894
894
  });
895
895
 
896
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/entities/agenda.js
896
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/entities/agenda.js
897
897
  var agendaChat = strictObject({
898
898
  chat: reference,
899
899
  title: nullable(text),
@@ -904,7 +904,17 @@ var agendaChat = strictObject({
904
904
  /** `null` when the newest message is not stored, or the messenger did not say who sent it. */
905
905
  last_from_owner: nullable(boolean()),
906
906
  /** Open tasks whose source is in this chat. */
907
- open_tasks: array(id)
907
+ open_tasks: array(id),
908
+ /** `unknown` means nothing ever fetched the chat's history; `partial` that the store holds only part of it. */
909
+ completeness: strictObject({
910
+ state: picklist(["complete", "partial", "unknown"]),
911
+ up_to_date: nullable(boolean()),
912
+ gaps: boolean(),
913
+ reaches_start: boolean(),
914
+ fetched_at: nullable(time)
915
+ }),
916
+ /** What the store holds of the chat: the count and the span, never the text. */
917
+ held: strictObject({ messages: number(), oldest_at: nullable(time), newest_at: nullable(time) })
908
918
  });
909
919
  var agenda = strictObject({
910
920
  at: time,
@@ -953,7 +963,7 @@ var agenda = strictObject({
953
963
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
954
964
  });
955
965
 
956
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/entities/conversation.js
966
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/entities/conversation.js
957
967
  var conversation = strictObject({
958
968
  id,
959
969
  chat: reference,
@@ -968,7 +978,7 @@ var conversation = strictObject({
968
978
  rules_version: count
969
979
  });
970
980
 
971
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/entities/attachment.js
981
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/entities/attachment.js
972
982
  var attachment = strictObject({
973
983
  /** The message it came with, as a locator; absent inside that message. */
974
984
  message: optional(reference),
@@ -1005,7 +1015,7 @@ var attachment = strictObject({
1005
1015
  }))))
1006
1016
  });
1007
1017
 
1008
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/entities/tagging.js
1018
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/entities/tagging.js
1009
1019
  var tagging = strictObject({
1010
1020
  tag: text,
1011
1021
  type: picklist(TAG_TYPES),
@@ -1018,7 +1028,7 @@ var tagging = strictObject({
1018
1028
  created_at: time
1019
1029
  });
1020
1030
 
1021
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
1031
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
1022
1032
  var WEIGHTS = {
1023
1033
  bot: 3,
1024
1034
  scam: 3,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/background/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-R4SRXI7M.js";
5
+ } from "./chunk-L7VIPVHL.js";
6
6
  import {
7
7
  importFrom
8
8
  } from "./chunk-Y5E2WNWB.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
14
14
  import { readFileSync } from "node:fs";
15
15
  var musl = /* @__PURE__ */ __name(() => {
16
16
  if (process.platform !== "linux")
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-R4SRXI7M.js";
5
+ } from "./chunk-L7VIPVHL.js";
6
6
  import {
7
7
  importFrom
8
8
  } from "./chunk-Y5E2WNWB.js";
@@ -10,10 +10,10 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/speech/recognize.js
14
14
  import { createRequire } from "node:module";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
17
17
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
18
  var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
19
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
70
70
  throw invalid();
71
71
  }, "checkOggDuration");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/speech/recognize.js
74
74
  var SAMPLE_RATE = 16e3;
75
75
  var LEAD = SAMPLE_RATE / 2;
76
76
  var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
@@ -94,10 +94,9 @@ var decodeOgg = /* @__PURE__ */ __name(async (bytes) => {
94
94
  await decoder.ready;
95
95
  try {
96
96
  const { channelData, sampleRate, samplesDecoded } = await decoder.decodeFile(bytes);
97
- const samples = channelData[0];
98
- if (!samples || samplesDecoded === 0)
97
+ if (!channelData[0] || samplesDecoded === 0)
99
98
  throw new Error("no Ogg Opus audio in it");
100
- return { samples, rate: sampleRate };
99
+ return channelData.map((samples) => ({ samples, rate: sampleRate }));
101
100
  } finally {
102
101
  decoder.free();
103
102
  }
@@ -120,6 +119,37 @@ var detector = /* @__PURE__ */ __name((vadModel) => ({
120
119
  debug: 0,
121
120
  bufferSizeInSeconds: 30
122
121
  }), "detector");
122
+ var cut = /* @__PURE__ */ __name((vad, pcm, each) => {
123
+ vad.reset();
124
+ const last = Math.max(0, pcm.length - LEAD);
125
+ const drain = /* @__PURE__ */ __name(() => {
126
+ for (; !vad.isEmpty(); vad.pop()) {
127
+ const { start, samples } = vad.front();
128
+ each({
129
+ start: Math.min(last, Math.max(0, start - LEAD)) / SAMPLE_RATE,
130
+ end: Math.min(last, Math.max(0, start + samples.length - LEAD)) / SAMPLE_RATE,
131
+ samples
132
+ });
133
+ }
134
+ }, "drain");
135
+ for (let i = 0; i + WINDOW <= pcm.length; i += WINDOW) {
136
+ vad.acceptWaveform(pcm.subarray(i, i + WINDOW));
137
+ drain();
138
+ }
139
+ vad.flush();
140
+ drain();
141
+ }, "cut");
142
+ var openSpeechCutter = /* @__PURE__ */ __name((vadModel) => {
143
+ const vad = loadSherpa().createVad(detector(vadModel));
144
+ return {
145
+ cut: /* @__PURE__ */ __name((pcm) => {
146
+ const spans = [];
147
+ cut(vad, pcm, ({ start, end }) => spans.push({ start, end }));
148
+ return spans;
149
+ }, "cut"),
150
+ free: /* @__PURE__ */ __name(() => vad.free(), "free")
151
+ };
152
+ }, "openSpeechCutter");
123
153
  var loaded;
124
154
  var loadSherpa = /* @__PURE__ */ __name(() => {
125
155
  if (loaded)
@@ -156,24 +186,18 @@ var openRecognizer = /* @__PURE__ */ __name((model, path, vadModel) => {
156
186
  stream.free();
157
187
  }
158
188
  }, "piece");
189
+ const pieces = /* @__PURE__ */ __name((pcm) => {
190
+ const heard = [];
191
+ cut(vad, pcm, ({ start, end, samples }) => {
192
+ const text = piece(samples);
193
+ if (text)
194
+ heard.push({ start, end, text });
195
+ });
196
+ return heard;
197
+ }, "pieces");
159
198
  return {
160
- recognize: /* @__PURE__ */ __name((pcm) => {
161
- vad.reset();
162
- const parts = [];
163
- const drain = /* @__PURE__ */ __name(() => {
164
- while (!vad.isEmpty()) {
165
- parts.push(piece(vad.front().samples));
166
- vad.pop();
167
- }
168
- }, "drain");
169
- for (let i = 0; i + WINDOW <= pcm.length; i += WINDOW) {
170
- vad.acceptWaveform(pcm.subarray(i, i + WINDOW));
171
- drain();
172
- }
173
- vad.flush();
174
- drain();
175
- return parts.filter(Boolean).join(" ");
176
- }, "recognize"),
199
+ recognize: /* @__PURE__ */ __name((pcm) => pieces(pcm).map(({ text }) => text).join(" "), "recognize"),
200
+ pieces,
177
201
  free: /* @__PURE__ */ __name(() => {
178
202
  vad.free();
179
203
  engine.free();
@@ -186,6 +210,7 @@ export {
186
210
  toModelRate,
187
211
  decodeOgg,
188
212
  detector,
213
+ openSpeechCutter,
189
214
  loadSherpa,
190
215
  openRecognizer
191
216
  };
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-R4SRXI7M.js";
5
+ } from "./chunk-L7VIPVHL.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/ports/app.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/ports/app.js
11
11
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
12
12
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
13
13
  const name = envName(app, "READ_ONLY");
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-R4SRXI7M.js";
5
+ } from "./chunk-L7VIPVHL.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/tasks/model.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/tasks/model.js
11
11
  var TASK_KINDS = ["question", "request", "mention", "promise"];
12
12
  var TASK_STATES = ["open", "done", "dismissed"];
13
13
  var TASK_ORIGINS = ["rule", "agent", "owner"];
@@ -20,7 +20,7 @@ function closeTask(task, state, by, at, reason) {
20
20
  }
21
21
  __name(closeTask, "closeTask");
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/tasks/service.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/tasks/service.js
24
24
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
25
25
  async function find(id) {
26
26
  const task = await store.get(id);
@@ -80,22 +80,22 @@ function median(values) {
80
80
  }
81
81
  __name(median, "median");
82
82
 
83
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/tasks/store.js
83
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/tasks/store.js
84
84
  function matches(task, filter) {
85
85
  return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
86
86
  }
87
87
  __name(matches, "matches");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
90
90
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
91
- var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed"];
91
+ var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
92
92
  var MEMORY_KINDS = ["summary", "digest", "preference"];
93
93
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
94
94
  var MEMORY_SCOPES = ["personal", "work"];
95
95
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
96
96
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
97
97
 
98
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
98
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
99
99
  var LINK_KINDS = [
100
100
  "links-to",
101
101
  "blocked-by",
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  timezoneOf,
5
5
  wallTime
6
- } from "./chunk-LVHZQCP4.js";
6
+ } from "./chunk-NVN4O5IC.js";
7
7
  import {
8
8
  CliError,
9
9
  isCliError
10
- } from "./chunk-R4SRXI7M.js";
10
+ } from "./chunk-L7VIPVHL.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  errorCodes
5
- } from "./chunk-R4SRXI7M.js";
5
+ } from "./chunk-L7VIPVHL.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/errors/failures.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/errors/failures.js
11
11
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
12
12
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
13
13
  const { code, exitCode } = value ?? {};