@wirecat/tg-cli 0.117.0 → 0.118.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 (90) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-VNQ72MBK.js → adapter-4YNP6VCO.js} +39 -39
  3. package/dist/bundle/{all-profiles-3W2UQTCK.js → all-profiles-MIQDYAGO.js} +6 -6
  4. package/dist/bundle/{anthropic-DFUW2KTG.js → anthropic-NTASPJYE.js} +3 -3
  5. package/dist/bundle/{app-server-5XJIMLHB.js → app-server-UJZBJ2SK.js} +36 -36
  6. package/dist/bundle/{bot-api-HRRBF3W6.js → bot-api-JZAD4L3N.js} +40 -40
  7. package/dist/bundle/{bot-history-GBH5XE4N.js → bot-history-OUDHH3NU.js} +12 -12
  8. package/dist/bundle/{bun-ZMOYGG6F.js → bun-EC4HDIRD.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-6FZFMA7K.js → bun-sqlite-A4HJR6KO.js} +2 -2
  10. package/dist/bundle/{chunk-HORGORHK.js → chunk-2KQHUBTV.js} +10 -10
  11. package/dist/bundle/{chunk-6GFUL4OU.js → chunk-2NA5KVP6.js} +15 -12
  12. package/dist/bundle/{chunk-C6TUVV7E.js → chunk-4BV4UMBB.js} +470 -209
  13. package/dist/bundle/{chunk-EZTYJ43A.js → chunk-57LKX6N2.js} +1 -1
  14. package/dist/bundle/{chunk-4JDGN6OD.js → chunk-5IIU7X4S.js} +1 -1
  15. package/dist/bundle/{chunk-2XLKZL6K.js → chunk-5LDWBEWU.js} +42 -26
  16. package/dist/bundle/{chunk-MLHKQDUN.js → chunk-5QYU7B27.js} +268 -153
  17. package/dist/bundle/{chunk-AG6HWPQP.js → chunk-65XV5PPI.js} +2 -2
  18. package/dist/bundle/{chunk-RDSLSV4M.js → chunk-6AXUEJGL.js} +1 -1
  19. package/dist/bundle/{chunk-HWYSRB64.js → chunk-6RI4TEIC.js} +2 -2
  20. package/dist/bundle/{chunk-7Y3RUEVY.js → chunk-6ZMTEUVU.js} +4 -4
  21. package/dist/bundle/{chunk-56Q5JV3Z.js → chunk-76EKXFX2.js} +1 -1
  22. package/dist/bundle/{chunk-TFBHDIGY.js → chunk-BNEP5EOV.js} +17 -3
  23. package/dist/bundle/{chunk-V47NPSSV.js → chunk-CEY43D3A.js} +29 -27
  24. package/dist/bundle/{chunk-G7B5UIE7.js → chunk-DKFC5ZZ3.js} +37 -11
  25. package/dist/bundle/{chunk-UGPZCNYC.js → chunk-DSZJREEO.js} +353 -286
  26. package/dist/bundle/{chunk-L5WNE4WS.js → chunk-EPXVRJAX.js} +1 -1
  27. package/dist/bundle/{chunk-66FZBLRJ.js → chunk-EQJ6NLF5.js} +12 -12
  28. package/dist/bundle/{chunk-B2YPB5AE.js → chunk-FHMK6OK4.js} +8 -8
  29. package/dist/bundle/{chunk-3GRX7WP6.js → chunk-G3RT2EQI.js} +1 -1
  30. package/dist/bundle/{chunk-TG6ZYL4B.js → chunk-GI4MTNA2.js} +7 -7
  31. package/dist/bundle/{chunk-AUBRELCM.js → chunk-GIM37COQ.js} +2 -2
  32. package/dist/bundle/{chunk-SQXB5ZUZ.js → chunk-GLRRCKP6.js} +2 -2
  33. package/dist/bundle/{chunk-VMCQGZIA.js → chunk-GXCJ47SJ.js} +381 -292
  34. package/dist/bundle/{chunk-UYK5AXSW.js → chunk-H6S3C3MH.js} +2 -2
  35. package/dist/bundle/{chunk-VRDVXXXD.js → chunk-HJNRIK5X.js} +6 -6
  36. package/dist/bundle/{chunk-HZZGOLGP.js → chunk-I4TI5HDJ.js} +9 -9
  37. package/dist/bundle/{chunk-MP7M6FFU.js → chunk-JLJKGKU2.js} +5 -5
  38. package/dist/bundle/{chunk-F6KBVIJP.js → chunk-JPVFYMSQ.js} +21 -13
  39. package/dist/bundle/{chunk-Z4QKLHJW.js → chunk-JWPSVS6C.js} +8692 -3312
  40. package/dist/bundle/{chunk-ZPILMEFY.js → chunk-JZETEZHC.js} +7 -20
  41. package/dist/bundle/{chunk-EA2PGDER.js → chunk-KEDHX6XG.js} +2 -2
  42. package/dist/bundle/{chunk-PTIB7NEE.js → chunk-MBH7IKLT.js} +1 -1
  43. package/dist/bundle/{chunk-YIXXH74F.js → chunk-MZNOASAW.js} +1 -1
  44. package/dist/bundle/{chunk-GFHNQBD2.js → chunk-NKFTZVQU.js} +1 -1
  45. package/dist/bundle/{chunk-2452HCIV.js → chunk-NMT2VGEI.js} +2 -2
  46. package/dist/bundle/{chunk-KVTLT4V7.js → chunk-OTQDJUES.js} +5 -5
  47. package/dist/bundle/{chunk-Q7O4CQDO.js → chunk-PB252TT3.js} +1 -1
  48. package/dist/bundle/{chunk-V2T7NYNU.js → chunk-PO74BDER.js} +23 -21
  49. package/dist/bundle/{chunk-X3CD475M.js → chunk-PW3HFIJA.js} +203 -155
  50. package/dist/bundle/{chunk-6HRN7BW6.js → chunk-PWCQC56A.js} +1 -1
  51. package/dist/bundle/{chunk-3RJYLN5V.js → chunk-RG2E7ZQZ.js} +117 -14
  52. package/dist/bundle/{chunk-RDH2QBUE.js → chunk-TMTEWOQS.js} +1 -1
  53. package/dist/bundle/{chunk-7NBUT62O.js → chunk-TSTEZNSX.js} +1 -1
  54. package/dist/bundle/{chunk-XW5C4TI7.js → chunk-Y64SI2RO.js} +47 -1
  55. package/dist/bundle/{chunk-FEKXHILZ.js → chunk-YEOSV6JC.js} +1 -1
  56. package/dist/bundle/{chunk-EL6I4WTB.js → chunk-YPRUWRKE.js} +1 -1
  57. package/dist/bundle/{chunk-M7V5XRM6.js → chunk-ZMUC3UQO.js} +2 -2
  58. package/dist/bundle/{chunk-FAHHERJ7.js → chunk-ZXXTJF4Z.js} +4 -4
  59. package/dist/bundle/{command-contract-KMMHARMR.js → command-contract-7GZ6HAA6.js} +12 -12
  60. package/dist/bundle/{decode-YMSOY2AY.js → decode-NMNPLKNR.js} +2 -2
  61. package/dist/bundle/{echarts-7XS55TQY.js → echarts-S46LEIPS.js} +2 -2
  62. package/dist/bundle/{embed-QTOE7NN3.js → embed-I5ZYHGYC.js} +3 -3
  63. package/dist/bundle/{embedder-KBBRYSNH.js → embedder-LTJI67N2.js} +6 -6
  64. package/dist/bundle/{entry-HGEUYYMX.js → entry-O6BUPXF7.js} +4 -4
  65. package/dist/bundle/{first-run-CSGMEJXY.js → first-run-PMZNCDGD.js} +5 -5
  66. package/dist/bundle/{first-screen-K2PBNJNE.js → first-screen-BGML5DSO.js} +13 -13
  67. package/dist/bundle/{instructions-S6ZXCTFH.js → instructions-AUEGY3VO.js} +1 -1
  68. package/dist/bundle/{node-LCIUWXXG.js → node-XRA7RBCQ.js} +2 -2
  69. package/dist/bundle/{node-sqlite-HL4WY4N2.js → node-sqlite-DEZO6LRS.js} +3 -3
  70. package/dist/bundle/{oauth-U4KIMDKG.js → oauth-DAVC7WCD.js} +4 -4
  71. package/dist/bundle/{open-EH7OS7M7.js → open-DE2YO4T7.js} +2 -2
  72. package/dist/bundle/{openai-W5TB3NA5.js → openai-5BKGAULH.js} +10 -10
  73. package/dist/bundle/{process-3CVLTCTA.js → process-4ZHPNUIQ.js} +1 -1
  74. package/dist/bundle/{program-LOIZTK2P.js → program-EGTKSNB4.js} +42 -42
  75. package/dist/bundle/{prompt-IDNH7N3W.js → prompt-HWCWHHPE.js} +2 -2
  76. package/dist/bundle/{recognize-G5EWYXIF.js → recognize-NG6RXNGF.js} +1 -1
  77. package/dist/bundle/{remote-4XTBZVZD.js → remote-ZKXIIGYH.js} +4 -4
  78. package/dist/bundle/{rerank-OWSTDLZN.js → rerank-TX5QFURV.js} +4 -4
  79. package/dist/bundle/{serve-YCPSEWP3.js → serve-XAS6DECW.js} +6 -6
  80. package/dist/bundle/{server-ODG4A2KK.js → server-CNPIWBYU.js} +28 -28
  81. package/dist/bundle/server-FRTKLHZF.js +60 -0
  82. package/dist/bundle/{state-OL2235G5.js → state-3HTUETTS.js} +3 -3
  83. package/dist/bundle/{store-5AACYNDM.js → store-B5VZWJHN.js} +17 -9
  84. package/dist/bundle/store-maintenance-command-VG3CLELA.js +50 -0
  85. package/dist/bundle/tg.js +3 -3
  86. package/dist/version.d.ts +1 -1
  87. package/dist/version.js +1 -1
  88. package/package.json +2 -2
  89. package/dist/bundle/server-KELKX6S3.js +0 -60
  90. package/dist/bundle/store-maintenance-command-3J7WZYVN.js +0 -50
