@wirecat/mail-cli 0.32.0 → 0.33.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 (117) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-OTCWJSJS.js → all-profiles-W3CGXEEJ.js} +10 -10
  4. package/dist/bundle/{anthropic-GUXHDK32.js → anthropic-UMDO5AKP.js} +5 -5
  5. package/dist/bundle/{app-server-GX7DOE4O.js → app-server-4SICQ5RP.js} +50 -50
  6. package/dist/bundle/{bun-V5QLYBZU.js → bun-QVVCH4MJ.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-AXD5CCO3.js → bun-sqlite-CHD4AIUK.js} +6 -6
  8. package/dist/bundle/{chunk-KLGZX6QT.js → chunk-2BFXHCZW.js} +2 -2
  9. package/dist/bundle/{chunk-AJY2IT25.js → chunk-2L6D54BR.js} +8 -8
  10. package/dist/bundle/{chunk-RNBG75HW.js → chunk-2P44S7XK.js} +26 -29
  11. package/dist/bundle/{chunk-Z6OKVD3R.js → chunk-2X344EUT.js} +8 -8
  12. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-35AH33VJ.js} +1 -1
  13. package/dist/bundle/{chunk-2IYAZRTC.js → chunk-47YNANPZ.js} +2 -2
  14. package/dist/bundle/{chunk-7C6FGWDH.js → chunk-6IS4BEN4.js} +4 -4
  15. package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-6VCQ4CTK.js} +1 -1
  16. package/dist/bundle/{chunk-HUWQ7LXZ.js → chunk-74BYHR44.js} +584 -588
  17. package/dist/bundle/{chunk-U346WBJ5.js → chunk-7OYZU5SP.js} +4 -4
  18. package/dist/bundle/{chunk-SWXKS7JK.js → chunk-AEKWEYIG.js} +17 -17
  19. package/dist/bundle/{chunk-JRGPPS6H.js → chunk-BF73DBAA.js} +13 -13
  20. package/dist/bundle/{chunk-7KCBPAQS.js → chunk-BI5P7JWM.js} +2 -2
  21. package/dist/bundle/{chunk-7MEVD5PI.js → chunk-BRRHYXUP.js} +19 -19
  22. package/dist/bundle/{chunk-PALY5PGE.js → chunk-BZY5W35X.js} +7 -7
  23. package/dist/bundle/{chunk-ZAD7K4TI.js → chunk-CHNNKHLL.js} +7468 -7317
  24. package/dist/bundle/{chunk-GPOTPA3S.js → chunk-CIG4UVP6.js} +12 -12
  25. package/dist/bundle/{chunk-7GW4D3OW.js → chunk-CZ6ZXDSO.js} +43 -35
  26. package/dist/bundle/{chunk-ANYADN3S.js → chunk-DI74RP6R.js} +18 -18
  27. package/dist/bundle/{chunk-IX3GUNGV.js → chunk-EW3JFV7J.js} +4 -4
  28. package/dist/bundle/{chunk-TWHIZJAZ.js → chunk-FSMCXQH2.js} +2 -2
  29. package/dist/bundle/{chunk-SEJBS7SI.js → chunk-GZYICXO4.js} +1 -1
  30. package/dist/bundle/{chunk-WNGMI6AZ.js → chunk-H46MANPR.js} +3 -3
  31. package/dist/bundle/{chunk-QHXOXYAT.js → chunk-HFFHL7SV.js} +55 -55
  32. package/dist/bundle/{chunk-GSXCMQWV.js → chunk-I3UAD4EI.js} +30 -30
  33. package/dist/bundle/{chunk-IBCGCYRU.js → chunk-IBIFX2LK.js} +2 -2
  34. package/dist/bundle/{chunk-FA3B2DHZ.js → chunk-IPSLQX64.js} +2 -2
  35. package/dist/bundle/{chunk-3URYKAJP.js → chunk-JADBHKBP.js} +1 -1
  36. package/dist/bundle/{chunk-GDDCKTBR.js → chunk-JCQ47WR4.js} +5 -5
  37. package/dist/bundle/{chunk-JUS4Y4BW.js → chunk-JUYUWMTG.js} +4 -4
  38. package/dist/bundle/{chunk-TDTCCHAI.js → chunk-KLLT572M.js} +3 -3
  39. package/dist/bundle/{chunk-O7OP5NQO.js → chunk-L3MKFI3Y.js} +2 -2
  40. package/dist/bundle/{chunk-T577U52I.js → chunk-LACMDMDI.js} +9 -9
  41. package/dist/bundle/{chunk-CD3TAITM.js → chunk-LB5FTCPZ.js} +3 -4
  42. package/dist/bundle/{chunk-6TRKNME5.js → chunk-LFBD6RTX.js} +2 -2
  43. package/dist/bundle/{chunk-PCMQYGEM.js → chunk-LKGJMM6W.js} +6 -6
  44. package/dist/bundle/{chunk-SDAYOJLL.js → chunk-LXAX6AZU.js} +6 -6
  45. package/dist/bundle/{chunk-6SJ7HHAE.js → chunk-LXUHYDNE.js} +1 -1
  46. package/dist/bundle/{chunk-MT2WDBG2.js → chunk-MJ7DUSHT.js} +14 -14
  47. package/dist/bundle/{chunk-U57QRUP7.js → chunk-MNJ3BMPZ.js} +3 -3
  48. package/dist/bundle/{chunk-HFA6AZWA.js → chunk-MT7T5N2N.js} +4 -4
  49. package/dist/bundle/{chunk-MVMNZ3Q3.js → chunk-OFMYFFEF.js} +461 -402
  50. package/dist/bundle/{chunk-OUM4ZO53.js → chunk-OOYIPK4F.js} +1 -1
  51. package/dist/bundle/{chunk-MENP3FF5.js → chunk-OWAJN74H.js} +15 -15
  52. package/dist/bundle/{chunk-SZZJOSIS.js → chunk-QN423PC6.js} +3 -3
  53. package/dist/bundle/{chunk-KLFF54AF.js → chunk-QO7BK4WD.js} +8 -8
  54. package/dist/bundle/{chunk-2UMEZY6D.js → chunk-RENCSP47.js} +3 -3
  55. package/dist/bundle/{chunk-FIVFP53N.js → chunk-RXUVXAMM.js} +1 -1
  56. package/dist/bundle/{chunk-IVD3JTN5.js → chunk-S6CHYNFE.js} +2 -2
  57. package/dist/bundle/{chunk-ZDP6A2VL.js → chunk-SDWYOYGN.js} +4 -4
  58. package/dist/bundle/{chunk-PCWAZVAD.js → chunk-SW7YGW3T.js} +7 -7
  59. package/dist/bundle/{chunk-MSK7RNOM.js → chunk-SYUIAMVA.js} +178 -154
  60. package/dist/bundle/{chunk-XXXVVNGI.js → chunk-TBZLGT7R.js} +17 -17
  61. package/dist/bundle/{chunk-4YNUQGDP.js → chunk-TK77DCE5.js} +1 -1
  62. package/dist/bundle/{chunk-MHXZ62CU.js → chunk-UAV74EY4.js} +1 -1
  63. package/dist/bundle/{chunk-WQOGHND4.js → chunk-UG2QDGAH.js} +1 -1
  64. package/dist/bundle/{chunk-ECZSYLSL.js → chunk-UWF3SSRL.js} +25 -8
  65. package/dist/bundle/{chunk-LVFI3TCG.js → chunk-UX76GMQM.js} +6 -6
  66. package/dist/bundle/{chunk-6XNTELM5.js → chunk-UYZDH5LK.js} +1 -1
  67. package/dist/bundle/{chunk-NMN5JUYL.js → chunk-XN5KH24X.js} +5 -5
  68. package/dist/bundle/{chunk-U7RLFLTM.js → chunk-XQXYAOBV.js} +30 -29
  69. package/dist/bundle/{chunk-LVJWN2PR.js → chunk-Y2P2LC5R.js} +21 -11
  70. package/dist/bundle/command-contract-NRNQAFFE.js +36 -0
  71. package/dist/bundle/{command-server-entry-BVXOPKXH.js → command-server-entry-G2ZHCN5J.js} +25 -25
  72. package/dist/bundle/{decode-STN3EHT7.js → decode-U6V6D6XH.js} +5 -5
  73. package/dist/bundle/{dispatch-DSVN7MNG.js → dispatch-RHIK22OA.js} +8 -8
  74. package/dist/bundle/{dist-B2JWWTNN.js → dist-X5G2IMYG.js} +15 -15
  75. package/dist/bundle/{echarts-QIXLXS3G.js → echarts-UZJ6AREV.js} +2 -2
  76. package/dist/bundle/{embed-4NC4ELYP.js → embed-FEXLUH3T.js} +6 -6
  77. package/dist/bundle/{embedder-HBRDIFQC.js → embedder-NHQARKFJ.js} +9 -9
  78. package/dist/bundle/{failure-COTPFUP4.js → failure-7DIA4OET.js} +2 -2
  79. package/dist/bundle/{first-run-6QF67AAZ.js → first-run-PS5NR2QG.js} +12 -12
  80. package/dist/bundle/first-screen-C2WTLOG2.js +34 -0
  81. package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-SDDUBGH4.js} +1 -1
  82. package/dist/bundle/mail.js +12 -12
  83. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-GN4FTJX5.js} +2 -2
  84. package/dist/bundle/{node-IEVT2FSJ.js → node-ELCNUOCE.js} +2 -2
  85. package/dist/bundle/{node-sqlite-EOTTDMOG.js → node-sqlite-2E5MKZMH.js} +7 -7
  86. package/dist/bundle/{oauth-A5BEFGCI.js → oauth-JGPEIY3M.js} +7 -7
  87. package/dist/bundle/{open-HWN2EZYG.js → open-6DEMCZAB.js} +5 -5
  88. package/dist/bundle/{openai-PJKJ4CIU.js → openai-IVKDU5AH.js} +15 -15
  89. package/dist/bundle/{process-6Q23D3TO.js → process-67DAKAAQ.js} +1 -1
  90. package/dist/bundle/{program-WR43NPAV.js → program-ESJDQMAJ.js} +461 -466
  91. package/dist/bundle/{prompt-E7Q2662O.js → prompt-ZBWOT5KG.js} +5 -5
  92. package/dist/bundle/{recognize-4F4PIL4B.js → recognize-UUBH2DOH.js} +4 -4
  93. package/dist/bundle/{remote-RGJXO7XK.js → remote-UYTNWNOB.js} +9 -9
  94. package/dist/bundle/{rerank-EDY7PHMG.js → rerank-X2633CQN.js} +7 -7
  95. package/dist/bundle/{serve-Q4XF6ID2.js → serve-CP7Q4OVW.js} +9 -9
  96. package/dist/bundle/{server-5I72DSDF.js → server-I7MXRSAG.js} +42 -42
  97. package/dist/bundle/server-QGTMJ7SF.js +67 -0
  98. package/dist/bundle/{sqlite-runtime-PU3Z2H7C.js → sqlite-runtime-BX55LI5G.js} +6 -6
  99. package/dist/bundle/{state-CWSXJBU2.js → state-LLNJQXFH.js} +6 -6
  100. package/dist/bundle/{store-KQPKS3PX.js → store-K4KU5N75.js} +19 -19
  101. package/dist/bundle/{store-ZAMKKM2A.js → store-N27XI3VV.js} +17 -17
  102. package/dist/bundle/store-maintenance-command-VPAFQCNA.js +58 -0
  103. package/dist/commands/messages.js +1 -1
  104. package/dist/commands/messages.js.map +1 -1
  105. package/dist/mail/cleanup.d.ts.map +1 -1
  106. package/dist/mail/cleanup.js +4 -3
  107. package/dist/mail/cleanup.js.map +1 -1
  108. package/dist/mail/rules/apply.js +1 -1
  109. package/dist/mail/rules/apply.js.map +1 -1
  110. package/dist/version.d.ts +1 -1
  111. package/dist/version.js +1 -1
  112. package/package.json +3 -3
  113. package/dist/bundle/command-contract-DZ6XRIOI.js +0 -36
  114. package/dist/bundle/first-screen-LXSZMK2P.js +0 -34
  115. package/dist/bundle/server-2Y5NSP2U.js +0 -67
  116. package/dist/bundle/store-maintenance-command-PMTTDR6J.js +0 -58
  117. /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-BDCC2J2Z.js} +0 -0
