@wirecat/zoom-cli 0.75.0 → 0.77.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 (217) 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-WFLKFKJC.js → all-profiles-PMCFNDMA.js} +11 -11
  17. package/dist/bundle/answer-policy-XU7KEW2V.js +121 -0
  18. package/dist/bundle/{anthropic-H45W4P22.js → anthropic-TGJOKLUS.js} +6 -6
  19. package/dist/bundle/{app-server-I4FPLBIX.js → app-server-OAODUFM3.js} +73 -63
  20. package/dist/bundle/{bun-V5QLYBZU.js → bun-HJHVHJJV.js} +2 -2
  21. package/dist/bundle/{bun-sqlite-X2YZPHDS.js → bun-sqlite-PLBOY6FP.js} +7 -7
  22. package/dist/bundle/{chunk-P6MQ6FS4.js → chunk-2QDD6S2R.js} +8 -8
  23. package/dist/bundle/{chunk-ZMHZ6CQS.js → chunk-2QRGJSKO.js} +2 -2
  24. package/dist/bundle/{chunk-DQBLDZ7M.js → chunk-36SI35XZ.js} +5 -5
  25. package/dist/bundle/{chunk-HKPNQL52.js → chunk-375BH5OD.js} +4 -4
  26. package/dist/bundle/{chunk-T4FMXDDV.js → chunk-3TLQF3DN.js} +3 -3
  27. package/dist/bundle/{chunk-EA2OB75T.js → chunk-4QNW4NK6.js} +1 -1
  28. package/dist/bundle/{chunk-4XDWV6VJ.js → chunk-4Z4VOQRR.js} +17 -17
  29. package/dist/bundle/{chunk-VLK3X53X.js → chunk-5A5W322G.js} +6 -2
  30. package/dist/bundle/chunk-5C5UEKUJ.js +170 -0
  31. package/dist/bundle/chunk-5C6CRSEM.js +389 -0
  32. package/dist/bundle/{chunk-3YKAFLXY.js → chunk-5KHCFIWI.js} +2 -2
  33. package/dist/bundle/{chunk-NQQVNLO6.js → chunk-635GRAO5.js} +12 -12
  34. package/dist/bundle/{chunk-RKI4BGWG.js → chunk-6JRBMNRN.js} +3 -3
  35. package/dist/bundle/{chunk-Y5J5CAG2.js → chunk-6YCFDDRO.js} +1 -1
  36. package/dist/bundle/{chunk-ZVVRRMLW.js → chunk-77JQIY2V.js} +3 -3
  37. package/dist/bundle/{chunk-IW245Q5B.js → chunk-7AFYZOHU.js} +36 -32
  38. package/dist/bundle/{chunk-V3UK6E5B.js → chunk-7CMYNW3W.js} +4 -4
  39. package/dist/bundle/chunk-7DTU7QZP.js +72 -0
  40. package/dist/bundle/chunk-7ILGYNWX.js +773 -0
  41. package/dist/bundle/{chunk-XUHQ7DVT.js → chunk-7S3N5CTA.js} +1 -1
  42. package/dist/bundle/chunk-7SNU7RFU.js +229 -0
  43. package/dist/bundle/{chunk-4YNUQGDP.js → chunk-A6LK2W5J.js} +1 -1
  44. package/dist/bundle/{chunk-MHXZ62CU.js → chunk-ADJIYY33.js} +1 -1
  45. package/dist/bundle/{chunk-WUWF4EXZ.js → chunk-B7XFDMFV.js} +22 -12
  46. package/dist/bundle/{chunk-2Q4CB4EI.js → chunk-BOJCRTQW.js} +2 -2
  47. package/dist/bundle/{chunk-GPVSGZ4R.js → chunk-CJL5GHTQ.js} +1010 -617
  48. package/dist/bundle/{chunk-BY2YPKZZ.js → chunk-CL6QAZGT.js} +39 -67
  49. package/dist/bundle/{chunk-GU4FVTJV.js → chunk-CUJJZJ4R.js} +44 -9
  50. package/dist/bundle/{chunk-FBYGBR4Q.js → chunk-CZ6OO66B.js} +4 -4
  51. package/dist/bundle/chunk-DCEQIKFD.js +259 -0
  52. package/dist/bundle/{chunk-QBKKTTA3.js → chunk-DDUNPLET.js} +279 -588
  53. package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-DYIRJINE.js} +1 -1
  54. package/dist/bundle/{chunk-L5UILROP.js → chunk-E3UPMPUV.js} +8 -8
  55. package/dist/bundle/{chunk-F6RB5FHZ.js → chunk-ECRFXQHA.js} +1 -1
  56. package/dist/bundle/{chunk-AVCYD4WQ.js → chunk-F4ROWGLU.js} +68 -38
  57. package/dist/bundle/{chunk-6XNTELM5.js → chunk-FDQE2CLT.js} +1 -1
  58. package/dist/bundle/{chunk-PCJRHC5Y.js → chunk-FRC5QIPQ.js} +8 -8
  59. package/dist/bundle/{chunk-4RJL32PF.js → chunk-FS5HPXQN.js} +26 -9
  60. package/dist/bundle/{chunk-ZBYKCVSV.js → chunk-GHBDYYPO.js} +2 -2
  61. package/dist/bundle/{chunk-OUM4ZO53.js → chunk-H2EVYY5Z.js} +1 -1
  62. package/dist/bundle/{chunk-VPSQZ2YR.js → chunk-I3QMPQYD.js} +49 -49
  63. package/dist/bundle/{chunk-3U3W6YY5.js → chunk-ICZVSVTW.js} +71 -252
  64. package/dist/bundle/{chunk-QEO3XTIE.js → chunk-IJTBB23F.js} +32 -33
  65. package/dist/bundle/{chunk-FT7X74RT.js → chunk-IS6MUPN2.js} +4 -4
  66. package/dist/bundle/{chunk-NL6AZ6S2.js → chunk-IUOKIZZN.js} +2 -2
  67. package/dist/bundle/{chunk-3HTJBGNP.js → chunk-IZMRQ3MV.js} +21 -16
  68. package/dist/bundle/{chunk-X2FILY5F.js → chunk-JFVZVPRW.js} +3 -3
  69. package/dist/bundle/{chunk-MNVT7EJS.js → chunk-JMU3E2WA.js} +2 -2
  70. package/dist/bundle/{chunk-T25PR26L.js → chunk-JQUYHPQD.js} +7 -7
  71. package/dist/bundle/{chunk-JDTZCZ5K.js → chunk-KHBSQROH.js} +5 -5
  72. package/dist/bundle/{chunk-HCZYJMBP.js → chunk-KYKW2W6X.js} +1 -1
  73. package/dist/bundle/chunk-LMZUC4CS.js +101 -0
  74. package/dist/bundle/{chunk-PPM7UTCT.js → chunk-LUAS73NT.js} +18 -18
  75. package/dist/bundle/{chunk-P4ZQQLZF.js → chunk-LWMDLXEO.js} +2384 -3000
  76. package/dist/bundle/{chunk-W2AC2RAG.js → chunk-LYVHQ6DJ.js} +14 -14
  77. package/dist/bundle/{chunk-DUPFAY35.js → chunk-MCLZ74II.js} +7 -7
  78. package/dist/bundle/chunk-MIG4RLDB.js +555 -0
  79. package/dist/bundle/{chunk-3URYKAJP.js → chunk-MMAZUJBO.js} +1 -1
  80. package/dist/bundle/{chunk-B6Q53CVA.js → chunk-MTH3JJHF.js} +24 -22
  81. package/dist/bundle/{chunk-7ZVWV33Z.js → chunk-NJJEUG4C.js} +35 -13
  82. package/dist/bundle/{chunk-SEJBS7SI.js → chunk-NKKVVPL5.js} +1 -1
  83. package/dist/bundle/{chunk-TSHUBGN4.js → chunk-NOF6LABG.js} +6 -6
  84. package/dist/bundle/{chunk-F7K2V6OA.js → chunk-NPDPD2H3.js} +12 -12
  85. package/dist/bundle/{chunk-2PYZTRRC.js → chunk-NPIVV52M.js} +1 -1
  86. package/dist/bundle/{chunk-WQOGHND4.js → chunk-OOIU36FA.js} +1 -1
  87. package/dist/bundle/{chunk-XCJGDPMN.js → chunk-OXXJW3A5.js} +22320 -22886
  88. package/dist/bundle/chunk-PM3MB3E7.js +295 -0
  89. package/dist/bundle/{chunk-VUPWDCYV.js → chunk-PO4RZ4XZ.js} +1 -1
  90. package/dist/bundle/{chunk-K5E5MB4C.js → chunk-Q7ZW7XAX.js} +31 -87
  91. package/dist/bundle/{chunk-HNWDEDMU.js → chunk-QAGECFHL.js} +22 -22
  92. package/dist/bundle/{chunk-JTYWSXJG.js → chunk-QE4L2QQZ.js} +9 -9
  93. package/dist/bundle/{chunk-4J5GJJ2I.js → chunk-QKNO3JTG.js} +2 -2
  94. package/dist/bundle/{chunk-IMDTC4MD.js → chunk-QUGESVOE.js} +22 -35
  95. package/dist/bundle/{chunk-ELD5AC7Q.js → chunk-RQS3W4P6.js} +7 -6
  96. package/dist/bundle/{chunk-A3Q3PG54.js → chunk-SFPUSEOT.js} +2 -2
  97. package/dist/bundle/{chunk-SR5X7YKB.js → chunk-SP5OMHOO.js} +3 -3
  98. package/dist/bundle/chunk-STNZQBY4.js +335 -0
  99. package/dist/bundle/{chunk-EOZAJGB4.js → chunk-SVJQRG5N.js} +16 -16
  100. package/dist/bundle/{chunk-IDGWBKMH.js → chunk-SY5NGYKA.js} +12 -12
  101. package/dist/bundle/{chunk-NE4GYKQA.js → chunk-T4CI3YXW.js} +6 -6
  102. package/dist/bundle/{chunk-3YRPDNWK.js → chunk-T6RSYDFA.js} +1075 -443
  103. package/dist/bundle/{chunk-QXQUANWE.js → chunk-TY4FFK2P.js} +6 -6
  104. package/dist/bundle/chunk-UGRGYLEI.js +224 -0
  105. package/dist/bundle/{chunk-C5WQ57AB.js → chunk-VGERRRDC.js} +1 -1
  106. package/dist/bundle/{chunk-NQLL4KRN.js → chunk-VJ2TLU7R.js} +6 -6
  107. package/dist/bundle/{chunk-PX4IMYVB.js → chunk-W7UCN7MF.js} +3 -3
  108. package/dist/bundle/{chunk-RBYVQE3S.js → chunk-WD5OL5JB.js} +81 -5
  109. package/dist/bundle/{chunk-LRCSDAYK.js → chunk-XC3MWABM.js} +4 -4
  110. package/dist/bundle/{chunk-MAE5UGRQ.js → chunk-XCA5N63N.js} +6 -6
  111. package/dist/bundle/chunk-XVHDT4CO.js +31 -0
  112. package/dist/bundle/{chunk-532H3KT3.js → chunk-YFN5A7OP.js} +4 -4
  113. package/dist/bundle/{chunk-IJCUAKR5.js → chunk-YJIGGUPI.js} +4 -4
  114. package/dist/bundle/{chunk-FIVFP53N.js → chunk-YVI5SQPY.js} +1 -1
  115. package/dist/bundle/{chunk-IO3BQ6JU.js → chunk-ZRNNMBPC.js} +31 -577
  116. package/dist/bundle/{chunk-RABCFGT3.js → chunk-ZUMKZOHR.js} +3 -3
  117. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-ZZ32DXTH.js} +1 -1
  118. package/dist/bundle/{cli-NPRYCWFH.js → cli-Y27PHKBV.js} +105 -84
  119. package/dist/bundle/command-contract-GB7YA3KW.js +45 -0
  120. package/dist/bundle/{command-server-entry-BV4SUPUI.js → command-server-entry-AXQSW2X6.js} +35 -31
  121. package/dist/bundle/config-2OOABHR7.js +108 -0
  122. package/dist/bundle/{decode-PRMKCHHC.js → decode-ZRNOOTUZ.js} +16 -8
  123. package/dist/bundle/{dispatch-EU67WGME.js → dispatch-2GHGPAYH.js} +9 -9
  124. package/dist/bundle/{dist-HGLDGKUW.js → dist-MUFVAMKB.js} +25 -22
  125. package/dist/bundle/{echarts-QIXLXS3G.js → echarts-F4PHDYET.js} +2 -2
  126. package/dist/bundle/{embed-OZN2BIJY.js → embed-KWHCKPCV.js} +7 -7
  127. package/dist/bundle/{embedder-RBDHO6Z6.js → embedder-U3R3RY54.js} +10 -10
  128. package/dist/bundle/{failure-CTJLEB2R.js → failure-S2YXEN4A.js} +3 -3
  129. package/dist/bundle/first-run-F4YR2E2C.js +29 -0
  130. package/dist/bundle/first-screen-HPRHD3VK.js +43 -0
  131. package/dist/bundle/{folders-MSBTAPAG.js → folders-DVTRFQKW.js} +5 -5
  132. package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-JU4YW6QY.js} +1 -1
  133. package/dist/bundle/{main-FPMCCRIQ.js → main-5UCRPACH.js} +24 -24
  134. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-O6ACR2DX.js} +2 -2
  135. package/dist/bundle/meeting-combined-IWU5SPAH.js +26 -0
  136. package/dist/bundle/meeting-model-ILIUJECZ.js +26 -0
  137. package/dist/bundle/meeting-semantic-5DKRGZFS.js +23 -0
  138. package/dist/bundle/{meetings-WYCVHAIP.js → meetings-T2UY35DV.js} +43 -7
  139. package/dist/bundle/{node-IEVT2FSJ.js → node-MAVRAF4M.js} +2 -2
  140. package/dist/bundle/{node-sqlite-O4C6IWSM.js → node-sqlite-TFBQ5NDI.js} +8 -8
  141. package/dist/bundle/{oauth-6VXOUXSE.js → oauth-7IG5HWSY.js} +8 -8
  142. package/dist/bundle/{open-AMUIWV3Y.js → open-3R3N7L3X.js} +6 -6
  143. package/dist/bundle/openai-DD5I3DWC.js +28 -0
  144. package/dist/bundle/{output-file-VDOCYH2G.js → output-file-KKHHAYWF.js} +6 -6
  145. package/dist/bundle/{process-6Q23D3TO.js → process-OIO254NR.js} +1 -1
  146. package/dist/bundle/{program-CF2NKA2A.js → program-IBYRU76H.js} +428 -250
  147. package/dist/bundle/{prompt-N3UZE4ZR.js → prompt-LNEOO7PN.js} +6 -6
  148. package/dist/bundle/{recognize-I5F3K3CZ.js → recognize-2WYLT3PC.js} +5 -5
  149. package/dist/bundle/{remote-CJF5KMMY.js → remote-7EAJEIV7.js} +11 -11
  150. package/dist/bundle/{rerank-6WLY6MKY.js → rerank-DZBZ744F.js} +8 -8
  151. package/dist/bundle/run-log-CCIVRSHP.js +135 -0
  152. package/dist/bundle/{serve-FOQJ3WMX.js → serve-T3KQV5SS.js} +15 -15
  153. package/dist/bundle/{server-OEEGRSQD.js → server-2QQAQZ2J.js} +59 -49
  154. package/dist/bundle/server-OJQMPF2R.js +84 -0
  155. package/dist/bundle/{services-Q6SFESMS.js → services-DETAKMC3.js} +80 -54
  156. package/dist/bundle/{speech-PBVEIG4N.js → speech-HD57JNTK.js} +34 -18
  157. package/dist/bundle/{sqlite-runtime-IWR65V6I.js → sqlite-runtime-OCETZSEZ.js} +7 -7
  158. package/dist/bundle/{state-G54C2N6U.js → state-ZKVQ4DBI.js} +7 -7
  159. package/dist/bundle/{store-D5OLXIFW.js → store-7IZ2WMHF.js} +24 -20
  160. package/dist/bundle/{store-7EWMPTTW.js → store-GEAQ7V5R.js} +26 -22
  161. package/dist/bundle/store-connection-BALCZW7P.js +101 -0
  162. package/dist/bundle/store-maintenance-command-SBT4LDSI.js +76 -0
  163. package/dist/bundle/{streaming-PQEXKTE5.js → streaming-CLBAO3MG.js} +7 -7
  164. package/dist/bundle/{tokens-J7TFHLEG.js → tokens-WH73ZWFI.js} +10 -10
  165. package/dist/bundle/zm.js +9 -9
  166. package/dist/bundle/{zoom-app-SULPMVN4.js → zoom-app-ZDTYMJET.js} +8 -8
  167. package/dist/commands.d.ts.map +1 -1
  168. package/dist/commands.js +3 -0
  169. package/dist/commands.js.map +1 -1
  170. package/dist/first-screen.d.ts.map +1 -1
  171. package/dist/first-screen.js +3 -5
  172. package/dist/first-screen.js.map +1 -1
  173. package/dist/meeting-integration-commands.d.ts.map +1 -1
  174. package/dist/meeting-integration-commands.js +46 -28
  175. package/dist/meeting-integration-commands.js.map +1 -1
  176. package/dist/meeting-search-commands.d.ts.map +1 -1
  177. package/dist/meeting-search-commands.js +6 -5
  178. package/dist/meeting-search-commands.js.map +1 -1
  179. package/dist/meeting-source.d.ts.map +1 -1
  180. package/dist/meeting-source.js +15 -1
  181. package/dist/meeting-source.js.map +1 -1
  182. package/dist/permissions.d.ts +8 -4
  183. package/dist/permissions.d.ts.map +1 -1
  184. package/dist/permissions.js +25 -24
  185. package/dist/permissions.js.map +1 -1
  186. package/dist/program-bindings.d.ts.map +1 -1
  187. package/dist/program-bindings.js +10 -6
  188. package/dist/program-bindings.js.map +1 -1
  189. package/dist/program.d.ts +2 -1
  190. package/dist/program.d.ts.map +1 -1
  191. package/dist/program.js.map +1 -1
  192. package/dist/remote-meetings.d.ts +38 -8
  193. package/dist/remote-meetings.d.ts.map +1 -1
  194. package/dist/remote-meetings.js +52 -29
  195. package/dist/remote-meetings.js.map +1 -1
  196. package/dist/run.d.ts.map +1 -1
  197. package/dist/run.js +4 -2
  198. package/dist/run.js.map +1 -1
  199. package/dist/version.d.ts +1 -1
  200. package/dist/version.js +1 -1
  201. package/dist/zoom-app.d.ts.map +1 -1
  202. package/dist/zoom-app.js +1 -0
  203. package/dist/zoom-app.js.map +1 -1
  204. package/package.json +3 -3
  205. package/skills/zoom-cli/SKILL.md +2 -2
  206. package/dist/bundle/answer-policy-XCKC2LLN.js +0 -110
  207. package/dist/bundle/chunk-NU4FSSMN.js +0 -161
  208. package/dist/bundle/command-contract-OJYRKQHR.js +0 -41
  209. package/dist/bundle/config-UMEV24OE.js +0 -97
  210. package/dist/bundle/first-run-HNCD7U3B.js +0 -29
  211. package/dist/bundle/first-screen-374BBMO6.js +0 -39
  212. package/dist/bundle/openai-MEDN6FSK.js +0 -28
  213. package/dist/bundle/run-log-FKF4ZX4M.js +0 -124
  214. package/dist/bundle/server-BAGY5HEZ.js +0 -74
  215. package/dist/bundle/store-connection-34747SCC.js +0 -90
  216. package/dist/bundle/store-maintenance-command-QBO67F7Z.js +0 -65
  217. /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-VKE77B3F.js} +0 -0
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure,
5
5
  isStoreDamage
