@wirecat/tg-cli 0.108.0 → 0.110.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 (104) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-YFWRJWL5.js → adapter-JWUCHTXU.js} +45 -44
  3. package/dist/bundle/{all-profiles-GQIZSF4W.js → all-profiles-OMRCKP54.js} +8 -8
  4. package/dist/bundle/{anthropic-BKWEDKPU.js → anthropic-WXFHH74P.js} +5 -5
  5. package/dist/bundle/{app-server-RJV7ICLH.js → app-server-ILIPNO6T.js} +40 -39
  6. package/dist/bundle/{bot-api-2PAH2JZ3.js → bot-api-KV765AZK.js} +46 -45
  7. package/dist/bundle/{bot-history-DPPZ43F4.js → bot-history-3P6EIM5L.js} +15 -15
  8. package/dist/bundle/{bun-Q7COX3Z5.js → bun-MJOYPPEN.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-YI4AYZXO.js → bun-sqlite-GFRVRRDZ.js} +4 -4
  10. package/dist/bundle/{chunk-BOSMBW4I.js → chunk-2YWQEG2P.js} +11 -11
  11. package/dist/bundle/{chunk-4RDMNNVO.js → chunk-32HEOKI2.js} +27 -14
  12. package/dist/bundle/{chunk-3GXKJKIC.js → chunk-3KOF5T4N.js} +4 -4
  13. package/dist/bundle/{chunk-AOUB2QFP.js → chunk-3L2JTAVD.js} +2 -2
  14. package/dist/bundle/{chunk-26PWIQPP.js → chunk-3XTMVGTS.js} +2338 -1174
  15. package/dist/bundle/{chunk-5P27JGGA.js → chunk-4BMXELWN.js} +5 -5
  16. package/dist/bundle/{chunk-VK2YLSK7.js → chunk-4GOF43MW.js} +1 -1
  17. package/dist/bundle/{chunk-5HPXENE5.js → chunk-4I6HTOCM.js} +1 -1
  18. package/dist/bundle/{chunk-LY2LFJMU.js → chunk-4YOPRYEY.js} +117 -94
  19. package/dist/bundle/{chunk-ON67U6WV.js → chunk-54CWOD7V.js} +6 -6
  20. package/dist/bundle/chunk-5ASW5BNM.js +379 -0
  21. package/dist/bundle/{chunk-OB5PPPXH.js → chunk-5CMOXHQS.js} +7 -7
  22. package/dist/bundle/{chunk-WEDWIXIC.js → chunk-6KESAYMZ.js} +2 -2
  23. package/dist/bundle/{chunk-3562DVQ7.js → chunk-6WTLP2SI.js} +8 -8
  24. package/dist/bundle/{chunk-BT6PWDM6.js → chunk-7ABA4EXC.js} +3 -3
  25. package/dist/bundle/{chunk-WKSLGPZQ.js → chunk-7LZBMZQM.js} +16 -4
  26. package/dist/bundle/{chunk-VMU4SGCE.js → chunk-ABVHA4K6.js} +8 -6
  27. package/dist/bundle/{chunk-YJ6GFFEE.js → chunk-AXNBGLO5.js} +1 -1
  28. package/dist/bundle/{chunk-LYLGLFWY.js → chunk-AZYVTDAE.js} +3 -3
  29. package/dist/bundle/{chunk-T4SDOYPY.js → chunk-BWRCPMMC.js} +138 -81
  30. package/dist/bundle/{chunk-DNOJKQXQ.js → chunk-BYOEVYY2.js} +678 -325
  31. package/dist/bundle/{chunk-FG2QTYEF.js → chunk-EB44Z44U.js} +1 -1
  32. package/dist/bundle/{chunk-67SRVSPU.js → chunk-EO563SUX.js} +26 -9
  33. package/dist/bundle/{chunk-F67VPIJL.js → chunk-F24EAGOU.js} +32 -31
  34. package/dist/bundle/{chunk-ZHHVNTBJ.js → chunk-F7RWNBC2.js} +2 -2
  35. package/dist/bundle/{chunk-REI5TPS3.js → chunk-FYAHTTOB.js} +11 -11
  36. package/dist/bundle/{chunk-CZANI3DM.js → chunk-GPIORQAD.js} +22 -22
  37. package/dist/bundle/{chunk-76OSISA3.js → chunk-HCAYTAJN.js} +2 -2
  38. package/dist/bundle/{chunk-SONKULUF.js → chunk-JDOSIWPN.js} +3 -3
  39. package/dist/bundle/{chunk-KZPZFPGB.js → chunk-KLOFBUXA.js} +81 -30
  40. package/dist/bundle/{chunk-6MZ2ZBX4.js → chunk-L3YDXUDK.js} +12 -3
  41. package/dist/bundle/{chunk-AS2BVZU3.js → chunk-M3XIME74.js} +49 -24
  42. package/dist/bundle/{chunk-WUF64WOG.js → chunk-MXIBRT6W.js} +4 -4
  43. package/dist/bundle/{chunk-D6DBVPES.js → chunk-MZRD776E.js} +3 -3
  44. package/dist/bundle/{chunk-6QTUYMGX.js → chunk-NDT22GBK.js} +2 -2
  45. package/dist/bundle/{chunk-3HYDKCXB.js → chunk-NFBOZT7H.js} +12 -12
  46. package/dist/bundle/{chunk-WAGDZB62.js → chunk-ONHHBPV3.js} +2 -2
  47. package/dist/bundle/{chunk-DUWTG2GE.js → chunk-Q35J5LCO.js} +8 -8
  48. package/dist/bundle/{chunk-77OOX2OE.js → chunk-QRH2AWBZ.js} +81 -57
  49. package/dist/bundle/{chunk-PQHYM2XC.js → chunk-RARYRHQA.js} +1 -1
  50. package/dist/bundle/{chunk-ZYBDAZFO.js → chunk-RSZEEWOW.js} +2 -2
  51. package/dist/bundle/{chunk-QVIT6SQ5.js → chunk-RXWG7OWT.js} +705 -425
  52. package/dist/bundle/{chunk-R5YOKYTE.js → chunk-SD5J5T7M.js} +11 -11
  53. package/dist/bundle/{chunk-NCXCBVHO.js → chunk-SLAPUEMZ.js} +6 -6
  54. package/dist/bundle/{chunk-KQFR7ZAA.js → chunk-TDQVVXPF.js} +43 -25
  55. package/dist/bundle/{chunk-BL72ZIBV.js → chunk-TJA3BWY3.js} +1 -1
  56. package/dist/bundle/{chunk-MFS52LTZ.js → chunk-UIPT6IAU.js} +1 -1
  57. package/dist/bundle/{chunk-EBB7RFCW.js → chunk-VM7I5VKX.js} +2 -2
  58. package/dist/bundle/{chunk-CVWF3BFK.js → chunk-VOBMR7E5.js} +45 -45
  59. package/dist/bundle/{chunk-B7TFWNKJ.js → chunk-W3B6EEZU.js} +1 -1
  60. package/dist/bundle/{chunk-PCMW3PW6.js → chunk-XLNYDJKG.js} +2 -2
  61. package/dist/bundle/{chunk-TVA3NXXO.js → chunk-YPEAEEHF.js} +2 -2
  62. package/dist/bundle/{chunk-XZXOGHU5.js → chunk-YPLL3Q3M.js} +71 -60
  63. package/dist/bundle/{chunk-EWL3ZFOI.js → chunk-YWSNUUW5.js} +6 -6
  64. package/dist/bundle/command-contract-TNSW7W6G.js +32 -0
  65. package/dist/bundle/{decode-ZFAFVFWX.js → decode-3KBXZCFM.js} +19 -17
  66. package/dist/bundle/{echarts-SVXNTKGV.js → echarts-24TVPFGC.js} +2 -2
  67. package/dist/bundle/{embed-V755YE7O.js → embed-3BDPZ4Q7.js} +5 -5
  68. package/dist/bundle/{embedder-MQAPNQBH.js → embedder-EMVDEZFR.js} +8 -8
  69. package/dist/bundle/{entry-ULQ3VOMQ.js → entry-NQD6Z2BM.js} +5 -5
  70. package/dist/bundle/{first-run-64BTWXDR.js → first-run-ZBIO6C67.js} +9 -9
  71. package/dist/bundle/first-screen-4HRCG7OX.js +30 -0
  72. package/dist/bundle/{identity-PW45VBUU.js → identity-EDGOOTOM.js} +3 -3
  73. package/dist/bundle/{instructions-G3ZUIRRH.js → instructions-N2WVMNFZ.js} +1 -1
  74. package/dist/bundle/{mcp-OQBZXELQ.js → mcp-EMNFFY4N.js} +2 -2
  75. package/dist/bundle/{node-IDJXLZSX.js → node-VBZAZHUS.js} +2 -2
  76. package/dist/bundle/{node-sqlite-W22J37MG.js → node-sqlite-C3V64OAL.js} +4 -4
  77. package/dist/bundle/{oauth-Q52LBXDE.js → oauth-NZXELYDA.js} +6 -6
  78. package/dist/bundle/{open-YLD7VHEC.js → open-2XRUGMV7.js} +3 -3
  79. package/dist/bundle/openai-OLGTN3ZB.js +250 -0
  80. package/dist/bundle/{process-OBESF2XG.js → process-CASPZ2DH.js} +1 -1
  81. package/dist/bundle/{program-EBMWHOKQ.js → program-QPQDSGYA.js} +50 -47
  82. package/dist/bundle/{prompt-FHHQF3MG.js → prompt-ESZL7SGX.js} +4 -4
  83. package/dist/bundle/{proxy-transport-YSBYG26I.js → proxy-transport-OROEVBCG.js} +4 -4
  84. package/dist/bundle/{recognize-QNHKHGKM.js → recognize-LQ7QOG4T.js} +5 -3
  85. package/dist/bundle/{remote-RVZWRCCT.js → remote-34XP4EDN.js} +6 -6
  86. package/dist/bundle/{rerank-KG2USEME.js → rerank-7F6NLBCW.js} +6 -6
  87. package/dist/bundle/{serve-I4MJKEQ4.js → serve-M6TTKXI4.js} +8 -8
  88. package/dist/bundle/{server-GV7SV3L6.js → server-GLZ5M7PE.js} +32 -31
  89. package/dist/bundle/server-KOW7OKE2.js +56 -0
  90. package/dist/bundle/{state-AJKHWFBU.js → state-UKKPLMHS.js} +5 -5
  91. package/dist/bundle/{store-L3HFSSGJ.js → store-J2MBIDJK.js} +10 -10
  92. package/dist/bundle/store-maintenance-command-64B57C3U.js +45 -0
  93. package/dist/bundle/tg.js +4 -4
  94. package/dist/program.d.ts.map +1 -1
  95. package/dist/program.js +2 -1
  96. package/dist/program.js.map +1 -1
  97. package/dist/version.d.ts +1 -1
  98. package/dist/version.js +1 -1
  99. package/package.json +3 -3
  100. package/dist/bundle/command-contract-5GJV6EHG.js +0 -32
  101. package/dist/bundle/first-screen-YZCH4TEV.js +0 -30
  102. package/dist/bundle/server-AXMWFPNT.js +0 -55
  103. package/dist/bundle/store-maintenance-command-Y22ARSDR.js +0 -44
  104. /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-NPGVOZVK.js} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  check,
