@wirecat/mail-cli 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +10 -7
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-52LCOKSL.js → all-profiles-GR5JXYEQ.js} +5 -5
  5. package/dist/bundle/{anthropic-HPW7PLTT.js → anthropic-REBXE65F.js} +3 -3
  6. package/dist/bundle/{app-server-Y7XSPVHJ.js → app-server-QJ7ICQXZ.js} +39 -39
  7. package/dist/bundle/{bun-B7YXDIMT.js → bun-WAX4QHW5.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-TTTKY7H2.js → bun-sqlite-5S7TQ4SG.js} +2 -2
  9. package/dist/bundle/{chunk-FGNTGLWA.js → chunk-2FXVBCA3.js} +3 -3
  10. package/dist/bundle/{chunk-K6SIGXRS.js → chunk-2MRECWJZ.js} +5 -5
  11. package/dist/bundle/{chunk-X7TFD5SX.js → chunk-2U4IANVV.js} +1 -1
  12. package/dist/bundle/{chunk-KALDYMKJ.js → chunk-2YQNBIDQ.js} +3 -3
  13. package/dist/bundle/{chunk-XD3TL4BK.js → chunk-4BMNP2FT.js} +1 -1
  14. package/dist/bundle/{chunk-732GKOLO.js → chunk-4XJ4AM3K.js} +10 -10
  15. package/dist/bundle/{chunk-RZCFEASJ.js → chunk-5CXAH4Y6.js} +195 -195
  16. package/dist/bundle/{chunk-C2THROZU.js → chunk-5FK6RD4M.js} +42 -42
  17. package/dist/bundle/{chunk-RORC2FW7.js → chunk-5INWLYBD.js} +2 -2
  18. package/dist/bundle/{chunk-5LY3OS7U.js → chunk-6EO7GVYJ.js} +1 -1
  19. package/dist/bundle/{chunk-JDOOPGKW.js → chunk-6GE3EADU.js} +2 -2
  20. package/dist/bundle/{chunk-4UOEUEZZ.js → chunk-6TY3DGCC.js} +4 -4
  21. package/dist/bundle/{chunk-Y2HGQK7A.js → chunk-7A7BHABA.js} +1 -1
  22. package/dist/bundle/{chunk-TLZWUADZ.js → chunk-7F3NDIYL.js} +5 -5
  23. package/dist/bundle/{chunk-V7NZTJKU.js → chunk-7JCRQX56.js} +7 -7
  24. package/dist/bundle/{chunk-GX2M3AOO.js → chunk-7XNPSIWD.js} +2 -2
  25. package/dist/bundle/{chunk-MXUUQXMA.js → chunk-AFCGOZR7.js} +5 -5
  26. package/dist/bundle/{chunk-DKKCQMDM.js → chunk-B5WSIWY5.js} +16 -16
  27. package/dist/bundle/{chunk-ZIJJNH47.js → chunk-BFJV4FWJ.js} +1 -1
  28. package/dist/bundle/{chunk-JHNLU42I.js → chunk-BLS5YG77.js} +1 -1
  29. package/dist/bundle/{chunk-4PXWXI2U.js → chunk-CEAANMJ2.js} +2 -2
  30. package/dist/bundle/{chunk-IXHLMSHV.js → chunk-DXDQOZ2P.js} +2 -2
  31. package/dist/bundle/{chunk-TNQOKGJS.js → chunk-EB3R2PV3.js} +21 -21
  32. package/dist/bundle/{chunk-XQVGIW4R.js → chunk-EL554DV2.js} +2 -2
  33. package/dist/bundle/{chunk-QTWIZKUI.js → chunk-ESNNQA7D.js} +26 -26
  34. package/dist/bundle/{chunk-SRMJ6LLC.js → chunk-F3NYA4KN.js} +5 -5
  35. package/dist/bundle/{chunk-LCA5KC34.js → chunk-FSUNGHRI.js} +43 -43
  36. package/dist/bundle/{chunk-VTJDEWMB.js → chunk-HCMUGUAG.js} +2 -2
  37. package/dist/bundle/{chunk-FUXSKWWJ.js → chunk-IBYTYIYO.js} +46 -46
  38. package/dist/bundle/{chunk-KXVZ373I.js → chunk-IWDOGGMY.js} +299 -266
  39. package/dist/bundle/{chunk-3RDTVH3H.js → chunk-JJBQPA7D.js} +3 -3
  40. package/dist/bundle/{chunk-O2F54PUO.js → chunk-KIDF77MA.js} +1 -1
  41. package/dist/bundle/{chunk-C6E3VFUX.js → chunk-LFRHIXCF.js} +2 -2
  42. package/dist/bundle/{chunk-N5WIUNOT.js → chunk-LNS27BTB.js} +1 -1
  43. package/dist/bundle/{chunk-JXYFIUVX.js → chunk-LOA4X6JW.js} +4 -4
  44. package/dist/bundle/{chunk-PYIJCWCH.js → chunk-M6BDHZON.js} +11 -11
  45. package/dist/bundle/{chunk-5SSFYIFF.js → chunk-MMDCL42A.js} +5 -4
  46. package/dist/bundle/{chunk-HS25KDT3.js → chunk-MQUJEQTU.js} +1 -1
  47. package/dist/bundle/{chunk-TL7PE6JU.js → chunk-PJCTWPJB.js} +6 -6
  48. package/dist/bundle/{chunk-I2ARI6FI.js → chunk-QXOSGGKS.js} +1 -1
  49. package/dist/bundle/{chunk-YVIX7FHL.js → chunk-S677WGOQ.js} +5 -5
  50. package/dist/bundle/{chunk-FX77WAQL.js → chunk-SQ7KOBRA.js} +6 -6
  51. package/dist/bundle/{chunk-PL6UPJIL.js → chunk-SWJAG5IE.js} +1 -1
  52. package/dist/bundle/{chunk-MHNEMDH3.js → chunk-VDAIJM5L.js} +13 -13
  53. package/dist/bundle/{chunk-H2JVXO5V.js → chunk-VXAZZGXE.js} +21 -21
  54. package/dist/bundle/{chunk-LJDOPCPW.js → chunk-WNCCYHRV.js} +91 -91
  55. package/dist/bundle/{chunk-RMYYKBFW.js → chunk-WNI5BZFB.js} +7 -7
  56. package/dist/bundle/{chunk-37MSU5O6.js → chunk-YD5WV757.js} +2 -2
  57. package/dist/bundle/{chunk-O3DRPTWF.js → chunk-YKPBC3NL.js} +1 -1
  58. package/dist/bundle/{chunk-RVIMMCHF.js → chunk-YRGBZZUW.js} +9 -9
  59. package/dist/bundle/{command-contract-3HA7CZEQ.js → command-contract-GPUED3GT.js} +13 -13
  60. package/dist/bundle/{decode-VLI3MAXE.js → decode-D7BDVIVB.js} +2 -2
  61. package/dist/bundle/{dist-C7LAAMNF.js → dist-KJOAJ6NF.js} +14 -14
  62. package/dist/bundle/{echarts-POTU3SHN.js → echarts-IVRX7XHP.js} +2 -2
  63. package/dist/bundle/{embed-J2DEEEUF.js → embed-X527RBTG.js} +3 -3
  64. package/dist/bundle/{embedder-5N56V7YJ.js → embedder-F4PSJS6S.js} +6 -6
  65. package/dist/bundle/{first-run-XILZE4PI.js → first-run-M5CIX6NA.js} +5 -5
  66. package/dist/bundle/{first-screen-43VLEDWZ.js → first-screen-M7MT776O.js} +14 -14
  67. package/dist/bundle/{instructions-B7AUZXPL.js → instructions-UX36BT5F.js} +1 -1
  68. package/dist/bundle/mail.js +2 -2
  69. package/dist/bundle/{node-SZAO6HTA.js → node-OXT7WE2T.js} +2 -2
  70. package/dist/bundle/{node-sqlite-O34FFLRV.js → node-sqlite-X2PSEHA4.js} +2 -2
  71. package/dist/bundle/{oauth-YYTLIPJT.js → oauth-MYK4BSYN.js} +4 -4
  72. package/dist/bundle/{open-SWJGI6H4.js → open-GONIP2DH.js} +1 -1
  73. package/dist/bundle/{openai-GYXWCQOV.js → openai-YJFNUOQT.js} +10 -10
  74. package/dist/bundle/{process-GLVWCUMK.js → process-7IEUUSRK.js} +1 -1
  75. package/dist/bundle/{program-HW73TGIF.js → program-Q73TTG3E.js} +927 -610
  76. package/dist/bundle/{prompt-OZLHHGCD.js → prompt-SKQ72KN7.js} +2 -2
  77. package/dist/bundle/{recognize-RDQSGHC5.js → recognize-GC7CU2DB.js} +1 -1
  78. package/dist/bundle/{remote-BKU5P3GK.js → remote-UEXFZP2I.js} +4 -4
  79. package/dist/bundle/{rerank-EQIXYHKB.js → rerank-2U2NDEZP.js} +4 -4
  80. package/dist/bundle/{serve-S6K5HKWG.js → serve-OOGKFEWL.js} +6 -6
  81. package/dist/bundle/server-4JMHDHZ7.js +63 -0
  82. package/dist/bundle/{server-4VRVHPQC.js → server-FZ3LFQTF.js} +31 -31
  83. package/dist/bundle/{sqlite-runtime-OOE455YM.js → sqlite-runtime-GIQSW6LJ.js} +2 -2
  84. package/dist/bundle/{state-OLPOJ2TY.js → state-EMFXPQVZ.js} +3 -3
  85. package/dist/bundle/{store-WFV26CWY.js → store-BDU4UPNK.js} +11 -11
  86. package/dist/bundle/{store-6AVCPLH4.js → store-LDI62AUG.js} +11 -9
  87. package/dist/bundle/store-maintenance-command-OFRPORN2.js +52 -0
  88. package/dist/commands/read.d.ts +3 -0
  89. package/dist/commands/read.d.ts.map +1 -0
  90. package/dist/commands/read.js +33 -0
  91. package/dist/commands/read.js.map +1 -0
  92. package/dist/identity.js +1 -1
  93. package/dist/identity.js.map +1 -1
  94. package/dist/program.d.ts.map +1 -1
  95. package/dist/program.js +4 -2
  96. package/dist/program.js.map +1 -1
  97. package/dist/version.d.ts +1 -1
  98. package/dist/version.js +1 -1
  99. package/package.json +3 -3
  100. package/skills/mail-cli/SKILL.md +6 -2
  101. package/dist/bundle/server-WK6DRJX2.js +0 -63
  102. package/dist/bundle/store-maintenance-command-S6235I3W.js +0 -52
