@wirecat/tg-cli 0.102.0 → 0.104.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 (118) hide show
  1. package/README.md +1 -0
  2. package/dist/bin/tg.js +31 -19
  3. package/dist/bundle/{adapter-M2HRSFFL.js → adapter-QTAHA2JC.js} +49 -48
  4. package/dist/bundle/{all-profiles-GOD2QNTK.js → all-profiles-7CXBVRFU.js} +13 -13
  5. package/dist/bundle/{anthropic-LKU7RWMA.js → anthropic-FWBQ7JHT.js} +10 -10
  6. package/dist/bundle/app-server-XF4GY2Y6.js +222 -0
  7. package/dist/bundle/{bot-api-X3MPFVPL.js → bot-api-XDMMWRYI.js} +50 -49
  8. package/dist/bundle/{bot-history-OUMVVG22.js → bot-history-TU2X7RNN.js} +19 -19
  9. package/dist/bundle/{bun-LIZ6MKFS.js → bun-6GSDPKNZ.js} +5 -5
  10. package/dist/bundle/{bun-sqlite-2IFQYQ44.js → bun-sqlite-AO27E35V.js} +8 -8
  11. package/dist/bundle/{chunk-ZZLKX62Z.js → chunk-2ABQZVK4.js} +3 -3
  12. package/dist/bundle/{chunk-5DFGJPT6.js → chunk-3GGU65YR.js} +9 -7
  13. package/dist/bundle/{chunk-QEPZUFPL.js → chunk-3XZQQGCB.js} +59 -59
  14. package/dist/bundle/{chunk-W5EB4JLV.js → chunk-54RJDS3X.js} +6 -6
  15. package/dist/bundle/{chunk-WMOEOVWZ.js → chunk-5D4AEUVA.js} +3 -3
  16. package/dist/bundle/{chunk-BBC546ZA.js → chunk-5K7E36ND.js} +6 -6
  17. package/dist/bundle/{chunk-OEJ5DMCX.js → chunk-67SRVSPU.js} +10 -10
  18. package/dist/bundle/{chunk-TXBUDJ3P.js → chunk-6K4QGBXU.js} +5 -5
  19. package/dist/bundle/{chunk-264DAFJV.js → chunk-6YUFPSSE.js} +7 -7
  20. package/dist/bundle/{chunk-HLAZ65AW.js → chunk-7WHM3KNI.js} +5 -5
  21. package/dist/bundle/{chunk-AVWK4NCW.js → chunk-ADLS6FVG.js} +13 -13
  22. package/dist/bundle/{chunk-M5UH5CF3.js → chunk-ADMV4WGV.js} +8 -8
  23. package/dist/bundle/{chunk-WVEHUKCZ.js → chunk-B7TTM75D.js} +4 -4
  24. package/dist/bundle/{chunk-OHBHHBYL.js → chunk-BI2AXVHY.js} +6 -6
  25. package/dist/bundle/{chunk-XXTJUZMB.js → chunk-BIWJK5YU.js} +4 -4
  26. package/dist/bundle/{chunk-Q2NYEX4A.js → chunk-BKVJNPA6.js} +71 -30
  27. package/dist/bundle/{chunk-5D6OJREA.js → chunk-C5N7G6UH.js} +4 -4
  28. package/dist/bundle/{chunk-UK3GAN7Q.js → chunk-DANCAYRP.js} +16 -11
  29. package/dist/bundle/{chunk-7BFO3DY6.js → chunk-DFDN6AUB.js} +2 -2
  30. package/dist/bundle/{chunk-2XBSVRT2.js → chunk-FG2QTYEF.js} +4 -4
  31. package/dist/bundle/{chunk-DE7LFMY2.js → chunk-FRZHF2X6.js} +13 -11
  32. package/dist/bundle/{chunk-VUJ34PEQ.js → chunk-FUWSIEYY.js} +15 -15
  33. package/dist/bundle/{chunk-GSKFAE3I.js → chunk-GE22MYA6.js} +158 -56
  34. package/dist/bundle/{chunk-5VSR5ENL.js → chunk-GZ5CR5QB.js} +11 -11
  35. package/dist/bundle/{chunk-PSH7K6TL.js → chunk-HOR7DS3P.js} +25 -25
  36. package/dist/bundle/{chunk-CLWYQNSC.js → chunk-KRLCUBII.js} +9 -9
  37. package/dist/bundle/chunk-LJCGQMGN.js +264 -0
  38. package/dist/bundle/{chunk-OCWARAFE.js → chunk-LOFG3Q35.js} +5 -5
  39. package/dist/bundle/{chunk-SRU3OF4R.js → chunk-LSQUNABH.js} +5 -5
  40. package/dist/bundle/{chunk-MGG7JSNO.js → chunk-MB3PCNRL.js} +6 -6
  41. package/dist/bundle/{chunk-U4RRZUNP.js → chunk-MCD2GANK.js} +35 -282
  42. package/dist/bundle/{chunk-5KU4UQBM.js → chunk-MFS52LTZ.js} +4 -4
  43. package/dist/bundle/{chunk-ENE5CSVY.js → chunk-MR4LW4EC.js} +2176 -1927
  44. package/dist/bundle/{chunk-2SUTCDGO.js → chunk-N6VHHMSZ.js} +5 -5
  45. package/dist/bundle/chunk-O5EHUB2V.js +2 -0
  46. package/dist/bundle/{chunk-FBWOQMPE.js → chunk-P3WU6UYJ.js} +227 -283
  47. package/dist/bundle/{chunk-F2TG3BA2.js → chunk-PHQTSF44.js} +9 -9
  48. package/dist/bundle/{chunk-AUOXTGTU.js → chunk-PWIE7VBL.js} +4 -4
  49. package/dist/bundle/{chunk-TV5DGHBT.js → chunk-QVTCOBN5.js} +263 -249
  50. package/dist/bundle/{chunk-JFSVXMN6.js → chunk-QY7MW7HK.js} +6 -6
  51. package/dist/bundle/{chunk-V52SBQYF.js → chunk-RRWMYR2H.js} +18 -17
  52. package/dist/bundle/{chunk-4QB4WDLT.js → chunk-RTAV5XNT.js} +15 -15
  53. package/dist/bundle/{server-YWL4HDOP.js → chunk-SZE6425L.js} +54 -67
  54. package/dist/bundle/{chunk-DG62L57H.js → chunk-T4SDOYPY.js} +20 -20
  55. package/dist/bundle/{chunk-334UBWOB.js → chunk-TJR37WKA.js} +14 -14
  56. package/dist/bundle/{chunk-ERQDBK5I.js → chunk-U2AK4QXY.js} +23 -5
  57. package/dist/bundle/{chunk-BQYTIYGB.js → chunk-UDXRDFHN.js} +97 -96
  58. package/dist/bundle/{chunk-Y4XSWI22.js → chunk-UT6G2X7T.js} +7 -6
  59. package/dist/bundle/{chunk-4PDEQL6T.js → chunk-UTVANQN5.js} +6 -6
  60. package/dist/bundle/{chunk-FOUE7XLK.js → chunk-UVYY5EIS.js} +4 -4
  61. package/dist/bundle/{chunk-PYTOIDSM.js → chunk-VMU4SGCE.js} +7 -7
  62. package/dist/bundle/{chunk-ZJVZXJOG.js → chunk-WAGDZB62.js} +5 -5
  63. package/dist/bundle/{chunk-YHB57PFN.js → chunk-Y3VNNLUT.js} +4 -4
  64. package/dist/bundle/{chunk-BJG6JA5U.js → chunk-Y5E2WNWB.js} +4 -4
  65. package/dist/bundle/{chunk-ZRNRQFTF.js → chunk-Y5PJQPMQ.js} +5 -5
  66. package/dist/bundle/{chunk-CRZPQQHE.js → chunk-YBQ753RP.js} +26 -26
  67. package/dist/bundle/{chunk-QL7CQ6VZ.js → chunk-YD6ZQ6LM.js} +50 -48
  68. package/dist/bundle/{chunk-UR6ASUSG.js → chunk-ZBH7Z6WX.js} +6 -6
  69. package/dist/bundle/{chunk-AFV74GK3.js → chunk-ZVVMGPBJ.js} +2 -2
  70. package/dist/bundle/command-contract-RICU4OWW.js +32 -0
  71. package/dist/bundle/{dist-RJMT44PL.js → dist-I7OZPHAZ.js} +3 -3
  72. package/dist/bundle/{echarts-27W2CIBD.js → echarts-2YP32GX5.js} +5 -5
  73. package/dist/bundle/{embed-FGJ273X2.js → embed-QNWVBCL5.js} +9 -8
  74. package/dist/bundle/{embedder-7ELL3CQ3.js → embedder-ENS7ARPP.js} +12 -11
  75. package/dist/bundle/entry-MPYSQPZO.js +14 -0
  76. package/dist/bundle/first-run-YLB7RNGP.js +24 -0
  77. package/dist/bundle/first-screen-AYOE4JFC.js +30 -0
  78. package/dist/bundle/identity-XQLO7NYW.js +11 -0
  79. package/dist/bundle/instructions-5F4XG3B6.js +11 -0
  80. package/dist/bundle/{mcp-4Y37G2UY.js → mcp-OQBZXELQ.js} +5 -5
  81. package/dist/bundle/{node-RSL3HANO.js → node-JOUDFPFN.js} +5 -5
  82. package/dist/bundle/{node-IUL5HSYI.js → node-P4E63KXA.js} +5 -5
  83. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  84. package/dist/bundle/{node-sqlite-7R3PYQGJ.js → node-sqlite-ZY6ZFFXS.js} +8 -8
  85. package/dist/bundle/oauth-KOR3ZNTA.js +18 -0
  86. package/dist/bundle/open-JACXAGY5.js +20 -0
  87. package/dist/bundle/{process-RMV3AKLB.js → process-7W3X5VME.js} +5 -5
  88. package/dist/bundle/{program-PIUYQHBF.js → program-NSZWGHNJ.js} +52 -51
  89. package/dist/bundle/prompt-CRRG5UB6.js +13 -0
  90. package/dist/bundle/proxy-transport-YSBYG26I.js +17 -0
  91. package/dist/bundle/{recognize-3GMOLZF4.js → recognize-ASXEB45M.js} +9 -9
  92. package/dist/bundle/remote-CB3GAXGJ.js +27 -0
  93. package/dist/bundle/{rerank-W3OSXXBN.js → rerank-PDD5BPID.js} +10 -9
  94. package/dist/bundle/{serve-ZCPO44NO.js → serve-M4XFAYUM.js} +13 -13
  95. package/dist/bundle/{server-FXU4QFRB.js → server-IN673OYO.js} +37 -35
  96. package/dist/bundle/server-ISWPSKQ6.js +55 -0
  97. package/dist/bundle/{state-MJPTDIB5.js → state-626GOOVZ.js} +9 -9
  98. package/dist/bundle/{store-6VNQG56O.js → store-6JM4HJU5.js} +14 -14
  99. package/dist/bundle/store-maintenance-command-DI2UX4V3.js +44 -0
  100. package/dist/bundle/tg.js +8 -8
  101. package/dist/version.d.ts +1 -1
  102. package/dist/version.js +1 -1
  103. package/package.json +4 -4
  104. package/skills/tg-cli/SKILL.md +1 -0
  105. package/dist/bundle/chunk-2SJOUK6J.js +0 -2
  106. package/dist/bundle/command-contract-A6VZN3ZR.js +0 -31
  107. package/dist/bundle/entry-SEE5YWIX.js +0 -14
  108. package/dist/bundle/first-run-BD7FEC3W.js +0 -24
  109. package/dist/bundle/first-screen-ASZV6LSA.js +0 -29
  110. package/dist/bundle/identity-QR4F42T6.js +0 -11
  111. package/dist/bundle/instructions-L74K64PV.js +0 -9
  112. package/dist/bundle/node-UPPL626U.js +0 -21
  113. package/dist/bundle/oauth-4ESGXF6U.js +0 -18
  114. package/dist/bundle/open-DFYEUGTA.js +0 -20
  115. package/dist/bundle/prompt-H7GYQQLL.js +0 -13
  116. package/dist/bundle/proxy-transport-G4MA6BGU.js +0 -17
  117. package/dist/bundle/remote-IRWTCI2B.js +0 -26
  118. package/dist/bundle/store-maintenance-command-62TQTMER.js +0 -43