6
6
  pipe,
7
7
  string
8
- } from "./chunk-67SRVSPU.js";
8
+ } from "./chunk-EO563SUX.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
8
8
  var errorCodes = [
9
9
  "validation_error",
10
10
  "configuration_error",
@@ -1918,7 +1918,7 @@ function toStandardJsonSchema(schema) {
1918
1918
  }
1919
1919
  __name(toStandardJsonSchema, "toStandardJsonSchema");
1920
1920
 
1921
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
1921
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
1922
1922
  var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
1923
1923
  var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
1924
1924
  var text = pipe(string(), regex(/\S/, "must not be empty"));
@@ -1960,7 +1960,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
1960
1960
  return String(value);
1961
1961
  }), "fill");
1962
1962
 
1963
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1963
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1964
1964
  var EFFECT_LEVELS = ["none", "read", "write"];
1965
1965
  var effectsSchema = strictObject({
1966
1966
  remote: picklist(EFFECT_LEVELS),
@@ -1968,7 +1968,7 @@ var effectsSchema = strictObject({
1968
1968
  });
1969
1969
  var writes = /* @__PURE__ */ __name((effects) => effects === void 0 || effects.remote === "write" || effects.local === "write", "writes");
1970
1970
 
1971
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
1971
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
1972
1972
  var MAX_NEXT_STEPS = 2;
1973
1973
  var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
1974
1974
  var reference = pipe(string(), regex(/^[a-z]+:\S+$/, "a reference such as `note:42`"));
@@ -2003,14 +2003,25 @@ var missingSchema = strictObject({
2003
2003
  step: optional(dottedId)
2004
2004
  });
2005
2005
  var limit = pipe(number(), integer(), minValue(1));
2006
+ var totalSchema = strictObject({
2007
+ value: pipe(number(), integer(), minValue(0)),
2008
+ relation: picklist(["eq", "gte"])
2009
+ });
2006
2010
  var pageSchema = variant("mode", [
2007
2011
  strictObject({
2008
2012
  mode: literal("page"),
2009
2013
  limit,
2010
2014
  has_more: boolean(),
2011
- next_page: optional(pipe(number(), integer(), minValue(2)))
2015
+ next_page: optional(pipe(number(), integer(), minValue(2))),
2016
+ total: optional(totalSchema)
2012
2017
  }),
2013
- strictObject({ mode: literal("cursor"), limit, has_more: boolean(), next_cursor: optional(text) })
2018
+ strictObject({
2019
+ mode: literal("cursor"),
2020
+ limit,
2021
+ has_more: boolean(),
2022
+ next_cursor: optional(text),
2023
+ total: optional(totalSchema)
2024
+ })
2014
2025
  ]);
2015
2026
  var issueSchema = strictObject({
2016
2027
  code: picklist(errorCodes),
@@ -2053,7 +2064,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
2053
2064
  JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
2054
2065
  ].join("\n"), "jsonlOf");
2055
2066
 
2056
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2067
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2057
2068
  var CRASH_CODE = "internal_error";
2058
2069
  var CRASH_REASON = "command.crashed";
2059
2070
  var errorObjectSchema = strictObject({
@@ -2100,6 +2111,12 @@ var BASE_REASONS = defineReasons([
2100
2111
  { reason: "auth.failed", code: "authentication_error", message: "the sign-in did not work", details: [] },
2101
2112
  { reason: "access.denied", code: "permission_error", message: "this account may not do that", details: [] },
2102
2113
  { reason: "item.not-found", code: "not_found", message: "nothing found by that name", details: [] },
2114
+ {
2115
+ reason: "tool.not-installed",
2116
+ code: "not_found",
2117
+ message: "no wcat-<name> program by that name is on PATH",
2118
+ details: ["tool", "installed"]
2119
+ },
2103
2120
  {
2104
2121
  reason: "confirmation.required",
2105
2122
  code: "confirmation_required",
@@ -2134,7 +2151,7 @@ var BASE_REASONS = defineReasons([
2134
2151
  { reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
2135
2152
  ]);
2136
2153
 
2137
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2154
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2138
2155
  var SAME_COMMAND = "*";
2139
2156
  var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
2140
2157
  var stepSchema = union([
@@ -2213,7 +2230,7 @@ var STEPS = defineSteps([
2213
2230
  }
2214
2231
  ]);
2215
2232
 
2216
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
2233
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
2217
2234
  var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
2218
2235
  var logRecordSchema = strictObject({
2219
2236
  time: isoTime,
@@ -20,7 +20,7 @@ import {
20
20
  tool,
21
21
  toolKey,
22
22
  toolsFromCommands
23
- } from "./chunk-KQFR7ZAA.js";
23
+ } from "./chunk-TDQVVXPF.js";
24
24
  import {
25
25
  CHART_KINDS,
26
26
  CHART_SIZE,
@@ -34,19 +34,20 @@ import {
34
34
  registerPrompts,
35
35
  stdinFieldOf,
36
36
  syncsFirst
37
- } from "./chunk-KZPZFPGB.js";
37
+ } from "./chunk-KLOFBUXA.js";
38
38
  import {
39
39
  agentJson,
40
40
  skillResource
41
- } from "./chunk-4RDMNNVO.js";
41
+ } from "./chunk-32HEOKI2.js";
42
42
  import {
43
43
  answeredWire
44
- } from "./chunk-5HPXENE5.js";
44
+ } from "./chunk-4I6HTOCM.js";
45
45
  import {
46
46
  StdioServerTransport,
47
47
  callerOf,
48
+ callingAgent,
48
49
  serveStdio
49
- } from "./chunk-6MZ2ZBX4.js";
50
+ } from "./chunk-L3YDXUDK.js";
50
51
  import {
51
52
  McpServer,
52
53
  ResourceTemplate
@@ -54,7 +55,7 @@ import {
54
55
  import {
55
56
  connectedFor,
56
57
  guardFor
57
- } from "./chunk-CZANI3DM.js";
58
+ } from "./chunk-GPIORQAD.js";
58
59
  import {
59
60
  capability,
60
61
  dateWindow,
@@ -63,10 +64,10 @@ import {
63
64
  servicesFor,
64
65
  storedDeps,
65
66
  wholeList
66
- } from "./chunk-26PWIQPP.js";
67
+ } from "./chunk-3XTMVGTS.js";
67
68
  import {
68
69
  findCommand
69
- } from "./chunk-5P27JGGA.js";
70
+ } from "./chunk-4BMXELWN.js";
70
71
  import {
71
72
  DEFAULT_OUTPUT_BYTES,
72
73
  changesAuthorityAt,
@@ -82,34 +83,34 @@ import {
82
83
  sealed,
83
84
  snakeKeys,
84
85
  typedCommand
85
- } from "./chunk-77OOX2OE.js";
86
+ } from "./chunk-QRH2AWBZ.js";
86
87
  import {
87
88
  isCliFailure,
88
89
  withCaller
89
- } from "./chunk-DUWTG2GE.js";
90
+ } from "./chunk-Q35J5LCO.js";
90
91
  import {
91
92
  readOnlyLockOf
92
- } from "./chunk-PCMW3PW6.js";
93
+ } from "./chunk-XLNYDJKG.js";
93
94
  import {
94
95
  mcpHttpMarker
95
- } from "./chunk-WUF64WOG.js";
96
+ } from "./chunk-MXIBRT6W.js";
96
97
  import {
97
98
  instructions
98
- } from "./chunk-BL72ZIBV.js";
99
+ } from "./chunk-TJA3BWY3.js";
99
100
  import {
100
101
  warmEmbedders
101
- } from "./chunk-EWL3ZFOI.js";
102
+ } from "./chunk-YWSNUUW5.js";
102
103
  import {
103
104
  openStore,
104
105
  pdfPreviewLimits
105
- } from "./chunk-QVIT6SQ5.js";
106
+ } from "./chunk-RXWG7OWT.js";
106
107
  import {
107
108
  timezoneOf
108
- } from "./chunk-XZXOGHU5.js";
109
+ } from "./chunk-YPLL3Q3M.js";
109
110
  import {
110
111
  mcpErrorResult,
111
112
  visibleControls
112
- } from "./chunk-T4SDOYPY.js";
113
+ } from "./chunk-BWRCPMMC.js";
113
114
  import {
114
115
  CliError,
115
116
  description,
@@ -125,15 +126,15 @@ import {
125
126
  regex,
126
127
  strictObject,
127
128
  string
128
- } from "./chunk-67SRVSPU.js";
129
+ } from "./chunk-EO563SUX.js";
129
130
  import {
130
131
  __name
131
132
  } from "./chunk-ZVVMGPBJ.js";
