@wirecat/mail-cli 0.26.0 → 0.27.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 (99) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-6NXVQLUQ.js → all-profiles-5XWH7TBM.js} +7 -7
  4. package/dist/bundle/{anthropic-OLNFE2CL.js → anthropic-QEQGUEPW.js} +2 -2
  5. package/dist/bundle/{app-server-J76N6XIK.js → app-server-YWDU56NR.js} +48 -44
  6. package/dist/bundle/{bun-6PYDHXNR.js → bun-PWMM6L45.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-QD5PFHPS.js → bun-sqlite-S4QD5YUO.js} +3 -3
  8. package/dist/bundle/{chunk-VA4V73SL.js → chunk-255RGG5W.js} +5 -5
  9. package/dist/bundle/{chunk-5WROIMUV.js → chunk-2FZMIJW7.js} +4 -4
  10. package/dist/bundle/{chunk-AJ5K74X6.js → chunk-4VDWQKDI.js} +16 -16
  11. package/dist/bundle/{chunk-HI5XUETY.js → chunk-572NWJUN.js} +1 -1
  12. package/dist/bundle/{chunk-H2IJQH5X.js → chunk-5BPOEPYL.js} +4 -4
  13. package/dist/bundle/{chunk-DKIVYAXW.js → chunk-5DLPM5AV.js} +12 -12
  14. package/dist/bundle/{chunk-CZI45AQM.js → chunk-77J5ID2O.js} +2 -2
  15. package/dist/bundle/{chunk-2E2EV4HD.js → chunk-7BXOFLWJ.js} +80 -57
  16. package/dist/bundle/{chunk-QI6EXKSH.js → chunk-AIEMFRBU.js} +1 -1
  17. package/dist/bundle/{chunk-CFBIPM7T.js → chunk-AIZ225IA.js} +267 -251
  18. package/dist/bundle/{chunk-RXKIP2ML.js → chunk-APLVXHFG.js} +1 -1
  19. package/dist/bundle/{chunk-NBJU6MBU.js → chunk-BZCXAVGP.js} +7 -7
  20. package/dist/bundle/{chunk-XZ7CQ6NA.js → chunk-CKFVKHTB.js} +3 -3
  21. package/dist/bundle/{chunk-MIWSCTLG.js → chunk-CZRMT6XV.js} +2 -2
  22. package/dist/bundle/{chunk-NMFPK3MU.js → chunk-DQO2LX5I.js} +2 -2
  23. package/dist/bundle/{chunk-PY2IOVUN.js → chunk-DSUOYJUL.js} +3 -3
  24. package/dist/bundle/{chunk-QJGG6QYV.js → chunk-ELPH22W6.js} +7 -7
  25. package/dist/bundle/{chunk-BMGRDZM3.js → chunk-EXWZCI5G.js} +1 -1
  26. package/dist/bundle/{chunk-M4Y33SJJ.js → chunk-FOTP6QLO.js} +2 -2
  27. package/dist/bundle/{chunk-T7SHPALQ.js → chunk-FVVSBQGK.js} +24 -22
  28. package/dist/bundle/{chunk-76VSHS5Y.js → chunk-HBK6MRAL.js} +7 -7
  29. package/dist/bundle/{chunk-YM345236.js → chunk-IDOHT4Z3.js} +19 -19
  30. package/dist/bundle/{chunk-A3EBRXOQ.js → chunk-KHBZ4OEP.js} +1 -1
  31. package/dist/bundle/{chunk-LTZGLOKE.js → chunk-MY4LVD64.js} +1 -1
  32. package/dist/bundle/{chunk-M7RHPCXM.js → chunk-NZG6IRDW.js} +2 -2
  33. package/dist/bundle/{chunk-V32L23NN.js → chunk-OC3U2JAK.js} +3 -3
  34. package/dist/bundle/{chunk-XELZCDWE.js → chunk-OCUKQRJ3.js} +158 -148
  35. package/dist/bundle/{chunk-VWRT57QU.js → chunk-OEPNLKHI.js} +4 -4
  36. package/dist/bundle/{chunk-UE2NKPA4.js → chunk-OPOEAGVB.js} +6 -6
  37. package/dist/bundle/{chunk-JNKXU7AE.js → chunk-PA7LDYVX.js} +52 -52
  38. package/dist/bundle/{chunk-EDWJ7IYH.js → chunk-PJ3FKBXG.js} +1 -1
  39. package/dist/bundle/{chunk-PJ6YMNJG.js → chunk-PRSXMM4I.js} +447 -407
  40. package/dist/bundle/{chunk-OGE7YG4J.js → chunk-QQTSPQ2D.js} +1 -1
  41. package/dist/bundle/{chunk-52M5BAEG.js → chunk-QVJMFZFW.js} +1 -1
  42. package/dist/bundle/{chunk-YXGHC3NP.js → chunk-R3A65A4D.js} +10 -10
  43. package/dist/bundle/{chunk-BDYQQ6G2.js → chunk-R5FTCNLJ.js} +1 -1
  44. package/dist/bundle/{chunk-A6XETABW.js → chunk-RGQFVVBB.js} +17 -17
  45. package/dist/bundle/{chunk-ZZSZN4CJ.js → chunk-ROLHKFKB.js} +13 -12
  46. package/dist/bundle/{chunk-KXASCNOV.js → chunk-RRLAFEPQ.js} +2 -2
  47. package/dist/bundle/{chunk-LMTQMYUF.js → chunk-S2QRW647.js} +33 -29
  48. package/dist/bundle/{chunk-GIG7F6UW.js → chunk-S7H7TAC3.js} +5 -5
  49. package/dist/bundle/{chunk-VJPLIXV4.js → chunk-SXKKOOA7.js} +1 -1
  50. package/dist/bundle/{chunk-76EKZSDK.js → chunk-T7VERZP5.js} +23 -23
  51. package/dist/bundle/{chunk-66C66FNK.js → chunk-TI2OANJZ.js} +1 -1
  52. package/dist/bundle/{chunk-3J2UJFBJ.js → chunk-TKOZCIHU.js} +15 -15
  53. package/dist/bundle/{chunk-JVJG54QK.js → chunk-UBH4UPZ7.js} +1 -1
  54. package/dist/bundle/{chunk-UNJUCK5R.js → chunk-UEJVXUIO.js} +12 -12
  55. package/dist/bundle/{chunk-V4PFD25P.js → chunk-UIKVP23D.js} +1 -1
  56. package/dist/bundle/{chunk-3XTKQ5EM.js → chunk-VYZ37D2Q.js} +1 -1
  57. package/dist/bundle/{chunk-M2LATBP2.js → chunk-WMXUFUV3.js} +2 -2
  58. package/dist/bundle/{chunk-4Q6KAV4O.js → chunk-WRHAX53U.js} +6 -6
  59. package/dist/bundle/{chunk-3RY4HC4V.js → chunk-XBL46B4V.js} +1 -1
  60. package/dist/bundle/{chunk-XUJEZ5YF.js → chunk-XCYDTIVK.js} +5 -5
  61. package/dist/bundle/{chunk-HNSBXC6U.js → chunk-XM2THVMR.js} +2 -2
  62. package/dist/bundle/{chunk-M7ECSGSN.js → chunk-ZSWSFKNE.js} +4 -6
  63. package/dist/bundle/{chunk-2TCS4PLJ.js → chunk-ZVQDOKDY.js} +1 -1
  64. package/dist/bundle/{command-contract-NNEXHZW5.js → command-contract-MIJONVVG.js} +15 -15
  65. package/dist/bundle/{command-server-entry-AIBWNC5D.js → command-server-entry-VHUFW3OZ.js} +21 -21
  66. package/dist/bundle/{decode-H7KLRD33.js → decode-TIMTSVXM.js} +2 -2
  67. package/dist/bundle/{dist-YYSP43J3.js → dist-IP25JFTN.js} +11 -11
  68. package/dist/bundle/{echarts-VSD3LS6D.js → echarts-SDZA2SWG.js} +2 -2
  69. package/dist/bundle/{embed-UENZ5HN3.js → embed-4W527BCE.js} +3 -3
  70. package/dist/bundle/{embedder-MJMGOJT7.js → embedder-LQE2SBJ3.js} +6 -6
  71. package/dist/bundle/{first-run-HYALREFN.js → first-run-KZTKMEI4.js} +6 -6
  72. package/dist/bundle/first-screen-4LG5SJ6D.js +34 -0
  73. package/dist/bundle/{instructions-WOHRYOLN.js → instructions-7T6JJIFS.js} +1 -1
  74. package/dist/bundle/mail.js +2 -2
  75. package/dist/bundle/{node-4BRWJJCE.js → node-BZDMUFTW.js} +2 -2
  76. package/dist/bundle/{node-sqlite-D3QESEYQ.js → node-sqlite-PVSKI4OS.js} +4 -4
  77. package/dist/bundle/{oauth-T7TTOBIZ.js → oauth-TGYGAVGF.js} +4 -4
  78. package/dist/bundle/{open-6P6627QB.js → open-5YED4Q4C.js} +2 -2
  79. package/dist/bundle/{openai-FIMCJGAP.js → openai-XVJTML22.js} +12 -12
  80. package/dist/bundle/{process-35IH3WHC.js → process-756VBE7E.js} +1 -1
  81. package/dist/bundle/{program-IEXB72IK.js → program-TDHDXAQA.js} +387 -374
  82. package/dist/bundle/{prompt-HFBCPMVL.js → prompt-HPZANASN.js} +2 -2
  83. package/dist/bundle/{recognize-CNL4HJ7Z.js → recognize-PP5XQQHH.js} +1 -1
  84. package/dist/bundle/{remote-AYGZI7HT.js → remote-C2LU2WYG.js} +6 -6
  85. package/dist/bundle/{rerank-5C2OZZXD.js → rerank-WRHNOM4Z.js} +4 -4
  86. package/dist/bundle/{serve-S6OYBDIB.js → serve-RE3IV2QB.js} +6 -6
  87. package/dist/bundle/server-43V7HNFY.js +68 -0
  88. package/dist/bundle/{server-VKO6E6PI.js → server-52BJ7UTO.js} +37 -35
  89. package/dist/bundle/{sqlite-runtime-DBTGNTVE.js → sqlite-runtime-CRRL3MYX.js} +3 -3
  90. package/dist/bundle/{state-ZQG6AL2Y.js → state-YGJRPMWD.js} +3 -3
  91. package/dist/bundle/{store-B7BXWILZ.js → store-6AZ5LVJL.js} +15 -15
  92. package/dist/bundle/{store-LY4QKTOO.js → store-ESQE4VHP.js} +13 -13
  93. package/dist/bundle/store-maintenance-command-AKQMKUYO.js +58 -0
  94. package/dist/version.d.ts +1 -1
  95. package/dist/version.js +1 -1
  96. package/package.json +2 -2
  97. package/dist/bundle/first-screen-GPF5RHBX.js +0 -34
  98. package/dist/bundle/server-WXSHVDME.js +0 -68
  99. package/dist/bundle/store-maintenance-command-UR6NQDVV.js +0 -58