@@ -16,10 +16,10 @@ import {
16
16
  servicesFor,
17
17
  throughWrapper,
18
18
  withFileLockAsync
19
- } from "./chunk-HUWQ7LXZ.js";
19
+ } from "./chunk-74BYHR44.js";
20
20
  import {
21
21
  servingProfiles
22
- } from "./chunk-2UMEZY6D.js";
22
+ } from "./chunk-RENCSP47.js";
23
23
  import {
24
24
  asFirstWord,
25
25
  baseContext,
@@ -33,7 +33,7 @@ import {
33
33
  recalledAccount,
34
34
  rememberAccount,
35
35
  rootOf2 as rootOf
36
- } from "./chunk-MSK7RNOM.js";
36
+ } from "./chunk-SYUIAMVA.js";
37
37
  import {
38
38
  AUTHORITY_KEY,
39
39
  CEILING_KEY,
@@ -45,34 +45,34 @@ import {
45
45
  levelFor,
46
46
  readKeysForCommand,
47
47
  skipFlagFor
48
- } from "./chunk-PCWAZVAD.js";
48
+ } from "./chunk-SW7YGW3T.js";
49
49
  import {
50
50
  providerErrorKey
51
- } from "./chunk-Z6OKVD3R.js";
51
+ } from "./chunk-2X344EUT.js";
52
52
  import {
53
53
  openStore
54
- } from "./chunk-ZAD7K4TI.js";
54
+ } from "./chunk-CHNNKHLL.js";
55
55
  import {
56
56
  chatReferenceOf,
57
57
  ensureAccount,
58
58
  foldName,
59
59
  isId,
60
60
  pickPerson
61
- } from "./chunk-ANYADN3S.js";
61
+ } from "./chunk-DI74RP6R.js";
62
62
  import {
63
63
  isCliFailure
64
- } from "./chunk-O7OP5NQO.js";
64
+ } from "./chunk-L3MKFI3Y.js";
65
65
  import {
66
66
  resolvePaths
67
- } from "./chunk-7MEVD5PI.js";
67
+ } from "./chunk-BRRHYXUP.js";
68
68
  import {
69
69
  CliError
70
- } from "./chunk-7KCBPAQS.js";
70
+ } from "./chunk-BI5P7JWM.js";
71
71
  import {
72
72
  __name
73
73
  } from "./chunk-ZVVMGPBJ.js";
