@wirecat/tg-cli 0.121.0 → 0.122.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 (94) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-GVSBFSBY.js → adapter-ZI57T2L5.js} +41 -41
  3. package/dist/bundle/{all-profiles-CTOGU4XR.js → all-profiles-7VXJF42C.js} +6 -6
  4. package/dist/bundle/{anthropic-7472H6ES.js → anthropic-DKRXIWVV.js} +2 -2
  5. package/dist/bundle/{app-server-GZWV4NPR.js → app-server-F5MKHZ7S.js} +37 -37
  6. package/dist/bundle/{bot-api-PPVAKICN.js → bot-api-F24NWJT3.js} +42 -42
  7. package/dist/bundle/{bot-history-7YY7MCR4.js → bot-history-U3WM3A7S.js} +12 -12
  8. package/dist/bundle/{bun-KCN62RMD.js → bun-OMTJAXGK.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-2BNE56MY.js → bun-sqlite-HSYLO46A.js} +2 -2
  10. package/dist/bundle/{chunk-7MXRFFIT.js → chunk-27SVHRHV.js} +2 -2
  11. package/dist/bundle/{chunk-6SQAE7NM.js → chunk-2FXA32RJ.js} +6 -6
  12. package/dist/bundle/{chunk-KPAUPIC3.js → chunk-2UHANFLM.js} +2 -2
  13. package/dist/bundle/{chunk-24DWSW6H.js → chunk-33ELXJRR.js} +11 -10
  14. package/dist/bundle/{chunk-3EGVR7OF.js → chunk-4MFMUBHH.js} +95 -79
  15. package/dist/bundle/{chunk-SHIHW2YN.js → chunk-4N2WJYLE.js} +2 -2
  16. package/dist/bundle/{chunk-SQWTUENZ.js → chunk-6DLRATDC.js} +242 -239
  17. package/dist/bundle/{chunk-QQ264PXQ.js → chunk-6LMEIELG.js} +1 -1
  18. package/dist/bundle/{chunk-AYDLA27G.js → chunk-7FWU4RON.js} +3 -3
  19. package/dist/bundle/{chunk-KKD5ZPGD.js → chunk-7GCVON7M.js} +5 -5
  20. package/dist/bundle/{chunk-TEMCXODM.js → chunk-7X6YLKTK.js} +1 -1
  21. package/dist/bundle/{chunk-ESLV57MC.js → chunk-ALW7ROTM.js} +1 -1
  22. package/dist/bundle/{chunk-MAPJUOTD.js → chunk-ARKB3M5X.js} +3 -3
  23. package/dist/bundle/{chunk-GB55EDOF.js → chunk-C5CB6RIX.js} +1 -1
  24. package/dist/bundle/{chunk-S7P5X23R.js → chunk-CB6AHU6H.js} +27 -9
  25. package/dist/bundle/{chunk-YMJKHMHX.js → chunk-CW3C7FSO.js} +1 -1
  26. package/dist/bundle/{chunk-QNNUNGPL.js → chunk-D3ODL4P7.js} +2 -2
  27. package/dist/bundle/{chunk-T7ONSJAA.js → chunk-DCGGZUNJ.js} +2 -2
  28. package/dist/bundle/{chunk-3HNI6GI7.js → chunk-DDSAJKPO.js} +4 -4
  29. package/dist/bundle/{chunk-7UIMMQOV.js → chunk-DTTONQW7.js} +1 -1
  30. package/dist/bundle/{chunk-VPNLTNQD.js → chunk-E3MFMMVY.js} +5 -5
  31. package/dist/bundle/{chunk-W77WC6ZK.js → chunk-FHWUOFWX.js} +2 -2
  32. package/dist/bundle/{chunk-5P43K3GL.js → chunk-FYHFAOPM.js} +1505 -1014
  33. package/dist/bundle/{chunk-ZSW7LN7T.js → chunk-FZKHFTKH.js} +13 -13
  34. package/dist/bundle/{chunk-CPDYPZIG.js → chunk-GJBGZQHN.js} +177 -151
  35. package/dist/bundle/{chunk-3E35VJME.js → chunk-GJFICFQB.js} +1 -1
  36. package/dist/bundle/{chunk-YRY752BB.js → chunk-HAR76KJG.js} +4 -4
  37. package/dist/bundle/{chunk-CLMRF6XR.js → chunk-LQRZUNYF.js} +2 -2
  38. package/dist/bundle/{chunk-LTAHG7BO.js → chunk-MFWWZ6XL.js} +2 -2
  39. package/dist/bundle/{chunk-NR7PGYPO.js → chunk-N7WDVH2O.js} +28 -28
  40. package/dist/bundle/{chunk-KVW7LCZK.js → chunk-NE3EGYPD.js} +3 -3
  41. package/dist/bundle/{chunk-RPBO5XL3.js → chunk-NU4RMUMQ.js} +10 -10
  42. package/dist/bundle/{chunk-CMEWPXKU.js → chunk-O5A4IS2D.js} +1 -1
  43. package/dist/bundle/{chunk-M47CXY5J.js → chunk-PG3V225O.js} +21 -21
  44. package/dist/bundle/{chunk-DAK2J3FG.js → chunk-QROAXWDU.js} +7 -7
  45. package/dist/bundle/{chunk-4HJCWFPN.js → chunk-R2IW6JBV.js} +46 -46
  46. package/dist/bundle/{chunk-FERGNQYA.js → chunk-RFFU6KQ5.js} +12 -12
  47. package/dist/bundle/{chunk-M73VM67N.js → chunk-SODUFMDW.js} +727 -382
  48. package/dist/bundle/{chunk-4J34T6IQ.js → chunk-TKJZENAZ.js} +1 -1
  49. package/dist/bundle/{chunk-QMNUQTA2.js → chunk-UGEYQWEO.js} +1 -1
  50. package/dist/bundle/chunk-V4BPS7MH.js +185 -0
  51. package/dist/bundle/{chunk-6LRKWXCS.js → chunk-VC6J7X76.js} +10 -10
  52. package/dist/bundle/{chunk-MKAKM3V7.js → chunk-VDFEWSCS.js} +2 -2
  53. package/dist/bundle/{chunk-Y4CSR5RP.js → chunk-VQL4RVXZ.js} +1 -1
  54. package/dist/bundle/{chunk-R6KXHBMW.js → chunk-W34QQMBK.js} +1 -1
  55. package/dist/bundle/{chunk-54KFRAHF.js → chunk-Y52T5EMB.js} +1 -1
  56. package/dist/bundle/{chunk-VAAZL6OD.js → chunk-Y74WJL3M.js} +2 -2
  57. package/dist/bundle/{chunk-PLBEUSZP.js → chunk-YDMKP7PO.js} +1 -1
  58. package/dist/bundle/{chunk-RZX7RDXY.js → chunk-YFEH7OWG.js} +12 -12
  59. package/dist/bundle/{chunk-DG44ORQ3.js → chunk-ZKHXWSKD.js} +4 -4
  60. package/dist/bundle/{chunk-BJTJBNR7.js → chunk-ZNPRTCUO.js} +6 -6
  61. package/dist/bundle/{command-contract-3W73W27G.js → command-contract-247AKZTE.js} +12 -12
  62. package/dist/bundle/{command-server-entry-37PKBJ5A.js → command-server-entry-N32NX4QW.js} +67 -51
  63. package/dist/bundle/{decode-F7KC7WT4.js → decode-ZKJWSFXF.js} +2 -2
  64. package/dist/bundle/{echarts-4VYG66GX.js → echarts-QLVLIP73.js} +2 -2
  65. package/dist/bundle/{embed-ENZ6R4HF.js → embed-LC6K7P3S.js} +3 -3
  66. package/dist/bundle/{embedder-4CBICMFO.js → embedder-6C3OQBOV.js} +6 -6
  67. package/dist/bundle/{entry-XQ562EDO.js → entry-5H6LB3MP.js} +5 -5
  68. package/dist/bundle/{first-run-PPXOC6ID.js → first-run-IOYQ4XQK.js} +5 -5
  69. package/dist/bundle/{first-screen-JC6BYZYD.js → first-screen-NVK7PFX4.js} +13 -13
  70. package/dist/bundle/{instructions-XLCMJ5PJ.js → instructions-SZUMEDY3.js} +1 -1
  71. package/dist/bundle/{node-SSAC67R5.js → node-V76RRFIA.js} +2 -2
  72. package/dist/bundle/{node-sqlite-SUUUSYSZ.js → node-sqlite-2DTVOT7L.js} +3 -3
  73. package/dist/bundle/{oauth-2ZNHMPEX.js → oauth-CT7EBDRY.js} +4 -4
  74. package/dist/bundle/{open-EFNT7V2Q.js → open-G3VHOOMV.js} +2 -2
  75. package/dist/bundle/{openai-7STFVJXA.js → openai-F4K7MVTZ.js} +10 -10
  76. package/dist/bundle/{process-63F4PNWH.js → process-XH3KEHSF.js} +1 -1
  77. package/dist/bundle/{program-C2E3TQNK.js → program-FLGIHTHM.js} +44 -44
  78. package/dist/bundle/{prompt-QPO7EKD5.js → prompt-JWQ6UQ6R.js} +2 -2
  79. package/dist/bundle/{recognize-MLXEHFYL.js → recognize-Z26T3SYD.js} +1 -1
  80. package/dist/bundle/{remote-DO7FLJEF.js → remote-7KHT6V3O.js} +4 -4
  81. package/dist/bundle/{rerank-W3WSBDAM.js → rerank-6QVI74QY.js} +4 -4
  82. package/dist/bundle/{serve-Z3TOTEMQ.js → serve-WYDZTONY.js} +6 -6
  83. package/dist/bundle/server-UXQT7LZT.js +61 -0
  84. package/dist/bundle/{server-BYSOJCUA.js → server-Y4J2NCFA.js} +28 -28
  85. package/dist/bundle/{state-PKRPBCMY.js → state-YCXBKOD2.js} +3 -3
  86. package/dist/bundle/{store-Y4G7CNJT.js → store-QECSDJRP.js} +9 -9
  87. package/dist/bundle/store-maintenance-command-5YW6TRJA.js +49 -0
  88. package/dist/bundle/tg.js +3 -3
  89. package/dist/version.d.ts +1 -1
  90. package/dist/version.js +1 -1
  91. package/package.json +2 -2
  92. package/dist/bundle/chunk-GNGYV5NX.js +0 -116
  93. package/dist/bundle/server-IRUVLXD4.js +0 -61
  94. package/dist/bundle/store-maintenance-command-PHK43OSM.js +0 -49
