@wirecat/zoom-cli 0.68.0 → 0.69.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 (122) hide show
  1. package/dist/bin/zm.js +2 -2
  2. package/dist/bundle/{all-profiles-R66UM3HM.js → all-profiles-ZQWPCJEK.js} +7 -7
  3. package/dist/bundle/{answer-policy-UCGUO53A.js → answer-policy-VBDYLUXI.js} +52 -52
  4. package/dist/bundle/{anthropic-4ZI2BPLG.js → anthropic-7FUQ2HYJ.js} +3 -3
  5. package/dist/bundle/{app-server-64O5IQI5.js → app-server-DNPE2EQB.js} +46 -46
  6. package/dist/bundle/{bun-HUHQD76Z.js → bun-ZVQFCFCC.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-VOVHPTIF.js → bun-sqlite-EB2UMUPJ.js} +2 -2
  8. package/dist/bundle/{chunk-EZRPSZJS.js → chunk-2SYWVIQJ.js} +1 -1
  9. package/dist/bundle/chunk-37B7A4RP.js +66 -0
  10. package/dist/bundle/{chunk-YJY3W2ZT.js → chunk-3TPRYZUW.js} +18 -15
  11. package/dist/bundle/{chunk-K67V24AT.js → chunk-4APZQYCH.js} +3 -3
  12. package/dist/bundle/{chunk-7QNJICKZ.js → chunk-52DCABMU.js} +23 -23
  13. package/dist/bundle/{chunk-KUB2U5NT.js → chunk-5GOE6PQK.js} +5 -5
  14. package/dist/bundle/{chunk-77KFLU5F.js → chunk-5H6VTEEC.js} +2 -2
  15. package/dist/bundle/{chunk-PIHBD3YS.js → chunk-5ZF6QVMC.js} +4 -4
  16. package/dist/bundle/{chunk-FMQS7HCC.js → chunk-5ZJXKASF.js} +249 -8
  17. package/dist/bundle/chunk-6AMMTXEA.js +12473 -0
  18. package/dist/bundle/{chunk-SRP6SFFD.js → chunk-6KMTQX3D.js} +1 -1
  19. package/dist/bundle/{chunk-2T6XHWDX.js → chunk-6N2D6JGX.js} +1 -1
  20. package/dist/bundle/{chunk-R7LFGEDE.js → chunk-6TICX3MN.js} +2 -2
  21. package/dist/bundle/{chunk-W42BJ65M.js → chunk-B5D7NZI7.js} +1 -1
  22. package/dist/bundle/{chunk-EWIBLDQQ.js → chunk-C6TEYKXV.js} +6 -6
  23. package/dist/bundle/{chunk-32FPA7P2.js → chunk-CKK6JOC4.js} +1 -1
  24. package/dist/bundle/{chunk-JRCYFCPL.js → chunk-CUZHKYC2.js} +19 -19
  25. package/dist/bundle/{chunk-355PHJYX.js → chunk-DHD25JII.js} +1 -1
  26. package/dist/bundle/{chunk-PUTGTW6W.js → chunk-EPPSMCEV.js} +1 -1
  27. package/dist/bundle/{chunk-AYEVBAGO.js → chunk-F5DYBWH7.js} +143 -22
  28. package/dist/bundle/{chunk-AJ7CMUGD.js → chunk-G6IX2MD2.js} +172 -143
  29. package/dist/bundle/{chunk-VLD7Y4SY.js → chunk-GR3QDHBU.js} +4 -4
  30. package/dist/bundle/{chunk-DGNPJGD3.js → chunk-GXDOTUUO.js} +8 -14
  31. package/dist/bundle/{chunk-5JAYUG3X.js → chunk-H3MFBYTQ.js} +2 -2
  32. package/dist/bundle/{chunk-TDGZMC6K.js → chunk-HC56J5LB.js} +57 -53
  33. package/dist/bundle/{chunk-4YFJYSSK.js → chunk-HSI7YOYK.js} +45 -29
  34. package/dist/bundle/{chunk-LYWUG43B.js → chunk-HW5QTRFF.js} +31 -31
  35. package/dist/bundle/{chunk-65T3PU75.js → chunk-IEC4E65G.js} +1 -1
  36. package/dist/bundle/{chunk-L4WVLRXM.js → chunk-IPBZKUC3.js} +3 -3
  37. package/dist/bundle/{chunk-TN3FH2GQ.js → chunk-JHFP3Z5S.js} +7 -7
  38. package/dist/bundle/{chunk-3BRV2YU2.js → chunk-JX5JJZC3.js} +2 -2
  39. package/dist/bundle/{chunk-YTF2WPV4.js → chunk-JZ4YOAHA.js} +679 -496
  40. package/dist/bundle/{chunk-474WF55M.js → chunk-KX5MZVPX.js} +38 -25
  41. package/dist/bundle/{chunk-TUNQ6NE2.js → chunk-L62EJDNZ.js} +2 -2
  42. package/dist/bundle/{chunk-6TJ62LZQ.js → chunk-LDRQ5NAP.js} +3 -3
  43. package/dist/bundle/{chunk-7DUYFITC.js → chunk-LEA4BGK7.js} +9 -9
  44. package/dist/bundle/{chunk-P2TISY3R.js → chunk-LQX74VKG.js} +1 -1
  45. package/dist/bundle/{chunk-RP3U3J53.js → chunk-MJMVIFSC.js} +6 -6
  46. package/dist/bundle/{chunk-A63ZFOQJ.js → chunk-MNOVYS43.js} +3 -3
  47. package/dist/bundle/{chunk-YQRNFG2E.js → chunk-MOTKS7XG.js} +7176 -13499
  48. package/dist/bundle/{chunk-6T3P226D.js → chunk-MSDCZ6GT.js} +4 -4
  49. package/dist/bundle/{chunk-DVA6MQWK.js → chunk-MVDPZRFE.js} +1 -1
  50. package/dist/bundle/{chunk-LBOSTBAY.js → chunk-O7L44JK2.js} +2031 -1900
  51. package/dist/bundle/{chunk-Y5LP5SHV.js → chunk-OSBHEM2A.js} +9 -9
  52. package/dist/bundle/{chunk-RRYUD2EF.js → chunk-QLGG7S6F.js} +2 -2
  53. package/dist/bundle/{chunk-ZRD3NDOX.js → chunk-QW5VPZEH.js} +1 -1
  54. package/dist/bundle/{chunk-LV7QRR5S.js → chunk-QXM7S3Y3.js} +5 -5
  55. package/dist/bundle/{chunk-US5C3WAY.js → chunk-R2ULMWB4.js} +27 -27
  56. package/dist/bundle/{chunk-QXTREL2M.js → chunk-R3JYPY3J.js} +2 -2
  57. package/dist/bundle/{chunk-JO4YADNV.js → chunk-RPQ3JOD3.js} +3 -3
  58. package/dist/bundle/{chunk-4TLPOY22.js → chunk-S2EAGDS7.js} +10 -10
  59. package/dist/bundle/{chunk-SSPSNSC5.js → chunk-SQT47CFW.js} +1 -1
  60. package/dist/bundle/{chunk-HXOAPH47.js → chunk-SZ3Z4ZNO.js} +1 -1
  61. package/dist/bundle/{chunk-DWSUSWAX.js → chunk-T5X4LGXE.js} +130 -11
  62. package/dist/bundle/{chunk-2OSBCYJT.js → chunk-TFFEFEG2.js} +16 -16
  63. package/dist/bundle/{chunk-EH5QGQFR.js → chunk-TKXLWFM2.js} +2 -2
  64. package/dist/bundle/{chunk-AVEIQMHZ.js → chunk-TN77LX6W.js} +1 -1
  65. package/dist/bundle/{chunk-77I67HWF.js → chunk-TWIC6JJG.js} +7 -7
  66. package/dist/bundle/{chunk-TZUKDM72.js → chunk-UEZ6URJR.js} +10 -10
  67. package/dist/bundle/{chunk-EJDV5IIF.js → chunk-V4MM6GST.js} +1 -1
  68. package/dist/bundle/{chunk-BSM43OMN.js → chunk-V74QFMSL.js} +1 -1
  69. package/dist/bundle/{chunk-6CJ7NHIP.js → chunk-WY4NYPPS.js} +12 -12
  70. package/dist/bundle/{chunk-FNQASORM.js → chunk-XITUFTON.js} +1 -1
  71. package/dist/bundle/{chunk-GOXDBCDM.js → chunk-XJBYGMZ4.js} +107 -63
  72. package/dist/bundle/{chunk-UU5PLDRA.js → chunk-XRZDYWF6.js} +2 -2
  73. package/dist/bundle/{chunk-6XO7RTJY.js → chunk-Z6TTGTMU.js} +92 -5
  74. package/dist/bundle/{chunk-UDJTRFRV.js → chunk-ZRHMB3LQ.js} +1 -1
  75. package/dist/bundle/{cli-VQJ7ZRYR.js → cli-P3BZUE6S.js} +67 -53
  76. package/dist/bundle/command-contract-TOLB32NJ.js +41 -0
  77. package/dist/bundle/config-4KLLIADY.js +90 -0
  78. package/dist/bundle/{decode-L3ENO2XH.js → decode-QWOQXM7M.js} +2 -2
  79. package/dist/bundle/{dist-WQLS7U23.js → dist-OUE4MF37.js} +79 -19
  80. package/dist/bundle/{echarts-5LLJ6JXC.js → echarts-65IMPY43.js} +2 -2
  81. package/dist/bundle/{embed-37MYTCU7.js → embed-4IULBCKL.js} +3 -3
  82. package/dist/bundle/{embedder-GNGHVJAO.js → embedder-JW4W6IZI.js} +6 -6
  83. package/dist/bundle/{first-run-NR5JKYP3.js → first-run-CH6C674R.js} +5 -5
  84. package/dist/bundle/first-screen-OCAW5ZN6.js +39 -0
  85. package/dist/bundle/{instructions-P72XX4AK.js → instructions-G5QIH2TM.js} +1 -1
  86. package/dist/bundle/{main-QYFCYSTW.js → main-O4ZJIEWP.js} +12 -12
  87. package/dist/bundle/{meetings-66UQINKI.js → meetings-77CCAVYD.js} +1 -1
  88. package/dist/bundle/{node-ZB4RNICS.js → node-E6VQHU4Y.js} +2 -2
  89. package/dist/bundle/{node-sqlite-XPRKBDF3.js → node-sqlite-RJZ4PGLD.js} +3 -3
  90. package/dist/bundle/{oauth-WJRDUU5J.js → oauth-F4JKNRW4.js} +4 -4
  91. package/dist/bundle/{open-S2YSIEOW.js → open-NYOGMIAA.js} +2 -2
  92. package/dist/bundle/{openai-CRNZFNZD.js → openai-5U6EQTFQ.js} +8 -8
  93. package/dist/bundle/{process-XNN4WG6N.js → process-OBWUKBMX.js} +1 -1
  94. package/dist/bundle/{program-BRPJKRCX.js → program-MU7DEJTO.js} +61 -61
  95. package/dist/bundle/{prompt-7RQOL25I.js → prompt-2QWQTHWT.js} +2 -2
  96. package/dist/bundle/{recognize-N5WADGQB.js → recognize-SNUNTUC3.js} +1 -1
  97. package/dist/bundle/{remote-WHYV35IF.js → remote-2CTCIQGF.js} +4 -4
  98. package/dist/bundle/{rerank-FBMZVWSH.js → rerank-XDA7NJNH.js} +4 -4
  99. package/dist/bundle/{run-log-TOCHREH2.js → run-log-NSG3DJVX.js} +50 -50
  100. package/dist/bundle/{serve-4BABX4WS.js → serve-TWQFHOV2.js} +6 -6
  101. package/dist/bundle/{server-CDVI6LOB.js → server-RIQ6HMH2.js} +38 -38
  102. package/dist/bundle/server-XO6XQQTJ.js +72 -0
  103. package/dist/bundle/{services-PIY33I7R.js → services-NKZQJQIV.js} +30 -24
  104. package/dist/bundle/{speech-LS5Q4FL2.js → speech-ZOB76SXA.js} +10 -10
  105. package/dist/bundle/{state-YUX5R2R7.js → state-7YYEIXQ5.js} +3 -3
  106. package/dist/bundle/{store-BD7HAXAA.js → store-E6RTSSNR.js} +21 -12
  107. package/dist/bundle/{store-ERMGBF2B.js → store-OX4HRBLO.js} +45 -14
  108. package/dist/bundle/store-connection-55QPNUDS.js +83 -0
  109. package/dist/bundle/store-maintenance-command-Q5MSU6OK.js +62 -0
  110. package/dist/bundle/zm.js +2 -2
  111. package/dist/bundle/{zoom-app-XJXZ4ZBX.js → zoom-app-TSI2MGVK.js} +2 -2
  112. package/dist/version.d.ts +1 -1
  113. package/dist/version.js +1 -1
  114. package/package.json +2 -2
  115. package/dist/bundle/chunk-NUJMJQXV.js +0 -787
  116. package/dist/bundle/chunk-YOAEZSDG.js +0 -22
  117. package/dist/bundle/command-contract-JPUWWYIV.js +0 -41
  118. package/dist/bundle/config-YGLLR77A.js +0 -90
  119. package/dist/bundle/first-screen-RCR7ATO2.js +0 -39
  120. package/dist/bundle/server-XOFQKFVO.js +0 -72
  121. package/dist/bundle/store-connection-JBR6CMTJ.js +0 -83
  122. package/dist/bundle/store-maintenance-command-I5DUSO2C.js +0 -62
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/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")
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-6T3P226D.js";
11
+ } from "./chunk-MSDCZ6GT.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/private-files.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/messenger/private-files.js
8
8
  import { existsSync, statSync } from "node:fs";