@@ -1,11 +1,11 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  count,
5
5
  id,
6
6
  text,
7
7
  time
8
- } from "./chunk-Y4XSWI22.js";
8
+ } from "./chunk-UT6G2X7T.js";
9
9
  import {
10
10
  currentCaller,
11
11
  endpointTemplate,
@@ -16,15 +16,19 @@ import {
16
16
  providerErrorKey,
17
17
  renderEvent,
18
18
  runContextOf
19
- } from "./chunk-DE7LFMY2.js";
19
+ } from "./chunk-FRZHF2X6.js";
20
20
  import {
21
21
  permissionCeiling
22
- } from "./chunk-OHBHHBYL.js";
22
+ } from "./chunk-BI2AXVHY.js";
23
23
  import {
24
24
  envName,
25
25
  readOnlyLockOf,
26
26
  readOnlyRefusal
27
- } from "./chunk-2SUTCDGO.js";
27
+ } from "./chunk-N6VHHMSZ.js";
28
+ import {
29
+ filesPresent,
30
+ sharedModelsDirectory
31
+ } from "./chunk-LJCGQMGN.js";
28
32
  import {
29
33
  FIELD_TYPES,
30
34
  QUERY_BACKENDS,
@@ -33,13 +37,13 @@ import {
33
37
  TASK_STATES,
34
38
  TASK_TYPES,
35
39
  describeQuery
36
- } from "./chunk-QEPZUFPL.js";
40
+ } from "./chunk-3XZQQGCB.js";
37
41
  import {
38
42
  sharedConfigPath
39
- } from "./chunk-F2TG3BA2.js";
43
+ } from "./chunk-PHQTSF44.js";
40
44
  import {
41
45
  storePath
42
- } from "./chunk-ZRNRQFTF.js";
46
+ } from "./chunk-Y5PJQPMQ.js";
43
47
  import {
44
48
  configFilePath,
45
49
  createRecordLog,
@@ -52,7 +56,7 @@ import {
52
56
  saveConfigFile,
53
57
  singleLine,
54
58
  writeSecurely
55
- } from "./chunk-DG62L57H.js";
59
+ } from "./chunk-T4SDOYPY.js";
56
60
  import {
57
61
  CliError,
58
62
  MAX_NEXT_STEPS,
@@ -94,12 +98,12 @@ import {
94
98
  union,
95
99
  unknown,
96
100
  writes
97
- } from "./chunk-OEJ5DMCX.js";
101
+ } from "./chunk-67SRVSPU.js";
98
102
  import {
99
103
  __name
100
- } from "./chunk-AFV74GK3.js";
104
+ } from "./chunk-ZVVMGPBJ.js";
101
105
 