@@ -4,7 +4,7 @@ import {
4
4
  organization,
5
5
  project,
6
6
  reminder
7
- } from "./chunk-FGNTGLWA.js";
7
+ } from "./chunk-2FXVBCA3.js";
8
8
  import {
9
9
  MIGRATIONS,
10
10
  SnapshotBudget,
@@ -28,19 +28,19 @@ import {
28
28
  tagMemberIds,
29
29
  thingOf,
30
30
  write
31
- } from "./chunk-KXVZ373I.js";
31
+ } from "./chunk-IWDOGGMY.js";
32
32
  import {
33
33
  filesAccountSql,
34
34
  folderProviderOf,
35
35
  folderProviderSql,
36
36
  isDocumentAccountProvider
37
- } from "./chunk-TLZWUADZ.js";
37
+ } from "./chunk-7F3NDIYL.js";
38
38
  import {
39
39
  queryFieldsOf
40
- } from "./chunk-C2THROZU.js";
40
+ } from "./chunk-5FK6RD4M.js";
41
41
  import {
42
42
  fold
43
- } from "./chunk-V7NZTJKU.js";
43
+ } from "./chunk-7JCRQX56.js";
44
44
  import {
45
45
  CliError
46
46
  } from "./chunk-5BVIWP3S.js";