@@ -1,5 +1,12 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ isCliFailure,
5
+ isStoreDamage
6
+ } from "./chunk-Y64SI2RO.js";
7
+ import {
8
+ refuseOwnerStoreInTests
9
+ } from "./chunk-G3RT2EQI.js";
3
10
  import {
4
11
  RegistryError,
5
12
  SNAKE_CASE,
@@ -44,6 +51,107 @@ import {
44
51
  __name
45
52
  } from "./chunk-ZVVMGPBJ.js";
46
53
 
54
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/store/marks.js
55
+ import { readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
56
+ var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
57
+ var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
58
+ var inodeOf = /* @__PURE__ */ __name((store) => statSync(store, { throwIfNoEntry: false })?.ino, "inodeOf");
59
+ var readJson = /* @__PURE__ */ __name((path) => {
60
+ try {
61
+ return JSON.parse(readFileSync(path, "utf8"));
62
+ } catch (error) {
63
+ if (error.code === "ENOENT")
64
+ return null;
65
+ throw error;
66
+ }
67
+ }, "readJson");
68
+ var ownerStoreInTests = /* @__PURE__ */ __name((store) => {
69
+ try {
70
+ refuseOwnerStoreInTests(store);
71
+ return false;
72
+ } catch {
73
+ return true;
74
+ }
75
+ }, "ownerStoreInTests");
76
+ var sqliteFailure = /* @__PURE__ */ __name((error) => isCliFailure(error) && error.details?.reason === "store.damaged" ? error.cause : error, "sqliteFailure");
77
+ var markStoreDamaged = /* @__PURE__ */ __name((error, { store, command, version, runId, now = Date.now }) => {
78
+ const failure = sqliteFailure(error);
79
+ if (!isStoreDamage(failure) || ownerStoreInTests(store))
80
+ return false;
81
+ const inode = inodeOf(store);
82
+ if (inode === void 0)
83
+ return false;
84
+ const mark = {
85
+ at: new Date(now()).toISOString(),
86
+ command,
87
+ ...version ? { cli_version: version } : {},
88
+ ...runId ? { run_id: runId } : {},
89
+ error: failure.message.slice(0, 500),
90
+ inode
91
+ };
92
+ try {
93
+ writeFileSync(damageMarkPath(store), `${JSON.stringify(mark, null, 2)}
94
+ `, { flag: "wx", mode: 384 });
95
+ return true;
96
+ } catch {
97
+ return false;
98
+ }
99
+ }, "markStoreDamaged");
100
+ var readDamageMark = /* @__PURE__ */ __name((store) => {
101
+ const path = damageMarkPath(store);
102
+ let mark;
103
+ try {
104
+ mark = readJson(path);
105
+ } catch {
106
+ return { at: "unknown", command: "unknown", error: `${path} cannot be read`, inode: inodeOf(store) ?? 0 };
107
+ }
108
+ if (mark === null)
109
+ return null;
110
+ if (mark.inode !== inodeOf(store)) {
111
+ clearDamageMark(store);
112
+ return null;
113
+ }
114
+ return mark;
115
+ }, "readDamageMark");
116
+ var clearDamageMark = /* @__PURE__ */ __name((store) => rmSync(damageMarkPath(store), { force: true }), "clearDamageMark");
117
+ var refuseDamagedStore = /* @__PURE__ */ __name((store, cli) => {
118
+ const mark = readDamageMark(store);
119
+ if (!mark)
120
+ return;
121
+ throw new CliError("configuration_error", `the store was found damaged at ${mark.at} by \`${mark.command}\` (${mark.error}), so nothing writes to it until it is recovered; \`${cli ?? "<cli>"} store recover\` says what is damaged and what to do`, { reason: "store.damaged" });
122
+ }, "refuseDamagedStore");
123
+ var readHealthMark = /* @__PURE__ */ __name((store) => {
124
+ try {
125
+ return readJson(healthMarkPath(store));
126
+ } catch {
127
+ return null;
128
+ }
129
+ }, "readHealthMark");
130
+ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, schema, now = Date.now }) => {
131
+ const previous = readHealthMark(store);
132
+ if (ownerStoreInTests(store))
133
+ return { previous, cleared: null };
134
+ const checkedAt = new Date(now()).toISOString();
135
+ const mark = {
136
+ checked_at: checkedAt,
137
+ ok: health.ok,
138
+ problems: health.problems ?? 0,
139
+ schema,
140
+ cli,
141
+ ...version ? { cli_version: version } : {},
142
+ last_ok_at: health.ok ? checkedAt : previous?.last_ok_at ?? null
143
+ };
144
+ const cleared = health.ok ? readDamageMark(store) : null;
145
+ try {
146
+ writeFileSync(healthMarkPath(store), `${JSON.stringify(mark, null, 2)}
147
+ `, { mode: 384 });
148
+ } catch {
149
+ }
150
+ if (cleared)
151
+ clearDamageMark(store);
152
+ return { previous, cleared };
153
+ }, "recordDeepCheck");
154
+
47
155
  // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