6
- } from "./chunk-3YKAFLXY.js";
6
+ } from "./chunk-5KHCFIWI.js";
7
7
  import {
8
8
  ADDED_PROVIDER,
9
9
  INTERNAL_NOTES,
@@ -17,22 +17,17 @@ import {
17
17
  kindsIn,
18
18
  providerNamed,
19
19
  providers
20
- } from "./chunk-IMDTC4MD.js";
20
+ } from "./chunk-QUGESVOE.js";
21
21
  import {
22
22
  refuseOwnerStoreInTests
23
- } from "./chunk-A3Q3PG54.js";
24
- import {
25
- createRecordLog,
26
- resolvePaths,
27
- traceIdOf,
28
- writeSecurely
29
- } from "./chunk-HNWDEDMU.js";
23
+ } from "./chunk-SFPUSEOT.js";
30
24
  import {
31
25
  array,
32
26
  boolean,
27
+ description,
33
28
  integer,
34
29
  isoTime,
35
- isoTimestamp,
30
+ maxLength,
36
31
  minLength,
37
32
  minValue,
38
33
  nullable,
@@ -45,535 +40,22 @@ import {
45
40
  strictObject,
46
41
  string,
47
42
  unknown
48
- } from "./chunk-4RJL32PF.js";
43
+ } from "./chunk-FS5HPXQN.js";
49
44
  import {
50
45
  CliError
51
- } from "./chunk-EA2OB75T.js";
46
+ } from "./chunk-4QNW4NK6.js";
52
47
  import {
53
48
  __name
54
49
  } from "./chunk-ZVVMGPBJ.js";