102
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
106
+ // 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/commands/registry.js
103
107
  var labels = /* @__PURE__ */ new WeakMap();
104
108
  var annotate = /* @__PURE__ */ __name((command, meta) => {
105
109
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3600,7 +3604,7 @@ __name(useColor, "useColor");
3600
3604
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3601
3605
  var program = new Command();
3602
3606
 
3603
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3607
+ // 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/commands/contracts.js
3604
3608
  import { isDeepStrictEqual } from "node:util";
3605
3609
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3606
3610
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3802,7 +3806,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3802
3806
  return command;
3803
3807
  }, "customizeSharedCommand");
3804
3808
 
3805
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3809
+ // 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/commands/document.js
3806
3810
  var argumentInfoSchema = object({
3807
3811
  name: string(),
3808
3812
  required: boolean(),
@@ -3875,7 +3879,7 @@ var commandsDocumentSchema = strictObject({
3875
3879
  exit_codes: record(string(), pipe(number(), integer()))
3876
3880
  });
3877
3881
 
3878
- // node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3882
+ // 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/commands/index.js
3879
3883
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3880
3884
  let command = root;
3881
3885
  const path2 = [];
@@ -3893,7 +3897,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3893
3897
  }
3894
3898
  }, "refuseJoinedPath");
3895
3899
 