@@ -13,14 +13,14 @@ import {
13
13
  kindsIn,
14
14
  providerNamed,
15
15
  providers
16
- } from "./chunk-2E2EV4HD.js";
16
+ } from "./chunk-7BXOFLWJ.js";
17
17
  import {
18
18
  isCliFailure,
19
19
  isStoreDamage
20
- } from "./chunk-VJPLIXV4.js";
20
+ } from "./chunk-SXKKOOA7.js";
21
21
  import {
22
22
  refuseOwnerStoreInTests
23
- } from "./chunk-3XTKQ5EM.js";
23
+ } from "./chunk-VYZ37D2Q.js";
24
24
  import {
25
25
  createRecordLog,
26
26
  resolvePaths,
@@ -53,17 +53,17 @@ import {
53
53
  __name
54
54
  } from "./chunk-ZVVMGPBJ.js";
55
55
 
56
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/scope.js
56
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/scope.js
57
57
  import { AsyncLocalStorage } from "node:async_hooks";
58
58
  import { randomBytes } from "node:crypto";
59
59
 
60
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/run.js
60
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/run.js
61
61
  import { randomUUID } from "node:crypto";
62
62
  import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
63
63
  import { userInfo } from "node:os";
64
64
  import { join, sep } from "node:path";
65
65
 
66
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
66
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
67
67
  var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
68
68
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
69
69
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -76,7 +76,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
76
76
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
77
77
  }), "snakeLogger");