@@ -1,30 +1,34 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- inCommandServerRequest,
5
- refuseInCommandServer,
4
+ COMMAND_SERVER_CONCURRENT,
5
+ enterCommandServer,
6
6
  serveCommands
7
- } from "./chunk-GNGYV5NX.js";
8
- import "./chunk-PLBEUSZP.js";
7
+ } from "./chunk-V4BPS7MH.js";
8
+ import "./chunk-YDMKP7PO.js";
9
9
  import {
10
10
  ensureSqlite
11
- } from "./chunk-KVW7LCZK.js";
12
- import "./chunk-VPNLTNQD.js";
13
- import "./chunk-Y4CSR5RP.js";
14
- import "./chunk-LTAHG7BO.js";
15
- import "./chunk-CPDYPZIG.js";
16
- import "./chunk-KPAUPIC3.js";
17
- import "./chunk-CMEWPXKU.js";
18
- import "./chunk-6SQAE7NM.js";
19
- import "./chunk-SHIHW2YN.js";
20
- import "./chunk-3E35VJME.js";
11
+ } from "./chunk-NE3EGYPD.js";
12
+ import "./chunk-E3MFMMVY.js";
13
+ import "./chunk-VQL4RVXZ.js";
14
+ import "./chunk-MFWWZ6XL.js";
21
15
  import {
22
- useAsProcessRun
23
- } from "./chunk-3EGVR7OF.js";
24
- import "./chunk-7MXRFFIT.js";
25
- import "./chunk-YRY752BB.js";
26
- import "./chunk-AYDLA27G.js";
27
- import "./chunk-54KFRAHF.js";
16
+ commandServerRequest,
17
+ exitCodeSet,
18
+ inCommandServerRequest
19
+ } from "./chunk-GJBGZQHN.js";
20
+ import "./chunk-2UHANFLM.js";
21
+ import "./chunk-O5A4IS2D.js";
22
+ import "./chunk-2FXA32RJ.js";
23
+ import "./chunk-4N2WJYLE.js";
24
+ import "./chunk-GJFICFQB.js";
25
+ import {
26
+ asOwnProcess
27
+ } from "./chunk-4MFMUBHH.js";
28
+ import "./chunk-27SVHRHV.js";
29
+ import "./chunk-HAR76KJG.js";
30
+ import "./chunk-7FWU4RON.js";
31
+ import "./chunk-Y52T5EMB.js";
28
32
  import "./chunk-YVNHQFLC.js";