3896
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3900
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3897
3901
  import { AsyncLocalStorage } from "node:async_hooks";
3898
3902
  var sentIds = /* @__PURE__ */ __name((typed, message) => ({
3899
3903
  messageId: message.id,
@@ -3999,7 +4003,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
3999
4003
  }, "guardedWrite");
4000
4004
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
4001
4005
 
4002
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4006
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4003
4007
  var named = /* @__PURE__ */ __name((work) => {
4004
4008
  try {
4005
4009
  return work();
@@ -4026,9 +4030,10 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
4026
4030
  return projectFields(value, fields);
4027
4031
  }), "projectFields");
4028
4032
 
4029
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/execution.js
4033
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/execution.js
4030
4034
  var DEFAULT_COMMAND_MS = 3e4;
4031
4035
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4036
+ var DEFAULT_SYNC_MS = 15 * 6e4;
4032
4037
  var DEFAULT_AGENT_COOPERATIVE_MS = 45e3;
4033
4038
  var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
4034
4039
  var byteCount = /* @__PURE__ */ __name((value, option, zero = false) => {
@@ -4207,7 +4212,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4207
4212
  }
4208
4213
  }, "withAbort");
4209
4214
 
4210
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/sends/permissions.js
4215
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/sends/permissions.js
4211
4216
  var LEVELS = ["deny", "readonly", "ask", "allow"];
4212
4217
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
4213
4218
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -4596,7 +4601,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
4596
4601
  }
4597
4602
  }, "assertRetentionEvidenceRead");
4598
4603
 
4599
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4604
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4600
4605
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4601
4606
  import { join } from "node:path";
4602
4607
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4618,7 +4623,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4618
4623
  }, "profilesWithAccounts");
4619
4624
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4620
4625
 
4621
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/output-detail.js
4626
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/output-detail.js
4622
4627
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
4623
4628
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
4624
4629
  var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
@@ -4648,7 +4653,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
4648
4653
  return value;
4649
4654
  }, "atDetail");
4650
4655
 
4651
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/output.js
4656
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/output.js
4652
4657
  var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
4653
4658
  const interactive = tty ?? process.stdout.isTTY === true;
4654
4659
  const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
@@ -4696,7 +4701,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
4696
4701
  }, "warn")
4697
4702
  }), "silence");
4698
4703
 