78
78
 
79
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
79
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
80
80
  var diagnostic = {
81
81
  event: true,
82
82
  operation: true,
@@ -150,7 +150,7 @@ var LOG_ATTRIBUTES = [
150
150
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
151
151
  ].sort();
152
152
 
153
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/run.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/run.js
154
154
  var KEEP_RUNS_FOR_DAYS = 30;
155
155
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
156
156
  var KEEP_STORE_RUNS_FOR_DAYS = 3;
@@ -517,7 +517,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
517
517
  };
518
518
  }, "metadataOf");
519
519
 
520
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/scope.js
520
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/scope.js
521
521
  var scopes = new AsyncLocalStorage();
522
522
  var processScope;
523
523
  var ownProcesses = new AsyncLocalStorage();
@@ -568,7 +568,7 @@ var attempts = new AsyncLocalStorage();
568
568
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
569
569
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
570
570
 
571
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/tasks/model.js
571
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/model.js
572
572
  var TASK_KINDS = ["question", "request", "mention", "promise"];
573
573
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
574
574
  var CLOSED_STATES = ["done", "dismissed"];
@@ -583,7 +583,7 @@ function closeTask(task, state, by, at, reason) {
583
583
  }
584
584
  __name(closeTask, "closeTask");
585
585
 
586
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/tasks/priority.js
586
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/priority.js
587
587
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
588
588
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
589
589
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -612,7 +612,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
612
612
  }, "priorityOf");