29
33
  import "./chunk-U6HEZPCR.js";
30
34
  import {
@@ -38,7 +42,7 @@ import {
38
42
  __name
39
43
  } from "./chunk-ZVVMGPBJ.js";
40
44
 
41
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/command-server-entry.js
45
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/command-server-entry.js
42
46
  import { PassThrough } from "node:stream";
43
47
  var route = /* @__PURE__ */ __name((stream, sink) => {
44
48
  const original = stream.write;
@@ -58,7 +62,21 @@ var closedStdin = /* @__PURE__ */ __name(() => {
58
62
  stdin.end();
59
63
  return stdin;
60
64
  }, "closedStdin");
61
- var useStdin = /* @__PURE__ */ __name((stdin) => Object.defineProperty(process, "stdin", { value: stdin, configurable: true, enumerable: true, writable: true }), "useStdin");
65
+ var useStdin = /* @__PURE__ */ __name((outside) => Object.defineProperty(process, "stdin", {
66
+ get: /* @__PURE__ */ __name(() => commandServerRequest()?.stdin ?? outside, "get"),
67
+ configurable: true,
68
+ enumerable: true
69
+ }), "useStdin");
70
+ var roomFor = /* @__PURE__ */ __name((runs) => {
71
+ const emitters = [process, process.stdout, process.stderr];
72
+ const before = emitters.map((emitter) => emitter.getMaxListeners());
73
+ for (const emitter of emitters)
74
+ emitter.setMaxListeners(emitter.getMaxListeners() + 2 * runs);
75
+ return () => {
76
+ for (const [at, emitter] of emitters.entries())
77
+ emitter.setMaxListeners(before[at]);
78
+ };
79
+ }, "roomFor");
62
80
  var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commanderExit }) => {
63
81
  const release = catchCrashes({
64
82
  cli: entry.app.command,
@@ -73,51 +91,47 @@ var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commande
73
91
  const toStderr = /* @__PURE__ */ __name((chunk) => {
74
92
  ownStderr(chunk);
75
93
  }, "toStderr");
76
- let current;
77
- const unrouteOut = route(process.stdout, () => current ? (chunk) => current?.stdout.push(chunk) : toStderr);
78
- const unrouteErr = route(process.stderr, () => current ? (chunk) => current?.stderr.push(chunk) : toStderr);
94
+ const sink = /* @__PURE__ */ __name((pick) => () => {
95
+ const request = commandServerRequest();
96
+ return request ? (chunk) => pick(request).push(chunk) : toStderr;
97
+ }, "sink");
98
+ const unrouteOut = route(process.stdout, sink((request) => request.stdout));
99
+ const unrouteErr = route(process.stderr, sink((request) => request.stderr));
79
100
  const stdin = Object.getOwnPropertyDescriptor(process, "stdin");
80
101
  const requests = io.stdin;
81
102
  useStdin(closedStdin());
103
+ const unroom = roomFor(COMMAND_SERVER_CONCURRENT);
82
104
  io.signals.on("SIGINT", stop).on("SIGTERM", stop);
83
105
  io.stdout.on("error", stop);
84
- const run = /* @__PURE__ */ __name(async (argv) => {
85
- const stdout = [];
86
- const stderr = [];
87
- current = { stdout, stderr };
88
- process.exitCode = void 0;
89
- useAsProcessRun(void 0);
90
- const input = closedStdin();
91
- useStdin(input);
92
- const requestIo = { ...io, argv: [...io.argv.slice(0, 2), ...argv], stdin: input };
106
+ const run = /* @__PURE__ */ __name(async (argv, alone) => {
107
+ const request = { stdout: [], stderr: [], stdin: closedStdin(), alone };
108
+ const requestIo = { ...io, argv: [...io.argv.slice(0, 2), ...argv], stdin: request.stdin };
93
109
  const context = {
94
110
  args: argv,
95
111
  env: io.env,
96
112
  tty: false,
97
113
  signal: stopper.signal,
98
114
  atStart: /* @__PURE__ */ __name(async (command) => {
99
- refuseInCommandServer(command, entry.app.command);
115
+ await enterCommandServer(command, entry.app.command);
100
116
  await firstRunAt(entry, requestIo, () => true)(command);
101
117
  }, "atStart"),
102
118
  ask: /* @__PURE__ */ __name(async () => false, "ask"),
103
119
  openBrowser: /* @__PURE__ */ __name(async () => void 0, "openBrowser"),
104
- outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed")
120
+ outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed"),
121
+ setExitCode: /* @__PURE__ */ __name((code2) => {
122
+ request.exitCode = code2;
123
+ }, "setExitCode")
105
124
  };
106
- let code;
107
- try {
108
- code = await inCommandServerRequest(async () => {
109
- try {
110
- const returned = await entry.run(context);
111
- return typeof returned === "number" ? returned : Number(process.exitCode ?? 0);
112
- } catch (error) {
113
- return commanderExit(error) ?? entry.fail(error, context);
114
- }
115
- });
116
- } finally {
117
- current = void 0;
118
- process.exitCode = void 0;
119
- }
120
- return { code, stdout: Buffer.concat(stdout).toString("utf8"), stderr: Buffer.concat(stderr).toString("utf8") };
125
+ const code = await inCommandServerRequest(request, () => asOwnProcess(async () => {
126
+ try {
127
+ const returned = await entry.run(context);
128
+ return typeof returned === "number" ? returned : exitCodeSet() ?? 0;
129
+ } catch (error) {
130
+ return commanderExit(error) ?? entry.fail(error, context);
131
+ }
132
+ }));
133
+ const text = /* @__PURE__ */ __name((chunks) => Buffer.concat(chunks).toString("utf8"), "text");
134
+ return { code, stdout: text(request.stdout), stderr: text(request.stderr) };
121
135
  }, "run");
122
136
  try {
123
137
  if (entry.sqlite)
@@ -127,12 +141,14 @@ var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commande
127
141
  write: /* @__PURE__ */ __name((line) => new Promise((resolve) => protocol(line) ? resolve() : io.stdout.once("drain", resolve)), "write"),
128
142
  run,
129
143
  cli: entry.app.command,
144
+ concurrent: COMMAND_SERVER_CONCURRENT,
130
145
  version: entry.app.version,
131
146
  signal: stopper.signal
132
147
  });
133
148
  io.setExitCode(0);
134
149
  } finally {
135
150
  io.signals.off("SIGINT", stop).off("SIGTERM", stop);
151
+ unroom();
136
152
  unrouteOut();
137
153
  unrouteErr();
138
154
  if (stdin)
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  decodeOgg
6
- } from "./chunk-MAPJUOTD.js";
6
+ } from "./chunk-ARKB3M5X.js";
7
7
  import "./chunk-U6HEZPCR.js";
8
8
  import "./chunk-WGGSFGNZ.js";
9
9
  import {
@@ -16,7 +16,7 @@ import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/speech/decode.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/speech/decode.js
20
20
  import { spawn } from "node:child_process";
21
21
  import { mkdtemp, rm, writeFile } from "node:fs/promises";
22
22
  import { createRequire } from "node:module";
@@ -42399,7 +42399,7 @@ function install11(registers) {
42399
42399
  }
42400
42400
  __name(install11, "install");
42401
42401
 
42402
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42402
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42403
42403
  var echartsOption = /* @__PURE__ */ __name((chart) => ({
42404
42404
  animation: false,
42405
42405
  backgroundColor: "#111827",
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
42447
42447
  } : {}
42448
42448
  }), "echartsOption");
42449
42449
 
42450
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42450
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42451
42451
  use([install2, install, install6, install5, install10, install7, install11]);
42452
42452
  var echartsRenderer = {
42453
42453
  render: /* @__PURE__ */ __name(async (chart, size) => {
@@ -13,9 +13,9 @@ import {
13
13
  truncated,
14
14
  unit,
15
15
  warmEmbedders
16
- } from "./chunk-KKD5ZPGD.js";
17
- import "./chunk-AYDLA27G.js";
18
- import "./chunk-54KFRAHF.js";
16
+ } from "./chunk-7GCVON7M.js";
17
+ import "./chunk-7FWU4RON.js";
18
+ import "./chunk-Y52T5EMB.js";
19
19
  import "./chunk-U6HEZPCR.js";
20
20
  import "./chunk-WGGSFGNZ.js";
21
21
  import "./chunk-Y5E2WNWB.js";
@@ -4,9 +4,9 @@ import {
4
4
  openSession,
5
5
  truncated,
6
6
  unit
7
- } from "./chunk-KKD5ZPGD.js";
8
- import "./chunk-AYDLA27G.js";
9
- import "./chunk-54KFRAHF.js";
7
+ } from "./chunk-7GCVON7M.js";
8
+ import "./chunk-7FWU4RON.js";
9
+ import "./chunk-Y52T5EMB.js";
10
10
  import "./chunk-U6HEZPCR.js";
11
11
  import "./chunk-WGGSFGNZ.js";
12
12
  import {
@@ -19,11 +19,11 @@ import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
23
23
  import { readFileSync } from "node:fs";
24
24
  import { join } from "node:path";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
27
27
  var SIZE = 224;
28
28
  var MEAN = [0.48145466, 0.4578275, 0.40821073];
29
29
  var STD = [0.26862954, 0.26130258, 0.27577711];
@@ -62,7 +62,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
62
62
  return pixels;
63
63
  }, "preprocess");
64
64
 
65
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
65
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
66
66
  var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
67
67
  const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
68
68
  const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
@@ -4,11 +4,11 @@ import {
4
4
  firstRunAt,
5
5
  openBrowser,
6
6
  startCli
7
- } from "./chunk-24DWSW6H.js";
8
- import "./chunk-KVW7LCZK.js";
9
- import "./chunk-VPNLTNQD.js";
10
- import "./chunk-Y4CSR5RP.js";
11
- import "./chunk-3E35VJME.js";
7
+ } from "./chunk-33ELXJRR.js";
8
+ import "./chunk-NE3EGYPD.js";
9
+ import "./chunk-E3MFMMVY.js";
10
+ import "./chunk-VQL4RVXZ.js";
11
+ import "./chunk-GJFICFQB.js";
12
12
  import "./chunk-U6HEZPCR.js";
13
13
  import "./chunk-WGGSFGNZ.js";
14
14
  import "./chunk-Y5E2WNWB.js";
@@ -5,15 +5,15 @@ import {
5
5
  asksAtStart,
6
6
  setupAtStart,
7
7
  systemLanguage
8
- } from "./chunk-6LRKWXCS.js";
8
+ } from "./chunk-VC6J7X76.js";
9
9
  import "./chunk-7DPWVKYS.js";
10
10
  import "./chunk-MCPOZNWG.js";
11
- import "./chunk-DAK2J3FG.js";
11
+ import "./chunk-QROAXWDU.js";
12
12
  import "./chunk-RX5CJ55S.js";
13
13
  import "./chunk-D72URWJE.js";
14
- import "./chunk-SHIHW2YN.js";
15
- import "./chunk-YRY752BB.js";
16
- import "./chunk-54KFRAHF.js";
14
+ import "./chunk-4N2WJYLE.js";
15
+ import "./chunk-HAR76KJG.js";
16
+ import "./chunk-Y52T5EMB.js";
17
17
  import "./chunk-U6HEZPCR.js";
18
18
  import "./chunk-WGGSFGNZ.js";
19
19
  import "./chunk-Y5E2WNWB.js";
@@ -4,20 +4,20 @@ import {
4
4
  WIRECAT_TOOLS,
5
5
  firstScreen,
6
6
  installHelp
7
- } from "./chunk-BJTJBNR7.js";
7
+ } from "./chunk-ZNPRTCUO.js";
8
8
  import "./chunk-2ABQZVK4.js";