74
74
 
75
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
75
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
76
76
  import { openSync } from "node:fs";
77
77
  import { createInterface } from "node:readline";
78
78
  import { ReadStream } from "node:tty";
@@ -127,7 +127,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
127
127
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
128
128
  }, "terminalAsker");
129
129
 
130
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/pace.js
130
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/sends/pace.js
131
131
  import { readFileSync, renameSync, writeFileSync } from "node:fs";
132
132
  import { join } from "node:path";
133
133
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -222,7 +222,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
222
222
  await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
223
223
  }, "waitForTurn");
224
224
 
225
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
225
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
226
226
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
227
227
  "help",
228
228
  "guide",
@@ -302,7 +302,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
302
302
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
303
303
  }, "refuseUnknownPermissionKeys");
304
304
 
305
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
305
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
306
306
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
307
307
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
308
308
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -399,7 +399,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
399
399
  });
400
400
  }, "flooded");
401
401
 
402
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
402
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
403
403
  var observed = /* @__PURE__ */ __name((messenger, events) => {
404
404
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
405
405
  const write = currentOperation();
@@ -498,7 +498,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
498
498
  counts[part] = (counts[part] ?? 0) + items.length;
499
499
  }, "byPart");
500
500
 
501
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
501
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
502
502
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
503
503
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
504
504
  let warned = false;
