@wirecat/tg-cli 0.112.0 → 0.113.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 (101) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-ILDV2YSZ.js → adapter-EQKEFGPB.js} +45 -45
  3. package/dist/bundle/{all-profiles-4SH2Q4WV.js → all-profiles-TTBFF663.js} +8 -8
  4. package/dist/bundle/{anthropic-64SM23YO.js → anthropic-XPZS7267.js} +5 -5
  5. package/dist/bundle/{app-server-SSYZWCDJ.js → app-server-ZSZ7KRAY.js} +42 -42
  6. package/dist/bundle/{bot-api-OHAGQMES.js → bot-api-X7BOVNIO.js} +46 -46
  7. package/dist/bundle/{bot-history-AUFO7UL2.js → bot-history-DWIUIPN5.js} +15 -15
  8. package/dist/bundle/{bun-AHZX63TR.js → bun-ZGZVAJU2.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-KBIIODPV.js → bun-sqlite-UN2UJ6SI.js} +4 -4
  10. package/dist/bundle/{chunk-DFUTZGEV.js → chunk-3MAYYFKY.js} +1 -1
  11. package/dist/bundle/{chunk-B3Y2KZRS.js → chunk-452UZ2PU.js} +110 -95
  12. package/dist/bundle/{chunk-SC2DUQAK.js → chunk-4GLMEES6.js} +1 -1
  13. package/dist/bundle/{chunk-BTAET4U3.js → chunk-4SQB5VKL.js} +1 -1
  14. package/dist/bundle/{chunk-GM44UNGL.js → chunk-5NF7M4MN.js} +1 -1
  15. package/dist/bundle/{chunk-JXTYTAWE.js → chunk-6F6K3LWV.js} +11 -11
  16. package/dist/bundle/{chunk-XSYJKEA5.js → chunk-6OKGHHRL.js} +4 -4
  17. package/dist/bundle/{chunk-DNYGJAEP.js → chunk-6WJ5M2Q4.js} +4 -4
  18. package/dist/bundle/{chunk-NQKPXVLX.js → chunk-7IWDS2CM.js} +2 -2
  19. package/dist/bundle/{chunk-3AJO4GER.js → chunk-AGUCXSSM.js} +5 -5
  20. package/dist/bundle/{chunk-E4EJ2UTT.js → chunk-AVUIWZTP.js} +2 -2
  21. package/dist/bundle/{chunk-JIGYVVWA.js → chunk-BI5YJZJB.js} +31 -27
  22. package/dist/bundle/{chunk-MCXVGHL6.js → chunk-EGR5IJCG.js} +32 -25
  23. package/dist/bundle/{chunk-K7VOCHVS.js → chunk-ENXO43TV.js} +6 -6
  24. package/dist/bundle/{chunk-D5JP2YWG.js → chunk-G74QMORP.js} +2 -2
  25. package/dist/bundle/{chunk-4JXZKMXV.js → chunk-GX4LRLVD.js} +68 -59
  26. package/dist/bundle/{chunk-EO7PQE3J.js → chunk-HNN7EKIM.js} +90 -73
  27. package/dist/bundle/{chunk-UXCWUEN7.js → chunk-HO53POQG.js} +5 -5
  28. package/dist/bundle/{chunk-2IGZLBTE.js → chunk-IDUYRTPF.js} +2 -2
  29. package/dist/bundle/{chunk-JPRYFDOJ.js → chunk-IYKRHDX6.js} +44 -44
  30. package/dist/bundle/{chunk-BIERCQVG.js → chunk-J6USEBA6.js} +313 -258
  31. package/dist/bundle/{chunk-KYYAHIG2.js → chunk-JDQSX2JQ.js} +416 -337
  32. package/dist/bundle/{chunk-EPAOLRUL.js → chunk-JO45BOYE.js} +2 -2
  33. package/dist/bundle/{chunk-SFJFBIYP.js → chunk-JRTZ5I6M.js} +2 -2
  34. package/dist/bundle/{chunk-6KGENDPF.js → chunk-JW7BMJ6O.js} +2 -2
  35. package/dist/bundle/{chunk-5BNYW5RA.js → chunk-K3F46QVN.js} +2 -2
  36. package/dist/bundle/{chunk-JYOQMYNJ.js → chunk-KK3JVOOV.js} +30 -30
  37. package/dist/bundle/{chunk-GW7JRFTF.js → chunk-KOWQVHXI.js} +3 -3
  38. package/dist/bundle/{chunk-KLNQXUDX.js → chunk-KQ23JWLJ.js} +20 -18
  39. package/dist/bundle/{chunk-UVRD447S.js → chunk-KVLCIZUK.js} +3 -3
  40. package/dist/bundle/{chunk-UQOSZ2XX.js → chunk-MTX5EDYJ.js} +636 -473
  41. package/dist/bundle/{chunk-RANORATG.js → chunk-OC4RRFKH.js} +4 -4
  42. package/dist/bundle/{chunk-3GL4AOOG.js → chunk-OQR442B6.js} +1 -1
  43. package/dist/bundle/{chunk-3W7BU2BL.js → chunk-OSBAISA5.js} +6 -6
  44. package/dist/bundle/{chunk-COTC7HF3.js → chunk-OYNSFQ7K.js} +1 -1
  45. package/dist/bundle/{chunk-QL4WBCL5.js → chunk-PCRLXJRH.js} +11 -7
  46. package/dist/bundle/{chunk-PXUHQO66.js → chunk-PHPNA2HU.js} +11 -11
  47. package/dist/bundle/{chunk-RHYMEHYK.js → chunk-PHYDBR5M.js} +2 -2
  48. package/dist/bundle/{chunk-NKACHGB2.js → chunk-Q264PYGE.js} +40 -14
  49. package/dist/bundle/{chunk-ICEJKOKO.js → chunk-T4TTRFP5.js} +7 -7
  50. package/dist/bundle/{chunk-JLB5LEXJ.js → chunk-T5RM4Y35.js} +3 -3
  51. package/dist/bundle/{chunk-TOBJGMMA.js → chunk-TQ6EA7TB.js} +11 -11
  52. package/dist/bundle/{chunk-RPNRCFEE.js → chunk-TUD4MU7S.js} +2 -2
  53. package/dist/bundle/{chunk-TUJEJ4D5.js → chunk-U3MJQLZQ.js} +13 -13
  54. package/dist/bundle/{chunk-4IDJ7QCG.js → chunk-UE75KPAC.js} +4 -4
  55. package/dist/bundle/{chunk-7MFJFVUN.js → chunk-UIVLDKWT.js} +1 -1
  56. package/dist/bundle/{chunk-WI2S6INJ.js → chunk-VDATXIO4.js} +6 -6
  57. package/dist/bundle/{chunk-WWKXTKCE.js → chunk-VDEXNNMH.js} +4 -4
  58. package/dist/bundle/{chunk-5W72OARG.js → chunk-VVA4555T.js} +8 -8
  59. package/dist/bundle/{chunk-QMJGHSGN.js → chunk-WSAHUQ6K.js} +3 -3
  60. package/dist/bundle/{chunk-KGYPSBTI.js → chunk-XXNJF3ZM.js} +32 -26
  61. package/dist/bundle/{chunk-GSGS62LX.js → chunk-XZ2ZHIAO.js} +1 -1
  62. package/dist/bundle/{chunk-RC7EBLHM.js → chunk-Z6TRIW2O.js} +8 -8
  63. package/dist/bundle/{chunk-PDVSMGWO.js → chunk-ZID2Y4XU.js} +2 -2
  64. package/dist/bundle/command-contract-GV67H22L.js +32 -0
  65. package/dist/bundle/{decode-FR3QHHJI.js → decode-AMQVTEMW.js} +4 -4
  66. package/dist/bundle/{echarts-VTV4C2OS.js → echarts-ECYONFQJ.js} +2 -2
  67. package/dist/bundle/{embed-US7X5P5D.js → embed-VZYBZEWI.js} +5 -5
  68. package/dist/bundle/{embedder-63Z7ZBYG.js → embedder-GSWBGHRK.js} +8 -8
  69. package/dist/bundle/{entry-B4J7IAG3.js → entry-LALZILY4.js} +5 -5
  70. package/dist/bundle/{first-run-MXPPUGII.js → first-run-LEAI623Q.js} +9 -9
  71. package/dist/bundle/first-screen-MOCVLE23.js +30 -0
  72. package/dist/bundle/{identity-AQWKU7SM.js → identity-54HA5GN6.js} +3 -3
  73. package/dist/bundle/{instructions-GBR6DJTK.js → instructions-AXLQQS3G.js} +1 -1
  74. package/dist/bundle/{mcp-YJEQYYTR.js → mcp-VVMPUDSL.js} +2 -2
  75. package/dist/bundle/{node-QXGPMDH2.js → node-7JHC5K77.js} +2 -2
  76. package/dist/bundle/{node-sqlite-L6CAMXQ2.js → node-sqlite-LYJEK46T.js} +4 -4
  77. package/dist/bundle/{oauth-5RK6J4SG.js → oauth-BROPKI3K.js} +6 -6
  78. package/dist/bundle/{open-A3IAG7U6.js → open-C6XQ46JK.js} +3 -3
  79. package/dist/bundle/{openai-YKNGCHVV.js → openai-VWSU7ZDD.js} +13 -13
  80. package/dist/bundle/{process-CGLNXFIU.js → process-QKEFL5HL.js} +1 -1
  81. package/dist/bundle/{program-AEDR6R5P.js → program-ACY7O33O.js} +48 -48
  82. package/dist/bundle/{prompt-65CSCL2T.js → prompt-EGULVW2F.js} +4 -4
  83. package/dist/bundle/{proxy-transport-U3QOYMQF.js → proxy-transport-KIMADLQ2.js} +4 -4
  84. package/dist/bundle/{recognize-ECRO6CFK.js → recognize-UMTKLWVR.js} +3 -3
  85. package/dist/bundle/{remote-6IEFZFGO.js → remote-DABI7PSQ.js} +6 -6
  86. package/dist/bundle/{rerank-23GXWT2V.js → rerank-ZFATWWBE.js} +6 -6
  87. package/dist/bundle/{serve-S65YTPZN.js → serve-B7YYCMGN.js} +8 -8
  88. package/dist/bundle/{server-MVTBK7GV.js → server-DGKZISZH.js} +32 -32
  89. package/dist/bundle/server-UC7UWUIS.js +56 -0
  90. package/dist/bundle/{state-TH3UVQAW.js → state-AQ2PABA5.js} +5 -5
  91. package/dist/bundle/{store-2WFTUSNG.js → store-46GJTFLJ.js} +10 -10
  92. package/dist/bundle/store-maintenance-command-FCFKHGRM.js +45 -0
  93. package/dist/bundle/tg.js +4 -4
  94. package/dist/version.d.ts +1 -1
  95. package/dist/version.js +1 -1
  96. package/package.json +3 -3
  97. package/dist/bundle/command-contract-4KVJJZ46.js +0 -32
  98. package/dist/bundle/first-screen-GFYHUBBD.js +0 -30
  99. package/dist/bundle/server-IH24WEAC.js +0 -56
  100. package/dist/bundle/store-maintenance-command-PUOU2CL6.js +0 -45
  101. /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-HPXYN7F3.js} +0 -0
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answerOf,
5
5
  messengerContext