4699
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4704
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4700
4705
  var CORE_LOG_EVENTS = defineLogEvents([
4701
4706
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4702
4707
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4730,7 +4735,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4730
4735
  cache: "cache.answered"
4731
4736
  };
4732
4737
 
4733
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4738
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4734
4739
  var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
4735
4740
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
4736
4741
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -4743,13 +4748,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
4743
4748
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
4744
4749
  }), "snakeLogger");
4745
4750
 
4746
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/runs/run.js
4751
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/runs/run.js
4747
4752
  import { randomUUID } from "node:crypto";
4748
4753
  import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
4749
4754
  import { userInfo } from "node:os";
4750
4755
  import { join as join2, sep } from "node:path";
4751
4756
 
4752
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4757
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4753
4758
  var diagnostic = {
4754
4759
  event: true,
4755
4760
  operation: true,
@@ -4819,7 +4824,7 @@ var LOG_ATTRIBUTES = [
4819
4824
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
4820
4825
  ].sort();
4821
4826
 
4822
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/runs/run.js
4827
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/runs/run.js
4823
4828
  var KEEP_RUNS_FOR_DAYS = 30;
4824
4829
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
4825
4830
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -5172,7 +5177,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
5172
5177
  };
5173
5178
  }, "metadataOf");
5174
5179
 
5175
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/runs/scope.js
5180
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/runs/scope.js
5176
5181
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
5177
5182
  import { randomBytes } from "node:crypto";
5178
5183
  var scopes = new AsyncLocalStorage2();
@@ -5210,7 +5215,7 @@ var attempts = new AsyncLocalStorage2();
5210
5215
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
5211
5216
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
5212
5217
 
5213
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/runs/recording.js
5218
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/runs/recording.js
5214
5219
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
5215
5220
  const recording = startRecording(options);
5216
5221
  try {
@@ -5395,7 +5400,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
5395
5400
  return void 0;
5396
5401
  }, "partialOutcome");
5397
5402
 
5398
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5403
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5399
5404
  var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
5400
5405
  if (ms === void 0)
5401
5406
  return body();
@@ -5421,7 +5426,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
5421
5426
  }
5422
5427
  }, "withDeadline");
5423
5428
 
5424
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/profile.js
5429
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/profile.js
5425
5430
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
5426
5431
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
5427
5432
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5433,6 +5438,10 @@ var usableProfileName = /* @__PURE__ */ __name((profile) => {
5433
5438
  }, "usableProfileName");
5434
5439
  var PROFILE_FREE = /* @__PURE__ */ new Set(["commands", "complete", "guide", "help", "skill", "upgrade"]);
5435
5440
  var freeOfProfile = /* @__PURE__ */ new WeakSet();
5441
+ var profileFree = /* @__PURE__ */ __name((command) => {
5442
+ freeOfProfile.add(command);
5443
+ return command;
5444
+ }, "profileFree");
5436
5445
  var takesProfile = /* @__PURE__ */ __name((command) => {
5437
5446
  let top;
5438
5447
  for (let at = command; at?.parent; at = at.parent) {
@@ -5486,10 +5495,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
5486
5495
  return void 0;
5487
5496
  }, "sampleCommand");
5488
5497
 
5489
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/settings.js
5498
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/settings.js
5490
5499
  import { existsSync as existsSync3 } from "node:fs";
5491
5500
 
5492
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5501
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5493
5502
  var endpoint = /* @__PURE__ */ __name((value) => {
5494
5503
  try {
5495
5504
  const url2 = new URL(value);
@@ -5499,7 +5508,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
5499
5508
  }
5500
5509
  }, "endpoint");
5501
5510
 
5502
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/models/settings.js
5511
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/models/settings.js
5503
5512
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5504
5513
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5505
5514
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5568,7 +5577,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5568
5577
  };
5569
5578
  }, "modelTarget");
5570
5579
 
5571
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5580
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5572
5581
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5573
5582
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5574
5583
  var AI_FIELDS = {
@@ -5612,7 +5621,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5612
5621
  };
5613
5622
  }, "resolveAISettings");
5614
5623
 
5615
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/domain/duration.js
5624
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/domain/duration.js
5616
5625
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5617
5626
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5618
5627
  var parseDuration = /* @__PURE__ */ __name((value, source) => {
@@ -5626,7 +5635,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
5626
5635
  return ms;
5627
5636
  }, "parseDuration");
5628
5637
 
5629
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5638
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5630
5639
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5631
5640
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5632
5641
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -5785,7 +5794,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
5785
5794
  var vectorModelKey = /* @__PURE__ */ __name((model2) => `local:${model2.id}:${model2.dims}`, "vectorModelKey");
5786
5795
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5787
5796
 
