@wirecat/tg-cli 0.109.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-6JLFYFL5.js → adapter-JWUCHTXU.js} +45 -45
  3. package/dist/bundle/{all-profiles-X7Y3T5S4.js → all-profiles-OMRCKP54.js} +8 -8
  4. package/dist/bundle/{anthropic-LGVXAADT.js → anthropic-WXFHH74P.js} +5 -5
  5. package/dist/bundle/{app-server-UI3AFSJX.js → app-server-ILIPNO6T.js} +40 -40
  6. package/dist/bundle/{bot-api-TQYRNYJQ.js → bot-api-KV765AZK.js} +46 -46
  7. package/dist/bundle/{bot-history-DDNTNMNB.js → bot-history-3P6EIM5L.js} +15 -15
  8. package/dist/bundle/{bun-WXGS6HML.js → bun-MJOYPPEN.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-M6JEXKRT.js → bun-sqlite-GFRVRRDZ.js} +4 -4
  10. package/dist/bundle/{chunk-C3RX3UOE.js → chunk-2YWQEG2P.js} +11 -11
  11. package/dist/bundle/{chunk-UIPBAT2T.js → chunk-32HEOKI2.js} +15 -14
  12. package/dist/bundle/{chunk-BZIZLEJN.js → chunk-3KOF5T4N.js} +4 -4
  13. package/dist/bundle/{chunk-WHYS6OSG.js → chunk-3L2JTAVD.js} +2 -2
  14. package/dist/bundle/{chunk-XJVGCCQE.js → chunk-3XTMVGTS.js} +1904 -624
  15. package/dist/bundle/{chunk-P5ILJ7MN.js → chunk-4BMXELWN.js} +5 -5
  16. package/dist/bundle/{chunk-ZMZKZL3Y.js → chunk-4GOF43MW.js} +1 -1
  17. package/dist/bundle/{chunk-7AJ2IESO.js → chunk-4I6HTOCM.js} +1 -1
  18. package/dist/bundle/{chunk-4R4AH6FM.js → chunk-4YOPRYEY.js} +94 -94
  19. package/dist/bundle/{chunk-AGVKIJB7.js → chunk-54CWOD7V.js} +6 -6
  20. package/dist/bundle/{chunk-76C5SSMR.js → chunk-5ASW5BNM.js} +12 -12
  21. package/dist/bundle/{chunk-P57R2P75.js → chunk-5CMOXHQS.js} +7 -7
  22. package/dist/bundle/{chunk-N56WXUCW.js → chunk-6KESAYMZ.js} +2 -2
  23. package/dist/bundle/{chunk-YYOIULA2.js → chunk-6WTLP2SI.js} +8 -8
  24. package/dist/bundle/{chunk-TMXNMO66.js → chunk-7ABA4EXC.js} +3 -3
  25. package/dist/bundle/{chunk-RD2NLJSU.js → chunk-7LZBMZQM.js} +4 -4
  26. package/dist/bundle/{chunk-VFVMB3NV.js → chunk-ABVHA4K6.js} +5 -5
  27. package/dist/bundle/{chunk-BESIMQ5U.js → chunk-AXNBGLO5.js} +1 -1
  28. package/dist/bundle/{chunk-INYO2QFW.js → chunk-AZYVTDAE.js} +3 -3
  29. package/dist/bundle/{chunk-N5FSRC6H.js → chunk-BWRCPMMC.js} +41 -31
  30. package/dist/bundle/{chunk-2ILQYCBY.js → chunk-BYOEVYY2.js} +553 -291
  31. package/dist/bundle/{chunk-NAVNCM5K.js → chunk-EB44Z44U.js} +1 -1
  32. package/dist/bundle/{chunk-XMMWKHNY.js → chunk-EO563SUX.js} +7 -7
  33. package/dist/bundle/{chunk-OHLMHBDI.js → chunk-F24EAGOU.js} +32 -31
  34. package/dist/bundle/{chunk-WNTXIQMB.js → chunk-F7RWNBC2.js} +2 -2
  35. package/dist/bundle/{chunk-IGIPIO4J.js → chunk-FYAHTTOB.js} +11 -11
  36. package/dist/bundle/{chunk-SH63Q4QR.js → chunk-GPIORQAD.js} +22 -22
  37. package/dist/bundle/{chunk-BHPCZCX7.js → chunk-HCAYTAJN.js} +2 -2
  38. package/dist/bundle/{chunk-P55L4S6N.js → chunk-JDOSIWPN.js} +3 -3
  39. package/dist/bundle/{chunk-MF6NKU3Z.js → chunk-KLOFBUXA.js} +22 -22
  40. package/dist/bundle/{chunk-IV2QWSPG.js → chunk-L3YDXUDK.js} +12 -3
  41. package/dist/bundle/{chunk-QQF7RDLR.js → chunk-M3XIME74.js} +4 -4
  42. package/dist/bundle/{chunk-CHI6D4D6.js → chunk-MXIBRT6W.js} +4 -4
  43. package/dist/bundle/{chunk-ZHP44EML.js → chunk-MZRD776E.js} +3 -3
  44. package/dist/bundle/{chunk-KHKC236O.js → chunk-NDT22GBK.js} +2 -2
  45. package/dist/bundle/{chunk-IULYECPC.js → chunk-NFBOZT7H.js} +4 -4
  46. package/dist/bundle/{chunk-GUFM5RLW.js → chunk-ONHHBPV3.js} +2 -2
  47. package/dist/bundle/{chunk-CVLDXFRP.js → chunk-Q35J5LCO.js} +8 -8
  48. package/dist/bundle/{chunk-DZVYGBZB.js → chunk-QRH2AWBZ.js} +55 -54
  49. package/dist/bundle/{chunk-25VC6U3A.js → chunk-RARYRHQA.js} +1 -1
  50. package/dist/bundle/{chunk-AD3QPYI3.js → chunk-RSZEEWOW.js} +2 -2
  51. package/dist/bundle/{chunk-M62LF3QE.js → chunk-RXWG7OWT.js} +348 -300
  52. package/dist/bundle/{chunk-ZUOS7QUB.js → chunk-SD5J5T7M.js} +11 -11
  53. package/dist/bundle/{chunk-S7B6MTXX.js → chunk-SLAPUEMZ.js} +6 -6
  54. package/dist/bundle/{chunk-CH2ESVV5.js → chunk-TDQVVXPF.js} +42 -24
  55. package/dist/bundle/{chunk-YXCQ4DLZ.js → chunk-TJA3BWY3.js} +1 -1
  56. package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
  57. package/dist/bundle/{chunk-UUQ3BH2Z.js → chunk-VM7I5VKX.js} +2 -2
  58. package/dist/bundle/{chunk-5SUFMBU5.js → chunk-VOBMR7E5.js} +45 -45
  59. package/dist/bundle/{chunk-VYR2IIWW.js → chunk-W3B6EEZU.js} +1 -1
  60. package/dist/bundle/{chunk-7T7ILNCU.js → chunk-XLNYDJKG.js} +2 -2
  61. package/dist/bundle/{chunk-ZFMS5G4H.js → chunk-YPEAEEHF.js} +2 -2
  62. package/dist/bundle/{chunk-DO33KAMM.js → chunk-YPLL3Q3M.js} +57 -57
  63. package/dist/bundle/{chunk-3PEZWXKO.js → chunk-YWSNUUW5.js} +6 -6
  64. package/dist/bundle/command-contract-TNSW7W6G.js +32 -0
  65. package/dist/bundle/{decode-RKPOGPBE.js → decode-3KBXZCFM.js} +4 -4
  66. package/dist/bundle/{echarts-H5QQRBHI.js → echarts-24TVPFGC.js} +2 -2
  67. package/dist/bundle/{embed-7TVAPNP7.js → embed-3BDPZ4Q7.js} +5 -5
  68. package/dist/bundle/{embedder-YOOHWWN6.js → embedder-EMVDEZFR.js} +8 -8
  69. package/dist/bundle/{entry-SAKW5HEZ.js → entry-NQD6Z2BM.js} +5 -5
  70. package/dist/bundle/{first-run-C744N572.js → first-run-ZBIO6C67.js} +9 -9
  71. package/dist/bundle/first-screen-4HRCG7OX.js +30 -0
  72. package/dist/bundle/{identity-NRWTZIQ4.js → identity-EDGOOTOM.js} +3 -3
  73. package/dist/bundle/{instructions-6LWRAW47.js → instructions-N2WVMNFZ.js} +1 -1
  74. package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
  75. package/dist/bundle/{node-XN4PIVWW.js → node-VBZAZHUS.js} +2 -2
  76. package/dist/bundle/{node-sqlite-PCBGROGQ.js → node-sqlite-C3V64OAL.js} +4 -4
  77. package/dist/bundle/{oauth-PX6NGHUV.js → oauth-NZXELYDA.js} +6 -6
  78. package/dist/bundle/{open-BKJGJ6GX.js → open-2XRUGMV7.js} +3 -3
  79. package/dist/bundle/{openai-MJP7CZXP.js → openai-OLGTN3ZB.js} +13 -13
  80. package/dist/bundle/{process-4PRR3MLT.js → process-CASPZ2DH.js} +1 -1
  81. package/dist/bundle/{program-7YZUO42B.js → program-QPQDSGYA.js} +50 -48
  82. package/dist/bundle/{prompt-CILSZC2R.js → prompt-ESZL7SGX.js} +4 -4
  83. package/dist/bundle/{proxy-transport-FWGKTYBL.js → proxy-transport-OROEVBCG.js} +4 -4
  84. package/dist/bundle/{recognize-AVFDJAIL.js → recognize-LQ7QOG4T.js} +3 -3
  85. package/dist/bundle/{remote-2VYXGOM4.js → remote-34XP4EDN.js} +6 -6
  86. package/dist/bundle/{rerank-6FU2JPCD.js → rerank-7F6NLBCW.js} +6 -6
  87. package/dist/bundle/{serve-3YQOHBR6.js → serve-M6TTKXI4.js} +8 -8
  88. package/dist/bundle/{server-TPK3LNEX.js → server-GLZ5M7PE.js} +32 -32
  89. package/dist/bundle/server-KOW7OKE2.js +56 -0
  90. package/dist/bundle/{state-LLUNBLZE.js → state-UKKPLMHS.js} +5 -5
  91. package/dist/bundle/{store-27FQ743G.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-E2MWR3T3.js +0 -32
  101. package/dist/bundle/first-screen-7GKUEIWS.js +0 -30
  102. package/dist/bundle/server-S2K4YDDG.js +0 -56
  103. package/dist/bundle/store-maintenance-command-AFJMKEBK.js +0 -45
  104. /package/dist/bundle/{chunk-62EDJKGP.js → chunk-NPGVOZVK.js} +0 -0
@@ -3,17 +3,17 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  envName,
5
5
  readOnlyLockOf
6
- } from "./chunk-7T7ILNCU.js";
6
+ } from "./chunk-XLNYDJKG.js";
7
7
  import {
8
8
  CAPABILITY_STATEMENTS,
9
9
  storeCapable
10
- } from "./chunk-S7B6MTXX.js";
10
+ } from "./chunk-SLAPUEMZ.js";
11
11
  import {
12
12
  catchCrashes
13
- } from "./chunk-N5FSRC6H.js";
13
+ } from "./chunk-BWRCPMMC.js";
14
14
  import {
15
15
  CliError
16
- } from "./chunk-XMMWKHNY.js";
16
+ } from "./chunk-EO563SUX.js";
17
17
  import {
18
18
  importFrom
19
19
  } from "./chunk-Y5E2WNWB.js";
