@wirecat/tg-cli 0.117.0 → 0.118.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 (90) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-VNQ72MBK.js → adapter-4YNP6VCO.js} +39 -39
  3. package/dist/bundle/{all-profiles-3W2UQTCK.js → all-profiles-MIQDYAGO.js} +6 -6
  4. package/dist/bundle/{anthropic-DFUW2KTG.js → anthropic-NTASPJYE.js} +3 -3
  5. package/dist/bundle/{app-server-5XJIMLHB.js → app-server-UJZBJ2SK.js} +36 -36
  6. package/dist/bundle/{bot-api-HRRBF3W6.js → bot-api-JZAD4L3N.js} +40 -40
  7. package/dist/bundle/{bot-history-GBH5XE4N.js → bot-history-OUDHH3NU.js} +12 -12
  8. package/dist/bundle/{bun-ZMOYGG6F.js → bun-EC4HDIRD.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-6FZFMA7K.js → bun-sqlite-A4HJR6KO.js} +2 -2
  10. package/dist/bundle/{chunk-HORGORHK.js → chunk-2KQHUBTV.js} +10 -10
  11. package/dist/bundle/{chunk-6GFUL4OU.js → chunk-2NA5KVP6.js} +15 -12
  12. package/dist/bundle/{chunk-C6TUVV7E.js → chunk-4BV4UMBB.js} +470 -209
  13. package/dist/bundle/{chunk-EZTYJ43A.js → chunk-57LKX6N2.js} +1 -1
  14. package/dist/bundle/{chunk-4JDGN6OD.js → chunk-5IIU7X4S.js} +1 -1
  15. package/dist/bundle/{chunk-2XLKZL6K.js → chunk-5LDWBEWU.js} +42 -26
  16. package/dist/bundle/{chunk-MLHKQDUN.js → chunk-5QYU7B27.js} +268 -153
  17. package/dist/bundle/{chunk-AG6HWPQP.js → chunk-65XV5PPI.js} +2 -2
  18. package/dist/bundle/{chunk-RDSLSV4M.js → chunk-6AXUEJGL.js} +1 -1
  19. package/dist/bundle/{chunk-HWYSRB64.js → chunk-6RI4TEIC.js} +2 -2
  20. package/dist/bundle/{chunk-7Y3RUEVY.js → chunk-6ZMTEUVU.js} +4 -4
  21. package/dist/bundle/{chunk-56Q5JV3Z.js → chunk-76EKXFX2.js} +1 -1
  22. package/dist/bundle/{chunk-TFBHDIGY.js → chunk-BNEP5EOV.js} +17 -3
  23. package/dist/bundle/{chunk-V47NPSSV.js → chunk-CEY43D3A.js} +29 -27
  24. package/dist/bundle/{chunk-G7B5UIE7.js → chunk-DKFC5ZZ3.js} +37 -11
  25. package/dist/bundle/{chunk-UGPZCNYC.js → chunk-DSZJREEO.js} +353 -286
  26. package/dist/bundle/{chunk-L5WNE4WS.js → chunk-EPXVRJAX.js} +1 -1
  27. package/dist/bundle/{chunk-66FZBLRJ.js → chunk-EQJ6NLF5.js} +12 -12
  28. package/dist/bundle/{chunk-B2YPB5AE.js → chunk-FHMK6OK4.js} +8 -8
  29. package/dist/bundle/{chunk-3GRX7WP6.js → chunk-G3RT2EQI.js} +1 -1
  30. package/dist/bundle/{chunk-TG6ZYL4B.js → chunk-GI4MTNA2.js} +7 -7
  31. package/dist/bundle/{chunk-AUBRELCM.js → chunk-GIM37COQ.js} +2 -2
  32. package/dist/bundle/{chunk-SQXB5ZUZ.js → chunk-GLRRCKP6.js} +2 -2
  33. package/dist/bundle/{chunk-VMCQGZIA.js → chunk-GXCJ47SJ.js} +381 -292
  34. package/dist/bundle/{chunk-UYK5AXSW.js → chunk-H6S3C3MH.js} +2 -2
  35. package/dist/bundle/{chunk-VRDVXXXD.js → chunk-HJNRIK5X.js} +6 -6
  36. package/dist/bundle/{chunk-HZZGOLGP.js → chunk-I4TI5HDJ.js} +9 -9
  37. package/dist/bundle/{chunk-MP7M6FFU.js → chunk-JLJKGKU2.js} +5 -5
  38. package/dist/bundle/{chunk-F6KBVIJP.js → chunk-JPVFYMSQ.js} +21 -13
  39. package/dist/bundle/{chunk-Z4QKLHJW.js → chunk-JWPSVS6C.js} +8692 -3312
  40. package/dist/bundle/{chunk-ZPILMEFY.js → chunk-JZETEZHC.js} +7 -20
  41. package/dist/bundle/{chunk-EA2PGDER.js → chunk-KEDHX6XG.js} +2 -2
  42. package/dist/bundle/{chunk-PTIB7NEE.js → chunk-MBH7IKLT.js} +1 -1
  43. package/dist/bundle/{chunk-YIXXH74F.js → chunk-MZNOASAW.js} +1 -1
  44. package/dist/bundle/{chunk-GFHNQBD2.js → chunk-NKFTZVQU.js} +1 -1
  45. package/dist/bundle/{chunk-2452HCIV.js → chunk-NMT2VGEI.js} +2 -2
  46. package/dist/bundle/{chunk-KVTLT4V7.js → chunk-OTQDJUES.js} +5 -5
  47. package/dist/bundle/{chunk-Q7O4CQDO.js → chunk-PB252TT3.js} +1 -1
  48. package/dist/bundle/{chunk-V2T7NYNU.js → chunk-PO74BDER.js} +23 -21
  49. package/dist/bundle/{chunk-X3CD475M.js → chunk-PW3HFIJA.js} +203 -155
  50. package/dist/bundle/{chunk-6HRN7BW6.js → chunk-PWCQC56A.js} +1 -1
  51. package/dist/bundle/{chunk-3RJYLN5V.js → chunk-RG2E7ZQZ.js} +117 -14
  52. package/dist/bundle/{chunk-RDH2QBUE.js → chunk-TMTEWOQS.js} +1 -1
  53. package/dist/bundle/{chunk-7NBUT62O.js → chunk-TSTEZNSX.js} +1 -1
  54. package/dist/bundle/{chunk-XW5C4TI7.js → chunk-Y64SI2RO.js} +47 -1
  55. package/dist/bundle/{chunk-FEKXHILZ.js → chunk-YEOSV6JC.js} +1 -1
  56. package/dist/bundle/{chunk-EL6I4WTB.js → chunk-YPRUWRKE.js} +1 -1
  57. package/dist/bundle/{chunk-M7V5XRM6.js → chunk-ZMUC3UQO.js} +2 -2
  58. package/dist/bundle/{chunk-FAHHERJ7.js → chunk-ZXXTJF4Z.js} +4 -4
  59. package/dist/bundle/{command-contract-KMMHARMR.js → command-contract-7GZ6HAA6.js} +12 -12
  60. package/dist/bundle/{decode-YMSOY2AY.js → decode-NMNPLKNR.js} +2 -2
  61. package/dist/bundle/{echarts-7XS55TQY.js → echarts-S46LEIPS.js} +2 -2
  62. package/dist/bundle/{embed-QTOE7NN3.js → embed-I5ZYHGYC.js} +3 -3
  63. package/dist/bundle/{embedder-KBBRYSNH.js → embedder-LTJI67N2.js} +6 -6
  64. package/dist/bundle/{entry-HGEUYYMX.js → entry-O6BUPXF7.js} +4 -4
  65. package/dist/bundle/{first-run-CSGMEJXY.js → first-run-PMZNCDGD.js} +5 -5
  66. package/dist/bundle/{first-screen-K2PBNJNE.js → first-screen-BGML5DSO.js} +13 -13
  67. package/dist/bundle/{instructions-S6ZXCTFH.js → instructions-AUEGY3VO.js} +1 -1
  68. package/dist/bundle/{node-LCIUWXXG.js → node-XRA7RBCQ.js} +2 -2
  69. package/dist/bundle/{node-sqlite-HL4WY4N2.js → node-sqlite-DEZO6LRS.js} +3 -3
  70. package/dist/bundle/{oauth-U4KIMDKG.js → oauth-DAVC7WCD.js} +4 -4
  71. package/dist/bundle/{open-EH7OS7M7.js → open-DE2YO4T7.js} +2 -2
  72. package/dist/bundle/{openai-W5TB3NA5.js → openai-5BKGAULH.js} +10 -10
  73. package/dist/bundle/{process-3CVLTCTA.js → process-4ZHPNUIQ.js} +1 -1
  74. package/dist/bundle/{program-LOIZTK2P.js → program-EGTKSNB4.js} +42 -42
  75. package/dist/bundle/{prompt-IDNH7N3W.js → prompt-HWCWHHPE.js} +2 -2
  76. package/dist/bundle/{recognize-G5EWYXIF.js → recognize-NG6RXNGF.js} +1 -1
  77. package/dist/bundle/{remote-4XTBZVZD.js → remote-ZKXIIGYH.js} +4 -4
  78. package/dist/bundle/{rerank-OWSTDLZN.js → rerank-TX5QFURV.js} +4 -4
  79. package/dist/bundle/{serve-YCPSEWP3.js → serve-XAS6DECW.js} +6 -6
  80. package/dist/bundle/{server-ODG4A2KK.js → server-CNPIWBYU.js} +28 -28
  81. package/dist/bundle/server-FRTKLHZF.js +60 -0
  82. package/dist/bundle/{state-OL2235G5.js → state-3HTUETTS.js} +3 -3
  83. package/dist/bundle/{store-5AACYNDM.js → store-B5VZWJHN.js} +17 -9
  84. package/dist/bundle/store-maintenance-command-VG3CLELA.js +50 -0
  85. package/dist/bundle/tg.js +3 -3
  86. package/dist/version.d.ts +1 -1
  87. package/dist/version.js +1 -1
  88. package/package.json +2 -2
  89. package/dist/bundle/server-KELKX6S3.js +0 -60
  90. package/dist/bundle/store-maintenance-command-3J7WZYVN.js +0 -50