9
- import "./chunk-LTAHG7BO.js";
10
- import "./chunk-CPDYPZIG.js";
11
- import "./chunk-KPAUPIC3.js";
12
- import "./chunk-CMEWPXKU.js";
13
- import "./chunk-6SQAE7NM.js";
14
- import "./chunk-SHIHW2YN.js";
15
- import "./chunk-3E35VJME.js";
16
- import "./chunk-3EGVR7OF.js";
17
- import "./chunk-7MXRFFIT.js";
18
- import "./chunk-YRY752BB.js";
19
- import "./chunk-AYDLA27G.js";
20
- import "./chunk-54KFRAHF.js";
9
+ import "./chunk-MFWWZ6XL.js";
10
+ import "./chunk-GJBGZQHN.js";
11
+ import "./chunk-2UHANFLM.js";
12
+ import "./chunk-O5A4IS2D.js";
13
+ import "./chunk-2FXA32RJ.js";
14
+ import "./chunk-4N2WJYLE.js";
15
+ import "./chunk-GJFICFQB.js";
16
+ import "./chunk-4MFMUBHH.js";
17
+ import "./chunk-27SVHRHV.js";
18
+ import "./chunk-HAR76KJG.js";
19
+ import "./chunk-7FWU4RON.js";
20
+ import "./chunk-Y52T5EMB.js";
21
21
  import "./chunk-YVNHQFLC.js";