@@ -21,10 +21,10 @@ import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/entry.js
24
+ // 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/entry.js
25
25
  import { spawn as spawn2 } from "node:child_process";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
27
+ // 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/sqlite-runtime.js
28
28
  import { spawn, spawnSync } from "node:child_process";
29
29
  import { readFileSync } from "node:fs";
30
30
  import { dirname } from "node:path";
@@ -112,7 +112,7 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
112
112
  });
113
113
  }), "relay");
114
114
 
115
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
115
+ // 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/argv-log.js
116
116
  import { appendFileSync } from "node:fs";
117
117
  var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
118
118
  const words = [];
@@ -136,7 +136,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
136
136
  `);
137
137
  }, "logVersion");
138
138
 
139
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/entry.js
139
+ // 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/entry.js
140
140
  var processIo = /* @__PURE__ */ __name(() => ({
141
141
  argv: process.argv,
142
142
  env: process.env,
@@ -190,8 +190,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
190
190
  if (command.optsWithGlobals().dryRun === true)
191
191
  return;
192
192
  const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
193
- import("./first-run-C744N572.js"),
194
- import("./command-contract-E2MWR3T3.js")
193
+ import("./first-run-ZBIO6C67.js"),
194
+ import("./command-contract-TNSW7W6G.js")
195
195
  ]);
196
196
  await setupAtStart({
197
197
  command: entry.app.command,
@@ -206,7 +206,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
206
206
  ask: /* @__PURE__ */ __name(async (question, command) => {
207
207
  if (headless(command) || io.stdin.isTTY !== true)
208
208
  return false;
209
- const { readSecret } = await import("./prompt-CILSZC2R.js");
209
+ const { readSecret } = await import("./prompt-ESZL7SGX.js");
210
210
  const answer = await readSecret(`${question} [y/N] `, {
211
211
  input: io.stdin,
212
212
  output: io.stderr,
@@ -2,19 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-XMMWKHNY.js";
5
+ } from "./chunk-EO563SUX.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/store/driver.js
10
+ // 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/driver.js
11
11
  var PRAGMAS = `