9
9
  var shellQuoted = /* @__PURE__ */ __name((path) => `'${path.replaceAll("'", `'\\''`)}'`, "shellQuoted");
10
10
  var privateFiles = /* @__PURE__ */ __name(({ files, dirs }, platform = process.platform) => {
@@ -7,7 +7,7 @@ import {
7
7
  commandPathOf,
8
8
  findCommand,
9
9
  outputOf
10
- } from "./chunk-K67V24AT.js";
10
+ } from "./chunk-4APZQYCH.js";
11
11
  import {
12
12
  Command,
13
13
  Help,
@@ -18,7 +18,7 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-AJ7CMUGD.js";
21
+ } from "./chunk-G6IX2MD2.js";
22
22
  import {
23
23
  writes
24
24
  } from "./chunk-NRRI37NJ.js";
@@ -29,7 +29,7 @@ import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
33
33
  var SECTIONS = {
34
34
  read: "Read",
35
35
  write: "Write",
@@ -94,7 +94,7 @@ var CORE_SECTIONS = {
94
94
  upgrade: "setup"
95
95
  };
96
96
 
97
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
97
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
98
98
  var DESCRIPTION = 90;
99
99
  var COLUMN = 52;
100
100
  var short = /* @__PURE__ */ __name((text) => {
@@ -133,7 +133,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
133
133
  `;
134
134
  }, "commandsText");