6
- } from "./chunk-JIGYVVWA.js";
6
+ } from "./chunk-BI5YJZJB.js";
7
7
  import {
8
8
  RULES_VERSION,
9
9
  applyTaskRulesOnArrival,
@@ -20,7 +20,7 @@ import {
20
20
  syncsOneChat,
21
21
  typedQuery,
22
22
  withQuery
23
- } from "./chunk-KYYAHIG2.js";
23
+ } from "./chunk-JDQSX2JQ.js";
24
24
  import {
25
25
  stringWidth,
26
26
  wrapAnsi
@@ -51,32 +51,32 @@ import {
51
51
  snakeKeys,
52
52
  storeTable,
53
53
  withoutProviderRefs
54
- } from "./chunk-4JXZKMXV.js";
54
+ } from "./chunk-GX4LRLVD.js";
55
55
  import {
56
56
  failureKey
57
- } from "./chunk-RC7EBLHM.js";
57
+ } from "./chunk-Z6TRIW2O.js";
58
58
  import {
59
59
  envName
60
- } from "./chunk-2IGZLBTE.js";
60
+ } from "./chunk-IDUYRTPF.js";
61
61
  import {
62
62
  holdLock,
63
63
  lockPath,
64
64
  releaseLock,
65
65
  servingProfiles,
66
66
  takeLock
67
- } from "./chunk-GW7JRFTF.js";
67
+ } from "./chunk-KOWQVHXI.js";
68
68
  import {
69
69
  holdersOf
70
- } from "./chunk-3GL4AOOG.js";
70
+ } from "./chunk-OQR442B6.js";
71
71
  import {
72
72
  checkedOptions,
73
73
  range
74
- } from "./chunk-6KGENDPF.js";
74
+ } from "./chunk-JW7BMJ6O.js";
75
75
  import {
76
76
  messagesFor,
77
77
  systemFor,
78
78
  validateImages
79
- } from "./chunk-RPNRCFEE.js";
79
+ } from "./chunk-TUD4MU7S.js";
80
80
  import {
81
81
  MIGRATIONS,
82
82
  drainNoteIndex,
@@ -105,19 +105,19 @@ import {
105
105
  storeClients,
106
106
  storeContents,
107
107
  vectorIndexCounts
108
- } from "./chunk-BIERCQVG.js";
108
+ } from "./chunk-J6USEBA6.js";
109
109
  import {
110
110
  queryFieldsOf
111
- } from "./chunk-EO7PQE3J.js";
111
+ } from "./chunk-HNN7EKIM.js";
112
112
  import {
113
113
  storePath
114
- } from "./chunk-RHYMEHYK.js";
114
+ } from "./chunk-PHYDBR5M.js";
115
115
  import {
116
116
  openCache
117
- } from "./chunk-3W7BU2BL.js";
117
+ } from "./chunk-OSBAISA5.js";
118
118
  import {
119
119
  readSecret
120
- } from "./chunk-QMJGHSGN.js";
120
+ } from "./chunk-WSAHUQ6K.js";
121
121
  import {
122
122
  Credentials,
123
123
  pathsAreOverridden,
@@ -125,7 +125,7 @@ import {
125
125
  singleLine,
126
126
  visibleControls,
127
127
  writeSecurely
128
- } from "./chunk-KLNQXUDX.js";
128
+ } from "./chunk-KQ23JWLJ.js";
129
129
  import {
130
130
  CliError,
131
131
  array,
@@ -150,7 +150,7 @@ import {
150
150
  transform,
151
151
  trim,
152
152
  union
153
- } from "./chunk-QL4WBCL5.js";
153
+ } from "./chunk-PCRLXJRH.js";
154
154
  import {
155
155
  __commonJS,
156
156
  __name,
@@ -5490,11 +5490,11 @@ var require_liquid_node = __commonJS({
5490
5490
  }
5491
5491
  });