12
12
  PRAGMA busy_timeout = 5000;
13
13
  PRAGMA journal_mode = WAL;
14
14
  PRAGMA foreign_keys = ON;
15
15
  `;
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
17
+ // 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/sqlite-warning.js
18
18
  var SQLITE_WARNING = "SQLite is an experimental feature";
19
19
  var quieted = /* @__PURE__ */ new WeakSet();
20
20
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
35
35
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
36
36
  }, "isSqliteWarning");
37
37
 
38
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/store/open.js
38
+ // 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/open.js
39
39
  var openCache = /* @__PURE__ */ __name(async (path) => {
40
40
  const database = await openFile(path);
41
41
  try {
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
48
48
  }, "openCache");
49
49
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
50
50
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
51
- const { openWithBunSqlite } = await import("./bun-sqlite-M6JEXKRT.js");
51
+ const { openWithBunSqlite } = await import("./bun-sqlite-GFRVRRDZ.js");
52
52
  return await openWithBunSqlite(path);
53
53
  }, "openUnderBun");
54
54
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
55
55
  quietSqliteWarning();
56
- const { openWithNodeSqlite } = await import("./node-sqlite-PCBGROGQ.js");
56
+ const { openWithNodeSqlite } = await import("./node-sqlite-C3V64OAL.js");
57
57
  return openWithNodeSqlite(path);
58
58
  }, "openUnderNode");
59
59
  var runtime = /* @__PURE__ */ __name(() => {
@@ -7,20 +7,20 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-UIPBAT2T.js";
10
+ } from "./chunk-32HEOKI2.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-IV2QWSPG.js";
13
+ } from "./chunk-L3YDXUDK.js";
14
14
  import {
15
15
  lentConnection,
16
16
  onlineDeps,
17
17
  refuseLacking,
18
18
  servicesFor,
19
19
  storeModeDeps
20
- } from "./chunk-XJVGCCQE.js";
20
+ } from "./chunk-3XTMVGTS.js";
21
21
  import {
22
22
  ENTITIES
23
- } from "./chunk-4R4AH6FM.js";
23
+ } from "./chunk-4YOPRYEY.js";
24
24
  import {
25
25
  DEFAULT_OUTPUT_BYTES,
26
26
  LOCAL_WRITE,
@@ -43,21 +43,21 @@ import {
43
43
  sealed,
44
44
  startRecording,
45
45
  traceOf
46
- } from "./chunk-DZVYGBZB.js";
46
+ } from "./chunk-QRH2AWBZ.js";
47
47
  import {
48
48
  currentCaller,
49
49
  keepsSuccess,
50
50
  runContextOf,
51
51
  withCaller
52
- } from "./chunk-CVLDXFRP.js";
52
+ } from "./chunk-Q35J5LCO.js";
53
53
  import {
54
54
  MAX_BUFFERED_INPUT
55
- } from "./chunk-WHYS6OSG.js";
55
+ } from "./chunk-3L2JTAVD.js";
56
56
  import {
57
57
  captureStreams,
58
58
  errorObjectOf,
59
59
  mcpErrorResult
60
- } from "./chunk-N5FSRC6H.js";
60
+ } from "./chunk-BWRCPMMC.js";
61
61
  import {
62
62
  CliError,
63
63
  SNAKE_CASE,
@@ -96,15 +96,15 @@ import {
96
96
  unknown,
97
97
  word,
98
98
  writes
99
- } from "./chunk-XMMWKHNY.js";
99
+ } from "./chunk-EO563SUX.js";
100
100
  import {
101
101
  __name
102
102
  } from "./chunk-ZVVMGPBJ.js";
103
103
 
104
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/agent.js
104
+ // 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.js
105
105
  import { Readable } from "node:stream";
106
106
 
107
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
107
+ // 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/lint.js
108
108
  var LINT_SEVERITIES = ["high", "medium", "low"];
109
109
  var lintRuleSchema = strictObject({
110
110
  id: word,
@@ -231,7 +231,7 @@ var overridesSchema = array(strictObject({
231
231
  review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
232
232
  }));
233
233
 
234
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
234
+ // 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/audit.js
235
235
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
236
236
  var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
237
237
  var AUDIT_RULES = defineAuditRules([
@@ -276,14 +276,20 @@ var parityGroupSchema = strictObject({
276
276
  /** Permanent differences, each with its reason; they count against the override budget of the group. */
277
277
  differences: array(strictObject({
278
278
  rule: word,
279
+ /** `<clis> <path> <flag>`; with `absent`, only `<path> <flag>`: the CLI list is whoever else has it. */
279
280
  target: text,
280
281
  expected: optional(text),
282
+ /** The CLI that lacks the path or flag by design; the rest must agree, so other CLIs joining do not stale it. */
283
+ absent: optional(word),
281
284
  reason: pipe(text, minLength(10, "say why, in a sentence"))
282
285
  }))
283
286
  });
284
287
  var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity groups", array(parityGroupSchema), input, (groups) => [
285
288
  ...duplicates(groups.map((group) => group.name)).map((name) => `"${name}" is listed twice`),
286
- ...groups.flatMap((group) => duplicates(group.differences.map((entry) => `${entry.rule} ${entry.target}`)).map((both) => `${group.name}: "${both}" is listed twice`))
289
+ ...groups.flatMap((group) => [
290
+ ...duplicates(group.differences.map((entry) => `${entry.rule} ${entry.target}`)).map((both) => `${group.name}: "${both}" is listed twice`),
291
+ ...group.differences.filter((entry) => entry.absent && entry.expected).map((entry) => `${group.name}: "${entry.target}" has \`absent\`, which measures the values itself; drop \`expected\``)
292
+ ])
287
293
  ]), "defineParityGroups");