132
133
 
133
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/server.js
134
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/server.js
134
135
  import { randomUUID } from "node:crypto";
135
136
 
136
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
137
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
137
138
  var agentLog = /* @__PURE__ */ __name((open) => {
138
139
  let held;
139
140
  return {
@@ -152,7 +153,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
152
153
  };
153
154
  }, "agentLog");
154
155
 
155
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/resources.js
156
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/resources.js
156
157
  var LISTED = 100;
157
158
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
158
159
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -190,7 +191,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
190
191
  });
191
192
  }, "registerResources");
192
193
 
193
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/session.js
194
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/session.js
194
195
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
195
196
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
196
197
  var MessengerSession = class {
@@ -265,7 +266,7 @@ var MessengerSession = class {
265
266
  }
266
267
  };
267
268
 
268
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
269
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
269
270
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
270
271
  const _command = messenger.app.command;
271
272
  return {
@@ -319,7 +320,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
319
320
  };
320
321
  }, "attachmentsTools");
321
322
 
322
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
323
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
323
324
  var PHOTO_LIMIT = 512 * 1024;
324
325
  var IMAGE_TYPES = [
325
326
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -373,7 +374,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
373
374
  return new Uint8Array(Buffer.concat(chunks));
374
375
  }, "readUpTo");
375
376
 