5492
5492
 
5493
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5493
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5494
5494
  import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
5495
5495
  import { dirname, resolve } from "node:path";
5496
5496
 
5497
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/sealed.js
5497
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/sealed.js
5498
5498
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5499
5499
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5500
5500
  import { Transform } from "node:stream";
@@ -5601,7 +5601,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5601
5601
  renameSync(pending, to);
5602
5602
  }, "unsealFile");
5603
5603
 
5604
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5604
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5605
5605
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5606
5606
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5607
5607
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5625,7 +5625,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5625
5625
  };
5626
5626
  }, "compatibilityOf");
5627
5627
 
5628
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/repair.js
5628
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/store/repair.js
5629
5629
  import { createHash as createHash2 } from "node:crypto";
5630
5630
  var COPY_MARK = "__repair_";
5631
5631
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5879,7 +5879,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5879
5879
  return found;
5880
5880
  }, "deleteCopy");
5881
5881
 
5882
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5882
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5883
5883
  import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
5884
5884
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
5885
5885
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
@@ -5926,7 +5926,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
5926
5926
  renderAnswer(this, outputFor(this), itemOf(answer));
5927
5927
  }), "storeInfoCommand");
5928
5928
 
5929
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5929
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5930
5930
  var ENCRYPT_OPTION = [
5931
5931
  "--encrypt",
5932
5932
  "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"
@@ -5945,7 +5945,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
5945
5945
  return password;
5946
5946
  }, "passwordOf");