@@ -48,11 +48,11 @@ import {
48
48
  __name
49
49
  } from "./chunk-ZVVMGPBJ.js";
50
50
 
51
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
51
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
52
52
  import { realpathSync, statSync } from "node:fs";
53
53
  import { resolve } from "node:path";
54
54
 
55
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
55
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
56
56
  var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
57
57
  const creatable = /* @__PURE__ */ new Set();
58
58
  let people = 0, identities = 0;
@@ -115,11 +115,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
115
115
  }
116
116
  }, "copyPeople");
117
117
 
118
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
118
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
119
119
  import { createHash } from "node:crypto";
120
120
  var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
121
121
 
122
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
123
123
  var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
124
124
  const colon = collection.indexOf(":");
125
125
  const provider = collection.slice(0, colon);
@@ -163,7 +163,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
163
163
  };
164
164
  }, "currentCollection");
165
165
 
166
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
166
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
167
167
  var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
168
168
  const mappings = /* @__PURE__ */ new Map();
169
169
  const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
@@ -330,7 +330,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
330
330
  };
331
331
  }, "planTransfer");
332
332
 
333
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
333
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
334
334
  var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
335
335
  var MAX_ENTITIES = 1e3;
336
336
  var MAX_AUXILIARY = 1e4;
@@ -492,7 +492,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
492
492
  };
