@wirecat/cli-memo 0.131.50 → 0.131.52

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 (144) hide show
  1. package/dist/author.d.ts +6 -3
  2. package/dist/author.d.ts.map +1 -1
  3. package/dist/author.js +9 -4
  4. package/dist/author.js.map +1 -1
  5. package/dist/bin/memo.js +2 -2
  6. package/dist/bundle/{all-profiles-3HADTQZA.js → all-profiles-ZFVBLT2D.js} +9 -9
  7. package/dist/bundle/{anthropic-RI4DWC3G.js → anthropic-UG2YHOT7.js} +6 -6
  8. package/dist/bundle/{app-server-6EKWAYJI.js → app-server-AQYA4TB6.js} +42 -42
  9. package/dist/bundle/auto-2AY6K6DI.js +86 -0
  10. package/dist/bundle/{bun-HUHQD76Z.js → bun-QJUFWKEZ.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-RPSKGB4O.js → bun-sqlite-GWVRHYF4.js} +5 -5
  12. package/dist/bundle/{chunk-N6IHOYMT.js → chunk-2CBOPOC7.js} +165 -37
  13. package/dist/bundle/{chunk-6N6BVPVX.js → chunk-2GEV2TXW.js} +4 -4
  14. package/dist/bundle/{chunk-2OIGV355.js → chunk-3O46NA2H.js} +105 -63
  15. package/dist/bundle/{chunk-UDJTRFRV.js → chunk-4ISZPK6D.js} +1 -1
  16. package/dist/bundle/{chunk-BXTDAGM4.js → chunk-4ZW6ZJ2V.js} +2 -2
  17. package/dist/bundle/{chunk-ZDHNEYKO.js → chunk-55GFDV24.js} +8 -8
  18. package/dist/bundle/{chunk-NJDGZRF5.js → chunk-5WT6SEXS.js} +30 -14
  19. package/dist/bundle/{chunk-EBNNONF5.js → chunk-64JCY7XJ.js} +8 -8
  20. package/dist/bundle/{chunk-LZWXGO3G.js → chunk-65576OCE.js} +2 -2
  21. package/dist/bundle/{chunk-57LMWEDK.js → chunk-6BVWU2UM.js} +3 -3
  22. package/dist/bundle/{chunk-VW6BF6M7.js → chunk-6G53ZFUT.js} +1 -1
  23. package/dist/bundle/{chunk-DVA6MQWK.js → chunk-6GF4TIVM.js} +1 -1
  24. package/dist/bundle/{chunk-LUPJB7ZD.js → chunk-6PQIXQFD.js} +9 -9
  25. package/dist/bundle/{chunk-S7F4ZDFU.js → chunk-6ZQK3L35.js} +3 -3
  26. package/dist/bundle/{chunk-SSPSNSC5.js → chunk-7SVHEGRO.js} +1 -1
  27. package/dist/bundle/{chunk-PUTGTW6W.js → chunk-A36ASW3I.js} +1 -1
  28. package/dist/bundle/{chunk-5TWUUDKP.js → chunk-A7DXLOMS.js} +2 -2
  29. package/dist/bundle/{chunk-UAR6UMFL.js → chunk-AGOUP5AH.js} +5 -5
  30. package/dist/bundle/{chunk-P2LMXIHL.js → chunk-AU5GAMGM.js} +415 -359
  31. package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-EBDX6DNB.js} +61 -21
  32. package/dist/bundle/{chunk-ND6D4A6H.js → chunk-EEEZGK2J.js} +3 -3
  33. package/dist/bundle/{chunk-XZZFHQGM.js → chunk-EKQNL6VJ.js} +25 -23
  34. package/dist/bundle/{chunk-7ZLOZGIC.js → chunk-EQUPZVV6.js} +6 -6
  35. package/dist/bundle/{chunk-RKFKRCOH.js → chunk-ERZBEQAY.js} +276 -268
  36. package/dist/bundle/{chunk-D5KGXYG6.js → chunk-ETYAJPIT.js} +22 -22
  37. package/dist/bundle/{chunk-PYRHU35W.js → chunk-FWCFEJWD.js} +179 -159
  38. package/dist/bundle/{chunk-IXXBPSXO.js → chunk-G4Z4WSIG.js} +2 -2
  39. package/dist/bundle/{chunk-OT23U5LT.js → chunk-G52Y3KOO.js} +2 -2
  40. package/dist/bundle/{chunk-KVOHC4ZM.js → chunk-G7K4J3NS.js} +4 -4
  41. package/dist/bundle/{chunk-UJLYVXP6.js → chunk-GJWNHWG7.js} +34 -34
  42. package/dist/bundle/{chunk-2HPYP3ZT.js → chunk-I4LXP4HQ.js} +4 -4
  43. package/dist/bundle/{chunk-PEYCLVIO.js → chunk-IALGFO44.js} +2 -2
  44. package/dist/bundle/{chunk-P3ASN72F.js → chunk-IK6KH3RE.js} +1 -1
  45. package/dist/bundle/{chunk-FOM7WE2C.js → chunk-IKG2OPHU.js} +8 -16
  46. package/dist/bundle/{chunk-HCMXUHHF.js → chunk-KGPD3OCD.js} +180 -67
  47. package/dist/bundle/{chunk-2MFBZ2UM.js → chunk-LUHMRW3P.js} +9 -6
  48. package/dist/bundle/{chunk-SLIF5EMS.js → chunk-LX65W7IK.js} +7 -7
  49. package/dist/bundle/{chunk-DJRBSOWH.js → chunk-M64NVDB4.js} +4 -4
  50. package/dist/bundle/{chunk-QCPUC3HW.js → chunk-MICF3K6S.js} +13 -13
  51. package/dist/bundle/{chunk-7RNHFNHX.js → chunk-MZMJALJT.js} +4 -4
  52. package/dist/bundle/{chunk-PJMGQJAX.js → chunk-N5J6GT7C.js} +7 -7
  53. package/dist/bundle/{chunk-Y6VH7IRN.js → chunk-NIUWQP7F.js} +32 -30
  54. package/dist/bundle/{chunk-355PHJYX.js → chunk-NNUP36UQ.js} +1 -1
  55. package/dist/bundle/{chunk-GV6XJMUW.js → chunk-NOEXRGYH.js} +12 -12
  56. package/dist/bundle/{chunk-RYMYE5PF.js → chunk-NUQ3N3V3.js} +8 -8
  57. package/dist/bundle/{chunk-O3KOW7RG.js → chunk-NZKDNBYE.js} +8 -8
  58. package/dist/bundle/{chunk-AKD62EUH.js → chunk-OIPJYDLZ.js} +2 -2
  59. package/dist/bundle/{chunk-ZA7FKGB7.js → chunk-OWS67HTV.js} +2 -2
  60. package/dist/bundle/{chunk-GIDZGGAD.js → chunk-PBM5GH7S.js} +4 -4
  61. package/dist/bundle/{chunk-EJDV5IIF.js → chunk-PKVXZZTM.js} +58 -1
  62. package/dist/bundle/{chunk-5JVA43HX.js → chunk-RYY4YRKQ.js} +6 -6
  63. package/dist/bundle/{chunk-W6JQNNJ5.js → chunk-S7X5ZMQN.js} +3 -3
  64. package/dist/bundle/{chunk-P2TISY3R.js → chunk-TM6R3Z45.js} +1 -1
  65. package/dist/bundle/{chunk-4VQPPX47.js → chunk-TQS6ZKC3.js} +487 -406
  66. package/dist/bundle/{chunk-TSUNLSIN.js → chunk-U4ZD5SYO.js} +2 -2
  67. package/dist/bundle/{chunk-XXGBXCBQ.js → chunk-U6E3BGHO.js} +11 -11
  68. package/dist/bundle/{chunk-HXOAPH47.js → chunk-VOWEZBOJ.js} +1 -1
  69. package/dist/bundle/{chunk-O3ZOYXH3.js → chunk-WLKDS65F.js} +20 -20
  70. package/dist/bundle/{chunk-NTQUBSIJ.js → chunk-X6XIW76O.js} +6 -6
  71. package/dist/bundle/{chunk-5RVL7GYA.js → chunk-XIHQOSCT.js} +2 -2
  72. package/dist/bundle/{chunk-XH6K2B5L.js → chunk-ZKXIZD4C.js} +4 -4
  73. package/dist/bundle/{chunk-V2DMJ6ES.js → chunk-ZVJAZXME.js} +6 -6
  74. package/dist/bundle/{chunk-3BG5VYMV.js → chunk-ZVR6S4XB.js} +10 -10
  75. package/dist/bundle/{chunk-QCRJNWJZ.js → chunk-ZYQEWB6P.js} +3 -3
  76. package/dist/bundle/command-contract-7AADJ3UC.js +32 -0
  77. package/dist/bundle/{decode-IYWZ3X7X.js → decode-XMIBTI5O.js} +5 -5
  78. package/dist/bundle/{dispatch-HCRXCPCF.js → dispatch-W4ZVXTJT.js} +10 -10
  79. package/dist/bundle/{echarts-5LLJ6JXC.js → echarts-W7DPDJA5.js} +2 -2
  80. package/dist/bundle/{embed-EGY2R4FN.js → embed-EP3KKO6Y.js} +6 -6
  81. package/dist/bundle/{embedder-K2BGPWNX.js → embedder-ENGCALJ7.js} +9 -9
  82. package/dist/bundle/{entry-NMAZNDNU.js → entry-BGSKREOS.js} +7 -7
  83. package/dist/bundle/{failure-G4DCTWFD.js → failure-GQHAQVGH.js} +2 -2
  84. package/dist/bundle/failure-ZKQVXWAB.js +66 -0
  85. package/dist/bundle/{first-run-QDCSWX3N.js → first-run-4EBMV2EM.js} +11 -11
  86. package/dist/bundle/first-screen-2TM3BF2Y.js +30 -0
  87. package/dist/bundle/{instructions-P72XX4AK.js → instructions-A42XETMK.js} +1 -1
  88. package/dist/bundle/mcp-5LAWRSJK.js +90 -0
  89. package/dist/bundle/{mcp-M4QN2E7R.js → mcp-RKJG22KM.js} +2 -2
  90. package/dist/bundle/memo.js +41 -17
  91. package/dist/bundle/{node-ZB4RNICS.js → node-IRL66JK2.js} +2 -2
  92. package/dist/bundle/{node-sqlite-7XJ4J4E5.js → node-sqlite-SOGTH72B.js} +6 -6
  93. package/dist/bundle/{oauth-FMH3JIPT.js → oauth-RB5W3AC7.js} +7 -7
  94. package/dist/bundle/{open-PRCTOHHL.js → open-552EJ4JC.js} +5 -5
  95. package/dist/bundle/{openai-VW4W6SIO.js → openai-ZLOHEEDH.js} +10 -10
  96. package/dist/bundle/{process-XNN4WG6N.js → process-46SUXGWW.js} +1 -1
  97. package/dist/bundle/{program-TVT22XUQ.js → program-ZLWKMT65.js} +72 -65
  98. package/dist/bundle/{prompt-RT55UZGB.js → prompt-2NHJSYKX.js} +5 -5
  99. package/dist/bundle/{recognize-AQ2UXUC2.js → recognize-2LDM6KHL.js} +4 -4
  100. package/dist/bundle/{remote-T3P5OWRR.js → remote-DBYHHENF.js} +7 -7
  101. package/dist/bundle/{rerank-743T3675.js → rerank-N5T2TIIY.js} +7 -7
  102. package/dist/bundle/{serve-BSKOU4FJ.js → serve-S6B54R2F.js} +9 -9
  103. package/dist/bundle/server-KZZHFPTZ.js +61 -0
  104. package/dist/bundle/{server-ECOTCYJ3.js → server-QH6AKPRV.js} +58 -58
  105. package/dist/bundle/server-WAIPBBM7.js +48 -0
  106. package/dist/bundle/{state-MDMI3I2Z.js → state-ZXZGIIJW.js} +6 -6
  107. package/dist/bundle/{store-I3DIZALN.js → store-PNJNDMQ4.js} +13 -13
  108. package/dist/bundle/store-maintenance-command-2ZVV3DGA.js +48 -0
  109. package/dist/bundle/update-6HXLLGTQ.js +69 -0
  110. package/dist/doctor/command.d.ts +30 -0
  111. package/dist/doctor/command.d.ts.map +1 -1
  112. package/dist/doctor/command.js +1 -1
  113. package/dist/doctor/command.js.map +1 -1
  114. package/dist/failure.js +2 -2
  115. package/dist/failure.js.map +1 -1
  116. package/dist/knowledge/relationships-scan.d.ts.map +1 -1
  117. package/dist/knowledge/relationships-scan.js +4 -3
  118. package/dist/knowledge/relationships-scan.js.map +1 -1
  119. package/dist/mcp/catalogue.js +1 -1
  120. package/dist/mcp/catalogue.js.map +1 -1
  121. package/dist/people/command.d.ts.map +1 -1
  122. package/dist/people/command.js +3 -1
  123. package/dist/people/command.js.map +1 -1
  124. package/dist/run/import.d.ts.map +1 -1
  125. package/dist/run/import.js +3 -2
  126. package/dist/run/import.js.map +1 -1
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.js +1 -1
  129. package/package.json +4 -4
  130. package/skills/cli-memo/SKILL.md +1 -1
  131. package/skills/cli-memo/topics/proposals.md +2 -2
  132. package/skills/mail-triage/SKILL.md +1 -1
  133. package/skills/morning-digest/SKILL.md +1 -1
  134. package/dist/bundle/auto-C7G3WVRU.js +0 -86
  135. package/dist/bundle/command-contract-MRLLZQ4M.js +0 -32
  136. package/dist/bundle/failure-FW4NJI7G.js +0 -66
  137. package/dist/bundle/first-screen-YABO6OZ7.js +0 -30
  138. package/dist/bundle/mcp-QRZ2HSON.js +0 -90
  139. package/dist/bundle/server-VMWVYGK7.js +0 -48
  140. package/dist/bundle/server-ZFHSK6TT.js +0 -61
  141. package/dist/bundle/store-maintenance-command-HZPQPOK7.js +0 -48
  142. package/dist/bundle/update-ZIZAU5RE.js +0 -69
  143. /package/dist/bundle/{chunk-CDFNOKPG.js → chunk-DPRGC5YX.js} +0 -0
  144. /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-SW6C6WH5.js} +0 -0
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  singleLine
5
- } from "./chunk-BXTDAGM4.js";
5
+ } from "./chunk-4ZW6ZJ2V.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
10
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
11
11
  var FIRST_PARTY_TOOLS = [
12
12
  { name: "tg", package: "@wirecat/tg-cli" },
13
13
  { name: "max", package: "@wirecat/max-cli" },
@@ -28,17 +28,31 @@ var RESERVED_NAMES = [
28
28
  var TOOL_NAME = /^[a-z][a-z0-9-]{0,39}$/;
29
29
  var PROGRAM_PREFIX = "wcat-";
30
30
  var DESCRIBE_FLAG = "--wcat-describe";
31
+ var DESCRIBE_MAX_BYTES = 64 * 1024;
31
32
  var DISPATCH_FLAG = "--wcat-dispatch";
32
33
 
33
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
34
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
34
35
  var DESCRIBE_FORMAT = 1;
35
- var describeAnswer = /* @__PURE__ */ __name((tool) => ({
36
- wcat_describe: DESCRIBE_FORMAT,
37
- name: tool.command,
38
- version: tool.version,
39
- description: tool.description,
40
- ...tool.docs ? { docs_url: tool.docs } : {}
41
- }), "describeAnswer");
36
+ var DESCRIBE_MANIFEST_FORMAT = 2;
37
+ var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
38
+ const answer = {
39
+ wcat_describe: DESCRIBE_FORMAT,
40
+ name: tool.command,
41
+ version: tool.version,
42
+ description: tool.description,
43
+ ...tool.docs ? { docs_url: tool.docs } : {}
44
+ };
45
+ if (!manifest)
46
+ return answer;
47
+ const full = {
48
+ ...answer,
49
+ wcat_describe: DESCRIBE_MANIFEST_FORMAT,
50
+ desktop: manifest.desktop,
51
+ manifest_sha256: manifest.sha256
52
+ };
53
+ return Buffer.byteLength(`${JSON.stringify(full)}
54
+ `) > DESCRIBE_MAX_BYTES ? answer : full;
55
+ }, "describeAnswer");
42
56
  var MAX_TEXT = 200;