@@ -1074,7 +1074,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1074
1074
  }
1075
1075
  }, "keep");
1076
1076
 
1077
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1077
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1078
1078
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1079
1079
  let opened;
1080
1080
  return {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/normalize.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/normalize.js
8
8
  var NORMALIZER_VERSION = 1;
9
9
  var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
10
10
  var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
8
8
  var fields = /* @__PURE__ */ new WeakMap();
9
9
  var readsStdin = /* @__PURE__ */ __name((command, field) => {
10
10
  fields.set(command, field);
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/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) => {
@@ -4,12 +4,12 @@ import {
4
4
  errorCodes,
5
5
  isCliError,
6
6
  visibleControls
7
- } from "./chunk-7KCBPAQS.js";
7
+ } from "./chunk-BI5P7JWM.js";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-ZVVMGPBJ.js";
11
11
 
12
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
12
+ // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
13
13
  var EXIT_CODES = {
14
14
  validation_error: 2,
15
15
  configuration_error: 3,
@@ -565,6 +565,22 @@ function boolean(message$1) {
565
565
  }
566
566
  __name(boolean, "boolean");
567
567
  // @__NO_SIDE_EFFECTS__
568
+ function exactOptional(wrapped, default_) {
569
+ return _standardSchema({
570
+ kind: "schema",
571
+ type: "exact_optional",
572
+ reference: exactOptional,
573
+ expects: wrapped.expects,
574
+ async: false,
575
+ wrapped,
576
+ default: default_,
577
+ "~run"(dataset, config$1) {
578
+ return this.wrapped["~run"](dataset, config$1);
579
+ }
580
+ });
581
+ }
582
+ __name(exactOptional, "exactOptional");
583
+ // @__NO_SIDE_EFFECTS__
568
584
  function lazy(getter) {
569
585
  return _standardSchema({
570
586
  kind: "schema",
@@ -1357,7 +1373,7 @@ function unwrap(schema) {
1357
1373
  }
1358
1374
  __name(unwrap, "unwrap");
1359
1375
 
1360
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1376
+ // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1361
1377
  var EFFECT_LEVELS = ["none", "read", "write"];
1362
1378
  var effectsSchema = strictObject({
1363
1379
  remote: picklist(EFFECT_LEVELS),
@@ -1994,7 +2010,7 @@ function toStandardJsonSchema(schema) {
1994
2010
  }
1995
2011
  __name(toStandardJsonSchema, "toStandardJsonSchema");
1996
2012
 
1997
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
2013
+ // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
1998
2014
  var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
1999
2015
  var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
2000
2016
  var text = pipe(string(), regex(/\S/, "must not be empty"));
@@ -2036,7 +2052,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
2036
2052
  return String(value);
2037
2053
  }), "fill");
2038
2054
 
2039
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
2055
+ // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
2040
2056
  var MAX_NEXT_STEPS = 2;
2041
2057
  var COMPACT_FLAG = "--compact";
2042
2058
  var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
@@ -2163,7 +2179,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
2163
2179
  JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
2164
2180
  ].join("\n"), "jsonlOf");
2165
2181
 
2166
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2182
+ // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2167
2183
  var CRASH_CODE = "internal_error";
2168
2184
  var CRASH_REASON = "command.crashed";
2169
2185
  var errorObjectSchema = strictObject({
@@ -2256,7 +2272,7 @@ var BASE_REASONS = defineReasons([
2256
2272
  { reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
2257
2273
  ]);
2258
2274
 
2259
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2275
+ // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2260
2276
  var SAME_COMMAND = "*";
2261
2277
  var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
2262
2278
  var stepSchema = union([
@@ -2335,7 +2351,7 @@ var STEPS = defineSteps([
2335
2351
  }
2336
2352
  ]);
2337
2353
 
2338
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
2354
+ // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
2339
2355
  var recognise = /* @__PURE__ */ __name((failure) => {
2340
2356
  if (isCliError(failure))
2341
2357
  return failure;
@@ -2507,6 +2523,7 @@ export {
2507
2523
  forward,
2508
2524
  array,
2509
2525
  boolean,
2526
+ exactOptional,
2510
2527
  lazy,
2511
2528
  literal,
2512
2529
  looseObject,
@@ -5,23 +5,23 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-JUS4Y4BW.js";
8
+ } from "./chunk-JUYUWMTG.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-7KCBPAQS.js";
14
+ } from "./chunk-BI5P7JWM.js";
15
15
  import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
20
20
  import { readFileSync as readFileSync2 } from "node:fs";
21
21
  import { availableParallelism } from "node:os";
22
22
  import { basename, join as join2 } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
25
25
  import { createHash } from "node:crypto";
26
26
  import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
27
27
  import { join } from "node:path";
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
678
678
  return Unzip2;
679
679
  })();
680
680
 
681
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
681
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
682
682
  var ONNX_RUNTIME_VERSION = "1.30.0";
683
683
  var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
684
684
  name,
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
858
858
  return { ort, session: await ort.InferenceSession.create(bytes, options) };
859
859
  }, "openSession");
860
860
 
861
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
861
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
862
862
  var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
863
863
  var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
864
864
  var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -6,21 +6,21 @@ import {
6
6
  answerSchema,
7
7
  describeOptions,
8
8
  metaOf
9
- } from "./chunk-MSK7RNOM.js";
9
+ } from "./chunk-SYUIAMVA.js";
10
10
  import {
11
11
  keyForCommand
12
- } from "./chunk-PCWAZVAD.js";
12
+ } from "./chunk-SW7YGW3T.js";
13
13
  import {
14
14
  jsonSchemaOf
15
- } from "./chunk-ECZSYLSL.js";
15
+ } from "./chunk-UWF3SSRL.js";
16
16
  import {
17
17
  CliError
18
- } from "./chunk-7KCBPAQS.js";
18
+ } from "./chunk-BI5P7JWM.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
24
24
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
25
25
  var outputOf = /* @__PURE__ */ __name((command) => {
26
26
  const entity = answerEntitySchema(command);
@@ -13,26 +13,27 @@ import {
13
13
  kindsIn,
14
14
  providerNamed,
15
15
  providers
16
- } from "./chunk-MVMNZ3Q3.js";
16
+ } from "./chunk-OFMYFFEF.js";
17
17
  import {
18
18
  isCliFailure,
19
19
  isStoreDamage
20
- } from "./chunk-O7OP5NQO.js";
20
+ } from "./chunk-L3MKFI3Y.js";
21
21
  import {
22
22
  refuseOwnerStoreInTests
23
- } from "./chunk-FA3B2DHZ.js";
23
+ } from "./chunk-IPSLQX64.js";
24
24
  import {
25
25
  createRecordLog,
26
26
  resolvePaths,
27
27
  traceIdOf,
28
28
  writeSecurely
29
- } from "./chunk-7MEVD5PI.js";
29
+ } from "./chunk-BRRHYXUP.js";
30
30
  import {
31
31
  array,
32
32
  boolean,
33
+ description,
33
34
  integer,
34
35
  isoTime,
35
- isoTimestamp,
36
+ maxLength,
36
37
  minLength,
37
38
  minValue,
38
39
  nullable,
@@ -45,25 +46,25 @@ import {
45
46
  strictObject,
46
47
  string,
47
48
  unknown
48
- } from "./chunk-ECZSYLSL.js";
49
+ } from "./chunk-UWF3SSRL.js";
49
50
  import {
50
51
  CliError
51
- } from "./chunk-7KCBPAQS.js";
52
+ } from "./chunk-BI5P7JWM.js";
52
53
  import {
53
54
  __name
54
55
  } from "./chunk-ZVVMGPBJ.js";
