@wirecat/cli-template 0.10.0 → 0.12.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 (102) hide show
  1. package/.github/workflows/ci.yml +17 -0
  2. package/.github/workflows/release.yml +62 -0
  3. package/CHANGELOG.md +46 -0
  4. package/CLAUDE.md +1 -3
  5. package/contracts/help.snap +2 -0
  6. package/dist/bin/clidev.js +2 -2
  7. package/dist/bundle/{all-profiles-XHC7BG3P.js → all-profiles-MJ6XSFOO.js} +4 -4
  8. package/dist/bundle/{anthropic-N6B3ZZHQ.js → anthropic-W5UKBZUB.js} +3 -3
  9. package/dist/bundle/app-server-EZ46JAHB.js +217 -0
  10. package/dist/bundle/{bun-HUJLS7KP.js → bun-HB6O2TTT.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-OWFO2TVR.js → bun-sqlite-KBXOW2ES.js} +2 -2
  12. package/dist/bundle/{chunk-B4EED2RF.js → chunk-2B5U4Z5H.js} +5 -5
  13. package/dist/bundle/{chunk-ABP7FDMJ.js → chunk-35KYY65W.js} +2 -2
  14. package/dist/bundle/{chunk-MZVV2JZT.js → chunk-4LURWBVV.js} +17 -9
  15. package/dist/bundle/{chunk-QGNNMPUB.js → chunk-7IXL4UFK.js} +7 -7
  16. package/dist/bundle/{chunk-NE3NSB5O.js → chunk-AK257OMS.js} +55 -43
  17. package/dist/bundle/{chunk-IJ3IA7EK.js → chunk-CXQXVKUY.js} +1 -1
  18. package/dist/bundle/{chunk-7RB76E2L.js → chunk-EGRB55FF.js} +4 -4
  19. package/dist/bundle/{chunk-DMCN22H6.js → chunk-ERGB4NJA.js} +20 -2
  20. package/dist/bundle/{chunk-TJLGI3N6.js → chunk-ERKR3VJ5.js} +79 -28
  21. package/dist/bundle/{chunk-2CFBHYFA.js → chunk-FDBINRWA.js} +4 -4
  22. package/dist/bundle/{chunk-FIHDGZIB.js → chunk-FZZIU4B7.js} +2416 -2254
  23. package/dist/bundle/{chunk-BDSDQCV4.js → chunk-HDY5X3WQ.js} +4 -4
  24. package/dist/bundle/{chunk-XFXBXQBS.js → chunk-IBBN7Z3A.js} +2 -2
  25. package/dist/bundle/{chunk-4QRLPOJ7.js → chunk-IDWW4TU2.js} +1 -1
  26. package/dist/bundle/{chunk-OPPMGPFW.js → chunk-IGHEW777.js} +4 -4
  27. package/dist/bundle/{chunk-437W3Z2M.js → chunk-IN3FVRPK.js} +1 -1
  28. package/dist/bundle/{chunk-FWVKHD2L.js → chunk-JAOGZMKQ.js} +1 -1
  29. package/dist/bundle/{chunk-O3PBQVAB.js → chunk-JHO2LL2J.js} +18 -6
  30. package/dist/bundle/{chunk-MNSD5BX2.js → chunk-JRK73FOW.js} +1 -1
  31. package/dist/bundle/{chunk-O5LMDQTO.js → chunk-KJTNT4SW.js} +1 -1
  32. package/dist/bundle/{chunk-B4LM2B6F.js → chunk-L5WWMP5M.js} +24 -20
  33. package/dist/bundle/{chunk-NTLPDH76.js → chunk-MJRSEUKG.js} +9 -7
  34. package/dist/bundle/{chunk-AP7QKYBG.js → chunk-MUSYGFCY.js} +165 -140
  35. package/dist/bundle/{server-L5GNG7KC.js → chunk-N2Z3MCOF.js} +31 -45
  36. package/dist/bundle/{chunk-JTTW5ZKF.js → chunk-NOVLCHDV.js} +1 -1
  37. package/dist/bundle/{chunk-54AJONOM.js → chunk-O3UXNU3S.js} +2 -2
  38. package/dist/bundle/{chunk-75LVQQEK.js → chunk-OV6PHTAY.js} +2034 -1590
  39. package/dist/bundle/{chunk-W2IDKBNB.js → chunk-PBN4RBHS.js} +7 -7
  40. package/dist/bundle/{chunk-2TBVT4SZ.js → chunk-PDGXMKJS.js} +1 -1
  41. package/dist/bundle/{recognize-TTED4SE3.js → chunk-PJOVK7PG.js} +6 -5
  42. package/dist/bundle/{chunk-LY7GS2YI.js → chunk-QBP7OMN5.js} +1 -1
  43. package/dist/bundle/{chunk-VMTM46FH.js → chunk-QJ6XW4DM.js} +75 -51
  44. package/dist/bundle/{chunk-OPJ24VGH.js → chunk-QKWRL4OD.js} +5 -5
  45. package/dist/bundle/{chunk-MTGLJCAZ.js → chunk-QQUFZLFP.js} +1 -1
  46. package/dist/bundle/{chunk-6CBWO7OF.js → chunk-RUKDZEID.js} +2 -2
  47. package/dist/bundle/{chunk-TARN7CHN.js → chunk-SVDF6NJF.js} +10 -10
  48. package/dist/bundle/{chunk-FXS3X76A.js → chunk-TAYOKLGF.js} +4 -4
  49. package/dist/bundle/{chunk-ASMH7JWZ.js → chunk-TGB5F7NC.js} +2 -2
  50. package/dist/bundle/{chunk-222FANS2.js → chunk-V3ZTQ24B.js} +4 -4
  51. package/dist/bundle/{chunk-LSEF4QC3.js → chunk-VLNKTMV7.js} +75 -47
  52. package/dist/bundle/{chunk-7RXBN7HP.js → chunk-VYSUKHKL.js} +1 -1
  53. package/dist/bundle/{chunk-JEBSORH7.js → chunk-YJNUDHJD.js} +25 -14
  54. package/dist/bundle/{chunk-S57AMKLX.js → chunk-Z7MSIRSQ.js} +1 -1
  55. package/dist/bundle/{chunk-2KQZ24GI.js → chunk-ZLY6GUAS.js} +2 -2
  56. package/dist/bundle/clidev.js +2 -2
  57. package/dist/bundle/{command-contract-PEM3S634.js → command-contract-75VJ36U4.js} +10 -10
  58. package/dist/bundle/decode-AMXUVKNY.js +158 -0
  59. package/dist/bundle/{echarts-2QGL2JP5.js → echarts-GJDMQ2AQ.js} +2 -2
  60. package/dist/bundle/{embed-HHAAGHA6.js → embed-L4CRZ2XQ.js} +3 -3
  61. package/dist/bundle/{embedder-W2OGVVYH.js → embedder-IBGV4M2K.js} +6 -6
  62. package/dist/bundle/{first-run-WCJUDUBU.js → first-run-VTKC2IBV.js} +5 -5
  63. package/dist/bundle/{first-screen-U4DFUKUC.js → first-screen-X5IJKBSU.js} +11 -11
  64. package/dist/bundle/{instructions-OTZHT6NV.js → instructions-YJECS4KN.js} +3 -1
  65. package/dist/bundle/mcp-RDZGYPSY.js +78 -0
  66. package/dist/bundle/{mcp-VVF6J7SQ.js → mcp-TEMCENVV.js} +33 -33
  67. package/dist/bundle/{node-SYD4GX5O.js → node-NQG4EVZR.js} +2 -2
  68. package/dist/bundle/node-sqlite-BR7F3BLB.js +61 -0
  69. package/dist/bundle/{oauth-42M34GQ5.js → oauth-J7UAWNIK.js} +4 -4
  70. package/dist/bundle/{open-SWXRCDLN.js → open-BR47R5UE.js} +1 -1
  71. package/dist/bundle/{process-KAFGXZ7Q.js → process-66I7RDPJ.js} +1 -1
  72. package/dist/bundle/{program-EHR4G7VN.js → program-RNGI562F.js} +913 -601
  73. package/dist/bundle/{prompt-ZQTMHRGX.js → prompt-NE5JJ7UP.js} +2 -2
  74. package/dist/bundle/recognize-GC3YFVIA.js +21 -0
  75. package/dist/bundle/{remote-C37XJ4BP.js → remote-QELOMKQM.js} +4 -4
  76. package/dist/bundle/{rerank-APFZAMQL.js → rerank-BH6TZ2SP.js} +4 -4
  77. package/dist/bundle/{serve-DDPIHDVZ.js → serve-WWLRNDT2.js} +6 -6
  78. package/dist/bundle/server-DE6NLNUF.js +52 -0
  79. package/dist/bundle/server-ZPSQKOAH.js +39 -0
  80. package/dist/bundle/{state-WWPPHERF.js → state-2BEGXAMO.js} +3 -3
  81. package/dist/bundle/{store-H6UIA4PK.js → store-AH6WZMCF.js} +7 -7
  82. package/dist/bundle/store-maintenance-command-PBXX3IEV.js +40 -0
  83. package/dist/version.d.ts +1 -1
  84. package/dist/version.js +1 -1
  85. package/docs/configuration.md +3 -1
  86. package/docs/dev/TESTING.md +2 -0
  87. package/docs/dev/skills/release/SKILL.md +9 -5
  88. package/docs/dev/test-matrix.md +1 -1
  89. package/kit/dist/new.js +3 -0
  90. package/package.json +4 -2
  91. package/scripts/audit.sh +11 -1
  92. package/scripts/smoke-bundle.ts +2 -1
  93. package/scripts/smoke.ts +18 -0
  94. package/scripts/test-matrix-untested.ts +1 -1
  95. package/server.json +38 -0
  96. package/src/version.ts +1 -1
  97. package/template.json +1 -0
  98. package/dist/bundle/mcp-Y7VCIZ2J.js +0 -78
  99. package/dist/bundle/node-sqlite-X2DGRFOZ.js +0 -45
  100. package/dist/bundle/server-LKVYA2AE.js +0 -39
  101. package/dist/bundle/store-maintenance-command-EYBT64A2.js +0 -40
  102. /package/dist/bundle/{chunk-QVJLOUQB.js → chunk-GOO67PDU.js} +0 -0