48
156
  var QUERY_LIMITS = {
49
157
  bytes: 8192,
@@ -859,7 +967,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
859
967
  }, "matches");
860
968
  var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
861
969
 
862
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/reference.js
970
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/reference.js
863
971
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
864
972
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
865
973
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -896,7 +1004,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
896
1004
  }, "parseMeetingReference");
897
1005
  var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
898
1006
 
899
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/item.js
1007
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/item.js
900
1008
  var text = string();
901
1009
  var count = pipe(number(), integer(), minValue(0));
902
1010
  var MEETING_ISSUES = ["time_without_zone"];
@@ -961,7 +1069,7 @@ var MEETING_QUERY = {
961
1069
  })
962
1070
  };
963
1071
 
964
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
1072
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
965
1073
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
966
1074
  const parsed = urlOf(url);
967
1075
  if (!parsed)
@@ -995,7 +1103,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
995
1103
  }
996
1104
  }, "urlOf");
997
1105
 
998
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
1106
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
999
1107
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
1000
1108
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
1001
1109
  var htmlToText = /* @__PURE__ */ __name((html) => html.replace(/<\s*br\s*\/?>/giu, "\n").replace(/<\/\s*(p|div|li|tr|h[1-6])\s*>/giu, "\n").replace(/<a\s[^>]*href\s*=\s*"([^"]*)"[^>]*>/giu, " $1 ").replace(/<[^>]+>/gu, "").replace(/&(amp|lt|gt|quot|#39|apos|nbsp);/gu, (_, name) => ENTITIES[name] ?? ""), "htmlToText");
@@ -1014,7 +1122,11 @@ var ENTRY_METADATA_KEYS = [
1014
1122
  "guestsCanSeeOtherGuests",
1015
1123
  "hangoutLink",
1016
1124
  "locked",
1017
- "privateCopy"
1125
+ "privateCopy",
1126
+ // A phone call's, from a records import: the entry's other columns have no place for them.
1127
+ "callDirection",
1128
+ "callSeconds",
1129
+ "callNumber"
1018
1130
  ];
1019
1131
  var entryMetadata = /* @__PURE__ */ __name((metadata) => {
1020
1132
  const kept = {};
@@ -1028,7 +1140,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
1028
1140
  return kept;
1029
1141
  }, "entryMetadata");
1030
1142
 
1031
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1143
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1032
1144
  import { createHash } from "node:crypto";
1033
1145
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
1034
1146
  reference: cue2.reference,
@@ -1042,7 +1154,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
1042
1154
  text: cue2.text
1043
1155
  })).digest("hex"), "meetingCueFingerprint");
1044
1156
 
1045
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1157
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1046
1158
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
1047
1159
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
1048
1160
  if (entry.recurrenceEndsAt !== null)
@@ -1065,7 +1177,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
1065
1177
  return Math.max(entry.endsAt ?? start, start + 1) > window.from;
1066
1178
  }, "entryInWindow");
1067
1179
 
1068
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1180
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1069
1181
  var text2 = string();
1070
1182
  var count2 = pipe(number(), integer(), minValue(0));
1071
1183
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -1300,7 +1412,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
1300
1412
  };
1301
1413
  }, "meetingHitsList");
1302
1414
 
1303
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1415
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1304
1416
  var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
1305
1417
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
1306
1418
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
@@ -1324,7 +1436,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
1324
1436
  };
1325
1437
  }, "validateMeetingParticipantSearch");
1326
1438
 
1327
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1439
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1328
1440
  var MeetingError = class extends CliError {
1329
1441
  static {
1330
1442
  __name(this, "MeetingError");
@@ -1456,7 +1568,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
1456
1568
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
1457
1569
  }, "meetingSummaryAnswer");
1458
1570
 
1459
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/export.js
1571
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/export.js
1460
1572
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
1461
1573
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
1462
1574
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -1552,7 +1664,7 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
1552
1664
  };
1553
1665
  }, "exportMeeting");
1554
1666
 
1555
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/payment.js
1667
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/payment.js
1556
1668
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
1557
1669
  var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
1558
1670
  var PAYMENT_STATES = ["expected", "paid", "cancelled"];
@@ -1646,10 +1758,10 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
1646
1758
  return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
1647
1759
  }, "paymentTitle");
1648
1760
 
1649
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1761
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1650
1762
  import { createHash as createHash2 } from "node:crypto";
1651
1763
 
1652
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1764
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1653
1765
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1654
1766
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
1655
1767
  throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
@@ -1660,7 +1772,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1660
1772
  return new Date(value).toISOString();
1661
1773
  }, "meetingTimestamp");
1662
1774
 
1663
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1775
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1664
1776
  var TASK_TYPES = ["bug", "feature", "chore"];