5788
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5797
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5789
5798
  import { readFileSync as readFileSync3 } from "node:fs";
5790
5799
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5791
5800
  var SECTIONS = ["personal", "bot"];
@@ -6075,7 +6084,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
6075
6084
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
6076
6085
  }, "readConfigFile");
6077
6086
 
6078
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6087
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6079
6088
  import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
6080
6089
  import { dirname, join as join3 } from "node:path";
6081
6090
  var DEFAULT_CONFIG = {
@@ -6104,7 +6113,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
6104
6113
  }
6105
6114
  __name(ensureDefaultConfig, "ensureDefaultConfig");
6106
6115
 
6107
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/settings.js
6116
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/settings.js
6108
6117
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
6109
6118
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
6110
6119
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -6155,6 +6164,13 @@ var SHARED_PROFILE_ENTRIES = {
6155
6164
  var BOT_ONLY_ENTRIES = {
6156
6165
  read_other_bots: optional(union([flag, array(string(), plain("has to be a list of profile names"))], plain("has to be true, false or a list of profile names")))
6157
6166
  };
6167
+ var MESSENGER_ONLY_SETTINGS = [
6168
+ "sender_colors",
6169
+ "sends_per_hour",
6170
+ "transcribe_with",
6171
+ "search_catch_up",
6172
+ "read_other_bots"
6173
+ ];
6158
6174
  var SHARED_DEFAULTS_ONLY = {
6159
6175
  update_check: optional(flag),
6160
6176
  skill_hint: optional(flag)
@@ -6210,7 +6226,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6210
6226
  const schema = strictOf(configEntries);
6211
6227
  const defaultsOnlyKeys = Object.keys(defaultsOnly);
6212
6228
  const botOnlyKeys = Object.keys(BOT_ONLY_ENTRIES);
6213
- const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys];
6229
+ const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting));
6214
6230
  const PROFILE = envName(app, "PROFILE");
6215
6231
  const PROFILE_LOCK = envName(app, "PROFILE_LOCK");
6216
6232
  const TIMEOUT = envName(app, "TIMEOUT");
@@ -6487,7 +6503,7 @@ var given = /* @__PURE__ */ __name((value) => {
6487
6503
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6488
6504
  }, "given");
6489
6505
 
6490
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/context.js
6506
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/context.js
6491
6507
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
6492
6508
  const slot = environmentOf(command).exit;
6493
6509
  if (slot)
@@ -6594,7 +6610,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6594
6610
  return words.join(" ");
6595
6611
  }, "commandPath");
6596
6612
 
6597
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/effects.js
6613
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/effects.js
6598
6614
  var REMOTE_READ = { remote: "read", local: "read" };
6599
6615
  var FETCH = { remote: "read", local: "write" };
6600
6616
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6635,6 +6651,17 @@ var changesStore = /* @__PURE__ */ __name((command) => {
6635
6651
  STORE_WRITES.add(command);
6636
6652
  return command;
6637
6653
  }, "changesStore");
6654
+ var savesFiles = /* @__PURE__ */ __name((command) => command.name() === "download" || [...command.options.map((option) => option.attributeName()), ...command.registeredArguments.map((one) => one.name())].map((name) => name.toLowerCase()).some((name) => name === "dir" || name.endsWith("dir") || name === "output"), "savesFiles");
6655
+ var fetchesOnly = /* @__PURE__ */ __name((command) => {
6656
+ const effects = metaOf(command).effects;
6657
+ return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
6658
+ }, "fetchesOnly");
6659
+ var fetchesOnlyAt = /* @__PURE__ */ __name((root) => (path2) => {
6660
+ let at = root;
6661
+ for (const word of path2)
6662
+ at = at?.commands.find((one) => one.name() === word);
6663
+ return at !== void 0 && fetchesOnly(at);
6664
+ }, "fetchesOnlyAt");
6638
6665
  var isStoreChange = /* @__PURE__ */ __name((command) => {
6639
6666
  const effects = metaOf(command).effects;
6640
6667
  return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command);
@@ -6685,7 +6712,61 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6685
6712
  throw readOnlyRefusal(lock, what);
6686
6713
  }, "refuseUnderReadOnly");
6687
6714
 