@@ -7,10 +7,10 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-3RJYLN5V.js";
10
+ } from "./chunk-RG2E7ZQZ.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-EA2PGDER.js";
13
+ } from "./chunk-KEDHX6XG.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
@@ -18,7 +18,7 @@ import {
18
18
  refuseLacking,
19
19
  servicesFor,
20
20
  storeModeDeps
21
- } from "./chunk-UGPZCNYC.js";
21
+ } from "./chunk-DSZJREEO.js";
22
22
  import {
23
23
  DEFAULT_OUTPUT_BYTES,
24
24
  ENTITIES,
@@ -42,19 +42,22 @@ import {
42
42
  sealed,
43
43
  startRecording,
44
44
  traceOf
45
- } from "./chunk-X3CD475M.js";
45
+ } from "./chunk-PW3HFIJA.js";
46
46
  import {
47
47
  currentCaller,
48
48
  keepsSuccess,
49
49
  runContextOf,
50
50
  withCaller
51
- } from "./chunk-ZPILMEFY.js";
51
+ } from "./chunk-JZETEZHC.js";
52
52
  import {
53
53
  queryDescription
54
- } from "./chunk-C6TUVV7E.js";
54
+ } from "./chunk-4BV4UMBB.js";
55
+ import {
56
+ storeDamaged
57
+ } from "./chunk-Y64SI2RO.js";
55
58
  import {
56
59
  MAX_BUFFERED_INPUT
57
- } from "./chunk-RDSLSV4M.js";
60
+ } from "./chunk-6AXUEJGL.js";
58
61
  import {
59
62
  captureStreams,
60
63
  traceIdOf
@@ -106,7 +109,7 @@ import {
106
109
  __name
107
110
  } from "./chunk-ZVVMGPBJ.js";
108
111
 
109
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/mcp/agent.js
112
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/agent.js
110
113
  import { Readable } from "node:stream";
111
114
 
112
115
  // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
@@ -2978,7 +2981,7 @@ var VOCABULARY = defineVocabulary({
2978
2981
  ]
2979
2982
  });
2980
2983
 
2981
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2984
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2982
2985
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2983
2986
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2984
2987
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3201,7 +3204,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3201
3204
  }
3202
3205
  }, "runCommandForAgent");
3203
3206
 
3204
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3207
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3205
3208
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3206
3209
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3207
3210
  var message = pipe(
@@ -3457,10 +3460,10 @@ var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES,
3457
3460
  var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3458
3461
  const judged = judgedEffects(effects);
3459
3462
  const context = { ...failureContext(errors), ...judged ? { effects: judged } : {} };
3460
- return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3463
+ return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3461
3464
  }, "failed");
3462
3465
 
3463
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3466
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3464
3467
  import { randomUUID } from "node:crypto";
3465
3468
  var MATCHES = 8;
3466
3469
  var ANSWER = answerSchema();