43
57
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim() !== "" ? singleLine(value.trim()).slice(0, MAX_TEXT) : void 0, "clean");
44
58
  var parseDescribe = /* @__PURE__ */ __name((text) => {
@@ -50,25 +64,48 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
50
64
  }
51
65
  if (typeof answer !== "object" || answer === null || !("wcat_describe" in answer))
52
66
  return void 0;
53
- const { version, description, docs_url: docs } = answer;
67
+ const { version, description, docs_url: docs, manifest_sha256: sha } = answer;
54
68
  const url = clean(docs);
55
69
  return {
56
70
  version: clean(version) ?? "",
57
71
  description: clean(description) ?? "",
58
- ...url && /^https?:\/\//.test(url) ? { docs: url } : {}
72
+ ...url && /^https?:\/\//.test(url) ? { docs: url } : {},
73
+ ...typeof sha === "string" && /^[0-9a-f]{64}$/.test(sha) ? { manifestSha256: sha } : {}
59
74
  };
60
75
  }, "parseDescribe");
61
76
 
62
- // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
77
+ // node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
63
78
  import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
64
79
  import { join } from "node:path";
65
- var SHIM_FORMAT = 1;
80
+ var SHIM_FORMAT = 2;
66
81
  var MARK = /^(?:#|REM) wirecat-shim (\d+) (launcher|shortcut) (\S+)\r?$/m;
67
82
  var NOTE = {
68
83
  launcher: "Written by @wirecat/cli-base. Any WireCat tool rewrites it when it breaks; it is safe to delete.",
69
84
  shortcut: "Made by `wcat shortcuts add`; `wcat shortcuts remove` takes it out."
70
85
  };
71
86
  var shellQuote = /* @__PURE__ */ __name((text) => `'${text.replaceAll("'", `'\\''`)}'`, "shellQuote");
87
+ var launcherBody = /* @__PURE__ */ __name((dir, target, name) => [
88
+ 'ok() { [ -f "$1" ] && [ -x "$1" ]; }',
89
+ `dir=${shellQuote(dir)}`,
90
+ `target=${shellQuote(join(dir, target))}`,
91
+ 'if ! ok "$target"; then',
92
+ ' for t in "$dir"/wcat-*; do',
93
+ ' if ok "$t"; then target=$t; break; fi',
94
+ " done",
95
+ "fi",
96
+ `if ok "$target"; then exec "$target" ${DISPATCH_FLAG} "$@"; fi`,
97
+ 'if [ -z "$WIRECAT_LAUNCHER_SKIP" ]; then',
98
+ " WIRECAT_LAUNCHER_SKIP=1; export WIRECAT_LAUNCHER_SKIP",
99
+ " set -f; oldifs=$IFS; IFS=:",
100
+ " for d in $PATH; do",
101
+ ` if [ -n "$d" ] && [ "$d" != "$dir" ] && ok "$d/${name}"; then IFS=$oldifs; exec "$d/${name}" "$@"; fi`,
102
+ " done",
103
+ " IFS=$oldifs; set +f",
104
+ "fi",
105
+ `printf '%s\\n' "${name}: $target is missing and no other ${name}-* program was found in $dir or on PATH." \\`,
106
+ ` "This launcher is safe to delete: $dir/${name}" >&2`,
107
+ "exit 127"
108
+ ], "launcherBody");
72
109
  var shimFiles = /* @__PURE__ */ __name((kind, { dir, name, target, platform }) => {
73
110
  const mark = `wirecat-shim ${SHIM_FORMAT} ${kind} ${target}`;
74
111
  const extra = kind === "launcher" ? ` ${DISPATCH_FLAG}` : "";
@@ -76,11 +113,13 @@ var shimFiles = /* @__PURE__ */ __name((kind, { dir, name, target, platform }) =
76
113
  return [
77
114
  {
78
115
  path: join(dir, name),
79
- text: `#!/bin/sh
80
- # ${mark}
81
- # ${NOTE[kind]}
82
- exec ${shellQuote(join(dir, target))}${extra} "$@"
83
- `
116
+ text: [
117
+ "#!/bin/sh",
118
+ `# ${mark}`,
119
+ `# ${NOTE[kind]}`,
120
+ ...kind === "launcher" ? launcherBody(dir, target, name) : [`exec ${shellQuote(join(dir, target))} "$@"`],
121
+ ""
122
+ ].join("\n")
84
123
  }