135
135
 
136
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
136
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
137
137
  var ARGUMENT_KINDS = {
138
138
  chat: "chat",
139
139
  chats: "chat",
@@ -354,7 +354,7 @@ var exampleReport = /* @__PURE__ */ __name((program) => {
354
354
  return { written, generated, text };
355
355
  }, "exampleReport");
356
356
 
357
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
358
358
  var WIRECAT_TOOLS = [
359
359
  {
360
360
  command: "tg",
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/path.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/path.js
11
11
  import { userInfo } from "node:os";
12
12
  import { isAbsolute, join, relative, resolve } from "node:path";
13
13
  var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
@@ -9,14 +9,14 @@ import {
9
9
  id,
10
10
  text,
11
11
  time
12
- } from "./chunk-DWSUSWAX.js";
12
+ } from "./chunk-T5X4LGXE.js";
13
13
  import {
14
14
  TAG_TYPES
15
- } from "./chunk-AYEVBAGO.js";
15
+ } from "./chunk-F5DYBWH7.js";
16
16
  import {
17
17
  filesPresent,
18
18
  sharedModelsDirectory
19
- } from "./chunk-6TJ62LZQ.js";
19
+ } from "./chunk-LDRQ5NAP.js";
20
20
  import {
21
21
  createRecordLog,
22
22
  resolvePaths,
@@ -41,13 +41,13 @@ import {
41
41
  __name
42
42
  } from "./chunk-ZVVMGPBJ.js";
43
43
 
44
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/run.js
44
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/runs/run.js
45
45
  import { randomUUID } from "node:crypto";
46
46
  import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
47
47
  import { userInfo } from "node:os";
48
48
  import { join, sep } from "node:path";
49
49
 
50
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
50
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
51
51
  var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
52
52
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
53
53
  var renamed = /* @__PURE__ */ __name((record, name) => Object.fromEntries(Object.entries(record).map(([key, value]) => [name(key), value])), "renamed");
@@ -60,7 +60,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
60
60
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
61
61
  }), "snakeLogger");