613
613
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
614
614
 
615
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/tasks/service.js
615
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/service.js
616
616
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
617
617
  async function find(id2) {
618
618
  const task = await store.get(id2);
@@ -672,20 +672,20 @@ function median(values) {
672
672
  }
673
673
  __name(median, "median");
674
674
 
675
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/tasks/store.js
675
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/store.js
676
676
  function matches(task, filter) {
677
677
  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
678
  }
679
679
  __name(matches, "matches");
680
680
 
681
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/source-review.js
681
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/source-review.js
682
682
  var SOURCE_REVIEW_KIND = "memory_source_review";
683
683
  var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
684
684
  var ERASED_TEXT = "[source erased]";
685
685
  var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
686
686
  var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
687
687
 
688
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/fields.js
688
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/fields.js
689
689
  var text = string();
690
690
  var id = pipe(string(), minLength(1));
691
691
  var time = isoTime;
@@ -710,7 +710,7 @@ var author = strictObject({
710
710
  name: nullable(text)
711
711
  });
712
712
 
713
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
713
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
714
714
  var organization = strictObject({
715
715
  id,
716
716
  ref: reference,
@@ -740,7 +740,7 @@ var reminder = strictObject({
740
740
  receipt: nullable(text)
741
741
  });
742
742
 
743
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
743
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
744
744
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
745
745
  var MEMORY_KINDS = ["summary", "digest", "preference"];
746
746
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -748,7 +748,7 @@ var MEMORY_SCOPES = ["personal", "work"];
748
748
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
749
749
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
750
750
 
751
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/marks.js
751
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/marks.js
752
752
  import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
753
753
  var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
754
754
  var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
@@ -869,7 +869,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
869
869
  return { previous, cleared };
870
870
  }, "recordDeepCheck");
871
871
 
872
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/search/query.js
872
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/query.js
873
873
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
874
874
  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");
875
875
  var fail = /* @__PURE__ */ __name((message) => {
@@ -892,7 +892,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
892
892
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
893
893
  }, "sourceOf");
894
894
 
895
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/search/account-list.js
895
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/account-list.js
896
896
  var ACCOUNT_GROUPS = "accountGroups";
897
897
  var ACCOUNT_GROUPS_SETTING = "account_groups";
898
898
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -1102,7 +1102,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
1102
1102
  return { accounts: [...chosen.values()], skipped };
1103
1103
  }, "fitting");