85
124
  ];
86
125
  return [
@@ -150,14 +189,15 @@ var writeShim = /* @__PURE__ */ __name(({ path, text }) => {
150
189
  }, "writeShim");
151
190
 
152
191
  export {
153
- describeAnswer,
154
- parseDescribe,
155
192
  FIRST_PARTY_TOOLS,
156
193
  BUILT_IN_COMMANDS,
157
194
  TOOL_NAME,
158
195
  PROGRAM_PREFIX,
159
196
  DESCRIBE_FLAG,
197
+ DESCRIBE_MAX_BYTES,
160
198
  DISPATCH_FLAG,
199
+ describeAnswer,
200
+ parseDescribe,
161
201
  SHIM_FORMAT,
162
202
  shimFiles,
163
203
  fileState,
@@ -9,15 +9,15 @@ import {
9
9
  optional,
10
10
  pipe,
11
11
  safeParse
12
- } from "./chunk-EBNNONF5.js";
12
+ } from "./chunk-64JCY7XJ.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-BXTDAGM4.js";
15
+ } from "./chunk-4ZW6ZJ2V.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/models/options.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/models/options.js
21
21
  var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
22
22
  const parsed = safeParse(schema, options);
23
23
  if (!parsed.success) {
@@ -13,7 +13,7 @@ import {
13
13
  refuseLacking,
14
14
  servicesFor,
15
15
  throughWrapper
16
- } from "./chunk-4VQPPX47.js";
16
+ } from "./chunk-TQS6ZKC3.js";
17
17
  import {
18
18
  CEILING_KEY,
19
19
  LOG_ATTRIBUTES,
@@ -38,35 +38,37 @@ import {
38
38
  rememberAccount,
39
39
  rootOf2 as rootOf,
40
40
  skipFlagFor
41
- } from "./chunk-PYRHU35W.js";
41
+ } from "./chunk-FWCFEJWD.js";
42
42
  import {
43
- isCliFailure,
44
43
  providerErrorKey
45
- } from "./chunk-FOM7WE2C.js";
44
+ } from "./chunk-IKG2OPHU.js";
46
45
  import {
47
46
  MESSENGER_CHANGE_REFUSAL,
48
47
  readOnlyRefusal
49
- } from "./chunk-OT23U5LT.js";
48
+ } from "./chunk-G52Y3KOO.js";
50
49
  import {
51
50
  servingProfiles
52
- } from "./chunk-S7F4ZDFU.js";
51
+ } from "./chunk-6ZQK3L35.js";
53
52
  import {
54
53
  openStore
55
- } from "./chunk-P2LMXIHL.js";
54
+ } from "./chunk-AU5GAMGM.js";
55
+ import {
56
+ isCliFailure
57
+ } from "./chunk-PKVXZZTM.js";
56
58
  import {
57
59
  logRecordOf,
58
60
  realSleep,
59
61
  resolvePaths,
60
62
  writeSecurely
61
- } from "./chunk-O3ZOYXH3.js";
63
+ } from "./chunk-WLKDS65F.js";
62
64
  import {
63
65
  CliError
64
- } from "./chunk-BXTDAGM4.js";
66
+ } from "./chunk-4ZW6ZJ2V.js";
65
67
  import {
66
68
  __name
67
69
  } from "./chunk-ZVVMGPBJ.js";
68
70
 
69
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
71
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
70
72
  import { openSync } from "node:fs";
71
73
  import { createInterface } from "node:readline";
72
74
  import { ReadStream } from "node:tty";
@@ -121,10 +123,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
121
123
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
122
124
  }, "terminalAsker");
123
125
 
124
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/guard.js
126
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/sends/guard.js
125
127
  import { randomUUID } from "node:crypto";
126
128
 
127
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/flood.js
129
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/sends/flood.js
128
130
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
129
131
  import { dirname, join } from "node:path";
130
132
  var MOST_DEADLINES = 50;
@@ -208,11 +210,11 @@ var FloodMemory = class {
208
210
  }
209
211
  };
210
212
 
211
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/journal.js
213
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/sends/journal.js
212
214
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
213
215
  import { dirname as dirname3, join as join2 } from "node:path";
214
216
 
215
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
217
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
216
218
  import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
217
219
  import { dirname as dirname2 } from "node:path";
218
220
  var LOCK_WAIT_MS = 5e3;
@@ -279,7 +281,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
279
281
  }
280
282
  }, "lockTime");
281
283
 
282
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/journal.js
284
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/sends/journal.js
283
285
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
284
286
  var SendJournal = class {
285
287
  static {
@@ -356,7 +358,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
356
358
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
357
359
  }, "withSendId");
358
360
 
359
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/recipients.js
361
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/sends/recipients.js
360
362
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
361
363
  import { join as join3 } from "node:path";
362
364
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -468,7 +470,7 @@ var RecipientList = class {
468
470
  }
469
471
  };
470
472
 
471
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/guard.js
473
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/sends/guard.js
472
474
  var HOUR_MS = 60 * 60 * 1e3;
473
475
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
474
476
  "attachments.extract",
@@ -661,7 +663,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
661
663
  }), "guardFor");
662
664
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
663
665
 
664
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/sends/pace.js
666
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/sends/pace.js
665
667
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
666
668
  import { join as join4 } from "node:path";
667
669
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -751,7 +753,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
751
753
  await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
752
754
  }, "waitForTurn");
753
755
 
754
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
756
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
755
757
  var pathOf = /* @__PURE__ */ __name((command) => {
756
758
  const words = [];
757
759
  for (let at = command; at?.parent; at = at.parent)
@@ -811,7 +813,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
811
813
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
812
814
  }, "refuseUnknownPermissionKeys");
813
815
 
814
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
816
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
815
817
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
816
818
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
817
819
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -908,7 +910,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
908
910
  });
909
911
  }, "flooded");
910
912
 
911
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
913
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
912
914
  var observed = /* @__PURE__ */ __name((messenger, events) => {
913
915
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
914
916
  const write = currentOperation();
@@ -1007,7 +1009,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
1007
1009
  counts[part] = (counts[part] ?? 0) + items.length;
1008
1010
  }, "byPart");
1009
1011
 
1010
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1012
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1011
1013
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
1012
1014
  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" }) => {
1013
1015
  let warned = false;
@@ -1583,7 +1585,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1583
1585
  }
1584
1586
  }, "keep");
1585
1587
 
1586
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1588
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1587
1589
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1588
1590
  let opened;
1589
1591
  return {
@@ -4,7 +4,7 @@ import {
4
4
  inspectConfig,
5
5
  loadConfig,
6
6
  memoPermissionKeys
7
- } from "./chunk-UJLYVXP6.js";
7
+ } from "./chunk-GJWNHWG7.js";
8
8
  import {
9
9
  CEILING_KEY,
10
10
  changesAuthority,
@@ -13,20 +13,20 @@ import {
13
13
  layerPermissions,
14
14
  levelFor,
15
15
  metaOf
16
- } from "./chunk-PYRHU35W.js";
16
+ } from "./chunk-FWCFEJWD.js";
17
17
  import {
18
18
  setupPermissionCeiling
19
- } from "./chunk-DJRBSOWH.js";
19
+ } from "./chunk-M64NVDB4.js";
20
20
  import {
21
21
  readOnlyLockOf,
22
22
  readOnlyRefusal
23
- } from "./chunk-OT23U5LT.js";
23
+ } from "./chunk-G52Y3KOO.js";
24
24
  import {
25
25
  APP
26
- } from "./chunk-5TWUUDKP.js";
26
+ } from "./chunk-A7DXLOMS.js";
27
27
  import {
28
28
  CliError
29
- } from "./chunk-BXTDAGM4.js";
29
+ } from "./chunk-4ZW6ZJ2V.js";
30
30
  import {
31
31
  __name
32
32
  } from "./chunk-ZVVMGPBJ.js";