62
62
 
63
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
63
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
64
64
  var diagnostic = {
65
65
  event: true,
66
66
  operation: true,
@@ -130,7 +130,7 @@ var LOG_ATTRIBUTES = [
130
130
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
131
131
  ].sort();
132
132
 
133
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/run.js
133
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/runs/run.js
134
134
  var KEEP_RUNS_FOR_DAYS = 30;
135
135
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
136
136
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -483,7 +483,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
483
483
  };
484
484
  }, "metadataOf");
485
485
 
486
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/scope.js
486
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/runs/scope.js
487
487
  import { AsyncLocalStorage } from "node:async_hooks";
488
488
  import { randomBytes } from "node:crypto";
489
489
  var scopes = new AsyncLocalStorage();
@@ -521,7 +521,7 @@ var attempts = new AsyncLocalStorage();
521
521
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
522
522
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
523
523
 
524
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/duration.js
524
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/duration.js
525
525
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
526
526
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
527
527
  var parseDuration = /* @__PURE__ */ __name((value, source) => {
@@ -535,7 +535,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
535
535
  return ms;
536
536
  }, "parseDuration");
537
537
 
538
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/guarded.js
538
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/sends/guarded.js
539
539
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
540
540
  var sentIds = /* @__PURE__ */ __name((typed, message) => ({
541
541
  messageId: message.id,
@@ -641,7 +641,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled =
641
641
  }, "guardedWrite");
642
642
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
643
643
 
644
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/embeddings/models.js
644
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/embeddings/models.js
645
645
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
646
646
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
647
647
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -800,7 +800,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
800
800
  var vectorModelKey = /* @__PURE__ */ __name((model) => `local:${model.id}:${model.dims}`, "vectorModelKey");
801
801
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
802
802
 
803
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/history-limits.js
803
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/services/history-limits.js
804
804
  var HISTORY_MAX_DAYS = 1095;
805
805
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
806
806
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
@@ -847,7 +847,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
847
847
  return { batch: { ...batch, messages }, skipped };
848
848
  }, "limitBatch");
