@wirecat/tg-cli 0.130.0 → 0.131.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 (112) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-2XFPXBTA.js → adapter-TA637IRT.js} +51 -51
  3. package/dist/bundle/{all-profiles-GXFPZLYU.js → all-profiles-7M3GBCB6.js} +5 -5
  4. package/dist/bundle/{anthropic-FHS5XNK5.js → anthropic-P3THLZWO.js} +2 -2
  5. package/dist/bundle/{app-server-IZMFSFP2.js → app-server-OE5EAXIY.js} +45 -45
  6. package/dist/bundle/{bot-api-V3ZJ75KE.js → bot-api-WYR2C4A5.js} +52 -52
  7. package/dist/bundle/{bot-history-EJQOD4AQ.js → bot-history-PKJTHU7L.js} +16 -16
  8. package/dist/bundle/{bun-GBAZFRCV.js → bun-XMZJDDEA.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-JB4BX6X7.js → bun-sqlite-F5RWCB2N.js} +3 -3
  10. package/dist/bundle/{chunk-XXW6PFAX.js → chunk-2OXR2MRV.js} +1 -1
  11. package/dist/bundle/{chunk-HHUK3XO5.js → chunk-2TOJQQKS.js} +1 -1
  12. package/dist/bundle/{chunk-TGRB4SSZ.js → chunk-2U6XE4HI.js} +4 -4
  13. package/dist/bundle/{chunk-6M3FAHPS.js → chunk-34PRGA7E.js} +2 -2
  14. package/dist/bundle/{chunk-4BJAQNJ5.js → chunk-43KSYUZU.js} +5 -5
  15. package/dist/bundle/{chunk-66UG67CE.js → chunk-5AJ5RLJW.js} +10 -10
  16. package/dist/bundle/{chunk-7F3LOHRB.js → chunk-5N7TJ6TJ.js} +154 -151
  17. package/dist/bundle/{chunk-QJDHRBXL.js → chunk-5ZIT6JXP.js} +6 -6
  18. package/dist/bundle/{chunk-RZPMFVWM.js → chunk-6BPM3LNR.js} +5 -5
  19. package/dist/bundle/{chunk-EUL7HMUL.js → chunk-6O5AD3GA.js} +1 -1
  20. package/dist/bundle/{chunk-PWQKGFS2.js → chunk-6TJTQ4I4.js} +28 -28
  21. package/dist/bundle/{chunk-KY3JLXW2.js → chunk-76UAXRDY.js} +2 -2
  22. package/dist/bundle/{chunk-OJMDKWWL.js → chunk-AEIDEIVB.js} +355 -321
  23. package/dist/bundle/{chunk-M327UNS6.js → chunk-AJQ6JFLY.js} +5 -5
  24. package/dist/bundle/{chunk-VTJ3AOTT.js → chunk-BFERGEBI.js} +16 -16
  25. package/dist/bundle/{chunk-42LRWOTT.js → chunk-BXW6FGLD.js} +11 -11
  26. package/dist/bundle/{chunk-MVFSWKTM.js → chunk-EXMJDHBM.js} +10 -10
  27. package/dist/bundle/{chunk-S5UTBEV3.js → chunk-EZBMLKBK.js} +35 -34
  28. package/dist/bundle/{chunk-NRCY3WBC.js → chunk-GNIROVSK.js} +1 -1
  29. package/dist/bundle/{chunk-C4ALE7CH.js → chunk-H655CMXJ.js} +1 -1
  30. package/dist/bundle/{chunk-OKTRB4ZQ.js → chunk-ITYDJIRC.js} +1 -1
  31. package/dist/bundle/{chunk-QDEP2QOA.js → chunk-IULSIKEM.js} +2 -2
  32. package/dist/bundle/{chunk-FH4YIBBH.js → chunk-J2QQZVEN.js} +2 -2
  33. package/dist/bundle/{chunk-OWVQMK7G.js → chunk-JDLNI7BU.js} +518 -382
  34. package/dist/bundle/{chunk-B5RGPZDZ.js → chunk-JF4AJNCE.js} +5 -5
  35. package/dist/bundle/{chunk-2LPODKIF.js → chunk-JSE4OBYI.js} +16 -114
  36. package/dist/bundle/{chunk-SZB5WRMI.js → chunk-L2SMUTJY.js} +1 -1
  37. package/dist/bundle/{chunk-RAFK5KXU.js → chunk-LDSTUBLY.js} +7 -7
  38. package/dist/bundle/{chunk-XHX5D5VE.js → chunk-LEPDRO3O.js} +147 -62
  39. package/dist/bundle/{chunk-IV6SIKVH.js → chunk-LJO6MMQG.js} +3 -3
  40. package/dist/bundle/{chunk-LQPZDDDP.js → chunk-LTP4BYHJ.js} +5 -5
  41. package/dist/bundle/{chunk-QBNEWEJC.js → chunk-LWSOCKOD.js} +2 -2
  42. package/dist/bundle/{chunk-F6CV4KUN.js → chunk-MYC3M4BY.js} +2 -2
  43. package/dist/bundle/{chunk-I5PILOTU.js → chunk-NOZZHEMD.js} +1 -1
  44. package/dist/bundle/{chunk-ZRQQOGAZ.js → chunk-NTORQXAS.js} +3 -3
  45. package/dist/bundle/{chunk-LPT5T6PU.js → chunk-NXNSEFGR.js} +22 -22
  46. package/dist/bundle/{chunk-3XMUP55N.js → chunk-O73DZURO.js} +9 -9
  47. package/dist/bundle/{chunk-2JZJPVBH.js → chunk-O7X6RM5R.js} +4 -4
  48. package/dist/bundle/{chunk-FIO5NMK3.js → chunk-OOSX7K7G.js} +6 -6
  49. package/dist/bundle/{chunk-IRWSZJYL.js → chunk-OPG54IFH.js} +51 -51
  50. package/dist/bundle/{chunk-O2ULG7OO.js → chunk-OX5EAUKF.js} +2 -2
  51. package/dist/bundle/{chunk-RPWYTOLI.js → chunk-P6KGEZIS.js} +1 -1
  52. package/dist/bundle/{chunk-QFVIHBLD.js → chunk-PD4RREQB.js} +1 -1
  53. package/dist/bundle/{chunk-IBSHQWIJ.js → chunk-PHGH5N4C.js} +1 -1
  54. package/dist/bundle/{chunk-EB2JE722.js → chunk-QGFUUJPL.js} +1 -1
  55. package/dist/bundle/{chunk-GYCKRIRK.js → chunk-S2IET7WM.js} +2 -2
  56. package/dist/bundle/{chunk-BMSS3PCY.js → chunk-SLT2PBFP.js} +13 -13
  57. package/dist/bundle/{chunk-CKJ73EF3.js → chunk-SQ2JLZFK.js} +1 -1
  58. package/dist/bundle/{chunk-GSHTLLCJ.js → chunk-SS5H2XAT.js} +2 -2
  59. package/dist/bundle/{chunk-VSPSHBAC.js → chunk-TT6OHNV2.js} +1 -1
  60. package/dist/bundle/{chunk-6WGAWISN.js → chunk-UGYC2FV5.js} +1 -1
  61. package/dist/bundle/{chunk-6JBRQ6PM.js → chunk-UUNQV4YL.js} +48 -13
  62. package/dist/bundle/{chunk-X5H5NERR.js → chunk-VNJZXV7E.js} +4 -4
  63. package/dist/bundle/{chunk-MS6YEIG5.js → chunk-VVUUP5NF.js} +12 -12
  64. package/dist/bundle/{chunk-QJLCEOAP.js → chunk-WG6UZJ3E.js} +1 -1
  65. package/dist/bundle/{chunk-GGGBPWUS.js → chunk-WUIKJJ5A.js} +7 -7
  66. package/dist/bundle/{chunk-3KZG63EH.js → chunk-XC2YJDDK.js} +2 -2
  67. package/dist/bundle/{chunk-SYZXOEHY.js → chunk-YJ4BPNWI.js} +3 -3
  68. package/dist/bundle/{chunk-G2SMVYBU.js → chunk-YZTMQE62.js} +1 -1
  69. package/dist/bundle/{chunk-VXWDQDRU.js → chunk-Z2TCTTPJ.js} +497 -410
  70. package/dist/bundle/command-contract-DAQYQF6R.js +37 -0
  71. package/dist/bundle/{command-server-entry-YR6ONDWO.js → command-server-entry-6FH3RXJ2.js} +23 -23
  72. package/dist/bundle/{decode-VUKGWFSW.js → decode-UBRT2QDP.js} +2 -2
  73. package/dist/bundle/{echarts-GOV5M733.js → echarts-PG45GQLR.js} +2 -2
  74. package/dist/bundle/{embed-2IVIYNAJ.js → embed-BUQDSZ57.js} +3 -3
  75. package/dist/bundle/{embedder-2HU7JYZK.js → embedder-TXA3EV7O.js} +6 -6
  76. package/dist/bundle/{entry-CSTCXYI5.js → entry-JWIEF57D.js} +6 -6
  77. package/dist/bundle/{first-run-3IZGXZT5.js → first-run-5VTHKMK5.js} +6 -6
  78. package/dist/bundle/first-screen-PTHIZ5ZF.js +35 -0
  79. package/dist/bundle/{instructions-YSXV6FAC.js → instructions-ZMEPWTFO.js} +1 -1
  80. package/dist/bundle/{meeting-combined-X4E3LSIJ.js → meeting-combined-DU3RJR6X.js} +10 -10
  81. package/dist/bundle/{meeting-model-FQBDHGRU.js → meeting-model-5FVNZCTL.js} +8 -8
  82. package/dist/bundle/{meeting-semantic-ONNEOJX5.js → meeting-semantic-HUMYFMO7.js} +2 -2
  83. package/dist/bundle/{node-FMQWCZRS.js → node-N4DQQJKK.js} +2 -2
  84. package/dist/bundle/{node-sqlite-YN5OKOC6.js → node-sqlite-MG4KFXYY.js} +4 -4
  85. package/dist/bundle/{oauth-EW7PTZVT.js → oauth-NKDSXEH6.js} +4 -4
  86. package/dist/bundle/{open-Q2RDY344.js → open-DV2YUU2M.js} +2 -2
  87. package/dist/bundle/{openai-STON6G3O.js → openai-FEKMZOUJ.js} +12 -12
  88. package/dist/bundle/{process-OQUC2TW3.js → process-QZS3TE6A.js} +1 -1
  89. package/dist/bundle/{program-N5BT75OC.js → program-FNDGXEVS.js} +56 -56
  90. package/dist/bundle/{prompt-WHVF7UTW.js → prompt-C7RSBNH5.js} +2 -2
  91. package/dist/bundle/{recognize-YDQWMXNI.js → recognize-5BL763FS.js} +1 -1
  92. package/dist/bundle/{remote-477LQHP6.js → remote-CXAKRC7X.js} +6 -6
  93. package/dist/bundle/{rerank-4YPB26FG.js → rerank-XAEXY5A4.js} +4 -4
  94. package/dist/bundle/{serve-FXJNUOTS.js → serve-JLZGFTZH.js} +6 -6
  95. package/dist/bundle/{server-2S6HFBGR.js → server-GF3TV2U7.js} +37 -37
  96. package/dist/bundle/server-GLPEWUYT.js +69 -0
  97. package/dist/bundle/{sqlite-runtime-RXYNJYMC.js → sqlite-runtime-3OVQ7OTM.js} +3 -3
  98. package/dist/bundle/{state-I2GGYGRL.js → state-FGJKQKC2.js} +3 -3
  99. package/dist/bundle/{store-VQXIB6KV.js → store-2J5VJZQY.js} +13 -13
  100. package/dist/bundle/{store-KX3AAQZH.js → store-WYLMNAAQ.js} +15 -15
  101. package/dist/bundle/store-maintenance-command-QN6QH6RA.js +60 -0
  102. package/dist/bundle/tg.js +3 -3
  103. package/dist/program.js +1 -1
  104. package/dist/program.js.map +1 -1
  105. package/dist/version.d.ts +1 -1
  106. package/dist/version.js +1 -1
  107. package/package.json +2 -2
  108. package/skills/tg-cli/SKILL.md +11 -9
  109. package/dist/bundle/command-contract-G752BLKA.js +0 -37
  110. package/dist/bundle/first-screen-7QSNCZIK.js +0 -35
  111. package/dist/bundle/server-UOSUTZNE.js +0 -69
  112. package/dist/bundle/store-maintenance-command-LW2MMDLY.js +0 -60
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-VSPSHBAC.js";
5
+ } from "./chunk-TT6OHNV2.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
@@ -15,11 +15,11 @@ import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/store/shared-config.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/store/shared-config.js
19
19
  import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