493
493
  }), "transferSnapshot");
494
494
 
495
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
495
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
496
496
  var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
497
497
  if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
498
498
  return provider ?? null;
@@ -664,7 +664,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
664
664
  database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
665
665
  }, "remapEntity");
666
666
 
667
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
667
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
668
668
  var locations = /* @__PURE__ */ __name((options) => {
669
669
  for (const value of [options.source, options.destination, options.collection])
670
670
  if (typeof value !== "string" || !value.trim())
@@ -760,7 +760,7 @@ var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
760
760
  }
761
761
  }, "applyDocumentTransfer");
762
762
 
763
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
763
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
764
764
  var ORGANIZATIONS_QUERY = {
765
765
  entity: "organization",
766
766
  backend: "sql",
@@ -795,7 +795,7 @@ var REMINDERS_QUERY = {
795
795
  })
796
796
  };
797
797
 
798
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
798
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
799
799
  var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
800
800
  if (!options || typeof options !== "object" || Array.isArray(options))
801
801
  throw new CliError("validation_error", "project preview options are required");
@@ -817,7 +817,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
817
817
  }
818
818
  }, "previewProjectAnnotationSnapshot");
819
819
 
820
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
820
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
821
821
  var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
822
822
  if (!options || typeof options !== "object" || Array.isArray(options))
823
823
  throw new CliError("validation_error", "snapshot options are required");
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();
@@ -12,7 +12,7 @@ import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/render/messages.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/render/messages.js
16
16
  import { styleText } from "node:util";
17
17
  var TIME_WIDTH = 8;