376
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
377
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
377
378
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
378
379
  stats_charts: tool({
379
380
  title: "A chart from a chat's statistics",
@@ -410,14 +411,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
410
411
  })
411
412
  }), "statsTools");
412
413
 
413
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/tools.js
414
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools.js
414
415
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
415
416
  ...messagesPhotoTools(messenger),
416
417
  ...attachmentsTools(messenger),
417
418
  ...statsTools(messenger)
418
419
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
419
420
 
420
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/server.js
421
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/server.js
421
422
  var PER_RUN = /* @__PURE__ */ new Set([
422
423
  "streams",
423
424
  "stdin",
@@ -535,10 +536,10 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
535
536
  });
536
537
  const skill = messenger.skill ? skillResource(app, messenger.skill) : void 0;
537
538
  const log = agentLog(() => openStore({ env: context.env, command: app.command, version: app.version }));
538
- const audit = /* @__PURE__ */ __name(async (call) => {
539
+ const audit = /* @__PURE__ */ __name(async (call, caller) => {
539
540
  if (!recalledAccount(app, provider, settings.profile, context.env))
540
541
  return;
541
- await log.record({ actor: { bot: `${app.command}-mcp` }, ...call });
542
+ await log.record({ actor: { bot: callingAgent(`${app.command}-mcp`, caller) }, ...call });
542
543
  }, "audit");
543
544
  const targets = judgedTargets(root);
544
545
  const passed = Object.fromEntries(Object.entries(environment).filter(([key]) => !PER_RUN.has(key)));
@@ -610,7 +611,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
610
611
  ...outcomeOf(result),
611
612
  startedAt,
612
613
  finishedAt: Date.now()
613
- }).catch(() => void 0);
614
+ }, caller).catch(() => void 0);
614
615
  return result;