@@ -823,7 +823,7 @@ var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
823
823
  ].join("\n");
824
824
  }, "fieldsHelp");
825
825
 
826
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/reference.js
826
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/reference.js
827
827
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
828
828
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
829
829
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -860,7 +860,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
860
860
  }, "parseMeetingReference");
861
861
  var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
862
862
 
863
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/item.js
863
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/item.js
864
864
  var text = string();
865
865
  var count = pipe(number(), integer(), minValue(0));
866
866
  var MEETING_ISSUES = ["time_without_zone"];
@@ -925,7 +925,7 @@ var MEETING_QUERY = {
925
925
  })
926
926
  };
927
927
 
928
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
928
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
929
929
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
930
930
  const parsed = urlOf(url);
931
931
  if (!parsed)
@@ -959,7 +959,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
959
959
  }
960
960
  }, "urlOf");
961
961
 
962
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
962
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
963
963
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
964
964
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
965
965
  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");
@@ -992,7 +992,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
992
992
  return kept;
993
993
  }, "entryMetadata");
994
994
 
995
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
995
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
996
996
  import { createHash } from "node:crypto";
997
997
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
998
998
  reference: cue2.reference,
@@ -1006,7 +1006,30 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
1006
1006
  text: cue2.text
1007
1007
  })).digest("hex"), "meetingCueFingerprint");