1104
1104
 
1105
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
1105
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
1106
1106
  var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
1107
1107
  var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
1108
1108
  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;
@@ -1112,7 +1112,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
1112
1112
  };
1113
1113
  }, "sourceOf");
1114
1114
 
1115
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
1115
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
1116
1116
  var LINK_KINDS = [
1117
1117
  "links-to",
1118
1118
  "blocked-by",
@@ -1136,7 +1136,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
1136
1136
  var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
1137
1137
  var COUNTERPART_ROLE = "counterpart";
1138
1138
 
1139
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/categories.js
1139
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/categories.js
1140
1140
  var CATEGORIES = ["client", "supplier", "partner", "employer"];
1141
1141
 
1142
1142
  export {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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;
@@ -16,10 +16,10 @@ import {
16
16
  servicesFor,
17
17
  throughWrapper,
18
18
  withFileLockAsync
19
- } from "./chunk-CFBIPM7T.js";
19
+ } from "./chunk-AIZ225IA.js";
20
20
  import {
21
21
  servingProfiles
22
- } from "./chunk-HNSBXC6U.js";
22
+ } from "./chunk-XM2THVMR.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-XELZCDWE.js";
36
+ } from "./chunk-OCUKQRJ3.js";
37
37
  import {
38
38
  AUTHORITY_KEY,
39
39
  CEILING_KEY,
@@ -44,23 +44,23 @@ import {
44
44
  levelFor,
45
45
  readKeysForCommand,
46
46
  skipFlagFor
47
- } from "./chunk-5WROIMUV.js";
47
+ } from "./chunk-2FZMIJW7.js";
48
48
  import {
49
49
  providerErrorKey
50
- } from "./chunk-76VSHS5Y.js";
50
+ } from "./chunk-HBK6MRAL.js";
51
51
  import {
52
52
  openStore
53
- } from "./chunk-PJ6YMNJG.js";
53
+ } from "./chunk-PRSXMM4I.js";
54
54
  import {
55
55
  chatReferenceOf,
56
56
  ensureAccount,
57
57
  foldName,
58
58
  isId,
59
59
  pickPerson
60
- } from "./chunk-A6XETABW.js";
60
+ } from "./chunk-RGQFVVBB.js";
61
61
  import {
62
62
  isCliFailure
63
- } from "./chunk-VJPLIXV4.js";
63
+ } from "./chunk-SXKKOOA7.js";
64
64
  import {
65
65
  resolvePaths
66
66
  } from "./chunk-7MEVD5PI.js";
@@ -71,7 +71,7 @@ import {
71
71
  __name
72
72
  } from "./chunk-ZVVMGPBJ.js";
73
73
 
74
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
74
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
75
75
  import { openSync } from "node:fs";
76
76
  import { createInterface } from "node:readline";
77
77
  import { ReadStream } from "node:tty";
@@ -126,7 +126,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
126
126
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
127
127
  }, "terminalAsker");
128
128
 
129
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/pace.js
129
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/pace.js
130
130
  import { readFileSync, renameSync, writeFileSync } from "node:fs";
131
131
  import { join } from "node:path";
132
132
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -221,7 +221,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
221
221
  await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