615
616
  }, "run")
616
617
  }), "asCommand");
@@ -741,7 +742,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
741
742
  }, "serveOverStdio");
742
743
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
743
744
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
744
- const { serveOverHttp } = await import("./serve-I4MJKEQ4.js");
745
+ const { serveOverHttp } = await import("./serve-M6TTKXI4.js");
745
746
  const appName = messenger.app.command;
746
747
  const appEnvPrefix = messenger.app.envPrefix;
747
748
  const listening = await serveOverHttp(build, {
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openCache
5
- } from "./chunk-NCXCBVHO.js";
5
+ } from "./chunk-SLAPUEMZ.js";
6
6
  import {
7
7
  CliError,
8
8
  isCliError
9
- } from "./chunk-67SRVSPU.js";
9
+ } from "./chunk-EO563SUX.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
@@ -13,40 +13,40 @@ import {
13
13
  privateFiles,
14
14
  providerRequest,
15
15
  withSqliteSidecars
16
- } from "./chunk-DNOJKQXQ.js";
16
+ } from "./chunk-BYOEVYY2.js";
17
17
  import {
18
18
  parseProxy,
19
19
  proxyAddress,
20
20
  proxyError,
21
21
  proxyLabel,
22
22
  proxySetting
23
- } from "./chunk-FG2QTYEF.js";
23
+ } from "./chunk-EB44Z44U.js";
24
24
  import {
25
25
  messengerContext
26
- } from "./chunk-CZANI3DM.js";
26
+ } from "./chunk-GPIORQAD.js";
27
27
  import {
28
28
  uploadBlob
29
- } from "./chunk-26PWIQPP.js";
29
+ } from "./chunk-3XTMVGTS.js";
30
30
  import {
31
31
  asFirstWord,
32
32
  currentAttempt,
33
33
  environmentOf,
34
34
  fromFile,
35
35
  settingsFor
36
- } from "./chunk-77OOX2OE.js";
36
+ } from "./chunk-QRH2AWBZ.js";
37
37
  import {
38
38
  TG
39
- } from "./chunk-TVA3NXXO.js";
39
+ } from "./chunk-YPEAEEHF.js";
40
40
  import {
41
41
  Credentials,
42
42
  pathsAreOverridden,
43
43
  resolvePaths
44
- } from "./chunk-T4SDOYPY.js";
44
+ } from "./chunk-BWRCPMMC.js";
45
45
  import {
46
46
  CliError,
47
47
  isCliError,
48
48
  optional
49
- } from "./chunk-67SRVSPU.js";
49
+ } from "./chunk-EO563SUX.js";
50
50
  import {
51
51
  importFrom
52
52
  } from "./chunk-Y5E2WNWB.js";