55
56
 
56
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/scope.js
57
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/scope.js
57
58
  import { AsyncLocalStorage } from "node:async_hooks";
58
59
  import { randomBytes } from "node:crypto";
59
60
 
60
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/run.js
61
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/run.js
61
62
  import { randomUUID } from "node:crypto";
62
63
  import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
63
64
  import { userInfo } from "node:os";
64
65
  import { join, sep } from "node:path";
65
66
 
66
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
67
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
67
68
  var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
68
69
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
69
70
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -76,7 +77,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
76
77
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
77
78
  }), "snakeLogger");
78
79
 
79
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
80
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
80
81
  var diagnostic = {
81
82
  event: true,
82
83
  operation: true,
@@ -150,7 +151,7 @@ var LOG_ATTRIBUTES = [
150
151
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
151
152
  ].sort();
152
153
 
153
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/run.js
154
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/run.js
154
155
  var KEEP_RUNS_FOR_DAYS = 30;
155
156
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
156
157
  var KEEP_STORE_RUNS_FOR_DAYS = 3;
@@ -517,7 +518,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
517
518
  };
518
519
  }, "metadataOf");
519
520
 
520
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/scope.js
521
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/scope.js
521
522
  var scopes = new AsyncLocalStorage();
522
523
  var processScope;