1665
1777
  var invalid3 = /* @__PURE__ */ __name((message) => {
1666
1778
  throw new CliError("validation_error", message);
@@ -1833,7 +1945,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
1833
1945
  var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1834
1946
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1835
1947
 
1836
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1948
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1837
1949
  var MEETING_FINDINGS_KIND = "meeting_findings";
1838
1950
  var cue = /* @__PURE__ */ __name((raw) => {
1839
1951
  const reference2 = canonicalMeetingReference(raw);
@@ -1844,7 +1956,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1844
1956
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1845
1957
  var meetingFindingFingerprint = findingFingerprint;
1846
1958
 
1847
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
1959
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
1848
1960
  var text3 = string();
1849
1961
  var identifier = pipe(text3, minLength(1));
1850
1962
  var nullableText = nullable(text3);
@@ -1977,7 +2089,7 @@ var MEETING_RESULT_ENTITIES = {
1977
2089
  meeting_repair: repair
1978
2090
  };
1979
2091
 
1980
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
2092
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1981
2093
  var EVENT_QUERY = defineQuery({
1982
2094
  entity: "event",
1983
2095
  backend: "sql",
@@ -1993,7 +2105,7 @@ var EVENT_QUERY = defineQuery({
1993
2105
  ]
1994
2106
  });
1995
2107
 
1996
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/events.js
2108
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/events.js
1997
2109
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
1998
2110
  const current = await store.meeting(details.meeting.id);
1999
2111
  if (!current)
@@ -2036,7 +2148,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
2036
2148
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
2037
2149
  }, "linkEvent");
2038
2150
 
2039
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
2151
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
2040
2152
  var context = {
2041
2153
  command: "search meetings",
2042
2154
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -2097,9 +2209,10 @@ var MEETING_FIELDS = defineQuery({
2097
2209
  }))
2098
2210
  ]
2099
2211
  });
2212
+ var MEETING_FIELD_NAMES = new Set(MEETING_FIELDS.fields.map(({ name }) => name));
2100
2213
  var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
2101
2214
 
2102
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/language.js
2215
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/language.js
2103
2216
  var LATIN_WORDS = {
2104
2217
  en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
2105
2218
  es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
@@ -2148,7 +2261,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
2148
2261
  return null;
2149
2262
  }, "transcriptLanguage");
2150
2263
 
2151
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
2264
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
2152
2265
  var contentHash = /* @__PURE__ */ __name(async (text6) => {
2153
2266
  const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
2154
2267
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -2185,7 +2298,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
2185
2298
  return time2;
2186
2299
  }, "timestamp");
2187
2300
 
2188
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2301
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2189
2302
  var TranscriptTextError = class extends Error {
2190
2303
  static {
2191
2304
  __name(this, "TranscriptTextError");
@@ -2240,7 +2353,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
2240
2353
  return { header, lines };
2241
2354
  }, "parseTranscriptText");
2242
2355
 
2243
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2356
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2244
2357
  var VttError = class extends Error {
2245
2358
  static {
2246
2359
  __name(this, "VttError");
@@ -2292,7 +2405,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
2292
2405
  return cues;
2293
2406
  }, "parseVtt");
2294
2407
 
2295
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/import.js
2408
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/import.js
2296
2409
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
2297
2410
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2298
2411
  for (const file of files) {
@@ -2325,10 +2438,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
2325
2438
  return report;
2326
2439
  }, "importFiles");
2327
2440
 
2328
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/links.js
2441
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/links.js
2329
2442
  var CHAT_MESSAGES_READ = 1e5;
2330
2443
 
2331
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2444
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2332
2445
  var nonempty = /* @__PURE__ */ __name((value, name) => {
2333
2446
  if (typeof value !== "string" || !value.trim())
2334
2447
  throw new CliError("validation_error", `${name} must be nonempty`);
@@ -2379,7 +2492,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
2379
2492
  return Object.freeze(result);
2380
2493
  }, "validateMeetingChange");
2381
2494
 
2382
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2495
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2383
2496
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
2384
2497
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
2385
2498
  if (![before, after].every((value) => Number.isSafeInteger(value) && value >= 0) || before + after > 999 || !Number.isSafeInteger(bytes) || bytes < 2 || bytes > 4194304 || !Number.isSafeInteger(max_read_bytes) || max_read_bytes < 1 || max_read_bytes > 67108864 || expected_fingerprint !== void 0 && (typeof expected_fingerprint !== "string" || !/^[a-f0-9]{64}$/.test(expected_fingerprint)))
@@ -2392,7 +2505,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
2392
2505
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
2393
2506
  }, "validateMeetingPassage");
2394
2507
 
2395
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2508
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2396
2509
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2397
2510
  if (!original || typeof original !== "object" || Array.isArray(original))
2398
2511
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -2417,7 +2530,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2417
2530
  return { ...input, limit, maxReadBytes };
2418
2531
  }, "validateMeetingPreparationContext");
2419
2532
 
2420
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2533
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2421
2534
  var count4 = pipe(number(), integer(), minValue(0));
2422
2535
  var id = pipe(string(), minLength(1));
2423
2536
  var meetingProjectEvidence = strictObject({
@@ -2538,7 +2651,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
2538
2651
  };
2539
2652
  }, "meetingProjectEvidenceAnswer");
2540
2653
 
2541
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2654
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2542
2655
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2543
2656
  const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
2544
2657
  if (typeof query !== "string" || !query.trim() || query.includes("\0") || new TextEncoder().encode(query).byteLength > 65536 || !integer3(options.limit ?? 100, 1, 1e3) || !integer3(options.maxReadBytes ?? 4194304, 1, 67108864) || [
@@ -2558,7 +2671,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2558
2671
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
2559
2672
  }, "validateMeetingHitSearch");
2560
2673
 
2561
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2674
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2562
2675
  var ids = {
2563
2676
  meeting_id: "meetingId",
2564
2677
  identity_id: "participantIdentityId",
@@ -2649,7 +2762,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project2, request =
2649
2762
  return { project: project2.trim(), options, query: frozen.join(" AND ") };
2650
2763
  }, "prepareMeetingProjectEvidence");
2651
2764
 
2652
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2765
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2653
2766
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, request = {}, now = Date.now()) => {
2654
2767
  const prepared = prepareMeetingProjectEvidence(project2, request, now);
2655
2768
  const page = await read(prepared.project, prepared.options);
@@ -2657,7 +2770,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, r
2657
2770
  return meetingProjectEvidenceAnswer(page, prepared);
2658
2771
  }, "readMeetingProjectEvidence");
2659
2772
 
2660
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2773
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2661
2774
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
2662
2775
  const { identityExternalId, ...fields } = p;
2663
2776
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
@@ -2672,24 +2785,47 @@ var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, posit
2672
2785
  }
2673
2786
  };
2674
2787
  }, "participantInput");
2788
+ var startOf = /* @__PURE__ */ __name((m) => {
2789
+ const at = Date.parse(m.occurrence.startedAt);
2790
+ return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
2791
+ }, "startOf");
2675
2792
  var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2676