5947
5947
 
5948
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/replies/rules.js
5948
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/replies/rules.js
5949
5949
  import { existsSync as existsSync3, readFileSync } from "node:fs";
5950
5950
  import { join } from "node:path";
5951
5951
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6116,7 +6116,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6116
6116
  }, "problem");
6117
6117
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6118
6118
 
6119
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/replies/state.js
6119
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/replies/state.js
6120
6120
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
6121
6121
  import { join as join2 } from "node:path";
6122
6122
  var ANSWERED_KEPT = 1e3;
@@ -6169,7 +6169,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6169
6169
  }, "recordReply");
6170
6170
  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");
6171
6171
 
6172
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/replies/decide.js
6172
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/replies/decide.js
6173
6173
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6174
6174
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6175
6175
  const { message, chat, owner, sender } = incoming;
@@ -6275,7 +6275,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
6275
6275
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
6276
6276
  }, "filled");
6277
6277
 
6278
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/replies/template.js
6278
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/replies/template.js
6279
6279
  var import_liquidjs = __toESM(require_liquid_node(), 1);
6280
6280
  var TEMPLATE_LIMITS = {
6281
6281
  parse: 32768,
@@ -6435,7 +6435,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
6435
6435
  }
6436
6436
  }, "renderReplyTemplate");