523
524
  var ownProcesses = new AsyncLocalStorage();
@@ -568,7 +569,7 @@ var attempts = new AsyncLocalStorage();
568
569
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
569
570
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
570
571
 
571
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/model.js
572
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/tasks/model.js
572
573
  var TASK_KINDS = ["question", "request", "mention", "promise"];
573
574
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
574
575
  var CLOSED_STATES = ["done", "dismissed"];
@@ -583,7 +584,7 @@ function closeTask(task, state, by, at, reason) {
583
584
  }
584
585
  __name(closeTask, "closeTask");
585
586
 
586
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/priority.js
587
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/tasks/priority.js
587
588
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
588
589
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
589
590
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -612,7 +613,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
612
613
  }, "priorityOf");
613
614
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
614
615
 
615
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/service.js
616
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/tasks/service.js
616
617
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
617
618
  async function find(id2) {
618
619
  const task = await store.get(id2);
@@ -672,24 +673,24 @@ function median(values) {
672
673
  }
673
674
  __name(median, "median");
674
675
 
675
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/store.js
676
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/tasks/store.js
676
677
  function matches(task, filter) {
677
678
  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);
678
679
  }
679
680
  __name(matches, "matches");
680
681
 
681
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/source-review.js
682
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/source-review.js
682
683
  var SOURCE_REVIEW_KIND = "memory_source_review";