18
18
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-SRMJ6LLC.js";
5
+ } from "./chunk-F3NYA4KN.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-5BVIWP3S.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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-K6SIGXRS.js";
6
+ } from "./chunk-2MRECWJZ.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  import { dirname } from "node:path";
@@ -7,12 +7,12 @@ import {
7
7
  refuseLacking,
8
8
  servicesFor,
9
9
  throughWrapper
10
- } from "./chunk-RZCFEASJ.js";
10
+ } from "./chunk-5CXAH4Y6.js";
11
11
  import {
12
12
  foldName,
13
13
  isId,
14
14
  pickPerson
15
- } from "./chunk-YVIX7FHL.js";
15
+ } from "./chunk-S677WGOQ.js";
16
16
  import {
17
17
  LOG_ATTRIBUTES,
18
18
  MESSENGER_CHANGE_REFUSAL,
@@ -31,7 +31,7 @@ import {
31
31
  recalledAccount,
32
32
  rememberAccount,
33
33
  rootOf2 as rootOf
34
- } from "./chunk-FUXSKWWJ.js";
34
+ } from "./chunk-IBYTYIYO.js";
35
35
  import {
36
36
  AUTHORITY_KEY,
37
37
  CEILING_KEY,
@@ -42,17 +42,17 @@ import {
42
42
  levelFor,
43
43
  readKeysForCommand,
44
44
  skipFlagFor
45
- } from "./chunk-5SSFYIFF.js";
45
+ } from "./chunk-MMDCL42A.js";
46
46
  import {
47
47
  isCliFailure,
48
48
  providerErrorKey
49
- } from "./chunk-RMYYKBFW.js";
49
+ } from "./chunk-WNI5BZFB.js";
50
50
  import {
51
51
  servingProfiles
52
- } from "./chunk-VTJDEWMB.js";
52
+ } from "./chunk-HCMUGUAG.js";
53
53
  import {
54
54
  openStore
55
- } from "./chunk-KXVZ373I.js";
55
+ } from "./chunk-IWDOGGMY.js";
56
56
  import {
57
57
  logRecordOf,
58
58
  realSleep,
@@ -66,10 +66,10 @@ import {
66
66
  __name
67
67
  } from "./chunk-ZVVMGPBJ.js";
68
68
 
69
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/sends/guard.js
69
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/guard.js
70
70
  import { randomUUID } from "node:crypto";
71
71
 
72
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/sends/flood.js
72
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/flood.js
73
73
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
74
74
  import { dirname, join } from "node:path";
75
75
  var MOST_DEADLINES = 50;
@@ -153,11 +153,11 @@ var FloodMemory = class {
153
153
  }
154
154
  };
155
155
 
156
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/sends/journal.js
156
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/journal.js
157
157
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
158
158
  import { dirname as dirname3, join as join2 } from "node:path";
159
159
 
160
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
160
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
161
161
  import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
162
162
  import { dirname as dirname2 } from "node:path";
163
163
  var LOCK_WAIT_MS = 5e3;
@@ -224,7 +224,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
224
224
  }
225
225
  }, "lockTime");
226
226
 
227
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/sends/journal.js
227
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/journal.js
228
228
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
229
229
  var SendJournal = class {
230
230
  static {
@@ -301,7 +301,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
301
301
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
302
302
  }, "withSendId");
303
303
 
304
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/sends/recipients.js
304
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/recipients.js
305
305
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
306
306
  import { join as join3 } from "node:path";
307
307
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -413,7 +413,7 @@ var RecipientList = class {
413
413
  }
414
414
  };
415
415
 
416
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/sends/guard.js
416
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/guard.js
417
417
  var HOUR_MS = 60 * 60 * 1e3;
418
418
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
419
419
  "attachments.extract",
@@ -606,7 +606,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
606
606
  }), "guardFor");
607
607
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
608
608
 
609
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
609
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
610
610
  import { openSync as openSync2 } from "node:fs";
611
611
  import { createInterface } from "node:readline";
612
612
  import { ReadStream } from "node:tty";
@@ -661,7 +661,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
661
661
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
662
662
  }, "terminalAsker");
663
663
 
664
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/sends/pace.js
664
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/sends/pace.js
665
665
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
666
666
  import { join as join4 } from "node:path";
667
667
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -720,7 +720,7 @@ var Pacer = class {
720
720
  }
721
721
  };
722
722
 