55
50
 
56
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/run.js
57
- import { randomUUID } from "node:crypto";
58
- import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
59
- import { userInfo } from "node:os";
60
- import { join, sep } from "node:path";
61
-
62
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
63
- var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
64
- var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
65
- var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
66
- var logAttributes = /* @__PURE__ */ __name((event) => renamed(event, snake), "logAttributes");
67
- var fromLogAttributes = /* @__PURE__ */ __name((attributes) => renamed(attributes, camel), "fromLogAttributes");
68
- var snakeLogger = /* @__PURE__ */ __name((logger) => ({
69
- debug: /* @__PURE__ */ __name((event, message) => logger.debug(logAttributes(event), message), "debug"),
70
- info: /* @__PURE__ */ __name((event, message) => logger.info(logAttributes(event), message), "info"),
71
- warn: /* @__PURE__ */ __name((event, message) => logger.warn(logAttributes(event), message), "warn"),
72
- error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
73
- }), "snakeLogger");
74
-
75
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
76
- var diagnostic = {
77
- event: true,
78
- operation: true,
79
- opcode: true,
80
- seq: true,
81
- status: true,
82
- method: true,
83
- endpointTemplate: true,
84
- bytes: true,
85
- ids: true,
86
- counts: true,
87
- durationMs: true,
88
- outcome: true,
89
- errorCode: true,
90
- providerError: true,
91
- level: true,
92
- transport: true,
93
- attempt: true,
94
- waitMs: true,
95
- code: true,
96
- detail: true,
97
- reason: true,
98
- ageMs: true,
99
- kind: true,
100
- table: true,
101
- op: true,
102
- n: true
103
- };
104
- var send = {
105
- profile: true,
106
- chatId: true,
107
- outcome: true,
108
- kind: true,
109
- action: true,
110
- people: true,
111
- messageId: true,
112
- key: true,
113
- count: true,
114
- forEveryone: true,
115
- sendId: true,
116
- operationId: true,
117
- parentOperationId: true,
118
- replyTo: true,
119
- threadId: true,
120
- sendAs: true,
121
- resultChatId: true,
122
- length: true,
123
- attachments: true,
124
- scheduledFor: true,
125
- notify: true,
126
- origin: true,
127
- reservation: true,
128
- errorCode: true
129
- };
130
- var background = [
131
- "job",
132
- "pid",
133
- "schedule",
134
- "exitCode",
135
- "tool",
136
- "tier",
137
- "actorType",
138
- "actorId",
139
- "agent",
140
- "targetType",
141
- "targetId"
142
- ];
143
- var crash = ["errorClass", "frames"];
144
- var dropped = ["dropped"];
145
- var LOG_ATTRIBUTES = [
146
- ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
147
- ].sort();
148
-
149
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/run.js
150
- var KEEP_RUNS_FOR_DAYS = 30;
151
- var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
152
- var KEEP_STORE_RUNS_FOR_DAYS = 3;
153
- var RUNS_SIZE_LIMIT_MB = 200;
154
- var runsDirFor = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "runs"), "runsDirFor");
155
- var startRun = /* @__PURE__ */ __name((options) => {
156
- const now = options.now ?? (() => /* @__PURE__ */ new Date());
157
- const startedAt = options.startedAt ?? now();
158
- const id2 = options.runId ?? newRunId(startedAt, options.command);
159
- const dir = join(options.runsDir, day(startedAt), id2);
160
- pruneRuns(options.runsDir, {
161
- keepDays: options.keepDays ?? KEEP_RUNS_FOR_DAYS,
162
- keepSuccessDays: options.keepSuccessDays ?? KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
163
- keepStoreDays: options.keepStoreDays ?? KEEP_STORE_RUNS_FOR_DAYS,
164
- maxBytes: options.maxBytes ?? RUNS_SIZE_LIMIT_MB * 1024 * 1024,
165
- now: startedAt
166
- });
167
- refuseRealStateInTests(dir);
168
- const metadata = {
169
- runId: id2,
170
- command: options.command,
171
- ...options.profile === void 0 ? {} : { profile: options.profile },
172
- startedAt: startedAt.toISOString(),
173
- status: "running",
174
- cliVersion: options.cliVersion,
175
- runtime: runtime(),
176
- platform: process.platform,
177
- arch: process.arch,
178
- ...options.traceId === void 0 ? {} : { traceId: options.traceId },
179
- ...options.context
180
- };
181
- let file;
182
- const opened = /* @__PURE__ */ __name(() => {
183
- if (file)
184
- return file;
185
- mkdirSync(dir, { recursive: true, mode: 448 });
186
- const events = join(dir, "events.jsonl");
187
- writeFileSync(events, "", { flag: "a", mode: 384 });
188
- file = snakeLogger(createRecordLog({
189
- to: events,
190
- runId: id2,
191
- command: options.command,
192
- resource: { service: options.service, version: options.cliVersion },
193
- allow: LOG_ATTRIBUTES,
194
- ...options.traceId === void 0 ? {} : { traceId: options.traceId },
195
- ...options.onError === void 0 ? {} : { onError: options.onError }
196
- }));
197
- writeRunFile(dir, metadata);
198
- return file;
199
- }, "opened");
200
- if (!options.lazy)
201
- opened();
202
- let finished = false;
203
- const operations = /* @__PURE__ */ new Set();
204
- const codes = /* @__PURE__ */ new Set();
205
- const tables = /* @__PURE__ */ new Set();
206
- const noted = /* @__PURE__ */ __name((level) => (event, message) => {
207
- const { operation, errorCode, error_code, code, kind, table } = event;
208
- if (typeof operation === "string")
209
- operations.add(operation);
210
- if (kind === "store" && typeof table === "string")
211
- tables.add(table);
212
- for (const value of [errorCode, error_code, code])
213
- if (typeof value === "string")
214
- codes.add(value);
215
- if (finished)
216
- return;
217
- opened()[level](event, message);
218
- }, "noted");
219
- const logger = { debug: noted("debug"), info: noted("info"), warn: noted("warn"), error: noted("error") };
220
- return {
221
- id: id2,
222
- dir,
223
- logger,
224
- finish: /* @__PURE__ */ __name(async (status, extra = {}) => {
225
- if (finished)
226
- return;
227
- finished = true;
228
- const completedAt = now();
229
- const final = {
230
- ...metadata,
231
- ...extra,
232
- status,
233
- completedAt: completedAt.toISOString(),
234
- durationMs: completedAt.getTime() - startedAt.getTime(),
235
- operations: [...operations].sort(),
236
- codes: [...codes].sort(),
237
- ...tables.size > 0 ? { tables: [...tables].sort() } : {}
238
- };
239
- if (file || status !== "success") {
240
- opened();
241
- writeRunFile(dir, final);
242
- return;
243
- }
244
- try {
245
- mkdirSync(join(dir, ".."), { recursive: true, mode: 448 });
246
- appendIndex(join(dir, ".."), runFileOf(final));
247
- } catch (error) {
248
- options.onError?.(error);
249
- }
250
- }, "finish")
251
- };
252
- }, "startRun");
253
- var refuseRealStateInTests = /* @__PURE__ */ __name((dir, env = process.env) => {
254
- if (env.VITEST === void 0)
255
- return;
256
- let home;
257
- try {
258
- home = userInfo().homedir;
259
- } catch {
260
- return;
261
- }
262
- if (dir.startsWith(join(home, ".local", "share") + sep))
263
- throw new Error(`a test opened a run in the real data folder: ${dir}`);
264
- }, "refuseRealStateInTests");
265
- var runtime = /* @__PURE__ */ __name(() => {
266
- const bun = process.versions.bun;
267
- return bun ? `bun ${bun}` : `node ${process.versions.node}`;
268
- }, "runtime");
269
- var newRunId = /* @__PURE__ */ __name((startedAt, command) => {
270
- const stamp = startedAt.toISOString().replace(/[-:]/g, "").replace(/\.\d+Z$/, "Z");
271
- const slug = command.replace(/[^a-z0-9]+/gi, "-").toLowerCase();
272
- return `${stamp}-${slug}-${randomUUID().slice(0, 6)}`;
273
- }, "newRunId");
274
- var INDEX = "index.jsonl";
275
- var appendIndex = /* @__PURE__ */ __name((dayDir, written) => {
276
- appendFileSync(join(dayDir, INDEX), `${JSON.stringify(written)}
277
- `, { mode: 384 });
278
- }, "appendIndex");
279
- var writeRunFile = /* @__PURE__ */ __name((dir, metadata) => {
280
- const written = runFileOf(metadata);
281
- writeSecurely(join(dir, "run.json"), `${JSON.stringify(written, null, 2)}
282
- `, 384);
283
- try {
284
- appendIndex(join(dir, ".."), written);
285
- } catch {
286
- }
287
- }, "writeRunFile");
288
- var matchesListFilter = /* @__PURE__ */ __name((run, filter) => (filter.runId === void 0 || run.runId === filter.runId) && (filter.command === void 0 || run.command === filter.command) && (filter.profile === void 0 || run.profile === filter.profile) && (filter.status === void 0 || run.status === filter.status) && (filter.errorCode === void 0 || run.errorCode === filter.errorCode), "matchesListFilter");
289
- var listRuns = /* @__PURE__ */ __name((runsDir, { since, atLeast = Number.POSITIVE_INFINITY, filter = {} } = {}) => {
290
- const first = since === void 0 ? void 0 : day(new Date(since));
291
- const runs = [];
292
- for (const date of days(runsDir).sort().reverse()) {
293
- if (first !== void 0 && date < first || runs.length >= atLeast)
294
- break;
295
- for (const metadata of runsOfDay(join(runsDir, date))) {
296
- if (matchesListFilter(metadata, filter))
297
- runs.push(metadata);
298
- }
299
- }
300
- return runs;
301
- }, "listRuns");
302
- var indexedRuns = /* @__PURE__ */ __name((dayDir) => {
303
- const latest = /* @__PURE__ */ new Map();
304
- let raw = "";
305
- try {
306
- raw = readFileSync(join(dayDir, INDEX), "utf8");
307
- } catch {
308
- }
309
- for (const line of raw.split("\n")) {
310
- if (line.trim() === "")
311
- continue;
312
- try {
313
- const metadata = metadataOf(JSON.parse(line));
314
- if (typeof metadata.runId === "string")
315
- latest.set(metadata.runId, metadata);
316
- } catch {
317
- }
318
- }
319
- return latest;
320
- }, "indexedRuns");
321
- var runsOfDay = /* @__PURE__ */ __name((dayDir) => {
322
- const latest = indexedRuns(dayDir);
323
- for (const entry of safeReaddir(dayDir)) {
324
- if (entry === INDEX || entry.startsWith(".") || latest.has(entry))
325
- continue;
326
- const metadata = readRun(join(dayDir, entry));
327
- if (metadata)
328
- latest.set(metadata.runId, metadata);
329
- }
330
- return [...latest.values()].sort((a, b) => a.runId < b.runId ? 1 : a.runId > b.runId ? -1 : 0);
331
- }, "runsOfDay");
332
- var findRun = /* @__PURE__ */ __name((runsDir, id2) => {
333
- const stamped = /^(\d{4})(\d{2})(\d{2})T/.exec(id2);
334
- const likely = stamped ? [`${stamped[1]}-${stamped[2]}-${stamped[3]}`] : [];
335
- const dates = [.../* @__PURE__ */ new Set([...likely, ...days(runsDir)])];
336
- for (const date of dates) {
337
- const dir = join(runsDir, date, id2);
338
- const metadata = readRun(dir);
339
- if (metadata)
340
- return { dir, metadata };
341
- }
342
- for (const date of dates) {
343
- const metadata = indexedRuns(join(runsDir, date)).get(id2);
344
- if (metadata)
345
- return { dir: join(runsDir, date, id2), metadata };
346
- }
347
- return void 0;
348
- }, "findRun");
349
- var readEvents = /* @__PURE__ */ __name((dir) => {
350
- let raw;
351
- try {
352
- raw = readFileSync(join(dir, "events.jsonl"), "utf8");
353
- } catch {
354
- return [];
355
- }
356
- const events = [];
357
- for (const line of raw.split("\n")) {
358
- if (line.trim() === "")
359
- continue;
360
- try {
361
- const parsed = JSON.parse(line);
362
- if (parsed !== null && typeof parsed === "object")
363
- events.push(eventOf(parsed));
364
- } catch {
365
- }
366
- }
367
- return events;
368
- }, "readEvents");
369
- var eventOf = /* @__PURE__ */ __name((line) => {
370
- const { attributes, time: time2, severity: severity2 } = line;
371
- if (attributes === null || typeof attributes !== "object")
372
- return logAttributes(line);
373
- return { time: time2, severity: severity2, ...logAttributes(attributes) };
374
- }, "eventOf");
375
- var pruneRuns = /* @__PURE__ */ __name((runsDir, { keepDays, keepSuccessDays = keepDays, keepStoreDays = KEEP_STORE_RUNS_FOR_DAYS, maxBytes, now }) => {
376
- const cutoff = day(new Date(now.getTime() - keepDays * DAY_MS));
377
- const before = /* @__PURE__ */ __name((days2) => day(new Date(now.getTime() - Math.min(days2, keepDays) * DAY_MS)), "before");
378
- const successCutoff = before(keepSuccessDays);
379
- const storeCutoff = before(keepStoreDays);
380
- const keptFor = /* @__PURE__ */ __name((metadata) => metadata.keptBecauseStore ? keepStoreDays : metadata.operations?.includes(STORE_WRITE) ? Math.max(keepSuccessDays, keepStoreDays) : keepSuccessDays, "keptFor");
381
- let removed = 0;
382
- for (const date of days(runsDir)) {
383
- if (date >= cutoff) {
384
- if (date < storeCutoff)
385
- dropSuccesses(join(runsDir, date), STORE_RUNS_DROPPED, (metadata) => keptFor(metadata) <= keepStoreDays);
386
- if (date < successCutoff)
387
- dropSuccesses(join(runsDir, date), SUCCESSES_DROPPED, (metadata) => keptFor(metadata) <= keepSuccessDays);
388
- continue;
389
- }
390
- try {
391
- rmSync(join(runsDir, date), { recursive: true, force: true });
392
- removed += 1;
393
- } catch {
394
- }
395
- }
396
- if (maxBytes !== void 0)
397
- removed += fitSize(runsDir, maxBytes, now);
398
- return removed;
399
- }, "pruneRuns");
400
- var DAY_MS = 24 * 60 * 60 * 1e3;
401
- var STORE_WRITE = "store.write";
402
- var SUCCESSES_DROPPED = ".successes-dropped";
403
- var STORE_RUNS_DROPPED = ".store-runs-dropped";
404
- var SIZE_CHECKED = ".size-checked";
405
- var dropSuccesses = /* @__PURE__ */ __name((dayDir, marker = SUCCESSES_DROPPED, drops = () => true) => {
406
- const done = join(dayDir, marker);
407
- try {
408
- statSync(done);
409
- return;
410
- } catch {
411
- }
412
- const dropped2 = /* @__PURE__ */ __name((metadata) => metadata?.status === "success" && drops(metadata), "dropped");
413
- try {
414
- const kept = [];
415
- for (const [id2, metadata] of indexedRuns(dayDir)) {
416
- if (dropped2(metadata))
417
- rmSync(join(dayDir, id2), { recursive: true, force: true });
418
- else
419
- kept.push(JSON.stringify(runFileOf(metadata)));
420
- }
421
- for (const entry of safeReaddir(dayDir)) {
422
- if (entry === INDEX || entry.startsWith("."))
423
- continue;
424
- if (dropped2(readRun(join(dayDir, entry))))
425
- rmSync(join(dayDir, entry), { recursive: true, force: true });
426
- }
427
- writeSecurely(join(dayDir, INDEX), kept.map((line) => `${line}
428
- `).join(""), 384);
429
- writeFileSync(done, "", { mode: 384 });
430
- } catch {
431
- }
432
- }, "dropSuccesses");
433
- var sizeOf = /* @__PURE__ */ __name((path) => {
434
- let total = 0;
435
- for (const entry of safeReaddir(path)) {
436
- const full = join(path, entry);
437
- try {
438
- const stat = statSync(full);
439
- total += stat.isDirectory() ? sizeOf(full) : stat.size;
440
- } catch {
441
- }
442
- }
443
- return total;
444
- }, "sizeOf");
445
- var fitSize = /* @__PURE__ */ __name((runsDir, maxBytes, now) => {
446
- const stamp = join(runsDir, SIZE_CHECKED);
447
- const today = day(now);
448
- try {
449
- if (readFileSync(stamp, "utf8").trim() === today)
450
- return 0;
451
- } catch {
452
- }
453
- const dates = days(runsDir).sort();
454
- const sizes = new Map(dates.map((date) => [date, sizeOf(join(runsDir, date))]));
455
- let total = [...sizes.values()].reduce((sum, size) => sum + size, 0);
456
- let removed = 0;
457
- for (const date of dates) {
458
- if (total <= maxBytes || date === today)
459
- break;
460
- dropSuccesses(join(runsDir, date));
461
- const after = sizeOf(join(runsDir, date));
462
- total -= (sizes.get(date) ?? 0) - after;
463
- sizes.set(date, after);
464
- }
465
- for (const date of dates) {
466
- if (total <= maxBytes || date === today)
467
- break;
468
- try {
469
- rmSync(join(runsDir, date), { recursive: true, force: true });
470
- total -= sizes.get(date) ?? 0;
471
- removed += 1;
472
- } catch {
473
- }
474
- }
475
- try {
476
- mkdirSync(runsDir, { recursive: true, mode: 448 });
477
- writeFileSync(stamp, today, { mode: 384 });
478
- } catch {
479
- }
480
- return removed;
481
- }, "fitSize");
482
- var day = /* @__PURE__ */ __name((date) => date.toISOString().slice(0, 10), "day");
483
- var days = /* @__PURE__ */ __name((runsDir) => safeReaddir(runsDir).filter((entry) => /^\d{4}-\d{2}-\d{2}$/.test(entry)), "days");
484
- var readRun = /* @__PURE__ */ __name((dir) => {
485
- try {
486
- return metadataOf(JSON.parse(readFileSync(join(dir, "run.json"), "utf8")));
487
- } catch {
488
- return void 0;
489
- }
490
- }, "readRun");
491
- var safeReaddir = /* @__PURE__ */ __name((dir) => {
492
- try {
493
- return readdirSync(dir);
494
- } catch {
495
- return [];
496
- }
497
- }, "safeReaddir");
498
- var runFileOf = /* @__PURE__ */ __name(({ partial, ...metadata }) => ({
499
- ...logAttributes(metadata),
500
- ...partial ? { partial: { ...logAttributes(partial), failures: partial.failures.map((failure) => logAttributes(failure)) } } : {}
501
- }), "runFileOf");
502
- var metadataOf = /* @__PURE__ */ __name((parsed) => {
503
- const { partial, ...metadata } = fromLogAttributes(parsed);
504
- if (partial === null || typeof partial !== "object")
505
- return metadata;
506
- const { failures, ...rest } = fromLogAttributes(partial);
507
- return {
508
- ...metadata,
509
- partial: {
510
- ...rest,
511
- failures: Array.isArray(failures) ? failures.map((failure) => fromLogAttributes(failure)) : []
512
- }
513
- };
514
- }, "metadataOf");
515
-
516
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/scope.js
517
- import { AsyncLocalStorage } from "node:async_hooks";
518
- import { randomBytes } from "node:crypto";
519
- var scopes = new AsyncLocalStorage();
520
- var processScope;
521
- var ownProcesses = new AsyncLocalStorage();
522
- var asOwnProcess = /* @__PURE__ */ __name((body) => ownProcesses.run({}, body), "asOwnProcess");
523
- var currentRun = /* @__PURE__ */ __name(() => {
524
- const scope = scopes.getStore();
525
- if (scope)
526
- return scope;
527
- const own = ownProcesses.getStore();
528
- const fresh = /* @__PURE__ */ __name(() => ({
529
- runId: newRunId(/* @__PURE__ */ new Date(), "process"),
530
- command: "",
531
- startedAt: Date.now(),
532
- ...traceOf(process.env)
533
- }), "fresh");
534
- if (own) {
535
- own.scope ??= fresh();
536
- return own.scope;
537
- }
538
- processScope ??= fresh();
539
- return processScope;
540
- }, "currentRun");
541
- var inRun = /* @__PURE__ */ __name((scope, body) => scopes.run(scope, body), "inRun");
542
- var runEvent = /* @__PURE__ */ __name((event) => scopes.getStore()?.events?.(event), "runEvent");
543
- var typedCommand = /* @__PURE__ */ __name((tool, words, profile = currentRun().profile) => [tool, profile, words].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
544
- var useAsProcessRun = /* @__PURE__ */ __name((scope) => {
545
- const own = ownProcesses.getStore();
546
- if (own)
547
- own.scope = scope;
548
- else
549
- processScope = scope;
550
- }, "useAsProcessRun");
551
- var processRun = /* @__PURE__ */ __name(() => {
552
- const own = ownProcesses.getStore();
553
- return own ? own.scope : processScope;
554
- }, "processRun");
555
- var enclosingTraceId = /* @__PURE__ */ __name(() => scopes.getStore()?.traceId, "enclosingTraceId");
556
- var traceOf = /* @__PURE__ */ __name((env) => {
557
- const traceId = traceIdOf(env.TRACEPARENT);
558
- return traceId === void 0 ? {} : { traceId };
559
- }, "traceOf");
560
- var childTrace = /* @__PURE__ */ __name(() => {
561
- const hex = /* @__PURE__ */ __name((bytes) => randomBytes(bytes).toString("hex"), "hex");
562
- const traceId = hex(16);
563
- return { traceId, traceparent: `00-${traceId}-${hex(8)}-01` };
564
- }, "childTrace");
565
- var attempts = new AsyncLocalStorage();
566
- var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
567
- var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
568
-
569
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/source-review.js
51
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/store/source-review.js
570
52
  var SOURCE_REVIEW_KIND = "memory_source_review";
571
53
  var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
572
54
  var ERASED_TEXT = "[source erased]";
573
55
  var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
574
56
  var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
575
57
 
576
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/model.js
58
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/tasks/model.js
577
59
  var TASK_KINDS = ["question", "request", "mention", "promise"];
578
60
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
579
61
  var CLOSED_STATES = ["done", "dismissed"];
@@ -588,7 +70,7 @@ function closeTask(task, state, by, at, reason) {
588
70
  }
589
71
  __name(closeTask, "closeTask");
590
72
 
591
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/priority.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/tasks/priority.js
592
74
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
593
75
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
594
76
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -617,7 +99,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
617
99
  }, "priorityOf");