6437
6437
 
6438
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6438
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6439
6439
  var DRY_RUN_DAYS = 7;
6440
6440
  var PAGE = 500;
6441
6441
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -6549,7 +6549,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
6549
6549
  }
6550
6550
  }, "storedSince");
6551
6551
 
6552
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6552
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6553
6553
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
6554
6554
  const host = new URL(baseUrl).host;
6555
6555
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -6580,7 +6580,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
6580
6580
  };
6581
6581
  }, "embeddingKeys");
6582
6582
 
6583
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/models/openai.js
6583
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/models/openai.js
6584
6584
  var options = strictObject({
6585
6585
  temperature: range(0, 2),
6586
6586
  top_p: range(0, 1),
@@ -6629,7 +6629,7 @@ var openai = {
6629
6629
  }, "complete")
6630
6630
  };
6631
6631
 
6632
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/models/index.js
6632
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/models/index.js
6633
6633
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
6634
6634
  complete: /* @__PURE__ */ __name(async (request) => {
6635
6635
  if (deps.signal?.aborted)
@@ -6644,7 +6644,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6644
6644
  if (!adapter && target.provider === "openai")
6645
6645
  adapter = openai;
6646
6646
  if (!adapter && target.provider === "anthropic")
6647
- adapter = (await import("./anthropic-64SM23YO.js")).anthropic;
6647
+ adapter = (await import("./anthropic-XPZS7267.js")).anthropic;
6648
6648
  if (!adapter)
6649
6649
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
6650
6650
  if (request.images !== void 0 && adapter.images !== true)
@@ -6685,7 +6685,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6685
6685
  }, "complete")