22
22
  import "./chunk-U6HEZPCR.js";
23
23
  import "./chunk-WGGSFGNZ.js";
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  appInstructions,
5
5
  instructions
6
- } from "./chunk-QQ264PXQ.js";
6
+ } from "./chunk-6LMEIELG.js";
7
7
  import "./chunk-ZVVMGPBJ.js";
8
8
  export {
9
9
  appInstructions,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-TEMCXODM.js";
21
+ } from "./chunk-7X6YLKTK.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
27
27
  import { DatabaseSync } from "node:sqlite";
28
28
  var nodeSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-YMJKHMHX.js";
6
+ } from "./chunk-CW3C7FSO.js";
7
7
  import {
8
8
  TIME_LIMIT_FUNCTION,
9
9
  beforeTimeLimit
10
- } from "./chunk-Y4CSR5RP.js";
10
+ } from "./chunk-VQL4RVXZ.js";
11
11
  import "./chunk-U6HEZPCR.js";
12
12
  import "./chunk-WGGSFGNZ.js";
13
13
  import "./chunk-Y5E2WNWB.js";
@@ -16,7 +16,7 @@ import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
20
20
  import { DatabaseSync } from "node:sqlite";
21
21
  var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
22
22
  var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  ownerLogin,
5
5
  revokeAll
6
- } from "./chunk-VAAZL6OD.js";
7
- import "./chunk-3HNI6GI7.js";
6
+ } from "./chunk-Y74WJL3M.js";
7
+ import "./chunk-DDSAJKPO.js";
8
8
  import "./chunk-5D4AEUVA.js";
9
- import "./chunk-W77WC6ZK.js";
10
- import "./chunk-CMEWPXKU.js";
9
+ import "./chunk-FHWUOFWX.js";
10
+ import "./chunk-O5A4IS2D.js";
11
11
  import "./chunk-U6HEZPCR.js";
12
12
  import "./chunk-WGGSFGNZ.js";
13
13
  import "./chunk-Y5E2WNWB.js";
@@ -6,8 +6,8 @@ import {
6
6
  openCache,
7
7
  openFile,
8
8
  storeCapable
9
- } from "./chunk-VPNLTNQD.js";
10
- import "./chunk-Y4CSR5RP.js";
9
+ } from "./chunk-E3MFMMVY.js";
10
+ import "./chunk-VQL4RVXZ.js";
11
11
  import "./chunk-U6HEZPCR.js";
12
12
  import "./chunk-WGGSFGNZ.js";
13
13
  import "./chunk-Y5E2WNWB.js";
@@ -3,23 +3,23 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  toModelRate
6
- } from "./chunk-MAPJUOTD.js";
6
+ } from "./chunk-ARKB3M5X.js";
7
7
  import {
8
8
  providerWaitMs
9
9
  } from "./chunk-LVGX7VTD.js";
10
- import "./chunk-FERGNQYA.js";
10
+ import "./chunk-RFFU6KQ5.js";
11
11
  import {
12
12
  OPENAI_URL
13
- } from "./chunk-QNNUNGPL.js";
14
- import "./chunk-KKD5ZPGD.js";
13
+ } from "./chunk-D3ODL4P7.js";
14
+ import "./chunk-7GCVON7M.js";
15
15
  import {
16
16
  OPENAI_TRANSCRIBE_MODEL,
17
17
  VAD,
18
18
  filesPresent,
19
19
  modelsDirectory,
20
20
  vadPath
21
- } from "./chunk-AYDLA27G.js";
22
- import "./chunk-54KFRAHF.js";
21
+ } from "./chunk-7FWU4RON.js";
22
+ import "./chunk-Y52T5EMB.js";
23
23
  import {
24
24
  DEFAULT_RETRY,
25
25
  backoffMs
@@ -33,10 +33,10 @@ import {
33
33
  __name
34
34
  } from "./chunk-ZVVMGPBJ.js";
35
35
 
36
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/speech/openai.js
36
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/speech/openai.js
37
37
  import { setTimeout as wait } from "node:timers/promises";
38
38
 
39
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/speech/wav.js
39
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/speech/wav.js
40
40
  var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
41
41
  const bytes = Buffer.alloc(44 + samples.length * 2);
42
42
  bytes.write("RIFF", 0, "ascii");
@@ -57,7 +57,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
57
57
  return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
58
58
  }, "encodeWav");
59
59
 
60
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/speech/openai.js
60
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/speech/openai.js
61
61
  var LONGEST_REQUEST_SECONDS = 600;
62
62
  var JOINED_SECONDS = 0.2;
63
63
  var PAD_SECONDS = 0.2;
@@ -179,7 +179,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
179
179
  return pieces;
180
180
  }, "piecesOf");
181
181
  var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
182
- const { openSpeechCutter } = await import("./recognize-MLXEHFYL.js");
182
+ const { openSpeechCutter } = await import("./recognize-Z26T3SYD.js");
183
183
  return openSpeechCutter(vadModel);
184
184
  }, "openCutter");
185
185
  var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
@@ -5,7 +5,7 @@ import {
5
5
  __name
6
6
  } from "./chunk-ZVVMGPBJ.js";
7
7
 
8
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/embeddings/process.js
8
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/embeddings/process.js
9
9
  import { spawn } from "node:child_process";
10
10
  import { createInterface } from "node:readline";
11
11
  import { fileURLToPath } from "node:url";
@@ -14,7 +14,7 @@ import {
14
14
  proxiedFetch,
15
15
  proxySecrets,
16
16
  resolveSettings
17
- } from "./chunk-RPBO5XL3.js";
17
+ } from "./chunk-NU4RMUMQ.js";
18
18
  import {
19
19
  AGENTS,
20
20
  MEMO_SCENARIOS,
@@ -67,64 +67,64 @@ import {
67
67
  topicsCommand,
68
68
  upgradeCommand,
69
69
  watchCommand
70
- } from "./chunk-M73VM67N.js";
71
- import "./chunk-4J34T6IQ.js";
70
+ } from "./chunk-SODUFMDW.js";
71
+ import "./chunk-TKJZENAZ.js";
72
72
  import "./chunk-LVGX7VTD.js";
73
73
  import {
74
74
  parseProxy,
75
75
  proxyLabel
76
76
  } from "./chunk-FATTEYZH.js";
77
- import "./chunk-ESLV57MC.js";
78
- import "./chunk-M47CXY5J.js";
77
+ import "./chunk-ALW7ROTM.js";
78
+ import "./chunk-PG3V225O.js";
79
79
  import {
80
80
  installSkill
81
- } from "./chunk-S7P5X23R.js";
82
- import "./chunk-3HNI6GI7.js";
83
- import "./chunk-4HJCWFPN.js";
84
- import "./chunk-ZSW7LN7T.js";
85
- import "./chunk-SQWTUENZ.js";
86
- import "./chunk-DG44ORQ3.js";
87
- import "./chunk-FERGNQYA.js";
81
+ } from "./chunk-CB6AHU6H.js";
82
+ import "./chunk-DDSAJKPO.js";
83
+ import "./chunk-R2IW6JBV.js";
84
+ import "./chunk-FZKHFTKH.js";
85
+ import "./chunk-6DLRATDC.js";
86
+ import "./chunk-ZKHXWSKD.js";
87
+ import "./chunk-RFFU6KQ5.js";
88
88
  import {
89
89
  servingProfiles
90
- } from "./chunk-W77WC6ZK.js";
91
- import "./chunk-QNNUNGPL.js";
90
+ } from "./chunk-FHWUOFWX.js";
91
+ import "./chunk-D3ODL4P7.js";
92
92
  import {
93
93
  inSection
94
- } from "./chunk-BJTJBNR7.js";
94
+ } from "./chunk-ZNPRTCUO.js";
95
95
  import "./chunk-2ABQZVK4.js";
96
- import "./chunk-6LRKWXCS.js";
96
+ import "./chunk-VC6J7X76.js";
97
97
  import {
98
98
  latestVersion,
99
99
  runUpdate,
100
100
  updateNotice
101
101
  } from "./chunk-7DPWVKYS.js";
102
102
  import "./chunk-MCPOZNWG.js";
103
- import "./chunk-24DWSW6H.js";
103
+ import "./chunk-33ELXJRR.js";
104
104
  import {
105
105
  readSecret
106
- } from "./chunk-CLMRF6XR.js";
107
- import "./chunk-GB55EDOF.js";
108
- import "./chunk-5P43K3GL.js";
109
- import "./chunk-DAK2J3FG.js";
110
- import "./chunk-TEMCXODM.js";
111
- import "./chunk-MKAKM3V7.js";
112
- import "./chunk-KKD5ZPGD.js";
106
+ } from "./chunk-LQRZUNYF.js";
107
+ import "./chunk-C5CB6RIX.js";
108
+ import "./chunk-FYHFAOPM.js";
109
+ import "./chunk-QROAXWDU.js";
110
+ import "./chunk-7X6YLKTK.js";
111
+ import "./chunk-VDFEWSCS.js";
112
+ import "./chunk-7GCVON7M.js";
113
113
  import {
114
114
  DESKTOP,
115
115
  TG,
116
116
  VERSION
117
- } from "./chunk-7UIMMQOV.js";
117
+ } from "./chunk-DTTONQW7.js";
118
118
  import {
119
119
  installerOf
120
120
  } from "./chunk-RX5CJ55S.js";
121
121
  import "./chunk-D72URWJE.js";
122
- import "./chunk-GNGYV5NX.js";
123
- import "./chunk-PLBEUSZP.js";
124
- import "./chunk-KVW7LCZK.js";
125
- import "./chunk-VPNLTNQD.js";
126
- import "./chunk-Y4CSR5RP.js";
127
- import "./chunk-LTAHG7BO.js";
122
+ import "./chunk-V4BPS7MH.js";
123
+ import "./chunk-YDMKP7PO.js";
124
+ import "./chunk-NE3EGYPD.js";
125
+ import "./chunk-E3MFMMVY.js";
126
+ import "./chunk-VQL4RVXZ.js";
127
+ import "./chunk-MFWWZ6XL.js";
128
128
  import {
129
129
  Argument,
130
130
  Command,
@@ -145,20 +145,20 @@ import {
145
145
  rootOf,
146
146
  secretInputOf,
147
147
  withDeadline
148
- } from "./chunk-CPDYPZIG.js";
149
- import "./chunk-KPAUPIC3.js";
150
- import "./chunk-CMEWPXKU.js";
151
- import "./chunk-6SQAE7NM.js";
152
- import "./chunk-SHIHW2YN.js";
153
- import "./chunk-3E35VJME.js";
148
+ } from "./chunk-GJBGZQHN.js";
149
+ import "./chunk-2UHANFLM.js";
150
+ import "./chunk-O5A4IS2D.js";
151
+ import "./chunk-2FXA32RJ.js";
152
+ import "./chunk-4N2WJYLE.js";
153
+ import "./chunk-GJFICFQB.js";
154
154
  import {
155
155
  runtime,
156
156
  timezoneOf
157
- } from "./chunk-3EGVR7OF.js";
158
- import "./chunk-7MXRFFIT.js";
159
- import "./chunk-YRY752BB.js";
160
- import "./chunk-AYDLA27G.js";
161
- import "./chunk-54KFRAHF.js";
157
+ } from "./chunk-4MFMUBHH.js";
158
+ import "./chunk-27SVHRHV.js";
159
+ import "./chunk-HAR76KJG.js";
160
+ import "./chunk-7FWU4RON.js";
161
+ import "./chunk-Y52T5EMB.js";
162
162
  import "./chunk-YVNHQFLC.js";
163
163
  import {
164
164
  configFilePath,
@@ -740,7 +740,7 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
740
740
  import { join } from "node:path";
741
741
  import { fileURLToPath as fileURLToPath2 } from "node:url";
742
742
 
743
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/update/index.js
743
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/update/index.js
744
744
  import { realpathSync } from "node:fs";
745
745
  import { fileURLToPath } from "node:url";
746
746
  var QUIET_WORDS = [
@@ -1058,7 +1058,7 @@ var definition = {
1058
1058
  };
1059
1059
  var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
1060
1060
  if (!botApi && needsBotApi(argv, environment.env ?? process.env))
1061
- useBotApi((await import("./bot-api-PPVAKICN.js")).telegramBotApiCommand);
1061
+ useBotApi((await import("./bot-api-F24NWJT3.js")).telegramBotApiCommand);
1062
1062
  const notice = updateNotice2(argv, {
1063
1063
  ...environment.tty === void 0 ? {} : { tty: environment.tty },
1064
1064
  ...environment.update ? { environment: environment.update } : {},