618
100
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
619
101
 
620
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/service.js
102
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/tasks/service.js
621
103
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
622
104
  async function find(id2) {
623
105
  const task = await store.get(id2);
@@ -677,13 +159,13 @@ function median(values) {
677
159
  }
678
160
  __name(median, "median");
679
161
 
680
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/store.js
162
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/tasks/store.js
681
163
  function matches(task, filter) {
682
164
  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);
683
165
  }
684
166
  __name(matches, "matches");
685
167
 
686
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
168
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
687
169
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
688
170
  var MEMORY_KINDS = ["summary", "digest", "preference"];
689
171
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -691,14 +173,14 @@ var MEMORY_SCOPES = ["personal", "work"];
691
173
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
692
174
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
693
175
 
694
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/categories.js
176
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/domain/categories.js
695
177
  var CATEGORIES = ["client", "supplier", "partner", "employer"];
696
178
 
697
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/fields.js
179
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/fields.js
698
180
  var text = string();
699
181
  var id = pipe(string(), minLength(1));
700
182
  var time = isoTime;
701
- var zonedTime = pipe(string(), isoTimestamp("an ISO 8601 time with a zone"));
183
+ var typedTime = pipe(string(), minLength(1), maxLength(64), description("an ISO 8601 date or time, in the computer's zone without one; or 30m, 2h, 7d ago"));
702
184
  var count = pipe(number(), integer(), minValue(0));