2793
  const now = options.now ?? Date.now();
2677
- const lookbackMs = options.lookbackMs ?? 0;
2678
- if (!Number.isSafeInteger(lookbackMs) || lookbackMs < 0 || lookbackMs > 31 * 864e5)
2679
- throw new Error("lookbackMs must be an integer from 0 through 31 days");
2680
- const since = options.since ?? await store.cursor(options.accountId) ?? new Date(now - 30 * 864e5).toISOString();
2794
+ for (const [name, ms] of [
2795
+ ["lookbackMs", options.lookbackMs ?? 0],
2796
+ ["overlapMs", source.overlapMs ?? 0]
2797
+ ])
2798
+ if (!Number.isSafeInteger(ms) || ms < 0 || ms > 31 * 864e5)
2799
+ throw new Error(`${name} must be an integer from 0 through 31 days`);
2800
+ const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
2801
+ const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
2802
+ const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
2681
2803
  timestamp2(since);
2682
2804
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2683
2805
  let failed = false;
2806
+ let firstFailed;
2684
2807
  const from = timestamp2(since) - lookbackMs;
2685
- const meetings = await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString());
2686
- for (const m of meetings) {
2808
+ const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
2809
+ for (const [index, m] of meetings.entries()) {
2810
+ const stop = options.budget?.take() ?? null;
2811
+ if (stop) {
2812
+ report.stopped = stop;
2813
+ report.remaining = meetings.length - index;
2814
+ const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
2815
+ if (Number.isFinite(reached) && reached > timestamp2(since))
2816
+ await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
2817
+ return report;
2818
+ }
2687
2819
  const id4 = m.occurrence.id;
2820
+ const failedHere = /* @__PURE__ */ __name(() => {
2821
+ failed = true;
2822
+ firstFailed ??= startOf(m);
2823
+ }, "failedHere");
2688
2824
  const read = /* @__PURE__ */ __name(async (part, call) => {
2689
2825
  try {
2690
2826
  return await call();
2691
2827
  } catch (error) {
2692
- failed = true;
2828
+ failedHere();
2693
2829
  const message = error instanceof Error ? error.message : "could not be read";
2694
2830
  report.warnings.push({ externalId: id4, message: `${part}: ${message}` });
2695
2831
  return void 0;
@@ -2787,7 +2923,7 @@ unlinked`, format)],
2787
2923
  report.transcriptRows += lines?.length ?? 0;
2788
2924
  report.summaries += summary ? 1 : 0;
2789
2925
  } catch (error) {
2790
- failed = true;
2926
+ failedHere();
2791
2927
  report.warnings.push({ externalId: id4, message: error instanceof Error ? error.message : "Meeting pull failed" });
2792
2928
  }
2793
2929
  }
@@ -2796,7 +2932,7 @@ unlinked`, format)],
2796
2932
  return report;
2797
2933
  }, "pull");
2798
2934
 
2799
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2935
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2800
2936
  var text4 = string();
2801
2937
  var count5 = pipe(number(), integer(), minValue(0));
2802
2938
  var id2 = pipe(number(), integer(), minValue(1));
@@ -2990,10 +3126,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2990
3126
  updated_at: new Date(one.updatedAt).toISOString()
2991
3127
  }), "eventItem");
2992
3128
 
2993
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
3129
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2994
3130
  var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
2995
3131
 
2996
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
3132
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2997
3133
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2998
3134
  if (!original || typeof original !== "object" || Array.isArray(original))
2999
3135
  throw new CliError("validation_error", "related history request is required");
@@ -3023,14 +3159,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
3023
3159
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
3024
3160
  }, "validateMeetingRelatedHistory");
3025
3161
 
3026
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/review.js
3162
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/review.js
3027
3163
  var REVIEW_LIMIT = { default: 50, most: 200 };
3028
3164
 
3029
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
3165
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
3030
3166
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
3031
3167
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
3032
3168
 
3033
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3169
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3034
3170
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3035
3171
  input.signal?.throwIfAborted();
3036
3172
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -3051,10 +3187,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3051
3187
  return { ...input, limit, maxReadBytes };
3052
3188
  }, "validateMeetingSeriesHistory");
3053
3189
 
3054
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3190
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3055
3191
  var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
3056
3192
 
3057
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3193
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3058
3194
  function invalid4(field, response = false) {
3059
3195
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
3060
3196
  }
@@ -3083,7 +3219,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
3083
3219
  cursorDetails(value);
3084
3220
  }, "validateMeetingSeriesInventoryCursor");
3085
3221
 
3086
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3222
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3087
3223
  var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
3088
3224
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
3089
3225
  const zone = timeZone ?? "UTC";
@@ -3218,7 +3354,225 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
3218
3354
  };
3219
3355
  }, "aggregateMeetingStats");
3220
3356
 