6686
6686
  }), "modelGateway");
6687
6687
 
6688
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/replies/consents.js
6688
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/replies/consents.js
6689
6689
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
6690
6690
  import { join as join3 } from "node:path";
6691
6691
  var shape = strictObject({
@@ -6710,7 +6710,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
6710
6710
  return consent.provider === provider && !consent.deniedChats.includes(chat);
6711
6711
  }, "mayModelReply");
6712
6712
 
6713
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6713
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6714
6714
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
6715
6715
  ai: true
6716
6716
  }) => async (rule2, message, chat, now) => {
@@ -6757,7 +6757,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
6757
6757
  return result2;
6758
6758
  }, "replyRenderer");
6759
6759
 
6760
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/replies/serve.js
6760
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/replies/serve.js
6761
6761
  var NOT_ALLOWED = "replies.send is not allow";
6762
6762
  var NO_RULES = "no rules";
6763
6763
  var ONLY_TASK = "opened a task, sent nothing";
@@ -6850,7 +6850,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
6850
6850
  return { skip: why };
6851
6851
  }, "replyTo");
6852
6852
 
6853
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6853
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6854
6854
  var FIRST_FETCH_MS = 6e4;
6855
6855
  var DAY_MS = 864e5;
6856
6856
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -6904,7 +6904,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
6904
6904
  };
6905
6905
  }, "memberFetches");
6906
6906
 
6907
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6907
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6908
6908
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
6909
6909
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
6910
6910
  if (context.format === "pretty") {
@@ -6937,7 +6937,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
6937
6937
  return context;
6938
6938
  }, "recordDiagnostics");
6939
6939
 
6940
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6940
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6941
6941
  var STEMS_EVERY_MS = 3e4;
6942
6942
  var STEMS_SLICE_MS = 2e3;
6943
6943
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -6977,7 +6977,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
6977
6977
  };
6978
6978
  }, "stemFills");
6979
6979
 
6980
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/render/messages.js
6980
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/render/messages.js
6981
6981
  import { styleText } from "node:util";
6982
6982
  var TIME_WIDTH = 8;
6983
6983
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -7153,7 +7153,7 @@ var editedAt = /* @__PURE__ */ __name((message, options2) => {
7153
7153
  return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
7154
7154
  }, "editedAt");
7155
7155
 
7156
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7156
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7157
7157
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
7158
7158
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
7159
7159
  kind: attachment.kind,
@@ -7248,7 +7248,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
7248
7248
  locale: messenger.app.locale
7249
7249
  }), "viewOf");
7250
7250
 
7251
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7251
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7252
7252
  var observed = /* @__PURE__ */ __name((value) => ({
7253
7253
  value: value.value,
7254
7254
  observed_at: value.observedAt,
@@ -7315,7 +7315,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
7315
7315
  }
7316
7316
  }, "watchEventItem");
7317
7317
 
7318
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7318
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7319
7319
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
7320
7320
  output: { entity: "watch_item" },
7321
7321
  effects: REMOTE_READ,
@@ -7470,7 +7470,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
7470
7470
  }
7471
7471
  }, "describe");
7472
7472
 
7473
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7473
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7474
7474
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
7475
7475
  const command = annotate(new Command("serve"), {
7476
7476
  output: { entity: "serve_summary" },
@@ -7686,7 +7686,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
7686
7686
  };
7687
7687
  }, "tasking");
7688
7688
 
7689
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7689
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7690
7690
  import { existsSync as existsSync6 } from "node:fs";
7691
7691
  var PATH = "store tables list";
7692
7692
  var STORE_TABLES_QUERY = {
@@ -7729,7 +7729,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
7729
7729
  return tables;
7730
7730
  }, "storeTablesCommand");
7731
7731
 
7732
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7732
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7733
7733
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
7734
7734
  var WORD_INDEX = "message_words";
7735
7735
  var schemaOf = /* @__PURE__ */ __name((database) => {