703
185
  var untrusted = optional(array(text));
704
186
  var providerMetadata = optional(record(string(), unknown()));
@@ -719,7 +201,7 @@ var author = strictObject({
719
201
  name: nullable(text)
720
202
  });
721
203
 
722
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
204
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
723
205
  var organization = strictObject({
724
206
  id,
725
207
  ref: reference,
@@ -749,15 +231,15 @@ var reminder = strictObject({
749
231
  receipt: nullable(text)
750
232
  });
751
233
 
752
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/marks.js
753
- import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
234
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/store/marks.js
235
+ import { readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
754
236
  var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
755
237
  var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
756
238
  var journalMarkPath = /* @__PURE__ */ __name((store) => `${store}.journal.json`, "journalMarkPath");
757
- var inodeOf = /* @__PURE__ */ __name((store) => statSync2(store, { throwIfNoEntry: false })?.ino, "inodeOf");
239
+ var inodeOf = /* @__PURE__ */ __name((store) => statSync(store, { throwIfNoEntry: false })?.ino, "inodeOf");
758
240
  var readJson = /* @__PURE__ */ __name((path) => {
759
241
  try {
760
- return JSON.parse(readFileSync2(path, "utf8"));
242
+ return JSON.parse(readFileSync(path, "utf8"));
761
243
  } catch (error) {
762
244
  if (error.code === "ENOENT")
763
245
  return null;
@@ -789,7 +271,7 @@ var markStoreDamaged = /* @__PURE__ */ __name((error, { store, command, version,
789
271
  inode
790
272
  };
791
273
  try {
792
- writeFileSync2(damageMarkPath(store), `${JSON.stringify(mark, null, 2)}
274
+ writeFileSync(damageMarkPath(store), `${JSON.stringify(mark, null, 2)}
793
275
  `, { flag: "wx", mode: 384 });
794
276
  return true;
795
277
  } catch {
@@ -812,7 +294,7 @@ var readDamageMark = /* @__PURE__ */ __name((store) => {
812
294
  }
813
295
  return mark;
814
296
  }, "readDamageMark");
815
- var clearDamageMark = /* @__PURE__ */ __name((store) => rmSync2(damageMarkPath(store), { force: true }), "clearDamageMark");
297
+ var clearDamageMark = /* @__PURE__ */ __name((store) => rmSync(damageMarkPath(store), { force: true }), "clearDamageMark");
816
298
  var refuseDamagedStore = /* @__PURE__ */ __name((store, cli) => {
817
299
  const mark = readDamageMark(store);
818
300
  if (!mark)
@@ -824,7 +306,7 @@ var markJournalLost = /* @__PURE__ */ __name((store, { seen, command, now = Date
824
306
  return;
825
307
  const mark = { at: new Date(now()).toISOString(), command, seen };
826
308
  try {
827
- writeFileSync2(journalMarkPath(store), `${JSON.stringify(mark, null, 2)}
309
+ writeFileSync(journalMarkPath(store), `${JSON.stringify(mark, null, 2)}
828
310
  `, { flag: "wx", mode: 384 });
829
311
  } catch {
830
312
  }
@@ -859,18 +341,18 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
859
341
  };
860
342
  const cleared = health.ok ? readDamageMark(store) : null;
861
343
  try {
862
- writeFileSync2(healthMarkPath(store), `${JSON.stringify(mark, null, 2)}
344
+ writeFileSync(healthMarkPath(store), `${JSON.stringify(mark, null, 2)}
863
345
  `, { mode: 384 });
864
346
  } catch {
865
347
  }
866
348
  if (cleared)
867
349
  clearDamageMark(store);
868
350
  if (health.ok)
869
- rmSync2(journalMarkPath(store), { force: true });
351
+ rmSync(journalMarkPath(store), { force: true });
870
352
  return { previous, cleared };
871
353
  }, "recordDeepCheck");
872
354
 
873
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/query.js
355
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/search/query.js
874
356
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
875
357
  var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
876
358
  var fail = /* @__PURE__ */ __name((message) => {
@@ -893,7 +375,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
893
375
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
894
376
  }, "sourceOf");
895
377
 
896
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/account-list.js
378
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/search/account-list.js
897
379
  var ACCOUNT_GROUPS = "accountGroups";
898
380
  var ACCOUNT_GROUPS_SETTING = "account_groups";
899
381
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -1103,7 +585,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
1103
585
  return { accounts: [...chosen.values()], skipped };
1104
586
  }, "fitting");
1105
587
 
1106
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
588
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
1107
589
  var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
1108
590
  var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
1109
591
  const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
@@ -1113,7 +595,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
1113
595
  };
1114
596
  }, "sourceOf");
1115
597
 
1116
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
598
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
1117
599
  var LINK_KINDS = [
1118
600
  "links-to",
1119
601
  "blocked-by",
@@ -1138,34 +620,6 @@ var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
1138
620
  var COUNTERPART_ROLE = "counterpart";
1139
621
 
1140
622
  export {
1141
- logAttributes,
1142
- fromLogAttributes,
1143
- snakeLogger,
1144
- LOG_ATTRIBUTES,
1145
- KEEP_RUNS_FOR_DAYS,
1146
- KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
1147
- KEEP_STORE_RUNS_FOR_DAYS,
1148
- RUNS_SIZE_LIMIT_MB,
1149
- runsDirFor,
1150
- startRun,
1151
- runtime,
1152
- newRunId,
1153
- listRuns,
1154
- findRun,
1155
- readEvents,
1156
- pruneRuns,
1157
- asOwnProcess,
1158
- currentRun,
1159
- inRun,
1160
- runEvent,
1161
- typedCommand,
1162
- useAsProcessRun,
1163
- processRun,
1164
- enclosingTraceId,
1165
- traceOf,
1166
- childTrace,
1167
- withAttempt,
1168
- currentAttempt,
1169
623
  SOURCE_REVIEW_KIND,
1170
624
  SOURCE_REVIEW_CAUSES,
1171
625
  ERASED_TEXT,
@@ -1174,7 +628,7 @@ export {
1174
628
  text,
1175
629
  id,
1176
630
  time,
1177
- zonedTime,
631
+ typedTime,
1178
632
  count,
1179
633
  untrusted,
1180
634
  providerMetadata,