20
20
  import { dirname, join, resolve } from "node:path";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
23
23
  var REPAIR_WORDS = {
24
24
  byte_order_mark: "an invisible byte-order mark at the start",
25
25
  comment: "a comment, which JSON does not allow",
@@ -303,7 +303,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
303
303
  return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
304
304
  }, "explainBrokenJson");
305
305
 
306
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
306
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
307
307
  var DEFAULT_TASK_CATEGORIES = [
308
308
  {
309
309
  name: "taxes",
@@ -1058,7 +1058,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
1058
1058
  }
1059
1059
  }, "storedTaskCategories");
1060
1060
 
1061
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/store/shared-config.js
1061
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/store/shared-config.js
1062
1062
  var SECTION = "task_categories";
1063
1063
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
1064
1064
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -1,8 +1,10 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
+ DEFAULT_PACE,
4
5
  FloodMemory,
5
6
  OFFLINE,
7
+ Pacer,
6
8
  RecipientList,
7
9
  capability,
8
10
  ceilingRefusal,
@@ -10,16 +12,17 @@ import {
10
12
  floodPathFor,
11
13
  guardFor,
12
14
  holdEnd,
15
+ pacePathFor,
13
16
  profilesOnAccount,
14
17
  recipientsPathFor,
15
18
  refuseLacking,
16
19
  servicesFor,
17
20
  throughWrapper,
18
- withFileLockAsync
19
- } from "./chunk-OWVQMK7G.js";
21
+ waitForTurn
22
+ } from "./chunk-JDLNI7BU.js";
20
23
  import {
21
24
  servingProfiles
22
- } from "./chunk-O2ULG7OO.js";
25
+ } from "./chunk-OX5EAUKF.js";
23
26
  import {
24
27
  chatReferenceOf,
25
28
  ensureAccount,
@@ -27,7 +30,7 @@ import {
27
30
  isId,
28
31
  openStore,
29
32
  pickPerson
30
- } from "./chunk-VXWDQDRU.js";
33
+ } from "./chunk-Z2TCTTPJ.js";
31
34
  import {
32
35
  CEILING_KEY,
33
36
  WRITE_KEYS,
@@ -48,16 +51,13 @@ import {
48
51
  rememberAccount,
49
52
  rootOf2 as rootOf,
50
53
  skipFlagFor
51
- } from "./chunk-7F3LOHRB.js";
54
+ } from "./chunk-5N7TJ6TJ.js";
52
55
  import {
53
56
  providerErrorKey
54
- } from "./chunk-QJDHRBXL.js";
57
+ } from "./chunk-5ZIT6JXP.js";
55
58
  import {
56
59
  isCliFailure
57
- } from "./chunk-QBNEWEJC.js";
58
- import {
59
- resolvePaths
60
- } from "./chunk-HT6OFANN.js";
60
+ } from "./chunk-LWSOCKOD.js";
61
61
  import {
62
62
  CliError
63
63
  } from "./chunk-F6MLJ3V5.js";