6688
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/steps.js
6715
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/images/picture/models.js
6716
+ import { join as join4 } from "node:path";
6717
+ var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
6718
+ var IMAGE_MODELS = [
6719
+ {
6720
+ id: "clip-b32",
6721
+ title: "CLIP ViT-B/32, 8-bit",
6722
+ languages: "English only: translate a query before searching",
6723
+ licence: "MIT",
6724
+ dims: 512,
6725
+ key: "local:clip-b32:512",
6726
+ maxTokens: 77,
6727
+ vision: "onnx/vision_model_quantized.onnx",
6728
+ text: "onnx/text_model_quantized.onnx",
6729
+ files: [
6730
+ {
6731
+ name: "onnx/vision_model_quantized.onnx",
6732
+ url: clip("onnx/vision_model_quantized.onnx"),
6733
+ sha256: "583fd1110a514667812fee7d684952aaf82a99b959760c8d7dca7e0ab9839299",
6734
+ bytes: 89117001
6735
+ },
6736
+ {
6737
+ name: "onnx/text_model_quantized.onnx",
6738
+ url: clip("onnx/text_model_quantized.onnx"),
6739
+ sha256: "73baab855d406190da9faa498cfedf65f15cf309f4cc7385b7b032e6d08e5c3a",
6740
+ bytes: 64504507
6741
+ },
6742
+ {
6743
+ name: "tokenizer.json",
6744
+ url: clip("tokenizer.json"),
6745
+ sha256: "f7f3b7af117d467b58374797691a6438d3e6b9e9cef800dfd5dced7f697a90cd",
6746
+ bytes: 2224119
6747
+ },
6748
+ {
6749
+ name: "tokenizer_config.json",
6750
+ url: clip("tokenizer_config.json"),
6751
+ sha256: "60ba2912bc6344c94bc16bbdec27fa1209409167b6f2fdf3cfe9e65462ea3967",
6752
+ bytes: 775
6753
+ }
6754
+ ]
6755
+ }
6756
+ ];
6757
+ var DEFAULT_IMAGE_MODEL = "clip-b32";
6758
+ var imageModel = /* @__PURE__ */ __name((id2) => {
6759
+ const found = IMAGE_MODELS.find((model2) => model2.id === id2);
6760
+ if (!found) {
6761
+ throw new CliError("validation_error", `no image model ${id2} \u2014 one of: ${IMAGE_MODELS.map((model2) => model2.id).join(", ")}`);
6762
+ }
6763
+ return found;
6764
+ }, "imageModel");
6765
+ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
6766
+ var placedImage = /* @__PURE__ */ __name((model2, directory) => model2.files.map((file) => [file, join4(directory, model2.id, file.name)]), "placedImage");
6767
+ var isImageModelInstalled = /* @__PURE__ */ __name((model2, directory) => filesPresent(placedImage(model2, directory)), "isImageModelInstalled");
6768
+
6769
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/steps.js
6689
6770
  var STEPS2 = defineSteps([
6690
6771
  ...STEPS,
6691
6772
  {
@@ -6869,7 +6950,7 @@ var STEPS2 = defineSteps([
6869
6950
  {
6870
6951
  id: "mcp.config",
6871
6952
  command: "mcp config",
6872
- args: [],
6953
+ args: [{ name: "profiles", required: false }],
6873
6954
  why: "the entry names one Node version's path; after switching or upgrading Node, print it again"
6874
6955
  },
6875
6956
  {
@@ -6916,6 +6997,15 @@ var commandAt = /* @__PURE__ */ __name((root, path2) => {
6916
6997
  return at === root ? void 0 : at;
6917
6998
  }, "commandAt");
6918
6999
  var runnable = /* @__PURE__ */ __name((root, steps) => withSafety((steps ?? []).filter((step) => step.kind === "user_action" || commandAt(root, step.command) !== void 0).slice(0, MAX_NEXT_STEPS), judgedTargets(root)), "runnable");
7000
+ var failureSteps = /* @__PURE__ */ __name((root, error) => {
7001
+ const model2 = error.details?.model;
7002
+ const own = error.reason === "model.not-downloaded" && typeof model2 === "string" ? [
7003
+ nextStep(IMAGE_MODELS.some((one) => one.id === model2) ? "models.download-image" : "models.download", {
7004
+ args: { model: model2 }
7005
+ })
7006
+ ] : [];
7007
+ return runnable(root, [...error.next ?? [], ...own]);
7008
+ }, "failureSteps");
6919
7009
  var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step) => {
6920
7010
  if (step.kind === "user_action")
6921
7011
  return step;
@@ -6942,7 +7032,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
6942
7032
  ].join(" ");
6943
7033
  }, "stepLine");
6944
7034
 
6945
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
7035
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
6946
7036
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
6947
7037
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
6948
7038
  var strip = /* @__PURE__ */ __name((value) => {
@@ -6956,7 +7046,7 @@ var strip = /* @__PURE__ */ __name((value) => {
6956
7046
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
6957
7047
  }, "strip");
6958
7048
 
6959
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/cli/envelope.js
7049
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/envelope.js
6960
7050
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
6961
7051
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
6962
7052
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -7078,7 +7168,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
7078
7168
  renderer.result(item);
7079
7169
  }, "printItem");
7080
7170
 
7081
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/entities/store-table.js
7171
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/entities/store-table.js
7082
7172
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
7083
7173
  var storeTable = strictObject({
7084
7174
  name: text,
@@ -7087,7 +7177,7 @@ var storeTable = strictObject({
7087
7177
  bytes: optional(nullable(count))
7088
7178
  });
7089
7179
 
7090
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7180
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7091
7181
  var WEIGHTS = {
7092
7182
  bot: 3,
7093
7183
  scam: 3,
@@ -7112,7 +7202,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
7112
7202
  var DIGITS = /\d{5,}/;
7113
7203
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
7114
7204
 
7115
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/entities/task.js
7205
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/entities/task.js
7116
7206
  var closeSuggestion = strictObject({
7117
7207
  as: picklist(["done", "dismissed"]),
7118
7208
  /** The agent's name. */
@@ -7154,7 +7244,7 @@ var task = strictObject({
7154
7244
  updated_at: optional(time)
7155
7245
  });
7156
7246
 
7157
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7247
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7158
7248
  var agendaChat = strictObject({
7159
7249
  chat: reference,
7160
7250
  title: nullable(text),
@@ -7214,7 +7304,7 @@ var agenda = strictObject({
7214
7304
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
7215
7305
  });
7216
7306
 
7217
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/entities/conversation.js
7307
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/entities/conversation.js
7218
7308
  var conversation = strictObject({
7219
7309
  id,
7220
7310
  chat: reference,
@@ -7229,7 +7319,7 @@ var conversation = strictObject({
7229
7319
  rules_version: count
7230
7320
  });
7231
7321
 
7232
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7322
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7233
7323
  var attachment = strictObject({
7234
7324
  /** The message it came with, as a locator; absent inside that message. */
7235
7325
  message: optional(reference),
@@ -7258,7 +7348,7 @@ var attachment = strictObject({
7258
7348
  }))))
7259
7349
  });
7260
7350
 
7261
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/entities/tagging.js
7351
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/entities/tagging.js
7262
7352
  var tagging = strictObject({
7263
7353
  tag: text,
7264
7354
  type: picklist(TAG_TYPES),
@@ -7271,7 +7361,7 @@ var tagging = strictObject({
7271
7361
  created_at: time
7272
7362
  });
7273
7363
 
7274
- // node_modules/.pnpm/@wirecat+cli-core@0.467.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._7a700db966f96e9df6d3178e7072efc2/node_modules/@wirecat/cli-core/dist/runs/record-log.js
7364
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/runs/record-log.js
7275
7365
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
7276
7366
  const run = currentRun();
7277
7367
  const trace = traceId ?? run.traceId;
@@ -7318,6 +7408,8 @@ export {
7318
7408
  typedCommand,
7319
7409
  useAsProcessRun,
7320
7410
  processRun,
7411
+ enclosingTraceId,
7412
+ traceOf,
7321
7413
  childTrace,
7322
7414
  withAttempt,
7323
7415
  currentAttempt,
@@ -7331,6 +7423,7 @@ export {
7331
7423
  withDeadline,
7332
7424
  DEFAULT_COMMAND_MS,
7333
7425
  DEFAULT_COOPERATIVE_MS,
7426
+ DEFAULT_SYNC_MS,
7334
7427
  DEFAULT_AGENT_COOPERATIVE_MS,
7335
7428
  DEFAULT_OUTPUT_BYTES,
7336
7429
  byteCount,
@@ -7339,6 +7432,7 @@ export {
7339
7432
  isProfileName,
7340
7433
  usableProfileName,
7341
7434
  PROFILE_FREE,
7435
+ profileFree,
7342
7436
  takesProfile,
7343
7437
  commandWords,
7344
7438
  liftProfile,
@@ -7403,6 +7497,7 @@ export {
7403
7497
  isLogin,
7404
7498
  destroysNothing,
7405
7499
  changesStore,
7500
+ fetchesOnlyAt,
7406
7501
  isStoreChange,
7407
7502
  previewFlag,
7408
7503
  storeChangeRefusal,
@@ -7415,11 +7510,18 @@ export {
7415
7510
  judgedTargets,
7416
7511
  refuseUnderReadOnly,
7417
7512
  withoutProviderRefs,
7513
+ IMAGE_MODELS,
7514
+ DEFAULT_IMAGE_MODEL,
7515
+ imageModel,
7516
+ imageModelsDirectory,
7517
+ placedImage,
7518
+ isImageModelInstalled,
7418
7519
  nextStep,
7419
7520
  lineOf,
7420
7521
  rootOf2,
7421
7522
  commandAt,
7422
7523
  runnable,
7524
+ failureSteps,
7423
7525
  withLines,
7424
7526
  stepLine,
7425
7527
  answerSchema,