3221
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/domain/tags.js
3357
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/domain/money.js
3358
+ var CURRENCY_SCALES = {
3359
+ AED: 2,
3360
+ AMD: 2,
3361
+ AUD: 2,
3362
+ BHD: 3,
3363
+ BYN: 2,
3364
+ CAD: 2,
3365
+ CHF: 2,
3366
+ CLP: 0,
3367
+ CNY: 2,
3368
+ CZK: 2,
3369
+ DKK: 2,
3370
+ EUR: 2,
3371
+ GBP: 2,
3372
+ GEL: 2,
3373
+ HUF: 2,
3374
+ ILS: 2,
3375
+ INR: 2,
3376
+ ISK: 0,
3377
+ JPY: 0,
3378
+ KGS: 2,
3379
+ KRW: 0,
3380
+ KWD: 3,
3381
+ KZT: 2,
3382
+ NOK: 2,
3383
+ PLN: 2,
3384
+ RSD: 2,
3385
+ RUB: 2,
3386
+ SEK: 2,
3387
+ THB: 2,
3388
+ TRY: 2,
3389
+ UAH: 2,
3390
+ USD: 2,
3391
+ UZS: 2,
3392
+ VND: 0
3393
+ };
3394
+ var refuse = /* @__PURE__ */ __name((message, reason) => {
3395
+ throw new CliError("validation_error", message, { reason });
3396
+ }, "refuse");
3397
+ var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
3398
+ var parseDecimal = /* @__PURE__ */ __name((text6, scale) => {
3399
+ const match = DECIMAL.exec(text6.trim());
3400
+ if (!match || (match[2] ?? "").length > scale)
3401
+ return void 0;
3402
+ return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
3403
+ }, "parseDecimal");
3404
+ var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
3405
+ const value = BigInt(units);
3406
+ if (value < 0n)
3407
+ return `-${formatDecimal(-value, scale)}`;
3408
+ const digits = value.toString().padStart(scale + 1, "0");
3409
+ return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
3410
+ }, "formatDecimal");
3411
+ var groupDigits = /* @__PURE__ */ __name((decimal) => {
3412
+ const [whole = "0", fraction] = decimal.split(".");
3413
+ const grouped2 = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
3414
+ return fraction === void 0 ? grouped2 : `${grouped2}.${fraction}`;
3415
+ }, "groupDigits");
3416
+ var currencyOf = /* @__PURE__ */ __name((text6) => {
3417
+ const code = typeof text6 === "string" ? text6.trim().toUpperCase() : "";
3418
+ if (CURRENCY_SCALES[code] === void 0)
3419
+ return refuse(`${typeof text6 === "string" && text6.trim() ? text6.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
3420
+ return code;
3421
+ }, "currencyOf");
3422
+ var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
3423
+ var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
3424
+ const scale = scaleOf(currency);
3425
+ const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
3426
+ if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
3427
+ 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");
3428
+ return Number(units);
3429
+ }, "minorUnits");
3430
+ var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
3431
+ if (typeof amount !== "string" || !amount.trim().startsWith("-"))
3432
+ return minorUnits(amount, currency, what);
3433
+ const units = minorUnits(amount.trim().slice(1), currency, what);
3434
+ return units === 0 ? 0 : -units;
3435
+ }, "signedMinorUnits");
3436
+ var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
3437
+ amount: formatDecimal(units, scaleOf(currency)),
3438
+ currency
3439
+ }), "moneyOf");
3440
+ var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
3441
+ var QUANTITY_SCALE = 3;
3442
+ var quantityOf = /* @__PURE__ */ __name((text6) => {
3443
+ const thousandths = typeof text6 === "string" ? parseDecimal(text6, QUANTITY_SCALE) : void 0;
3444
+ if (thousandths === void 0 || thousandths === 0n)
3445
+ return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
3446
+ const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
3447
+ return { text: plain, thousandths };
3448
+ }, "quantityOf");
3449
+ var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
3450
+
3451
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/domain/finance.js
3452
+ var INVOICE_DIRECTIONS = ["receivable", "payable"];
3453
+ var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
3454
+ var MONEY_DIRECTIONS = ["in", "out"];
3455
+ var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
3456
+ var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
3457
+ if (current === "draft" || current === "void")
3458
+ return current;
3459
+ if (paid <= 0)
3460
+ return "issued";
3461
+ return paid < total ? "partly_paid" : "paid";
3462
+ }, "settledStatus");
3463
+ var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
3464
+ var notes = /* @__PURE__ */ __name((...words2) => {
3465
+ const kept = words2.filter((word) => word !== null);
3466
+ return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
3467
+ }, "notes");
3468
+ var invoiceLine = /* @__PURE__ */ __name((invoice) => {
3469
+ const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
3470
+ const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
3471
+ return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
3472
+ }, "invoiceLine");
3473
+ var paymentLine = /* @__PURE__ */ __name((payment) => {
3474
+ const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
3475
+ return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
3476
+ }, "paymentLine");
3477
+ var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
3478
+ var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
3479
+
3480
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/domain/deals.js
3481
+ var DEAL_KINDS = ["deal", "lead"];
3482
+ var DEAL_STATUSES = ["open", "won", "lost"];
3483
+ var STAGE_OUTCOMES = DEAL_STATUSES;
3484
+ var DEAL_ROLES = ["owner", "contact", "decision-maker", "influencer"];
3485
+ var dealLine = /* @__PURE__ */ __name((deal) => {
3486
+ const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
3487
+ return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
3488
+ }, "dealLine");
3489
+
3490
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/domain/orders.js
3491
+ var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
3492
+ var ORDER_PURPOSES = ["personal", "business", "client", "other"];
3493
+ var orderLine = /* @__PURE__ */ __name((order) => {
3494
+ const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
3495
+ const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
3496
+ return `${order.number ?? `#${order.id}`} \xB7 ${order.supplierName}${money} (${notes2})`;
3497
+ }, "orderLine");
3498
+ var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
3499
+
3500
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/domain/relations.js
3501
+ var ORGANIZATION_ROLES = [
3502
+ "employee",
3503
+ "contractor",
3504
+ "founder",
3505
+ "owner",
3506
+ "manager",
3507
+ "adviser",
3508
+ "contact"
3509
+ ];
3510
+ var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
3511
+ var RELATIONS = {
3512
+ "member-of": {
3513
+ from: ["person", "organization", "project", "chat", "email_thread"],
3514
+ to: ["organization", "project"],
3515
+ roles: { to: { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES } }
3516
+ },
3517
+ "reports-to": { from: ["person"], to: ["person"], inverse: "manages" },
3518
+ "customer-of": { from: ["person", "organization"], to: ["organization"], inverse: "supplier of" },
3519
+ "partner-of": { from: ["organization"], to: ["organization"], symmetric: true },
3520
+ "related-to": {
3521
+ from: ["person", "organization", "project", "task", "deal", "lead"],
3522
+ to: ["person", "organization", "project", "task"],
3523
+ roles: { from: { deal: DEAL_ROLES, lead: DEAL_ROLES } }
3524
+ }
3525
+ };
3526
+ var RELATION_KINDS = Object.keys(RELATIONS);
3527
+ var specOf = /* @__PURE__ */ __name((kind) => Object.hasOwn(RELATIONS, kind) ? RELATIONS[kind] : void 0, "specOf");
3528
+ var isRelationKind = /* @__PURE__ */ __name((kind) => specOf(kind) !== void 0, "isRelationKind");
3529
+ var memberOnly = /* @__PURE__ */ __name((type) => type === "chat" || type === "email_thread", "memberOnly");
3530
+ var checkEnds = /* @__PURE__ */ __name((kind, from, to) => {
3531
+ const spec = specOf(kind);
3532
+ if (!spec)
3533
+ throw new CliError("validation_error", `a relationship's kind is one of ${RELATION_KINDS.join(", ")}`);
3534
+ if (memberOnly(from) && (kind !== "member-of" || to !== "project"))
3535
+ throw new CliError("validation_error", `a ${from === "chat" ? "chat" : "mail thread"} is related only as member-of a project`);
3536
+ if (!spec.from.includes(from) || !spec.to.includes(to))
3537
+ throw new CliError("validation_error", `${kind} joins ${spec.from.join(", ")} to ${spec.to.join(", ")}, not ${from} to ${to}`);
3538
+ return spec;
3539
+ }, "checkEnds");
3540
+ var rolesOf = /* @__PURE__ */ __name((kind, from, to) => {
3541
+ const spec = specOf(kind);
3542
+ if (kind === "member-of" && from !== "person")
3543
+ return void 0;
3544
+ return spec?.roles?.from?.[from] ?? spec?.roles?.to?.[to];
3545
+ }, "rolesOf");
3546
+ var ROLE_LISTS = { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES, deal: DEAL_ROLES };
3547
+ var roleListOf = /* @__PURE__ */ __name((kind, from, to) => {
3548
+ const roles = rolesOf(kind, from, to);
3549
+ return Object.keys(ROLE_LISTS).find((list) => ROLE_LISTS[list] === roles);
3550
+ }, "roleListOf");
3551
+ var checkRole = /* @__PURE__ */ __name((kind, from, to, role, extra = []) => {
3552
+ const roles = rolesOf(kind, from, to)?.concat(extra);
3553
+ if (roles && !roles.includes(role))
3554
+ throw new CliError("validation_error", `a ${from}'s role on ${kind} ${to} is one of ${roles.join(", ")}`, {
3555
+ reason: "relationship.role-unknown"
3556
+ });
3557
+ return role;
3558
+ }, "checkRole");
3559
+ var isSymmetric = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric === true, "isSymmetric");
3560
+ var inverseOf = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric ? kind : specOf(kind)?.inverse ?? null, "inverseOf");
3561
+ var STANDINGS = ["confirmed", "reported", "proposed", "ended"];
3562
+ var standingOf = /* @__PURE__ */ __name((link, now) => {
3563
+ if (link.endsAt != null && link.endsAt <= now)
3564
+ return "ended";
3565
+ if (link.confirmed)
3566
+ return "confirmed";
3567
+ if (link.deletedAt != null)
3568
+ return "ended";
3569
+ return link.accountId != null ? "reported" : "proposed";
3570
+ }, "standingOf");
3571
+ var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" || standing === "reported", "isUsable");
3572
+ 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");
3573
+ 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");
3574
+
3575
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/domain/tags.js
3222
3576
  var TAG_TYPES = ["chat", "contact", "message", "task"];