1008
1008
 
1009
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1009
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1010
+ var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
1011
+ var seriesEnd = /* @__PURE__ */ __name((entry) => {
1012
+ if (entry.recurrenceEndsAt !== null)
1013
+ return entry.recurrenceEndsAt;
1014
+ const rule = entry.recurrence?.find((line2) => /^RRULE:/iu.test(line2));
1015
+ const until = rule === void 0 ? null : UNTIL.exec(rule.slice("RRULE:".length));
1016
+ if (!until)
1017
+ return Number.POSITIVE_INFINITY;
1018
+ const [, year, month, day, hour = "23", minute = "59", second = "59"] = until;
1019
+ return Date.UTC(Number(year), Number(month) - 1, Number(day), Number(hour), Number(minute), Number(second)) + 864e5;
1020
+ }, "seriesEnd");
1021
+ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
1022
+ if (entry.kind === "occurrence" && !entry.exception)
1023
+ return entry.originalStartsAt !== null && entry.originalStartsAt >= window.from && entry.originalStartsAt < window.to;
1024
+ const start = entry.startsAt ?? (entry.kind === "occurrence" ? entry.originalStartsAt : null);
1025
+ if (start === null || start >= window.to)
1026
+ return false;
1027
+ if (entry.kind === "series")
1028
+ return seriesEnd(entry) >= window.from;
1029
+ return Math.max(entry.endsAt ?? start, start + 1) > window.from;
1030
+ }, "entryInWindow");
1031
+
1032
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1010
1033
  var text2 = string();