683
684
  var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
684
685
  var ERASED_TEXT = "[source erased]";
685
686
  var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
686
687
  var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
687
688
 
688
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/fields.js
689
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/entities/fields.js
689
690
  var text = string();
690
691
  var id = pipe(string(), minLength(1));
691
692
  var time = isoTime;
692
- var zonedTime = pipe(string(), isoTimestamp("an ISO 8601 time with a zone"));
693
+ var typedTime = pipe(string(), minLength(1), maxLength(64), description("an ISO 8601 date or time, in the computer's zone without one; or 30m, 2h, 7d ago"));
693
694
  var count = pipe(number(), integer(), minValue(0));
694
695
  var untrusted = optional(array(text));
695
696
  var providerMetadata = optional(record(string(), unknown()));
@@ -710,7 +711,7 @@ var author = strictObject({
710
711
  name: nullable(text)
711
712
  });
712
713
 
713
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
714
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
714
715
  var organization = strictObject({
715
716
  id,
716
717
  ref: reference,
@@ -740,7 +741,7 @@ var reminder = strictObject({
740
741
  receipt: nullable(text)
741
742
  });
742
743
 
743
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/marks.js
744
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/marks.js
744
745
  import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
745
746
  var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
746
747
  var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
@@ -861,7 +862,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
861
862
  return { previous, cleared };
862
863
  }, "recordDeepCheck");
863
864
 
864
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
865
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
865
866
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
866
867
  var MEMORY_KINDS = ["summary", "digest", "preference"];
867
868
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -869,7 +870,7 @@ var MEMORY_SCOPES = ["personal", "work"];
869
870
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
870
871
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
871
872
 
872
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
873
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
873
874
  var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
874
875
  var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
875
876
  const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
@@ -879,7 +880,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
879
880
  };
880
881
  }, "sourceOf");
881
882
 
882
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
883
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
883
884
  var LINK_KINDS = [
884
885
  "links-to",
885
886
  "blocked-by",
@@ -903,7 +904,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
903
904
  var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
904
905
  var COUNTERPART_ROLE = "counterpart";
905
906
 
906
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/query.js
907
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/search/query.js
907
908
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
908
909
  var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
909
910
  var fail = /* @__PURE__ */ __name((message) => {
@@ -926,7 +927,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
926
927
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
927
928
  }, "sourceOf");
928
929
 
929
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/account-list.js
930
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/search/account-list.js
930
931
  var ACCOUNT_GROUPS = "accountGroups";
931
932
  var ACCOUNT_GROUPS_SETTING = "account_groups";
932
933
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -1136,7 +1137,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
1136
1137
  return { accounts: [...chosen.values()], skipped };
1137
1138
  }, "fitting");
1138
1139
 
1139
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/categories.js
1140
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/categories.js
1140
1141
  var CATEGORIES = ["client", "supplier", "partner", "employer"];
1141
1142
 
1142
1143
  export {
@@ -1190,7 +1191,7 @@ export {
1190
1191
  text,
1191
1192
  id,
1192
1193
  time,
1193
- zonedTime,
1194
+ typedTime,
1194
1195
  count,
1195
1196
  untrusted,
1196
1197
  providerMetadata,