849
849
 
850
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/task.js
850
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/task.js
851
851
  var closeSuggestion = strictObject({
852
852
  as: picklist(["done", "dismissed"]),
853
853
  /** The agent's name. */
@@ -909,7 +909,7 @@ var task = strictObject({
909
909
  updated_at: optional(time)
910
910
  });
911
911
 
912
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/agenda.js
912
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/agenda.js
913
913
  var agendaChat = strictObject({
914
914
  chat: reference,
915
915
  title: nullable(text),
@@ -979,7 +979,7 @@ var agenda = strictObject({
979
979
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
980
980
  });
981
981
 
982
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/attachment.js
982
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/attachment.js
983
983
  var attachment = strictObject({
984
984
  /** The message it came with, as a locator; absent inside that message. */
985
985
  message: optional(reference),
@@ -1017,7 +1017,7 @@ var attachment = strictObject({
1017
1017
  });
1018
1018
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
1019
1019
 
1020
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/conversation.js
1020
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/conversation.js
1021
1021
  var conversation = strictObject({
1022
1022
  id,
1023
1023
  chat: reference,
@@ -1032,7 +1032,7 @@ var conversation = strictObject({
1032
1032
  rules_version: count
1033
1033
  });
1034
1034
 
1035
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/tagging.js
1035
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/tagging.js
1036
1036
  var tagging = strictObject({
1037
1037
  tag: text,
1038
1038
  type: picklist(TAG_TYPES),
@@ -1045,7 +1045,7 @@ var tagging = strictObject({
1045
1045
  created_at: time
1046
1046
  });
1047
1047
 
1048
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/images/picture/models.js
1048
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/images/picture/models.js
1049
1049
  import { join as join2 } from "node:path";
1050
1050
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
1051
1051
  var IMAGE_MODELS = [
@@ -1099,7 +1099,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
1099
1099
  var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
1100
1100
  var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
1101
1101
 
1102
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
1102
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
1103
1103
  var WEIGHTS = {
1104
1104
  bot: 3,
1105
1105
  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.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {
@@ -10,21 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/tags.js
14
- var TAG_TYPES = ["chat", "contact", "message", "task"];
15
- var TAG = /^[a-z0-9-]{1,32}$/;
16
- var tagOf = /* @__PURE__ */ __name((value) => {
17
- const tag = value.trim().toLowerCase();
18
- return TAG.test(tag) ? tag : void 0;
19
- }, "tagOf");
20
- var normalizeTag = /* @__PURE__ */ __name((value) => {
21
- const tag = tagOf(value);
22
- if (tag === void 0)
23
- throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
24
- return tag;
25
- }, "normalizeTag");
26
-
27
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/money.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/money.js
28
14
  var CURRENCY_SCALES = {
29
15
  AED: 2,
30
16
  AMD: 2,
@@ -72,7 +58,10 @@ var parseDecimal = /* @__PURE__ */ __name((text, scale) => {
72
58
  return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
73
59
  }, "parseDecimal");
74
60
  var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
75
- const digits = BigInt(units).toString().padStart(scale + 1, "0");
61
+ const value = BigInt(units);
62
+ if (value < 0n)
63
+ return `-${formatDecimal(-value, scale)}`;
64
+ const digits = value.toString().padStart(scale + 1, "0");
76
65
  return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
77
66
  }, "formatDecimal");
78
67
  var groupDigits = /* @__PURE__ */ __name((decimal) => {
@@ -94,6 +83,12 @@ var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") =
94
83
  return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
95
84
  return Number(units);
96
85
  }, "minorUnits");
86
+ var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
87
+ if (typeof amount !== "string" || !amount.trim().startsWith("-"))
88
+ return minorUnits(amount, currency, what);
89
+ const units = minorUnits(amount.trim().slice(1), currency, what);
90
+ return units === 0 ? 0 : -units;
91
+ }, "signedMinorUnits");
97
92
  var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
98
93
  amount: formatDecimal(units, scaleOf(currency)),
99
94
  currency
@@ -109,7 +104,7 @@ var quantityOf = /* @__PURE__ */ __name((text) => {
109
104
  }, "quantityOf");
110
105
  var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
111
106
 
112
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/finance.js
107
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/finance.js
113
108
  var INVOICE_DIRECTIONS = ["receivable", "payable"];
114
109
  var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
115
110
  var MONEY_DIRECTIONS = ["in", "out"];
@@ -138,7 +133,17 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
138
133
  var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
139
134
  var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
140
135
 
141
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/orders.js
136
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/deals.js
137
+ var DEAL_KINDS = ["deal", "lead"];
138
+ var DEAL_STATUSES = ["open", "won", "lost"];
139
+ var STAGE_OUTCOMES = DEAL_STATUSES;
140
+ var DEAL_ROLES = ["owner", "contact", "decision-maker", "influencer"];
141
+ var dealLine = /* @__PURE__ */ __name((deal) => {
142
+ const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
143
+ return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
144
+ }, "dealLine");
145
+
146
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/orders.js
142
147
  var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
143
148
  var ORDER_PURPOSES = ["personal", "business", "client", "other"];
144
149
  var orderLine = /* @__PURE__ */ __name((order) => {
@@ -148,16 +153,104 @@ var orderLine = /* @__PURE__ */ __name((order) => {
148
153
  }, "orderLine");
149
154
  var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
150
155
 
156
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/relations.js
157
+ var ORGANIZATION_ROLES = [
158
+ "employee",
159
+ "contractor",
160
+ "founder",
161
+ "owner",
162
+ "manager",
163
+ "adviser",
164
+ "contact"
165
+ ];
166
+ var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
167
+ var RELATIONS = {
168
+ "member-of": {
169
+ from: ["person", "organization", "project", "chat", "email_thread"],
170
+ to: ["organization", "project"],
171
+ roles: { to: { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES } }
172
+ },
173
+ "reports-to": { from: ["person"], to: ["person"], inverse: "manages" },
174
+ "customer-of": { from: ["person", "organization"], to: ["organization"], inverse: "supplier of" },
175
+ "partner-of": { from: ["organization"], to: ["organization"], symmetric: true },
176
+ "related-to": {
177
+ from: ["person", "organization", "project", "task", "deal", "lead"],
178
+ to: ["person", "organization", "project", "task"],
179
+ roles: { from: { deal: DEAL_ROLES, lead: DEAL_ROLES } }
180
+ }
181
+ };
182
+ var RELATION_KINDS = Object.keys(RELATIONS);
183
+ var specOf = /* @__PURE__ */ __name((kind) => Object.hasOwn(RELATIONS, kind) ? RELATIONS[kind] : void 0, "specOf");
184
+ var isRelationKind = /* @__PURE__ */ __name((kind) => specOf(kind) !== void 0, "isRelationKind");
185
+ var memberOnly = /* @__PURE__ */ __name((type) => type === "chat" || type === "email_thread", "memberOnly");
186
+ var checkEnds = /* @__PURE__ */ __name((kind, from, to) => {
187
+ const spec = specOf(kind);
188
+ if (!spec)
189
+ throw new CliError("validation_error", `a relationship's kind is one of ${RELATION_KINDS.join(", ")}`);
190
+ if (memberOnly(from) && (kind !== "member-of" || to !== "project"))
191
+ throw new CliError("validation_error", `a ${from === "chat" ? "chat" : "mail thread"} is related only as member-of a project`);
192
+ if (!spec.from.includes(from) || !spec.to.includes(to))
193
+ throw new CliError("validation_error", `${kind} joins ${spec.from.join(", ")} to ${spec.to.join(", ")}, not ${from} to ${to}`);
194
+ return spec;
195
+ }, "checkEnds");
196
+ var rolesOf = /* @__PURE__ */ __name((kind, from, to) => {
197
+ const spec = specOf(kind);
198
+ if (kind === "member-of" && from !== "person")
199
+ return void 0;
200
+ return spec?.roles?.from?.[from] ?? spec?.roles?.to?.[to];
201
+ }, "rolesOf");
202
+ var ROLE_LISTS = { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES, deal: DEAL_ROLES };
203
+ var roleListOf = /* @__PURE__ */ __name((kind, from, to) => {
204
+ const roles = rolesOf(kind, from, to);
205
+ return Object.keys(ROLE_LISTS).find((list) => ROLE_LISTS[list] === roles);
206
+ }, "roleListOf");
207
+ var checkRole = /* @__PURE__ */ __name((kind, from, to, role, extra = []) => {
208
+ const roles = rolesOf(kind, from, to)?.concat(extra);
209
+ if (roles && !roles.includes(role))
210
+ throw new CliError("validation_error", `a ${from}'s role on ${kind} ${to} is one of ${roles.join(", ")}`, {
211
+ reason: "relationship.role-unknown"
212
+ });
213
+ return role;
214
+ }, "checkRole");
215
+ var isSymmetric = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric === true, "isSymmetric");
216
+ var inverseOf = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric ? kind : specOf(kind)?.inverse ?? null, "inverseOf");
217
+ var STANDINGS = ["confirmed", "reported", "proposed", "ended"];
218
+ var standingOf = /* @__PURE__ */ __name((link, now) => {
219
+ if (link.endsAt != null && link.endsAt <= now)
220
+ return "ended";
221
+ if (link.confirmed)
222
+ return "confirmed";
223
+ if (link.deletedAt != null)
224
+ return "ended";
225
+ return link.accountId != null ? "reported" : "proposed";
226
+ }, "standingOf");
227
+ var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" || standing === "reported", "isUsable");
228
+ var usableLink = /* @__PURE__ */ __name((link, now) => isUsable(standingOf(link, now)), "usableLink");
229
+ var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
230
+ var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
231
+
232
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/tags.js
233
+ var TAG_TYPES = ["chat", "contact", "message", "task"];
234
+ var TAG = /^[a-z0-9-]{1,32}$/;
235
+ var tagOf = /* @__PURE__ */ __name((value) => {
236
+ const tag = value.trim().toLowerCase();
237
+ return TAG.test(tag) ? tag : void 0;
238
+ }, "tagOf");
239
+ var normalizeTag = /* @__PURE__ */ __name((value) => {
240
+ const tag = tagOf(value);
241
+ if (tag === void 0)
242
+ throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
243
+ return tag;
244
+ }, "normalizeTag");
245
+
151
246
  export {
152
- TAG_TYPES,
153
- tagOf,
154
- normalizeTag,
155
247
  CURRENCY_SCALES,
156
248
  parseDecimal,
157
249
  formatDecimal,
158
250
  currencyOf,
159
251
  scaleOf,
160
252
  minorUnits,
253
+ signedMinorUnits,
161
254
  moneyOf,
162
255
  moneyLabel,
163
256
  quantityOf,
@@ -167,12 +260,40 @@ export {
167
260
  MONEY_DIRECTIONS,
168
261
  FINANCE_REVIEWS,
169
262
  settledStatus,
263
+ dayMonth,
264
+ notes,
170
265
  invoiceLine,
171
266
  paymentLine,
172
267
  invoiceTitle,
173
268
  paymentEntryTitle,
269
+ DEAL_KINDS,
270
+ DEAL_STATUSES,
271
+ STAGE_OUTCOMES,
272
+ DEAL_ROLES,
273
+ dealLine,
174
274
  ORDER_STATUSES,
175
275
  ORDER_PURPOSES,
176
276
  orderLine,
177
- orderTitle
277
+ orderTitle,
278
+ ORGANIZATION_ROLES,
279
+ PROJECT_ROLES,
280
+ RELATIONS,
281
+ RELATION_KINDS,
282
+ isRelationKind,
283
+ checkEnds,
284
+ rolesOf,
285
+ ROLE_LISTS,
286
+ roleListOf,
287
+ checkRole,
288
+ isSymmetric,
289
+ inverseOf,
290
+ STANDINGS,
291
+ standingOf,
292
+ isUsable,
293
+ usableLink,
294
+ notOverriddenSql,
295
+ usableLinkSql,
296
+ TAG_TYPES,
297
+ tagOf,
298
+ normalizeTag
178
299
  };