1011
1034
  var count2 = pipe(number(), integer(), minValue(0));
1012
1035
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -1233,7 +1256,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
1233
1256
  };
1234
1257
  }, "meetingHitsList");
1235
1258
 
1236
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1259
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1237
1260
  var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
1238
1261
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
1239
1262
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
@@ -1257,7 +1280,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
1257
1280
  };
1258
1281
  }, "validateMeetingParticipantSearch");
1259
1282
 
1260
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1283
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1261
1284
  var MeetingError = class extends CliError {
1262
1285
  static {
1263
1286
  __name(this, "MeetingError");
@@ -1290,7 +1313,11 @@ var meetingShow = /* @__PURE__ */ __name(async (store, id3, accountId) => {
1290
1313
  throw new MeetingError("not_found", "meeting not found");
1291
1314
  return details;
1292
1315
  }, "meetingShow");
1293
- var listed = /* @__PURE__ */ __name((items) => ({ items, page: 1, limit: items.length, hasMore: false }), "listed");
1316
+ var listed = /* @__PURE__ */ __name((items, page = { limit: items.length, hasMore: false }) => ({
1317
+ items,
1318
+ page: 1,
1319
+ ...page
1320
+ }), "listed");
1294
1321
  var meetingPeople = /* @__PURE__ */ __name(async (store, query, accountId, options = {}) => {
1295
1322
  if (accountId === void 0)
1296
1323
  validateMeetingParticipantQuery(query);
@@ -1385,7 +1412,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
1385
1412
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
1386
1413
  }, "meetingSummaryAnswer");
1387
1414
 
1388
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/export.js
1415
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/export.js
1389
1416
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
1390
1417
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
1391
1418
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -1481,10 +1508,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
1481
1508
  };
1482
1509
  }, "exportMeeting");
1483
1510
 
1484
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1511
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1485
1512
  import { createHash as createHash2 } from "node:crypto";
1486
1513
 
1487
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1514
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1488
1515
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1489
1516
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
1490
1517
  throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
@@ -1495,7 +1522,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1495
1522
  return new Date(value).toISOString();
1496
1523
  }, "meetingTimestamp");
1497
1524
 