723
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
723
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
724
724
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
725
725
  "help",
726
726
  "guide",
@@ -799,7 +799,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
799
799
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
800
800
  }, "refuseUnknownPermissionKeys");
801
801
 
802
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
802
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
803
803
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
804
804
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
805
805
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -918,7 +918,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
918
918
  });
919
919
  }, "flooded");
920
920
 
921
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
921
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
922
922
  var observed = /* @__PURE__ */ __name((messenger, events) => {
923
923
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
924
924
  const write = currentOperation();
@@ -1017,7 +1017,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
1017
1017
  counts[part] = (counts[part] ?? 0) + items.length;
1018
1018
  }, "byPart");
1019
1019
 
1020
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1020
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1021
1021
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
1022
1022
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
1023
1023
  let warned = false;
@@ -1509,7 +1509,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1509
1509
  }
1510
1510
  }, "keep");
1511
1511
 
1512
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1512
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1513
1513
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1514
1514
  let opened;
1515
1515
  return {
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSharedSection,
5
5
  writeSharedSection
6
- } from "./chunk-JXYFIUVX.js";
6
+ } from "./chunk-LOA4X6JW.js";
7
7
  import {
8
8
  CliError
9
9
  } from "./chunk-5BVIWP3S.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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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";
@@ -20,7 +20,7 @@ import {
20
20
  tool,
21
21
  toolKey,
22
22
  toolsFromCommands
23
- } from "./chunk-MHNEMDH3.js";
23
+ } from "./chunk-VDAIJM5L.js";
24
24
  import {
25
25
  CHART_KINDS,
26
26
  CHART_SIZE,
@@ -34,23 +34,23 @@ import {
34
34
  registerPrompts,
35
35
  stdinFieldOf,
36
36
  syncsFirst
37
- } from "./chunk-H2JVXO5V.js";
37
+ } from "./chunk-VXAZZGXE.js";
38
38
  import {
39
39
  agentJson,
40
40
  skillResource
41
- } from "./chunk-RVIMMCHF.js";
41
+ } from "./chunk-YRGBZZUW.js";
42
42
  import {
43
43
  instructions
44
- } from "./chunk-5LY3OS7U.js";
44
+ } from "./chunk-6EO7GVYJ.js";
45
45
  import {
46
46
  answeredWire
47
- } from "./chunk-Y2HGQK7A.js";
47
+ } from "./chunk-7A7BHABA.js";
48
48
  import {
49
49
  StdioServerTransport,
50
50
  callerOf,
51
51
  callingAgent,
52
52
  serveStdio
53
- } from "./chunk-GX2M3AOO.js";
53
+ } from "./chunk-7XNPSIWD.js";
54
54
  import {
55
55
  McpServer,
56
56
  ResourceTemplate
@@ -58,7 +58,7 @@ import {
58
58
  import {
59
59
  connectedFor,
60
60
  guardFor
61
- } from "./chunk-TNQOKGJS.js";
61
+ } from "./chunk-EB3R2PV3.js";
62
62
  import {
63
63
  capability,
64
64
  dateWindow,
@@ -67,10 +67,10 @@ import {
67
67
  servicesFor,
68
68
  storedDeps,
69
69
  wholeList
70
- } from "./chunk-RZCFEASJ.js";
70
+ } from "./chunk-5CXAH4Y6.js";
71
71
  import {
72
72
  findCommand
73
- } from "./chunk-MXUUQXMA.js";
73
+ } from "./chunk-AFCGOZR7.js";
74
74
  import {
75
75
  DEFAULT_OUTPUT_BYTES,
76
76
  changesAuthorityAt,
@@ -85,28 +85,28 @@ import {
85
85
  sealed,
86
86
  snakeKeys,
87
87
  typedCommand
88
- } from "./chunk-FUXSKWWJ.js";
88
+ } from "./chunk-IBYTYIYO.js";
89
89
  import {
90
90
  levelFor,
91
91
  readKeysForCommand
92
- } from "./chunk-5SSFYIFF.js";
92
+ } from "./chunk-MMDCL42A.js";
93
93
  import {
94
94
  isCliFailure,
95
95
  withCaller
96
- } from "./chunk-RMYYKBFW.js";
96
+ } from "./chunk-WNI5BZFB.js";
97
97
  import {
98
98
  mcpHttpMarker
99
- } from "./chunk-4UOEUEZZ.js";
99
+ } from "./chunk-6TY3DGCC.js";
100
100
  import {
101
101
  openStore,
102
102
  pdfPreviewLimits
103
- } from "./chunk-KXVZ373I.js";
103
+ } from "./chunk-IWDOGGMY.js";
104
104
  import {
105
105
  timezoneOf
106
- } from "./chunk-C2THROZU.js";
106
+ } from "./chunk-5FK6RD4M.js";
107
107
  import {
108
108
  warmEmbedders
109
- } from "./chunk-SRMJ6LLC.js";
109
+ } from "./chunk-F3NYA4KN.js";
110
110
  import {
111
111
  description,
112
112
  integer,
@@ -131,10 +131,10 @@ import {
131
131
  __name
132
132
  } from "./chunk-ZVVMGPBJ.js";
133
133
 
134
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/mcp/server.js
134
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/server.js
135
135
  import { randomUUID } from "node:crypto";
136
136
 
137
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
137
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
138
138
  var agentLog = /* @__PURE__ */ __name((open) => {
139
139
  let held;
140
140
  return {
@@ -153,7 +153,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
153
153
  };
154
154
  }, "agentLog");
155
155
 
156
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/mcp/resources.js
156
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/resources.js
157
157
  var LISTED = 100;
158
158
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
159
159
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -191,7 +191,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
191
191
  });