222
222
  }, "waitForTurn");
223
223
 
224
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
224
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
225
225
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
226
226
  "help",
227
227
  "guide",
@@ -301,7 +301,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
301
301
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
302
302
  }, "refuseUnknownPermissionKeys");
303
303
 
304
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
304
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
305
305
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
306
306
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
307
307
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -398,7 +398,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
398
398
  });
399
399
  }, "flooded");
400
400
 
401
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
401
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
402
402
  var observed = /* @__PURE__ */ __name((messenger, events) => {
403
403
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
404
404
  const write = currentOperation();
@@ -497,7 +497,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
497
497
  counts[part] = (counts[part] ?? 0) + items.length;
498
498
  }, "byPart");
499
499
 
500
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
500
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
501
501
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
502
502
  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" }) => {
503
503
  let warned = false;
@@ -1073,7 +1073,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1073
1073
  }
1074
1074
  }, "keep");
1075
1075
 
1076
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1076
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1077
1077
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1078
1078
  let opened;
1079
1079
  return {
@@ -57,7 +57,7 @@ var ENTRIES = [
57
57
  var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
58
58
 
59
59
  // dist/version.js
60
- var VERSION = "0.26.0";
60
+ var VERSION = "0.27.0";
61
61
 
62
62
  // dist/identity.js
63
63
  var PACKAGE = "@wirecat/mail-cli";
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
11
11
  import { constants } from "node:fs";
12
12
  import { lstat, open } from "node:fs/promises";
13
13
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
73
73
  }
74
74
  }, "syncDirectory");
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
77
77
  import { randomUUID } from "node:crypto";
78
78
  import { constants as constants2 } from "node:fs";
79
79
  import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
111
111
  }
112
112
  }, "writeFileAtomic");
113
113
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
115
115
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
116
116
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
117
117
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
140
140
  }
141
141
  }, "readBoundedUtf8File");
142
142
 
143
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/lock.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/lock.js
144
144
  import { mkdir as mkdir2 } from "node:fs/promises";
145
145
  import { basename as basename2, dirname as dirname2 } from "node:path";
146
146
 
147
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
148
148
  import { randomUUID as randomUUID2 } from "node:crypto";
149
149
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
150
150
  import { hostname as hostname2 } from "node:os";
151
151
  import { join as join3 } from "node:path";
152
152
 
153
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
154
154
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
155
155
  import { join as join2 } from "node:path";
156
156
 
157
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
157
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
158
158
  import { hostname } from "node:os";
159
159
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
160
160
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
199
199
  }
200
200
  }, "leaseOwnerStatus");
201
201
 
202
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
202
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
203
203
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
204
204
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
205
205
  options.signal?.throwIfAborted();
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
258
258
  return { inspect, recover };
259
259
  }, "leaseInspection");
260
260
 
261
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
261
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
262
262
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
263
263
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
264
264
  let releasing;
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
283
283
  };
284
284
  }, "ownedNativeLease");
285
285
 
286
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
287
287
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
288
288
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  const { markerDirectory, legacyMarker } = layout;
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
354
354
  };
355
355
  }, "nativeWriterLeaseStore");
356
356
 
357
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/lock.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/lock.js
358
358
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
359
359
  const folder = dirname2(path);
360
360
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
369
369
  });
370
370
  }, "acquireLock");
371
371
 
372
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/files/safe-name.js
372
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/safe-name.js
373
373
  import { basename as basename3 } from "node:path";
374
374
  var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
375
375
  let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/path.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/path.js
11
11
  import { realpathSync } from "node:fs";
12
12
  import { userInfo } from "node:os";
13
13
  import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  QUERY_REASONS
5
- } from "./chunk-2E2EV4HD.js";
5
+ } from "./chunk-7BXOFLWJ.js";
6
6
  import {
7
7
  defineReasons
8
8
  } from "./chunk-ECZSYLSL.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/errors/reasons.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/errors/reasons.js