@@ -178,7 +178,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
178
178
  throw new CliError(unreachable, loggedIn ? `no Telegram app credentials found for profile "${profile}", although it has logged in on this machine \u2014 the keyring is probably out of reach (cron, ssh, an MCP client that trims the environment: set XDG_RUNTIME_DIR); \`tg ${asFirstWord(profile)}doctor\` shows it. Log in again only if they were removed` : `no Telegram app credentials for profile "${profile}" \u2014 run ${setup} in a local terminal first, or sign in from ${desktop}; agents: read \`tg skill show\``);
179
179
  }
180
180
  const options = { credentials: resolved, sessionPath, ...connecting };
181
- return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-YFWRJWL5.js")).TelegramAdapter.open({
181
+ return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-JWUCHTXU.js")).TelegramAdapter.open({
182
182
  ...options,
183
183
  ...proxyOption(proxy()),
184
184
  diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
@@ -864,7 +864,7 @@ var TELEGRAM_BOT = {
864
864
  const botId = token.split(":", 1)[0] ?? "";
865
865
  if (!/^\d+$/.test(botId))
866
866
  throw new CliError("authentication_error", "the bot token has no valid bot id");
867
- const reader = await (environment.botHistory ?? (await import("./bot-history-DPPZ43F4.js")).openBotHistory)({
867
+ const reader = await (environment.botHistory ?? (await import("./bot-history-3P6EIM5L.js")).openBotHistory)({
868
868
  credentials,
869
869
  sessionPath: botSessionFile(profile, botId, env),
870
870
  token,
@@ -884,7 +884,7 @@ var TELEGRAM_BOT = {
884
884
  return void 0;
885
885
  let personal;
886
886
  try {
887
- personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-YFWRJWL5.js")).TelegramAdapter.open({
887
+ personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-JWUCHTXU.js")).TelegramAdapter.open({
888
888
  credentials,
889
889
  sessionPath: personalPath,
890
890
  checks: words,
@@ -10,7 +10,7 @@ import {
10
10
  refuseLacking,
11
11
  servicesFor,
12
12
  throughWrapper
13
- } from "./chunk-26PWIQPP.js";
13
+ } from "./chunk-3XTMVGTS.js";
14
14
  import {
15
15
  CEILING_KEY,
16
16
  LOG_ATTRIBUTES,
@@ -34,35 +34,35 @@ import {
34
34
  rememberAccount,
35
35
  rootOf2 as rootOf,
36
36
  skipFlagFor
37
- } from "./chunk-77OOX2OE.js";
37
+ } from "./chunk-QRH2AWBZ.js";
38
38
  import {
39
39
  isCliFailure,
40
40
  providerErrorKey
41
- } from "./chunk-DUWTG2GE.js";
41
+ } from "./chunk-Q35J5LCO.js";
42
42
  import {
43
43
  MESSENGER_CHANGE_REFUSAL,
44
44
  readOnlyRefusal
45
- } from "./chunk-PCMW3PW6.js";
45
+ } from "./chunk-XLNYDJKG.js";
46
46
  import {
47
47
  servingProfiles
48
- } from "./chunk-BT6PWDM6.js";
48
+ } from "./chunk-7ABA4EXC.js";
49
49
  import {
50
50
  openStore
51
- } from "./chunk-QVIT6SQ5.js";
51
+ } from "./chunk-RXWG7OWT.js";
52
52
  import {
53
53
  logRecordOf,
54
54
  realSleep,
55
55
  resolvePaths,
56
56
  writeSecurely
57
- } from "./chunk-T4SDOYPY.js";
57
+ } from "./chunk-BWRCPMMC.js";
58
58
  import {
59
59
  CliError
60
- } from "./chunk-67SRVSPU.js";
60
+ } from "./chunk-EO563SUX.js";
61
61
  import {
62
62
  __name
63
63
  } from "./chunk-ZVVMGPBJ.js";