@@ -65,7 +65,7 @@ import {
65
65
  __name
66
66
  } from "./chunk-ZVVMGPBJ.js";
67
67
 
68
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
68
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
69
69
  import { openSync } from "node:fs";
70
70
  import { createInterface } from "node:readline";
71
71
  import { ReadStream } from "node:tty";
@@ -120,102 +120,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
120
120
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
121
121
  }, "terminalAsker");
122
122
 
123
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/sends/pace.js
124
- import { readFileSync, renameSync, writeFileSync } from "node:fs";
125
- import { join } from "node:path";
126
- var DEFAULT_PACE = { perMinute: 60, burst: 20 };
127
- var pacePathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "pace", `${profile}.json`), "pacePathFor");
128
- var Pacer = class {
129
- static {
130
- __name(this, "Pacer");
131
- }
132
- path;
133
- rate;
134
- now;
135
- constructor(path, rate, now = Date.now) {
136
- this.path = path;
137
- this.rate = rate;
138
- this.now = now;
139
- }
140
- get interval() {
141
- return this.rate.perMinute > 0 ? 6e4 / this.rate.perMinute : 0;
142
- }
143
- /** When this call may go; reserved at once, so the next caller in any process lines up behind it. */
144
- async reserve() {
145
- if (this.interval === 0)
146
- return this.now();
147
- return withFileLockAsync(this.path, "the request pace", () => {
148
- const now = this.now();
149
- const tat = Math.max(this.read(now), now);
150
- this.write(tat + this.interval, now);
151
- return Math.max(now, tat - this.rate.burst * this.interval);
152
- });
153
- }
154
- /** The messenger asked every caller to wait: nothing goes before `now + waitMs`, in any process. */
155
- async holdFor(waitMs) {
156
- if (this.interval === 0)
157
- return;
158
- await withFileLockAsync(this.path, "the request pace", () => {
159
- const now = this.now();
160
- const hold = now + waitMs + this.rate.burst * this.interval;
161
- this.write(Math.max(this.read(now), hold), now);
162
- });
163
- }
164
- /** The owner's `flood clear`: every process may go again at once. */
165
- async reset() {
166
- await withFileLockAsync(this.path, "the request pace", () => this.write(0, this.now()));
167
- }
168
- read(now) {
169
- try {
170
- const file = JSON.parse(readFileSync(this.path, "utf8"));
171
- const tat = Number(file.tat);
172
- if (!Number.isFinite(tat))
173
- return 0;
174
- const at = Number(file.at);
175
- return Number.isFinite(at) && at > now ? now + Math.max(0, tat - at) : tat;
176
- } catch {
177
- return 0;
178
- }
179
- }
180
- write(tat, at) {
181
- const temporary = `${this.path}.${process.pid}.tmp`;
182
- writeFileSync(temporary, JSON.stringify({ tat, at }), { mode: 384 });
183
- renameSync(temporary, this.path);
184
- }
185
- };
186
- var ANNOUNCE_WAIT_MS = 5e3;
187
- var LONGEST_PACE_WAIT_MS = 5 * 6e4;
188
- var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
189
- const { name, operation, warn } = options;
190
- const now = options.now ?? Date.now;
191
- let at = now();
192
- try {
193
- at = await pacer.reserve();
194
- } catch (error) {
195
- warn?.(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
196
- event: "warning",
197
- code: "wait_not_remembered",
198
- operation
199
- });
200
- }
201
- const waitMs = at - now();
202
- if (waitMs <= 0)
203
- return;
204
- if (waitMs > (options.longestWaitMs ?? LONGEST_PACE_WAIT_MS))
205
- throw new CliError("rate_limited", `this profile's next request to ${name} has to wait ${Math.ceil(waitMs / 1e3)} s more \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
206
- if (waitMs >= ANNOUNCE_WAIT_MS) {
207
- const seconds = Math.ceil(waitMs / 1e3);
208
- warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
209
- event: "warning",
210
- code: "pace_wait",
211
- operation,
212
- counts: { seconds }
213
- });
214
- }
215
- await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
216
- }, "waitForTurn");
217
-
218
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
123
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
219
124
  var pathOf = /* @__PURE__ */ __name((command) => {
220
125
  const words = [];
221
126
  for (let at = command; at?.parent; at = at.parent)
@@ -275,7 +180,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
275
180
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
276
181
  }, "refuseUnknownPermissionKeys");
277
182
 
278
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
183
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
279
184
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
280
185
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
281
186
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -372,7 +277,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
372
277
  });
373
278
  }, "flooded");
374
279
 
375
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
280
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
376
281
  var observed = /* @__PURE__ */ __name((messenger, events) => {
377
282
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
378
283
  const write = currentOperation();
@@ -471,7 +376,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
471
376
  counts[part] = (counts[part] ?? 0) + items.length;
472
377
  }, "byPart");
473
378
 
474
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
379
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
475
380
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
476
381
  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" }) => {
477
382
  let warned = false;
@@ -1047,7 +952,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1047
952
  }
1048
953
  }, "keep");
1049
954
 
1050
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
955
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1051
956
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1052
957
  let opened;
1053
958
  return {
@@ -1450,9 +1355,6 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
1450
1355
  export {
1451
1356
  answerOf,
1452
1357
  terminalAsker,
1453
- DEFAULT_PACE,
1454
- pacePathFor,
1455
- Pacer,
1456
1358
  knownPermissionKeys,
1457
1359
  knownBeside,
1458
1360
  unknownPermissionIssues,
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openCache
5
- } from "./chunk-M327UNS6.js";
5
+ } from "./chunk-AJQ6JFLY.js";
6
6
  import {
7
7
  CliError,
8
8
  isCliError
@@ -2,20 +2,20 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-RZPMFVWM.js";
5
+ } from "./chunk-6BPM3LNR.js";
6
6
  import {
7
7
  PLAIN_HTTP_REFUSED,
8
8
  modelAddressAllowed,
9
9
  onThisComputer
10
- } from "./chunk-RPWYTOLI.js";
10
+ } from "./chunk-P6KGEZIS.js";
11
11
  import {
12
12
  readSharedSection,
13
13
  sharedConfigPath,
14
14
  writeSharedSection
15
- } from "./chunk-B5RGPZDZ.js";
15
+ } from "./chunk-JF4AJNCE.js";
16
16
  import {
17
17
  storePath
18
- } from "./chunk-VSPSHBAC.js";
18
+ } from "./chunk-TT6OHNV2.js";
19
19
  import {
20
20
  boolean,
21
21
  isoTimestamp,
@@ -31,10 +31,10 @@ import {
31
31
  __name
32
32
  } from "./chunk-ZVVMGPBJ.js";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
35
35
  import { setTimeout } from "node:timers/promises";
36
36
 
37
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/models/local-only.js
37
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/models/local-only.js
38
38
  var SECTION = "local_only";
39
39
  var Setting = strictObject({
40
40
  on: boolean(),
@@ -68,7 +68,7 @@ var refuseModelAddress = /* @__PURE__ */ __name((env, address, what) => {
68
68
  refuseOffComputer(env, address, what);
69
69
  }, "refuseModelAddress");
70
70
 
71
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
71
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
72
72
  var OPENAI_URL = "https://api.openai.com/v1";
73
73
  var OPENAI_MODELS = {
74
74
  "text-embedding-3-small": { dims: 1536, perMillion: 0.02 },