3223
3577
  var TAG = /^[a-z0-9-]{1,32}$/;
3224
3578
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -3232,7 +3586,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
3232
3586
  return tag;
3233
3587
  }, "normalizeTag");
3234
3588
 
3235
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
3589
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
3236
3590
  var LINK_KINDS = [
3237
3591
  "links-to",
3238
3592
  "blocked-by",
@@ -3245,15 +3599,18 @@ var LINK_KINDS = [
3245
3599
  "created-from",
3246
3600
  "duplicate-of",
3247
3601
  "related-to",
3602
+ "reports-to",
3603
+ "customer-of",
3604
+ "partner-of",
3248
3605
  "assigned-to",
3249
3606
  "attached"
3250
3607
  ];
3251
3608
  var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
3252
3609
  var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
3253
- var RELATION_KINDS = ["member-of", "related-to"];
3254
3610
  var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
3611
+ var COUNTERPART_ROLE = "counterpart";
3255
3612
 
3256
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/tasks/model.js
3613
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/tasks/model.js
3257
3614
  var TASK_KINDS = ["question", "request", "mention", "promise"];
3258
3615
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
3259
3616
  var CLOSED_STATES = ["done", "dismissed"];
@@ -3268,13 +3625,13 @@ function closeTask(task, state, by, at, reason) {
3268
3625
  }
3269
3626
  __name(closeTask, "closeTask");
3270
3627
 
3271
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/tasks/store.js
3628
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/tasks/store.js
3272
3629
  function matches2(task, filter) {
3273
3630
  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);
3274
3631
  }
3275
3632
  __name(matches2, "matches");
3276
3633
 
3277
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/tasks/priority.js
3634
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/tasks/priority.js
3278
3635
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
3279
3636
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
3280
3637
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -3303,7 +3660,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
3303
3660
  }, "priorityOf");
3304
3661
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
3305
3662
 