192
192
  }, "registerResources");
193
193
 
194
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/mcp/session.js
194
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/session.js
195
195
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
196
196
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
197
197
  var MessengerSession = class {
@@ -266,7 +266,7 @@ var MessengerSession = class {
266
266
  }
267
267
  };
268
268
 
269
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
269
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
270
270
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
271
271
  const _command = messenger.app.command;
272
272
  return {
@@ -320,7 +320,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
320
320
  };
321
321
  }, "attachmentsTools");
322
322
 
323
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
323
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
324
324
  var PHOTO_LIMIT = 512 * 1024;
325
325
  var IMAGE_TYPES = [
326
326
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -374,7 +374,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
374
374
  return new Uint8Array(Buffer.concat(chunks));
375
375
  }, "readUpTo");
376
376
 
377
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
377
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
378
378
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
379
379
  stats_charts: tool({
380
380
  title: "A chart from a chat's statistics",
@@ -411,14 +411,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
411
411
  })
412
412
  }), "statsTools");
413
413
 
414
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/mcp/tools.js
414
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/tools.js
415
415
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
416
416
  ...messagesPhotoTools(messenger),
417
417
  ...attachmentsTools(messenger),
418
418
  ...statsTools(messenger)
419
419
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
420
420
 
421
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/mcp/server.js
421
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/server.js
422
422
  var PER_RUN = /* @__PURE__ */ new Set([
423
423
  "streams",
424
424
  "stdin",
@@ -742,7 +742,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
742
742
  }, "serveOverStdio");
743
743
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
744
744
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
745
- const { serveOverHttp } = await import("./serve-S6K5HKWG.js");
745
+ const { serveOverHttp } = await import("./serve-OOGKFEWL.js");
746
746
  const appName = messenger.app.command;
747
747
  const appEnvPrefix = messenger.app.envPrefix;
748
748
  const listening = await serveOverHttp(build, {
@@ -5,7 +5,7 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-3RDTVH3H.js";
8
+ } from "./chunk-JJBQPA7D.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
@@ -16,12 +16,12 @@ import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
681
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
861
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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");