64
64
 
65
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
65
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
66
66
  import { openSync } from "node:fs";
67
67
  import { createInterface } from "node:readline";
68
68
  import { ReadStream } from "node:tty";
@@ -117,10 +117,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
117
117
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
118
118
  }, "terminalAsker");
119
119
 
120
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/guard.js
120
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/guard.js
121
121
  import { randomUUID } from "node:crypto";
122
122
 
123
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/flood.js
123
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/flood.js
124
124
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
125
125
  import { dirname, join } from "node:path";
126
126
  var MOST_DEADLINES = 50;
@@ -204,11 +204,11 @@ var FloodMemory = class {
204
204
  }
205
205
  };
206
206
 
207
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/journal.js
207
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/journal.js
208
208
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
209
209
  import { dirname as dirname3, join as join2 } from "node:path";
210
210
 
211
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
211
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
212
212
  import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
213
213
  import { dirname as dirname2 } from "node:path";
214
214
  var LOCK_WAIT_MS = 5e3;
@@ -275,7 +275,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
275
275
  }
276
276
  }, "lockTime");
277
277
 
278
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/journal.js
278
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/journal.js
279
279
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
280
280
  var SendJournal = class {
281
281
  static {
@@ -352,7 +352,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
352
352
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
353
353
  }, "withSendId");