1498
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
1525
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
1499
1526
  var nonempty = /* @__PURE__ */ __name((value, name) => {
1500
1527
  if (typeof value !== "string" || !value.trim())
1501
1528
  throw new CliError("validation_error", `${name} must be nonempty`);
@@ -1546,10 +1573,10 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
1546
1573
  return Object.freeze(result);
1547
1574
  }, "validateMeetingChange");
1548
1575
 
1549
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
1576
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
1550
1577
  var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
1551
1578
 
1552
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1579
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1553
1580
  var TASK_TYPES = ["bug", "feature", "chore"];
1554
1581
  var invalid2 = /* @__PURE__ */ __name((message) => {
1555
1582
  throw new CliError("validation_error", message);
@@ -1650,7 +1677,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
1650
1677
  }, "validateFindings");
1651
1678
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1652
1679
 
1653
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1680
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1654
1681
  var MEETING_FINDINGS_KIND = "meeting_findings";
1655
1682
  var cue = /* @__PURE__ */ __name((raw) => {
1656
1683
  const reference2 = canonicalMeetingReference(raw);
@@ -1661,7 +1688,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1661
1688
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1662
1689
  var meetingFindingFingerprint = findingFingerprint;
1663
1690
 
1664
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
1691
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
1665
1692
  var text4 = string();
1666
1693
  var identifier = pipe(text4, minLength(1));
1667
1694
  var nullableText = nullable(text4);
@@ -1787,7 +1814,7 @@ var MEETING_RESULT_ENTITIES = {
1787
1814
  meeting_embedding: embedding
1788
1815
  };
1789
1816
 
1790
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1817
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1791
1818
  var EVENT_QUERY = defineQuery({
1792
1819
  entity: "event",
1793
1820
  backend: "sql",
@@ -1803,7 +1830,7 @@ var EVENT_QUERY = defineQuery({
1803
1830
  ]
1804
1831
  });
1805
1832
 
1806
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/events.js
1833
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/events.js
1807
1834
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
1808
1835
  const current = await store.meeting(details.meeting.id);
1809
1836
  if (!current)
@@ -1846,7 +1873,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
1846
1873
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
1847
1874
  }, "linkEvent");
1848
1875
 
1849
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1876
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1850
1877
  var context = {
1851
1878
  command: "search meetings",
1852
1879
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -1909,7 +1936,7 @@ var MEETING_FIELDS = defineQuery({
1909
1936
  });
1910
1937
  var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
1911
1938
 
1912
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1939
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1913
1940
  var contentHash = /* @__PURE__ */ __name(async (text6) => {
1914
1941
  const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
1915
1942
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -1946,7 +1973,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
1946
1973
  return time;
1947
1974
  }, "timestamp");
1948
1975
 
1949
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
1976
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
1950
1977
  var TranscriptTextError = class extends Error {
1951
1978
  static {
1952
1979
  __name(this, "TranscriptTextError");
@@ -2001,7 +2028,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
2001
2028
  return { header, lines };
2002
2029
  }, "parseTranscriptText");
2003
2030
 
2004
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2031
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2005
2032
  var VttError = class extends Error {
2006
2033
  static {
2007
2034
  __name(this, "VttError");
@@ -2053,7 +2080,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
2053
2080
  return cues;
2054
2081
  }, "parseVtt");
2055
2082
 
2056
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/import.js
2083
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/import.js
2057
2084
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
2058
2085
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2059
2086
  for (const file of files) {
@@ -2086,10 +2113,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
2086
2113
  return report;
2087
2114
  }, "importFiles");
2088
2115
 
2089
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/links.js
2116
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/links.js
2090
2117
  var CHAT_MESSAGES_READ = 1e5;
2091
2118
 
2092
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2119
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2093
2120
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
2094
2121
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
2095
2122
  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)))
@@ -2102,7 +2129,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
2102
2129
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
2103
2130
  }, "validateMeetingPassage");
2104
2131
 
2105
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2132
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2106
2133
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2107
2134
  if (!original || typeof original !== "object" || Array.isArray(original))