3306
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/tasks/service.js
3663
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/tasks/service.js
3307
3664
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
3308
3665
  async function find(id4) {
3309
3666
  const task = await store.get(id4);
@@ -3363,7 +3720,7 @@ function median(values) {
3363
3720
  }
3364
3721
  __name(median, "median");
3365
3722
 
3366
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
3723
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
3367
3724
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
3368
3725
  var MEMORY_KINDS = ["summary", "digest", "preference"];
3369
3726
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -3371,131 +3728,7 @@ var MEMORY_SCOPES = ["personal", "work"];
3371
3728
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
3372
3729
  var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
3373
3730
 
3374
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/domain/money.js
3375
- var CURRENCY_SCALES = {
3376
- AED: 2,
3377
- AMD: 2,
3378
- AUD: 2,
3379
- BHD: 3,
3380
- BYN: 2,
3381
- CAD: 2,
3382
- CHF: 2,
3383
- CLP: 0,
3384
- CNY: 2,
3385
- CZK: 2,
3386
- DKK: 2,
3387
- EUR: 2,
3388
- GBP: 2,
3389
- GEL: 2,
3390
- HUF: 2,
3391
- ILS: 2,
3392
- INR: 2,
3393
- ISK: 0,
3394
- JPY: 0,
3395
- KGS: 2,
3396
- KRW: 0,
3397
- KWD: 3,
3398
- KZT: 2,
3399
- NOK: 2,
3400
- PLN: 2,
3401
- RSD: 2,
3402
- RUB: 2,
3403
- SEK: 2,
3404
- THB: 2,
3405
- TRY: 2,
3406
- UAH: 2,
3407
- USD: 2,
3408
- UZS: 2,
3409
- VND: 0
3410
- };
3411
- var refuse = /* @__PURE__ */ __name((message, reason) => {
3412
- throw new CliError("validation_error", message, { reason });
3413
- }, "refuse");
3414
- var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
3415
- var parseDecimal = /* @__PURE__ */ __name((text6, scale) => {
3416
- const match = DECIMAL.exec(text6.trim());
3417
- if (!match || (match[2] ?? "").length > scale)
3418
- return void 0;
3419
- return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
3420
- }, "parseDecimal");
3421
- var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
3422
- const digits = BigInt(units).toString().padStart(scale + 1, "0");
3423
- return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
3424
- }, "formatDecimal");
3425
- var groupDigits = /* @__PURE__ */ __name((decimal) => {
3426
- const [whole = "0", fraction] = decimal.split(".");
3427
- const grouped2 = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
3428
- return fraction === void 0 ? grouped2 : `${grouped2}.${fraction}`;
3429
- }, "groupDigits");
3430
- var currencyOf = /* @__PURE__ */ __name((text6) => {
3431
- const code = typeof text6 === "string" ? text6.trim().toUpperCase() : "";
3432
- if (CURRENCY_SCALES[code] === void 0)
3433
- return refuse(`${typeof text6 === "string" && text6.trim() ? text6.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
3434
- return code;
3435
- }, "currencyOf");
3436
- var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
3437
- var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
3438
- const scale = scaleOf(currency);
3439
- const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
3440
- if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
3441
- 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");
3442
- return Number(units);
3443
- }, "minorUnits");
3444
- var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
3445
- amount: formatDecimal(units, scaleOf(currency)),
3446
- currency
3447
- }), "moneyOf");
3448
- var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
3449
- var QUANTITY_SCALE = 3;
3450
- var quantityOf = /* @__PURE__ */ __name((text6) => {
3451
- const thousandths = typeof text6 === "string" ? parseDecimal(text6, QUANTITY_SCALE) : void 0;
3452
- if (thousandths === void 0 || thousandths === 0n)
3453
- return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
3454
- const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
3455
- return { text: plain, thousandths };
3456
- }, "quantityOf");
3457
- var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
3458
-
3459
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/domain/finance.js
3460
- var INVOICE_DIRECTIONS = ["receivable", "payable"];
3461
- var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
3462
- var MONEY_DIRECTIONS = ["in", "out"];
3463
- var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
3464
- var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
3465
- if (current === "draft" || current === "void")
3466
- return current;
3467
- if (paid <= 0)
3468
- return "issued";
3469
- return paid < total ? "partly_paid" : "paid";
3470
- }, "settledStatus");
3471
- var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
3472
- var notes = /* @__PURE__ */ __name((...words2) => {
3473
- const kept = words2.filter((word) => word !== null);
3474
- return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
3475
- }, "notes");
3476
- var invoiceLine = /* @__PURE__ */ __name((invoice) => {
3477
- const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
3478
- const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
3479
- return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
3480
- }, "invoiceLine");
3481
- var paymentLine = /* @__PURE__ */ __name((payment) => {
3482
- const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
3483
- return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
3484
- }, "paymentLine");
3485
- var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
3486
- var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
3487
-
3488
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/domain/orders.js
3489
- var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
3490
- var ORDER_PURPOSES = ["personal", "business", "client", "other"];
3491
- var orderLine = /* @__PURE__ */ __name((order) => {
3492
- const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
3493
- const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
3494
- return `${order.number ?? `#${order.id}`} \xB7 ${order.supplierName}${money} (${notes2})`;
3495
- }, "orderLine");
3496
- var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
3497
-
3498
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/fields.js
3731
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/fields.js
3499
3732
  var text5 = string();
3500
3733
  var id3 = pipe(string(), minLength(1));
3501
3734
  var time = isoTime;
@@ -3519,7 +3752,7 @@ var author = strictObject({
3519
3752
  name: nullable(text5)
3520
3753
  });
3521
3754
 
3522
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
3755
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
3523
3756
  var organization = strictObject({
3524
3757
  id: id3,
3525
3758
  ref: reference,
@@ -3618,6 +3851,7 @@ export {
3618
3851
  MEETING_FINDINGS_KIND,
3619
3852
  validateMeetingFindings,
3620
3853
  meetingFindingFingerprint,
3854
+ MEETING_FIELD_NAMES,
3621
3855
  parseMeetingQuery,
3622
3856
  transcriptLanguage,
3623
3857
  importFiles,
@@ -3650,14 +3884,58 @@ export {
3650
3884
  validateMeetingSeriesInventoryCursor,
3651
3885
  aggregateMeetingCounts,
3652
3886
  aggregateMeetingStats,
3887
+ parseDecimal,
3888
+ formatDecimal,
3889
+ currencyOf,
3890
+ scaleOf,
3891
+ minorUnits,
3892
+ signedMinorUnits,
3893
+ moneyOf,
3894
+ moneyLabel,
3895
+ quantityOf,
3896
+ lineUnits,
3897
+ INVOICE_DIRECTIONS,
3898
+ INVOICE_STATUSES,
3899
+ MONEY_DIRECTIONS,
3900
+ FINANCE_REVIEWS,
3901
+ settledStatus,
3902
+ dayMonth,
3903
+ notes,
3904
+ invoiceLine,
3905
+ paymentLine,
3906
+ invoiceTitle,
3907
+ paymentEntryTitle,
3908
+ DEAL_KINDS,
3909
+ DEAL_STATUSES,
3910
+ STAGE_OUTCOMES,
3911
+ DEAL_ROLES,
3912
+ dealLine,
3913
+ ORDER_STATUSES,
3914
+ ORDER_PURPOSES,
3915
+ orderLine,
3916
+ orderTitle,
3917
+ RELATION_KINDS,
3918
+ isRelationKind,
3919
+ checkEnds,
3920
+ rolesOf,
3921
+ ROLE_LISTS,
3922
+ roleListOf,
3923
+ checkRole,
3924
+ isSymmetric,
3925
+ inverseOf,
3926
+ STANDINGS,
3927
+ standingOf,
3928
+ isUsable,
3929
+ notOverriddenSql,
3930
+ usableLinkSql,
3653
3931
  TAG_TYPES,
3654
3932
  tagOf,
3655
3933
  normalizeTag,
3656
3934
  LINK_KINDS,
3657
3935
  LINK_ORIGINS,
3658
3936
  LINK_SOURCES,
3659
- RELATION_KINDS,
3660
3937
  linkKind,
3938
+ COUNTERPART_ROLE,
3661
3939
  TASK_KINDS,
3662
3940
  TASK_STATES,
3663
3941
  TASK_ORIGINS,
@@ -3677,28 +3955,6 @@ export {
3677
3955
  MEMORY_SCOPES,
3678
3956
  WORK_TASK_TYPES,
3679
3957
  TASK_TYPES2 as TASK_TYPES,
3680
- parseDecimal,
3681
- formatDecimal,
3682
- currencyOf,
3683
- scaleOf,
3684
- minorUnits,
3685
- moneyOf,
3686
- moneyLabel,
3687
- quantityOf,
3688
- lineUnits,
3689
- INVOICE_DIRECTIONS,
3690
- INVOICE_STATUSES,
3691
- MONEY_DIRECTIONS,
3692
- FINANCE_REVIEWS,
3693
- settledStatus,
3694
- invoiceLine,
3695
- paymentLine,
3696
- invoiceTitle,
3697
- paymentEntryTitle,
3698
- ORDER_STATUSES,
3699
- ORDER_PURPOSES,
3700
- orderLine,
3701
- orderTitle,
3702
3958
  text5 as text,
3703
3959
  id3 as id,
3704
3960
  time,
@@ -3710,5 +3966,10 @@ export {
3710
3966
  author,
3711
3967
  organization,
3712
3968
  project,
3713
- reminder
3969
+ reminder,
3970
+ markStoreDamaged,
3971
+ readDamageMark,
3972
+ refuseDamagedStore,
3973
+ readHealthMark,
3974
+ recordDeepCheck
3714
3975
  };