354
354
 
355
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/recipients.js
355
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/recipients.js
356
356
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
357
357
  import { join as join3 } from "node:path";
358
358
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -464,7 +464,7 @@ var RecipientList = class {
464
464
  }
465
465
  };
466
466
 
467
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/guard.js
467
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/guard.js
468
468
  var HOUR_MS = 60 * 60 * 1e3;
469
469
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
470
470
  "attachments.extract",
@@ -657,7 +657,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
657
657
  }), "guardFor");
658
658
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
659
659
 
660
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sends/pace.js
660
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/pace.js
661
661
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
662
662
  import { join as join4 } from "node:path";
663
663
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -716,7 +716,7 @@ var Pacer = class {
716
716
  }
717
717
  };
718
718
 
719
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
719
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
720
720
  var pathOf = /* @__PURE__ */ __name((command) => {
721
721
  const words = [];
722
722
  for (let at = command; at?.parent; at = at.parent)
@@ -776,7 +776,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
776
776
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
777
777
  }, "refuseUnknownPermissionKeys");
778
778
 
779
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
779
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
780
780
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
781
781
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
782
782
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -895,7 +895,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
895
895
  });
896
896
  }, "flooded");
897
897
 
898
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
898
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
899
899
  var observed = /* @__PURE__ */ __name((messenger, events) => {
900
900
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
901
901
  const write = currentOperation();
@@ -994,7 +994,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
994
994
  counts[part] = (counts[part] ?? 0) + items.length;
995
995
  }, "byPart");
996
996
 
997
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
997
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
998
998
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
999
999
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
1000
1000
  let warned = false;
@@ -1486,7 +1486,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1486
1486
  }
1487
1487
  }, "keep");
1488
1488
 
1489
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1489
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1490
1490
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1491
1491
  let opened;
1492
1492
  return {
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-67SRVSPU.js";
5
+ } from "./chunk-EO563SUX.js";
6
6
  import {
7
7
  importFrom
8
8
  } from "./chunk-Y5E2WNWB.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
14
14
  import { readFileSync } from "node:fs";
15
15
  var musl = /* @__PURE__ */ __name(() => {
16
16
  if (process.platform !== "linux")
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSharedSection,
5
5
  writeSharedSection
6
- } from "./chunk-ON67U6WV.js";
6
+ } from "./chunk-54CWOD7V.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-67SRVSPU.js";
9
+ } from "./chunk-EO563SUX.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
15
15
  var PERMISSION_ANSWERS = ["readonly", "allow"];
16
16
  var QUESTIONS = ["languages", "tools", "permissions"];
17
17
  var SECTION = "setup";