288
294
  var PARITY_GROUPS = defineParityGroups([
289
295
  { name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
@@ -291,7 +297,12 @@ var PARITY_GROUPS = defineParityGroups([
291
297
  name: "all",
292
298
  members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
293
299
  covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
294
- differences: []
300
+ differences: ["mcp serve", "mcp revoke", "mcp server start", "mcp server status", "mcp server stop"].map((path) => ({
301
+ rule: "same-path-contract",
302
+ target: `${path} --profiles`,
303
+ absent: "memo",
304
+ reason: "memo has no profiles: it reads other CLIs' stores and selects their accounts with --source and --account (https://github.com/WireCatLabs/cli-base/issues/390)"
305
+ }))
295
306
  },
296
307
  // gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
297
308
  // CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
@@ -313,7 +324,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
313
324
  { path: ["upgrade"], meaning: "updates the CLI" }
314
325
  ]);
315
326
 
316
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
327
+ // 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/fields.js
317
328
  var fieldRuleSchema = strictObject({ id: word, rule: text });
318
329
  var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
319
330
  var FIELD_RULES = defineFieldRules([
@@ -329,7 +340,7 @@ var FIELD_RULES = defineFieldRules([
329
340
  }
330
341
  ]);
331
342
 
332
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
343
+ // 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/identifiers.js
333
344
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
334
345
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
335
346
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -351,7 +362,7 @@ var IDENTIFIERS = defineIdentifiers([
351
362
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
352
363
  ]);
353
364
 
354
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
365
+ // 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/flags-calendar.js
355
366
  var CALENDAR_FLAGS = [
356
367
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
357
368
  {
@@ -425,7 +436,7 @@ var CALENDAR_FLAGS = [
425
436
  }
426
437
  ];
427
438
 
428
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
439
+ // 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/flags-how.js
429
440
  var HOW_FLAGS = [
430
441
  {
431
442
  name: "--limit",
@@ -803,6 +814,13 @@ var HOW_FLAGS = [
803
814
  type: "string",
804
815
  meaning: "the browser program to open for sign-in"
805
816
  },
817
+ {
818
+ name: "--credential-storage",
819
+ value: "<storage>",
820
+ role: "mode",
821
+ type: "choice",
822
+ meaning: "where a sign-in is kept: keyring, which falls back to a private file by itself, or file (WC-SECR-4)"
823
+ },
806
824
  { name: "--checkpoint", value: "<file>", role: "mode", type: "path", meaning: "keep resume progress in this file" },
807
825
  {
808
826
  name: "--expected-event-id",
@@ -1405,7 +1423,7 @@ var HOW_FLAGS = [
1405
1423
  }
1406
1424
  ];
1407
1425
 
1408
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1426
+ // 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/flags-what.js
1409
1427
  var WHAT_FLAGS = [
1410
1428
  {
1411
1429
  name: "--analysis-provider",
@@ -2395,7 +2413,7 @@ var WHAT_FLAGS = [
2395
2413
  }
2396
2414
  ];
2397
2415
 
2398
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2416
+ // 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/vocabulary.js
2399
2417
  var FLAG_TYPES = [
2400
2418
  "switch",
2401
2419
  "count",
@@ -2749,7 +2767,7 @@ var VOCABULARY = defineVocabulary({
2749
2767
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
2750
2768
  });
2751
2769
 
2752
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2770
+ // 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.js
2753
2771
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2754
2772
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2755
2773
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -2970,7 +2988,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
2970
2988
  }
2971
2989
  }, "runCommandForAgent");
2972
2990
 
2973
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2991
+ // 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/tool.js
2974
2992
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
2975
2993
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
2976
2994
  var message = pipe(
@@ -3084,7 +3102,7 @@ var entryRunner = /* @__PURE__ */ __name((registration) => {
3084
3102
  ...outcomeOf(result),
3085
3103
  startedAt,
3086
3104
  finishedAt: Date.now()
3087
- })?.catch(() => void 0);
3105
+ }, caller)?.catch(() => void 0);
3088
3106
  return result;
3089
3107
  };
3090
3108
  }, "entryRunner");
@@ -3229,7 +3247,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3229
3247
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3230
3248
  }, "failed");
3231
3249
 
3232
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3250
+ // 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/surface.js
3233
3251
  import { randomUUID } from "node:crypto";
3234
3252
  var MATCHES = 8;
3235
3253
  var ANSWER = answerSchema();
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
7
+ // 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/instructions.js
8
8
  var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
9
9
  const all = typeof profile !== "string";
10
10
  const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
527
527
  }
528
528
  });
529
529
 
530
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
530
+ // 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/executable.js
531
531
  import { existsSync } from "node:fs";
532
532
  import { win32 } from "node:path";
533
533
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  resolvePaths
5
- } from "./chunk-N5FSRC6H.js";
5
+ } from "./chunk-BWRCPMMC.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/store/path.js
10
+ // 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/path.js
11
11
  import { join } from "node:path";
12
12
  var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
13
13
  var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");