2108
2135
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -2127,7 +2154,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2127
2154
  return { ...input, limit, maxReadBytes };
2128
2155
  }, "validateMeetingPreparationContext");
2129
2156
 
2130
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2157
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2131
2158
  var count4 = pipe(number(), integer(), minValue(0));
2132
2159
  var id = pipe(string(), minLength(1));
2133
2160
  var meetingProjectEvidence = strictObject({
@@ -2248,7 +2275,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
2248
2275
  };
2249
2276
  }, "meetingProjectEvidenceAnswer");
2250
2277
 
2251
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2278
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2252
2279
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2253
2280
  const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
2254
2281
  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) || [
@@ -2268,7 +2295,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2268
2295
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
2269
2296
  }, "validateMeetingHitSearch");
2270
2297
 
2271
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2298
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2272
2299
  var ids = {
2273
2300
  meeting_id: "meetingId",
2274
2301
  identity_id: "participantIdentityId",
@@ -2359,7 +2386,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
2359
2386
  return { project: project.trim(), options, query: frozen.join(" AND ") };
2360
2387
  }, "prepareMeetingProjectEvidence");
2361
2388
 
2362
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2389
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2363
2390
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
2364
2391
  const prepared = prepareMeetingProjectEvidence(project, request, now);
2365
2392
  const page = await read(prepared.project, prepared.options);
@@ -2367,7 +2394,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
2367
2394
  return meetingProjectEvidenceAnswer(page, prepared);
2368
2395
  }, "readMeetingProjectEvidence");
2369
2396
 
2370
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2397
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2371
2398
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
2372
2399
  const { identityExternalId, ...fields2 } = p;