14
14
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
15
15
  var QUERY = [
16
16
  ["query.aborted", "the search was stopped before it finished"],
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  stdinFieldOf
5
- } from "./chunk-EDWJ7IYH.js";
5
+ } from "./chunk-PJ3FKBXG.js";
6
6
  import {
7
7
  commandPathOf
8
- } from "./chunk-PY2IOVUN.js";
8
+ } from "./chunk-DSUOYJUL.js";
9
9
  import {
10
10
  commandServerRequest,
11
11
  metaOf
12
- } from "./chunk-XELZCDWE.js";
12
+ } from "./chunk-OCUKQRJ3.js";
13
13
  import {
14
14
  errorObjectOf,
15
15
  renderError
@@ -21,14 +21,14 @@ import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/command-server.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/command-server.js
25
25
  import { createInterface } from "node:readline";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
28
28
  var COMMAND_SERVER_ARGV = ["commands", "--serve"];
29
29
  var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/command-server.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/command-server.js
32
32
  var COMMAND_SERVER_PROTOCOL = 1;
33
33
  var COMMAND_SERVER_IDLE_MS = 10 * 6e4;
34
34
  var COMMAND_SERVER_CONCURRENT = 8;
@@ -132,7 +132,7 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
132
132
  }, "parseRateLimitReset");
133
133
  var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
134
134
 
135
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/models/endpoint.js
135
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/endpoint.js
136
136
  var endpoint = /* @__PURE__ */ __name((value) => {
137
137
  try {
138
138
  const url = new URL(value);
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-3XTKQ5EM.js";
5
+ } from "./chunk-VYZ37D2Q.js";
6
6
  import {
7
7
  resolvePaths
8
8
  } from "./chunk-7MEVD5PI.js";
@@ -14,11 +14,11 @@ import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/shared-config.js
18
18
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
19
19
  import { dirname, join, resolve } from "node:path";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
22
22
  var DEFAULT_TASK_CATEGORIES = [
23
23
  {
24
24
  name: "taxes",
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
773
773
  }
774
774
  }, "storedTaskCategories");
775
775
 
776
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
776
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/shared-config.js
777
777
  var SECTION = "task_categories";
778
778
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
779
779
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -792,7 +792,7 @@ var readJson = /* @__PURE__ */ __name((path) => {
792
792
  }
793
793
  let parsed;
794
794
  try {
795
- parsed = JSON.parse(text);
795
+ parsed = JSON.parse(text.replace(/^\uFEFF/u, ""));
796
796
  } catch (error) {
797
797
  throw new CliError("configuration_error", `${path} is not valid JSON: ${error.message}`);
798
798
  }
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-V4PFD25P.js";
5
+ } from "./chunk-UIKVP23D.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSharedSection,
5
5
  writeSharedSection
6
- } from "./chunk-XUJEZ5YF.js";
6
+ } from "./chunk-XCYDTIVK.js";
7
7
  import {
8
8
  CliError
9
9
  } from "./chunk-7KCBPAQS.js";
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
15
15
  var PERMISSION_ANSWERS = ["readonly", "allow"];
16
16
  var QUESTIONS = ["languages", "tools", "permissions"];
17
17
  var SECTION = "setup";
@@ -36,13 +36,11 @@ var writeSetupAnswers = /* @__PURE__ */ __name((path, answers) => {
36
36
  writeSharedSection(path, SECTION, { ...kept, ...answers });
37
37
  }, "writeSetupAnswers");
38
38
  var permissionCeiling = /* @__PURE__ */ __name((path) => {
39
- let answer;
40
39
  try {
41
- answer = readSetupAnswers(path).permissions;
40
+ return readSetupAnswers(path).permissions === "readonly" ? "readonly" : void 0;
42
41
  } catch {
43
- return "readonly";
42
+ return void 0;
44
43
  }
45
- return answer === "allow" ? void 0 : answer;
46
44
  }, "permissionCeiling");
47
45
 
48
46
  export {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {