@wirecat/tg-cli 0.100.0 → 0.101.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 (107) hide show
  1. package/README.md +3 -3
  2. package/dist/bin/tg.js +1 -1
  3. package/dist/bundle/{adapter-2LVPMFKF.js → adapter-A3VD4Y6Z.js} +24 -24
  4. package/dist/bundle/{all-profiles-BLTK2AAB.js → all-profiles-UPVNHXB2.js} +16 -7
  5. package/dist/bundle/{anthropic-RJE4XEOO.js → anthropic-IRKNWPIB.js} +5 -5
  6. package/dist/bundle/{bot-api-4XM3NVWG.js → bot-api-UNTQG2M5.js} +48 -48
  7. package/dist/bundle/{bot-history-WVM5GEQN.js → bot-history-V4RTY5K7.js} +15 -15
  8. package/dist/bundle/{bun-UZXO2LRQ.js → bun-2JZPG2NL.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-GJLGSQIT.js → bun-sqlite-TZHKM225.js} +4 -4
  10. package/dist/bundle/{chunk-V4JSVH4M.js → chunk-22PQUX72.js} +2 -2
  11. package/dist/bundle/{chunk-MQNFEVAH.js → chunk-2DGOFLDA.js} +2 -2
  12. package/dist/bundle/{chunk-2IM4M7Q2.js → chunk-2XBSVRT2.js} +1 -1
  13. package/dist/bundle/{chunk-HKT5EOT5.js → chunk-4ZS73HTJ.js} +1 -1
  14. package/dist/bundle/{chunk-SMJTL5U7.js → chunk-54R2GDQ3.js} +6 -4
  15. package/dist/bundle/{chunk-2MXQ2EUN.js → chunk-5GKXETRP.js} +21 -20
  16. package/dist/bundle/{chunk-GTURDJJD.js → chunk-5KU4UQBM.js} +1 -1
  17. package/dist/bundle/{chunk-JFJVS5JC.js → chunk-5TPT2S2Z.js} +2 -2
  18. package/dist/bundle/{chunk-SYPL4PHV.js → chunk-64DK7S4F.js} +1 -1
  19. package/dist/bundle/{chunk-BAIZAZ6Q.js → chunk-6IPY2QRG.js} +2 -2
  20. package/dist/bundle/{chunk-I6WZJVRT.js → chunk-7CBUCTB6.js} +55 -36
  21. package/dist/bundle/{chunk-LI7TXFLS.js → chunk-A5JSTZZZ.js} +3 -3
  22. package/dist/bundle/{chunk-OW3COBN5.js → chunk-ACGTFLEB.js} +9 -9
  23. package/dist/bundle/{chunk-Q26JMPBP.js → chunk-BX6HH4F6.js} +11 -11
  24. package/dist/bundle/{chunk-CV5ASHTW.js → chunk-BXQS5RCE.js} +45 -45
  25. package/dist/bundle/{chunk-MUEXF4ME.js → chunk-CJ6IYCYP.js} +12 -11
  26. package/dist/bundle/{chunk-GYEOQS2D.js → chunk-DG62L57H.js} +17 -17
  27. package/dist/bundle/{chunk-4U7QOFDA.js → chunk-DYNSP6FW.js} +445 -236
  28. package/dist/bundle/{chunk-HXTTDIL7.js → chunk-F7TDFWXY.js} +3 -3
  29. package/dist/bundle/{chunk-P26LWFNZ.js → chunk-G2US6LJB.js} +1 -1
  30. package/dist/bundle/{chunk-KE6L2UEG.js → chunk-G3ZRY436.js} +70 -61
  31. package/dist/bundle/{chunk-QY3YOOTP.js → chunk-G77QOTXE.js} +2 -2
  32. package/dist/bundle/{chunk-6YLT4YVJ.js → chunk-H6OXALTJ.js} +2 -2
  33. package/dist/bundle/{chunk-WKOY3POD.js → chunk-LPB2MDUW.js} +7 -7
  34. package/dist/bundle/{chunk-66E5QDLH.js → chunk-MLLJ74LM.js} +1 -1
  35. package/dist/bundle/{chunk-6VEOR6GD.js → chunk-N5UFBWDM.js} +6 -6
  36. package/dist/bundle/{chunk-THVNP6S6.js → chunk-NC5WS7OP.js} +2 -2
  37. package/dist/bundle/{chunk-YG7PNCSW.js → chunk-NKJJJAIJ.js} +10 -3
  38. package/dist/bundle/{chunk-DVOUKGFK.js → chunk-NMGO6LW6.js} +8 -8
  39. package/dist/bundle/{chunk-QU2FJMFB.js → chunk-ODSVNH3H.js} +798 -492
  40. package/dist/bundle/{chunk-WE3LBRMB.js → chunk-OEJ5DMCX.js} +7 -7
  41. package/dist/bundle/{chunk-3N6LXAPE.js → chunk-OILBDLWL.js} +10 -10
  42. package/dist/bundle/{chunk-U7LXA4SO.js → chunk-OPBTNQ35.js} +11 -11
  43. package/dist/bundle/{chunk-OOOV3JBZ.js → chunk-PUBS2F5J.js} +953 -677
  44. package/dist/bundle/{chunk-H3X5LS6U.js → chunk-PYTOIDSM.js} +4 -4
  45. package/dist/bundle/{chunk-RER6DAHP.js → chunk-QOWSVDPZ.js} +157 -145
  46. package/dist/bundle/{chunk-2XUGPE5W.js → chunk-QYVVRQTN.js} +3 -3
  47. package/dist/bundle/{chunk-RDQMV6EU.js → chunk-RF54YDBB.js} +4 -4
  48. package/dist/bundle/{chunk-3QDPV34J.js → chunk-RVCS7Q3A.js} +51 -47
  49. package/dist/bundle/{chunk-4YCLWWZ3.js → chunk-S2JSZWEC.js} +11 -11
  50. package/dist/bundle/{chunk-SGJYU3SB.js → chunk-S7ZNLLY5.js} +3 -3
  51. package/dist/bundle/{chunk-JSKT5UZX.js → chunk-TGREFJVA.js} +8 -8
  52. package/dist/bundle/{chunk-4VBDVZNE.js → chunk-U46UNBMT.js} +15 -15
  53. package/dist/bundle/{chunk-BL36RR34.js → chunk-UN6CKIBN.js} +4 -4
  54. package/dist/bundle/chunk-VA5YEJS3.js +161 -0
  55. package/dist/bundle/{chunk-DN4QUTWU.js → chunk-VCGL2ETF.js} +1 -1
  56. package/dist/bundle/{chunk-UMLPXNJI.js → chunk-VRSN7VLO.js} +1 -1
  57. package/dist/bundle/{chunk-ATZ44Z77.js → chunk-VYDTI254.js} +108 -29
  58. package/dist/bundle/{chunk-UD4DOZCN.js → chunk-W2336E7Y.js} +6 -6
  59. package/dist/bundle/{chunk-3S5CL55R.js → chunk-XCKD54TN.js} +6 -6
  60. package/dist/bundle/{chunk-A7OBVRJV.js → chunk-ZEOCU24Z.js} +3 -3
  61. package/dist/bundle/{chunk-BZANDKWT.js → chunk-ZJVZXJOG.js} +2 -2
  62. package/dist/bundle/{chunk-ASDZHG5I.js → chunk-ZV24I2UJ.js} +2 -2
  63. package/dist/bundle/command-contract-TKDI7E56.js +31 -0
  64. package/dist/bundle/{echarts-YHSYUWLY.js → echarts-QZ6PR3VC.js} +2 -2
  65. package/dist/bundle/{embed-3HGI2XIW.js → embed-UBXCXSRD.js} +4 -4
  66. package/dist/bundle/{embedder-2CJMZETJ.js → embedder-B4ZTKC23.js} +7 -7
  67. package/dist/bundle/{entry-UVE53OV3.js → entry-BTUTHO5M.js} +5 -5
  68. package/dist/bundle/{first-run-6GYC2QS3.js → first-run-UC4HRIFV.js} +9 -9
  69. package/dist/bundle/first-screen-SMCX6YKY.js +29 -0
  70. package/dist/bundle/{identity-HEV5E57G.js → identity-QSDEGDH7.js} +3 -3
  71. package/dist/bundle/{instructions-5UVAXSQV.js → instructions-BBGLZKO3.js} +1 -1
  72. package/dist/bundle/{mcp-NWXBVNUA.js → mcp-4Y37G2UY.js} +2 -2
  73. package/dist/bundle/{node-YHYEGYVE.js → node-LZZX22VR.js} +2 -2
  74. package/dist/bundle/{node-sqlite-CQ33A3R2.js → node-sqlite-BPGT6T5U.js} +4 -4
  75. package/dist/bundle/{oauth-OB3JFAD7.js → oauth-XNE2KPKJ.js} +6 -6
  76. package/dist/bundle/{open-JHGZIXU2.js → open-SXGYZLB5.js} +3 -3
  77. package/dist/bundle/{process-PSKS3N5B.js → process-GPUXC4PG.js} +1 -1
  78. package/dist/bundle/{program-RPYVPNRX.js → program-NEXEAL7T.js} +51 -51
  79. package/dist/bundle/{prompt-7BXUMJGG.js → prompt-SORGLEYI.js} +4 -4
  80. package/dist/bundle/{proxy-transport-3EEMW2HW.js → proxy-transport-G4MA6BGU.js} +4 -4
  81. package/dist/bundle/{recognize-YMZPL47R.js → recognize-UJBXORVD.js} +5 -5
  82. package/dist/bundle/{remote-LQ3Q22NG.js → remote-W72AR7KH.js} +5 -5
  83. package/dist/bundle/{rerank-SM7IYVXJ.js → rerank-3Y2VZM3J.js} +5 -5
  84. package/dist/bundle/{serve-GHUEP5H5.js → serve-VDZIVOPR.js} +23 -8
  85. package/dist/bundle/{server-K2BQPPHN.js → server-BERXP4GW.js} +52 -52
  86. package/dist/bundle/{server-A45HVXQY.js → server-ZFHN4GUF.js} +34 -34
  87. package/dist/bundle/{state-WIOL52GZ.js → state-DGR4EE3E.js} +9 -5
  88. package/dist/bundle/{store-XE5AKUJZ.js → store-MRCFSCZD.js} +10 -10
  89. package/dist/bundle/store-maintenance-command-DCMZDMYS.js +46 -0
  90. package/dist/bundle/tg.js +4 -4
  91. package/dist/commands/context.d.ts.map +1 -1
  92. package/dist/commands/context.js +2 -0
  93. package/dist/commands/context.js.map +1 -1
  94. package/dist/program.js +1 -1
  95. package/dist/program.js.map +1 -1
  96. package/dist/telegram/errors.js +1 -1
  97. package/dist/telegram/errors.js.map +1 -1
  98. package/dist/version.d.ts +1 -1
  99. package/dist/version.js +1 -1
  100. package/install/windows.ps1 +1 -1
  101. package/package.json +3 -3
  102. package/skills/tg-cli/SKILL.md +4 -4
  103. package/dist/bundle/chunk-Z2FHEIXN.js +0 -63
  104. package/dist/bundle/command-contract-AIVKJYIR.js +0 -31
  105. package/dist/bundle/first-screen-HRRLVLOG.js +0 -29
  106. package/dist/bundle/store-maintenance-command-YS5E7VUN.js +0 -46
  107. /package/dist/bundle/{chunk-3MVHRZWR.js → chunk-2SJOUK6J.js} +0 -0
@@ -2,11 +2,11 @@ import { createRequire as __tgRequire } from "node:module";
2
2
  const require = __tgRequire(import.meta.url);
3
3
  import {
4
4
  renderMessages
5
- } from "./chunk-V4JSVH4M.js";
5
+ } from "./chunk-22PQUX72.js";
6
6
  import {
7
7
  answerOf,
8
8
  messengerContext
9
- } from "./chunk-2MXQ2EUN.js";
9
+ } from "./chunk-5GKXETRP.js";
10
10
  import {
11
11
  RULES_VERSION,
12
12
  applyTaskRulesOnArrival,
@@ -21,10 +21,10 @@ import {
21
21
  syncsOneChat,
22
22
  typedQuery,
23
23
  withQuery
24
- } from "./chunk-4U7QOFDA.js";
24
+ } from "./chunk-DYNSP6FW.js";
25
25
  import {
26
26
  newSendId
27
- } from "./chunk-3N6LXAPE.js";
27
+ } from "./chunk-OILBDLWL.js";
28
28
  import {
29
29
  Command,
30
30
  LOCAL_READ,
@@ -49,34 +49,34 @@ import {
49
49
  snakeKeys,
50
50
  storeTable,
51
51
  withoutProviderRefs
52
- } from "./chunk-3QDPV34J.js";
52
+ } from "./chunk-RVCS7Q3A.js";
53
53
  import {
54
54
  codeOf,
55
55
  currentRun,
56
56
  levelFor
57
- } from "./chunk-U7LXA4SO.js";
57
+ } from "./chunk-OPBTNQ35.js";
58
58
  import {
59
59
  envName
60
- } from "./chunk-ASDZHG5I.js";
60
+ } from "./chunk-ZV24I2UJ.js";
61
61
  import {
62
62
  holdLock,
63
63
  lockPath,
64
64
  releaseLock,
65
65
  servingProfiles,
66
66
  takeLock
67
- } from "./chunk-2XUGPE5W.js";
67
+ } from "./chunk-QYVVRQTN.js";
68
68
  import {
69
69
  holdersOf
70
- } from "./chunk-UMLPXNJI.js";
70
+ } from "./chunk-VRSN7VLO.js";
71
71
  import {
72
72
  checkedOptions,
73
73
  range
74
- } from "./chunk-THVNP6S6.js";
74
+ } from "./chunk-NC5WS7OP.js";
75
75
  import {
76
76
  messagesFor,
77
77
  systemFor,
78
78
  validateImages
79
- } from "./chunk-6YLT4YVJ.js";
79
+ } from "./chunk-H6OXALTJ.js";
80
80
  import {
81
81
  MIGRATIONS,
82
82
  drainNoteIndex,
@@ -105,25 +105,25 @@ import {
105
105
  storeClients,
106
106
  storeContents,
107
107
  vectorIndexCounts
108
- } from "./chunk-OOOV3JBZ.js";
108
+ } from "./chunk-PUBS2F5J.js";
109
109
  import {
110
110
  queryFieldsOf
111
- } from "./chunk-KE6L2UEG.js";
111
+ } from "./chunk-G3ZRY436.js";
112
112
  import {
113
113
  storePath
114
- } from "./chunk-QY3YOOTP.js";
114
+ } from "./chunk-G77QOTXE.js";
115
115
  import {
116
116
  openCache
117
- } from "./chunk-3S5CL55R.js";
117
+ } from "./chunk-XCKD54TN.js";
118
118
  import {
119
119
  readSecret
120
- } from "./chunk-HXTTDIL7.js";
120
+ } from "./chunk-F7TDFWXY.js";
121
121
  import {
122
122
  Credentials,
123
123
  pathsAreOverridden,
124
124
  resolvePaths,
125
125
  writeSecurely
126
- } from "./chunk-GYEOQS2D.js";
126
+ } from "./chunk-DG62L57H.js";
127
127
  import {
128
128
  CliError,
129
129
  array,
@@ -148,7 +148,7 @@ import {
148
148
  transform,
149
149
  trim,
150
150
  union
151
- } from "./chunk-WE3LBRMB.js";
151
+ } from "./chunk-OEJ5DMCX.js";
152
152
  import {
153
153
  __commonJS,
154
154
  __name,
@@ -5488,11 +5488,11 @@ var require_liquid_node = __commonJS({
5488
5488
  }
5489
5489
  });
5490
5490
 
5491
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5491
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5492
5492
  import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
5493
5493
  import { dirname, resolve } from "node:path";
5494
5494
 
5495
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/sealed.js
5495
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/sealed.js
5496
5496
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5497
5497
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5498
5498
  import { Transform } from "node:stream";
@@ -5599,7 +5599,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5599
5599
  renameSync(pending, to);
5600
5600
  }, "unsealFile");
5601
5601
 
5602
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5602
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5603
5603
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5604
5604
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5605
5605
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5623,7 +5623,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5623
5623
  };
5624
5624
  }, "compatibilityOf");
5625
5625
 
5626
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/store/repair.js
5626
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/store/repair.js
5627
5627
  import { createHash as createHash2 } from "node:crypto";
5628
5628
  var COPY_MARK = "__repair_";
5629
5629
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5877,7 +5877,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5877
5877
  return found;
5878
5878
  }, "deleteCopy");
5879
5879
 
5880
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5880
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5881
5881
  import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
5882
5882
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
5883
5883
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
@@ -5924,7 +5924,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
5924
5924
  renderAnswer(this, outputFor(this), itemOf(answer));
5925
5925
  }), "storeInfoCommand");
5926
5926
 
5927
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5927
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5928
5928
  var ENCRYPT_OPTION = [
5929
5929
  "--encrypt",
5930
5930
  "compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
@@ -5943,7 +5943,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
5943
5943
  return password;
5944
5944
  }, "passwordOf");
5945
5945
 
5946
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/replies/rules.js
5946
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/replies/rules.js
5947
5947
  import { existsSync as existsSync3, readFileSync } from "node:fs";
5948
5948
  import { join } from "node:path";
5949
5949
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6114,7 +6114,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6114
6114
  }, "problem");
6115
6115
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6116
6116
 
6117
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/replies/state.js
6117
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/replies/state.js
6118
6118
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
6119
6119
  import { join as join2 } from "node:path";
6120
6120
  var ANSWERED_KEPT = 1e3;
@@ -6167,7 +6167,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6167
6167
  }, "recordReply");
6168
6168
  var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
6169
6169
 
6170
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/replies/decide.js
6170
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/replies/decide.js
6171
6171
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6172
6172
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6173
6173
  const { message, chat, owner, sender } = incoming;
@@ -6273,7 +6273,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
6273
6273
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
6274
6274
  }, "filled");
6275
6275
 
6276
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/replies/template.js
6276
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/replies/template.js
6277
6277
  var import_liquidjs = __toESM(require_liquid_node(), 1);
6278
6278
  var TEMPLATE_LIMITS = {
6279
6279
  parse: 32768,
@@ -6433,7 +6433,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
6433
6433
  }
6434
6434
  }, "renderReplyTemplate");
6435
6435
 
6436
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6436
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6437
6437
  var DRY_RUN_DAYS = 7;
6438
6438
  var PAGE = 500;
6439
6439
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -6547,7 +6547,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
6547
6547
  }
6548
6548
  }, "storedSince");
6549
6549
 
6550
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6550
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6551
6551
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
6552
6552
  const host = new URL(baseUrl).host;
6553
6553
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -6578,7 +6578,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
6578
6578
  };
6579
6579
  }, "embeddingKeys");
6580
6580
 
6581
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/models/openai.js
6581
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/models/openai.js
6582
6582
  var options = strictObject({
6583
6583
  temperature: range(0, 2),
6584
6584
  top_p: range(0, 1),
@@ -6627,7 +6627,7 @@ var openai = {
6627
6627
  }, "complete")
6628
6628
  };
6629
6629
 
6630
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/models/index.js
6630
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/models/index.js
6631
6631
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
6632
6632
  complete: /* @__PURE__ */ __name(async (request) => {
6633
6633
  if (deps.signal?.aborted)
@@ -6642,7 +6642,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6642
6642
  if (!adapter && target.provider === "openai")
6643
6643
  adapter = openai;
6644
6644
  if (!adapter && target.provider === "anthropic")
6645
- adapter = (await import("./anthropic-RJE4XEOO.js")).anthropic;
6645
+ adapter = (await import("./anthropic-IRKNWPIB.js")).anthropic;
6646
6646
  if (!adapter)
6647
6647
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
6648
6648
  if (request.images !== void 0 && adapter.images !== true)
@@ -6683,7 +6683,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6683
6683
  }, "complete")
6684
6684
  }), "modelGateway");
6685
6685
 
6686
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/replies/consents.js
6686
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/replies/consents.js
6687
6687
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
6688
6688
  import { join as join3 } from "node:path";
6689
6689
  var shape = strictObject({
@@ -6708,7 +6708,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
6708
6708
  return consent.provider === provider && !consent.deniedChats.includes(chat);
6709
6709
  }, "mayModelReply");
6710
6710
 
6711
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6711
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6712
6712
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
6713
6713
  ai: true
6714
6714
  }) => async (rule2, message, chat, now) => {
@@ -6755,7 +6755,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
6755
6755
  return result2;
6756
6756
  }, "replyRenderer");
6757
6757
 
6758
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/replies/serve.js
6758
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/replies/serve.js
6759
6759
  var NOT_ALLOWED = "replies.send is not allow";
6760
6760
  var NO_RULES = "no rules";
6761
6761
  var ONLY_TASK = "opened a task, sent nothing";
@@ -6848,7 +6848,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
6848
6848
  return { skip: why };
6849
6849
  }, "replyTo");
6850
6850
 
6851
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6851
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6852
6852
  var FIRST_FETCH_MS = 6e4;
6853
6853
  var DAY_MS = 864e5;
6854
6854
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -6902,7 +6902,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
6902
6902
  };
6903
6903
  }, "memberFetches");
6904
6904
 
6905
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6905
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6906
6906
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
6907
6907
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
6908
6908
  if (context.format === "pretty") {
@@ -6935,7 +6935,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
6935
6935
  return context;
6936
6936
  }, "recordDiagnostics");
6937
6937
 
6938
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6938
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6939
6939
  var STEMS_EVERY_MS = 3e4;
6940
6940
  var STEMS_SLICE_MS = 2e3;
6941
6941
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -6975,7 +6975,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
6975
6975
  };
6976
6976
  }, "stemFills");
6977
6977
 
6978
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
6978
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
6979
6979
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
6980
6980
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
6981
6981
  kind: attachment.kind,
@@ -7062,7 +7062,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
7062
7062
  locale: messenger.app.locale
7063
7063
  }), "viewOf");
7064
7064
 
7065
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7065
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7066
7066
  var observed = /* @__PURE__ */ __name((value) => ({
7067
7067
  value: value.value,
7068
7068
  observed_at: value.observedAt,
@@ -7129,7 +7129,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
7129
7129
  }
7130
7130
  }, "watchEventItem");
7131
7131
 
7132
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7132
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7133
7133
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
7134
7134
  output: { entity: "watch_item" },
7135
7135
  effects: REMOTE_READ,
@@ -7284,7 +7284,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
7284
7284
  }
7285
7285
  }, "describe");
7286
7286
 
7287
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7287
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7288
7288
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
7289
7289
  const command = annotate(new Command("serve"), {
7290
7290
  output: { entity: "serve_summary" },
@@ -7500,7 +7500,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
7500
7500
  };
7501
7501
  }, "tasking");
7502
7502
 
7503
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7503
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7504
7504
  import { existsSync as existsSync6 } from "node:fs";
7505
7505
  var PATH = "store tables list";
7506
7506
  var STORE_TABLES_QUERY = {
@@ -7543,7 +7543,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
7543
7543
  return tables;
7544
7544
  }, "storeTablesCommand");
7545
7545
 
7546
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7546
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7547
7547
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
7548
7548
  var WORD_INDEX = "message_words";
7549
7549
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -9,28 +9,28 @@ import {
9
9
  levelFor,
10
10
  logAttributes,
11
11
  skipFlagFor
12
- } from "./chunk-U7LXA4SO.js";
12
+ } from "./chunk-OPBTNQ35.js";
13
13
  import {
14
14
  MESSENGER_CHANGE_REFUSAL,
15
15
  readOnlyRefusal
16
- } from "./chunk-ASDZHG5I.js";
16
+ } from "./chunk-ZV24I2UJ.js";
17
17
  import {
18
18
  logRecordOf,
19
19
  realSleep,
20
20
  resolvePaths,
21
21
  writeSecurely
22
- } from "./chunk-GYEOQS2D.js";
22
+ } from "./chunk-DG62L57H.js";
23
23
  import {
24
24
  CliError
25
- } from "./chunk-WE3LBRMB.js";
25
+ } from "./chunk-OEJ5DMCX.js";
26
26
  import {
27
27
  __name
28
28
  } from "./chunk-AFV74GK3.js";
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/sends/guard.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/sends/guard.js
31
31
  import { randomUUID } from "node:crypto";
32
32
 
33
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/sends/flood.js
33
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/sends/flood.js
34
34
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
35
35
  import { dirname, join } from "node:path";
36
36
  var MOST_DEADLINES = 50;
@@ -114,11 +114,11 @@ var FloodMemory = class {
114
114
  }
115
115
  };
116
116
 
117
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/sends/journal.js
117
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/sends/journal.js
118
118
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
119
119
  import { dirname as dirname3, join as join2 } from "node:path";
120
120
 
121
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
121
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
122
122
  import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
123
123
  import { dirname as dirname2 } from "node:path";
124
124
  var LOCK_WAIT_MS = 5e3;
@@ -185,7 +185,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
185
185
  }
186
186
  }, "lockTime");
187
187
 
188
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/sends/journal.js
188
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/sends/journal.js
189
189
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
190
190
  var SendJournal = class {
191
191
  static {
@@ -262,7 +262,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
262
262
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
263
263
  }, "withSendId");
264
264
 
265
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/sends/recipients.js
265
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/sends/recipients.js
266
266
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
267
267
  import { join as join3 } from "node:path";
268
268
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -374,7 +374,7 @@ var RecipientList = class {
374
374
  }
375
375
  };
376
376
 
377
- // node_modules/.pnpm/@wirecat+cli-core@0.452.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.63.0_commander@15._e609b9d6c8060966368a91e843fe8bd2/node_modules/@wirecat/cli-core/dist/sends/guard.js
377
+ // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/sends/guard.js
378
378
  var HOUR_MS = 60 * 60 * 1e3;
379
379
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
380
380
  "attachments.extract",
@@ -557,6 +557,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
557
557
  ...settings.readOnlyLock ? { readOnlyLock: settings.readOnlyLock } : {},
558
558
  permissions: /* @__PURE__ */ __name(() => settings.permissions, "permissions"),
559
559
  permissionSources: settings.permissionSources,
560
+ ...settings.permissionDefaults ? { permissionDefaults: settings.permissionDefaults } : {},
560
561
  ...ask ? { ask } : {},
561
562
  sendsPerHour: settings.sendsPerHour,
562
563
  journal: new SendJournal(sendsPathFor(app, settings.profile, env), { service: app.command, version: app.version }),
@@ -14,7 +14,7 @@ import {
14
14
  safeParse,
15
15
  stepOf,
16
16
  writes
17
- } from "./chunk-WE3LBRMB.js";
17
+ } from "./chunk-OEJ5DMCX.js";
18
18
  import {
19
19
  __commonJS,
20
20
  __name,
@@ -1887,7 +1887,7 @@ var require_cli_table3 = __commonJS({
1887
1887
  }
1888
1888
  });
1889
1889
 
1890
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
1890
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
1891
1891
  var EXIT_CODES = {
1892
1892
  validation_error: 2,
1893
1893
  configuration_error: 3,
@@ -1907,7 +1907,7 @@ var EXIT_CODES = {
1907
1907
  var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
1908
1908
  var GENERIC_FAILURE = 1;
1909
1909
 
1910
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
1910
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
1911
1911
  var CONTROL = (
1912
1912
  // biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
1913
1913
  /[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
@@ -1931,7 +1931,7 @@ var visibleControls = /* @__PURE__ */ __name((text) => {
1931
1931
  }, "visibleControls");
1932
1932
  var singleLine = /* @__PURE__ */ __name((text) => visibleControls(text).replace(LINE_BREAKS, escaped), "singleLine");
1933
1933
 
1934
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
1934
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
1935
1935
  var recognise = /* @__PURE__ */ __name((failure) => {
1936
1936
  if (isCliError(failure))
1937
1937
  return failure;
@@ -2078,7 +2078,7 @@ var catchCrashes = /* @__PURE__ */ __name((options) => {
2078
2078
  };
2079
2079
  }, "catchCrashes");
2080
2080
 
2081
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
2081
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
2082
2082
  var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
2083
2083
  if (signal?.aborted)
2084
2084
  return Promise.reject(signal.reason);
@@ -2106,7 +2106,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
2106
2106
  });
2107
2107
  }, "waitForDrain");
2108
2108
 
2109
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
2109
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
2110
2110
  var processStreams = {
2111
2111
  drain: /* @__PURE__ */ __name(async (signal) => {
2112
2112
  await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
@@ -2135,7 +2135,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
2135
2135
  };
2136
2136
  }, "captureStreams");
2137
2137
 
2138
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
2138
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
2139
2139
  var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
2140
2140
  var validate = /* @__PURE__ */ __name((paths) => {
2141
2141
  if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
@@ -2200,7 +2200,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
2200
2200
  return project(value, fields);
2201
2201
  }, "projectFields");
2202
2202
 
2203
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
2203
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
2204
2204
  var BATCH_LIMITS = Object.freeze({
2205
2205
  requests: 32,
2206
2206
  input_bytes: 262144,
@@ -2327,7 +2327,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
2327
2327
  };
2328
2328
  }, "runBatch");
2329
2329
 
2330
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
2330
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
2331
2331
  import { randomBytes } from "node:crypto";
2332
2332
  import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
2333
2333
  import { dirname, join } from "node:path";
@@ -2371,11 +2371,11 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
2371
2371
  `, 384);
2372
2372
  }, "saveConfigFile");
2373
2373
 
2374
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2374
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2375
2375
  import { readFileSync as readFileSync2 } from "node:fs";
2376
2376
  import { join as join2 } from "node:path";
2377
2377
 
2378
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
2378
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
2379
2379
  import { createRequire } from "node:module";
2380
2380
  var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
2381
2381
  var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
@@ -2395,7 +2395,7 @@ var systemKeyring = {
2395
2395
  delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
2396
2396
  };
2397
2397
 
2398
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2398
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2399
2399
  var keyringService = /* @__PURE__ */ __name((service, configDir, isolated = false) => isolated ? `${service}:${configDir}` : service, "keyringService");
2400
2400
  var Credentials = class {
2401
2401
  static {
@@ -2502,7 +2502,7 @@ var Credentials = class {
2502
2502
  }
2503
2503
  };
2504
2504
 
2505
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
2505
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
2506
2506
  var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
2507
2507
  var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve, reject) => {
2508
2508
  if (signal?.aborted) {
@@ -2516,7 +2516,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve, rej
2516
2516
  }, { once: true });
2517
2517
  }), "realSleep");
2518
2518
 
2519
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2519
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2520
2520
  import { appendFileSync } from "node:fs";
2521
2521
  var REDACTED_FIELDS = [
2522
2522
  "authorization",
@@ -2611,7 +2611,7 @@ var silent = {
2611
2611
  }, "error")
2612
2612
  };
2613
2613
 
2614
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
2614
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
2615
2615
  import { homedir } from "node:os";
2616
2616
  import { join as join3, posix, win32 } from "node:path";
2617
2617
  var PATH_KINDS = ["config", "state", "cache"];
@@ -2647,7 +2647,7 @@ var resolvePaths = /* @__PURE__ */ __name((options) => {
2647
2647
  var pathsAreOverridden = /* @__PURE__ */ __name(({ appName, prefix, env = process.env }) => PATH_KINDS.some((kind) => env[overrideName(appName, prefix, kind)] !== void 0), "pathsAreOverridden");
2648
2648
  var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join3(configDir, fileName), "configFilePath");
2649
2649
 
2650
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
2650
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
2651
2651
  var import_cli_table3 = __toESM(require_cli_table3(), 1);
2652
2652
  import { styleText } from "node:util";
2653
2653
  var renderPretty = /* @__PURE__ */ __name((value, options) => {
@@ -2722,7 +2722,7 @@ var BORDERLESS = {
2722
2722
  middle: ""
2723
2723
  };
2724
2724
 
2725
- // node_modules/.pnpm/@wirecat+cli-base@0.63.0_commander@15.0.0_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
2725
+ // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
2726
2726
  var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
2727
2727
  const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
2728
2728
  const say = /* @__PURE__ */ __name((symbol) => (message) => {