2373
2400
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
@@ -2506,7 +2533,7 @@ unlinked`, format)],
2506
2533
  return report;
2507
2534
  }, "pull");
2508
2535
 
2509
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2536
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2510
2537
  var text5 = string();
2511
2538
  var count5 = pipe(number(), integer(), minValue(0));
2512
2539
  var id2 = pipe(number(), integer(), minValue(1));
@@ -2671,10 +2698,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2671
2698
  updated_at: new Date(one.updatedAt).toISOString()
2672
2699
  }), "eventItem");
2673
2700
 
2674
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2701
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2675
2702
  var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
2676
2703
 
2677
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2704
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2678
2705
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2679
2706
  if (!original || typeof original !== "object" || Array.isArray(original))
2680
2707
  throw new CliError("validation_error", "related history request is required");
@@ -2704,14 +2731,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2704
2731
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
2705
2732
  }, "validateMeetingRelatedHistory");
2706
2733
 
2707
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/review.js
2734
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/review.js
2708
2735
  var REVIEW_LIMIT = { default: 50, most: 200 };
2709
2736
 
2710
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
2737
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
2711
2738
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
2712
2739
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
2713
2740
 
2714
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
2741
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
2715
2742
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
2716
2743
  input.signal?.throwIfAborted();
2717
2744
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -2732,10 +2759,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
2732
2759
  return { ...input, limit, maxReadBytes };
2733
2760
  }, "validateMeetingSeriesHistory");
2734
2761
 
2735
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
2762
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
2736
2763
  var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
2737
2764
 
2738
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
2765
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
2739
2766
  function invalid3(field, response = false) {
2740
2767
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
2741
2768
  }
@@ -2764,7 +2791,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
2764
2791
  cursorDetails(value);
2765
2792
  }, "validateMeetingSeriesInventoryCursor");
2766
2793
 
2767
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/meetings/stats.js
2794
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/meetings/stats.js
2768
2795
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
2769
2796
  const zone = timeZone ?? "UTC";
2770
2797
  try {
@@ -2843,7 +2870,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
2843
2870
  };
2844
2871
  }, "aggregateMeetingStats");
2845
2872
 
2846
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/tasks/model.js
2873
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/tasks/model.js
2847
2874
  var TASK_KINDS = ["question", "request", "mention", "promise"];
2848
2875
  var TASK_STATES = ["open", "done", "dismissed"];
2849
2876
  var TASK_ORIGINS = ["rule", "agent", "owner"];
@@ -2856,13 +2883,13 @@ function closeTask(task, state, by, at, reason) {
2856
2883
  }
2857
2884
  __name(closeTask, "closeTask");
2858
2885
 
2859
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/tasks/store.js
2886
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/tasks/store.js
2860
2887
  function matches2(task, filter) {
2861
2888
  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);
2862
2889
  }
2863
2890
  __name(matches2, "matches");
2864
2891
 
2865
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/tasks/service.js
2892
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/tasks/service.js
2866
2893
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
2867
2894
  async function find(id3) {
2868
2895
  const task = await store.get(id3);
@@ -2922,7 +2949,7 @@ function median(values) {
2922
2949
  }
2923
2950
  __name(median, "median");
2924
2951
 
2925
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
2952
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
2926
2953
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
2927
2954
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed"];
2928
2955
  var MEMORY_KINDS = ["summary", "digest", "preference"];
@@ -2931,7 +2958,7 @@ var MEMORY_SCOPES = ["personal", "work"];
2931
2958
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
2932
2959
  var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
2933
2960
 
2934
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
2961
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
2935
2962
  var LINK_KINDS = [
2936
2963
  "links-to",
2937
2964
  "blocked-by",
@@ -2952,7 +2979,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
2952
2979
  var RELATION_KINDS = ["member-of", "related-to"];
2953
2980
  var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
2954
2981
 
2955
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/domain/tags.js
2982
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/domain/tags.js
2956
2983
  var TAG_TYPES = ["chat", "contact", "message", "task"];
2957
2984
  var TAG = /^[a-z0-9-]{1,32}$/;
2958
2985
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -3004,6 +3031,7 @@ export {
3004
3031
  entryMetadata,
3005
3032
  meetingCueFingerprint,
3006
3033
  EVENT_QUERY,
3034
+ entryInWindow,
3007
3035
  normalizeMeetingParticipantQuery,
3008
3036
  validateMeetingParticipantSearch,
3009
3037
  MeetingError,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/background/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {
@@ -7,23 +7,23 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-MZVV2JZT.js";
10
+ } from "./chunk-4LURWBVV.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-XFXBXQBS.js";
13
+ } from "./chunk-IBBN7Z3A.js";
14
14
  import {
15
15
  lentConnection,
16
16
  onlineDeps,
17
17
  refuseLacking,
18
18
  servicesFor,
19
19
  storeModeDeps
20
- } from "./chunk-FIHDGZIB.js";
20
+ } from "./chunk-FZZIU4B7.js";
21
21
  import {
22
22
  MAX_BUFFERED_INPUT
23
- } from "./chunk-O5LMDQTO.js";
23
+ } from "./chunk-KJTNT4SW.js";
24
24
  import {
25
25
  ENTITIES
26
- } from "./chunk-AP7QKYBG.js";
26
+ } from "./chunk-MUSYGFCY.js";
27
27
  import {
28
28
  DEFAULT_OUTPUT_BYTES,
29
29
  LOCAL_WRITE,
@@ -32,6 +32,7 @@ import {
32
32
  authorityAllowed,
33
33
  botApiAllowed,
34
34
  changesMessenger,
35
+ enclosingTraceId,
35
36
  flatten,
36
37
  inRun,
37
38
  judgedAnswer,
@@ -43,14 +44,15 @@ import {
43
44
  readKeysForCommand,
44
45
  refuseStoreChange,
45
46
  sealed,
46
- startRecording
47
- } from "./chunk-VMTM46FH.js";
47
+ startRecording,
48
+ traceOf
49
+ } from "./chunk-QJ6XW4DM.js";
48
50
  import {
49
51
  currentCaller,
50
52
  keepsSuccess,
51
53
  runContextOf,
52
54
  withCaller
53
- } from "./chunk-NTLPDH76.js";
55
+ } from "./chunk-MJRSEUKG.js";
54
56
  import {
55
57
  CliError,
56
58
  SNAKE_CASE,
@@ -97,7 +99,7 @@ import {
97
99
  __name
98
100
  } from "./chunk-ZVVMGPBJ.js";
99
101
 
100
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/mcp/agent.js
102
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/mcp/agent.js
101
103
  import { Readable } from "node:stream";
102
104
 
103
105
  // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
@@ -2745,7 +2747,7 @@ var VOCABULARY = defineVocabulary({
2745
2747
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
2746
2748
  });
2747
2749
 
2748
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2750
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2749
2751
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2750
2752
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2751
2753
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -2914,7 +2916,16 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
2914
2916
  let result;
2915
2917
  let failure;
2916
2918
  const streams = captureStreams();
2917
- const code = await program.run(argv, {
2919
+ const command = `mcp ${path.join(" ")}`;
2920
+ const traceId = enclosingTraceId() ?? traceOf(ctx.env ?? {}).traceId;
2921
+ const scope = {
2922
+ runId: newRunId(/* @__PURE__ */ new Date(), command),
2923
+ command,
2924
+ startedAt: Date.now(),
2925
+ profile: ctx.profile,
2926
+ ...traceId === void 0 ? {} : { traceId }
2927
+ };
2928
+ const code = await inRun(scope, () => program.run(argv, {
2918
2929
  ...ctx.environment,
2919
2930
  streams,
2920
2931
  tty: false,
@@ -2942,7 +2953,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
2942
2953
  connection: /* @__PURE__ */ __name(() => borrowed ??= lend().then((adapter) => lentConnection(adapter)), "connection")
2943
2954
  }
2944
2955
  } : {}
2945
- });
2956
+ }));
2946
2957
  if (failure)
2947
2958
  return { error: failure };
2948
2959
  if (answered2)
@@ -2957,7 +2968,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
2957
2968
  }
2958
2969
  }, "runCommandForAgent");
2959
2970
 
2960
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2971
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2961
2972
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
2962
2973
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
2963
2974
  var message = pipe(
@@ -3216,7 +3227,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3216
3227
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3217
3228
  }, "failed");
3218
3229
 
3219
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3230
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3220
3231
  import { randomUUID } from "node:crypto";
3221
3232
  var MATCHES = 8;
3222
3233
  var ANSWER = answerSchema();
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -4,7 +4,7 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-O5LMDQTO.js";
7
+ } from "./chunk-KJTNT4SW.js";
8
8
  import {
9
9
  CliError
10
10
  } from "./chunk-EFHLQXG6.js";
@@ -12,7 +12,7 @@ import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_9d12b0091b773232c527328da5835651/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
16
16
  import { createInterface } from "node:readline";
17
17
  import { Writable } from "node:stream";
18
18
  var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
@@ -3,7 +3,7 @@ import { createRequire as __bundleRequire } from "node:module";
3
3
  const require = __bundleRequire(import.meta.url);
4
4
  import {
5
5
  IDENTITY
6
- } from "./chunk-MTGLJCAZ.js";
6
+ } from "./chunk-QQUFZLFP.js";
7
7
  import {
8
8
  catchCrashes
9
9
  } from "./chunk-EFHLQXG6.js";
@@ -14,7 +14,7 @@ import "./chunk-ZVVMGPBJ.js";
14
14
  import { enableCompileCache } from "node:module";
15
15
  enableCompileCache();
16
16
  var stopCatching = catchCrashes({ cli: IDENTITY.command, interactive: process.stdout.isTTY === true });
17
- var { run } = await import("./program-EHR4G7VN.js");
17
+ var { run } = await import("./program-RNGI562F.js");
18
18
  try {
19
19
  process.exitCode = await run(process.argv.slice(2));
20
20
  } finally {