@wirecat/tg-cli 0.106.0 → 0.108.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 (89) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-TIGHDHUK.js → adapter-YFWRJWL5.js} +37 -37
  3. package/dist/bundle/{all-profiles-N4DLSGWY.js → all-profiles-GQIZSF4W.js} +5 -5
  4. package/dist/bundle/{anthropic-D2T2QRLR.js → anthropic-BKWEDKPU.js} +3 -3
  5. package/dist/bundle/{app-server-FZTDNSPB.js → app-server-RJV7ICLH.js} +34 -34
  6. package/dist/bundle/{bot-api-OMUV6EIK.js → bot-api-2PAH2JZ3.js} +38 -38
  7. package/dist/bundle/{bot-history-P2MWYLXW.js → bot-history-DPPZ43F4.js} +10 -10
  8. package/dist/bundle/{bun-UA5PRMLC.js → bun-Q7COX3Z5.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-XVRVJ7A2.js → bun-sqlite-YI4AYZXO.js} +2 -2
  10. package/dist/bundle/{chunk-ELQ5ORY2.js → chunk-26PWIQPP.js} +195 -195
  11. package/dist/bundle/{chunk-R2F6U4F3.js → chunk-3562DVQ7.js} +7 -7
  12. package/dist/bundle/{chunk-QWTHUKS4.js → chunk-3GXKJKIC.js} +4 -4
  13. package/dist/bundle/{chunk-XX37LKXG.js → chunk-3HYDKCXB.js} +4 -4
  14. package/dist/bundle/{chunk-ID6TO5P5.js → chunk-4RDMNNVO.js} +14 -9
  15. package/dist/bundle/{chunk-XXLAGQDN.js → chunk-5HPXENE5.js} +1 -1
  16. package/dist/bundle/{chunk-T3ZLOMWW.js → chunk-5P27JGGA.js} +4 -4
  17. package/dist/bundle/{chunk-WLGQTYIO.js → chunk-6MZ2ZBX4.js} +2 -2
  18. package/dist/bundle/{chunk-DC7O7TVJ.js → chunk-6QTUYMGX.js} +1 -1
  19. package/dist/bundle/{chunk-JOSUY2NX.js → chunk-76OSISA3.js} +1 -1
  20. package/dist/bundle/{chunk-LSP2NCNL.js → chunk-77OOX2OE.js} +47 -47
  21. package/dist/bundle/{chunk-C2MKA7SX.js → chunk-AOUB2QFP.js} +1 -1
  22. package/dist/bundle/{recognize-T5TPTI6P.js → chunk-AS2BVZU3.js} +6 -6
  23. package/dist/bundle/{chunk-LGKLQE2I.js → chunk-B7TFWNKJ.js} +1 -1
  24. package/dist/bundle/{chunk-XFXTB522.js → chunk-BL72ZIBV.js} +1 -1
  25. package/dist/bundle/{chunk-C6NTI37N.js → chunk-BOSMBW4I.js} +10 -10
  26. package/dist/bundle/{chunk-2J3TUUCO.js → chunk-BT6PWDM6.js} +2 -2
  27. package/dist/bundle/{chunk-VYFKWPIS.js → chunk-CVWF3BFK.js} +42 -42
  28. package/dist/bundle/{chunk-E5Z4FGRD.js → chunk-CZANI3DM.js} +20 -20
  29. package/dist/bundle/{chunk-ADLIUGL2.js → chunk-D6DBVPES.js} +2 -2
  30. package/dist/bundle/{chunk-XMKKBDEW.js → chunk-DNOJKQXQ.js} +289 -264
  31. package/dist/bundle/{chunk-AQSKZMBD.js → chunk-DUWTG2GE.js} +7 -7
  32. package/dist/bundle/{chunk-PEIDCYF5.js → chunk-EBB7RFCW.js} +1 -1
  33. package/dist/bundle/{chunk-FO33YFWF.js → chunk-EWL3ZFOI.js} +5 -5
  34. package/dist/bundle/{chunk-QI75LME5.js → chunk-F67VPIJL.js} +26 -26
  35. package/dist/bundle/{chunk-DECFDUNW.js → chunk-KQFR7ZAA.js} +11 -11
  36. package/dist/bundle/{chunk-EPKGNUOZ.js → chunk-KZPZFPGB.js} +20 -20
  37. package/dist/bundle/{chunk-67GS5BZI.js → chunk-LY2LFJMU.js} +92 -92
  38. package/dist/bundle/{chunk-7P6ZCUPN.js → chunk-LYLGLFWY.js} +2 -2
  39. package/dist/bundle/{chunk-T5OFRHDS.js → chunk-NCXCBVHO.js} +5 -5
  40. package/dist/bundle/{chunk-GD6BOLZP.js → chunk-OB5PPPXH.js} +11 -6
  41. package/dist/bundle/{chunk-6BQUCCBD.js → chunk-ON67U6WV.js} +4 -4
  42. package/dist/bundle/{chunk-T4UTTH3A.js → chunk-PCMW3PW6.js} +1 -1
  43. package/dist/bundle/{chunk-2GQCWNX5.js → chunk-PQHYM2XC.js} +1 -1
  44. package/dist/bundle/{chunk-PHPXTRMS.js → chunk-QVIT6SQ5.js} +1888 -1562
  45. package/dist/bundle/{chunk-EW3Y44NV.js → chunk-R5YOKYTE.js} +9 -9
  46. package/dist/bundle/{chunk-WPRLG5SL.js → chunk-REI5TPS3.js} +8 -8
  47. package/dist/bundle/{chunk-EUTOFAUT.js → chunk-SONKULUF.js} +2 -2
  48. package/dist/bundle/{chunk-GHAQXUH3.js → chunk-TVA3NXXO.js} +1 -1
  49. package/dist/bundle/{chunk-QQYM26DA.js → chunk-VK2YLSK7.js} +1 -1
  50. package/dist/bundle/{chunk-BLWCHZCW.js → chunk-WEDWIXIC.js} +2 -2
  51. package/dist/bundle/{chunk-V7OXTQBY.js → chunk-WKSLGPZQ.js} +3 -3
  52. package/dist/bundle/{chunk-XQV7EMAI.js → chunk-WUF64WOG.js} +4 -4
  53. package/dist/bundle/{chunk-PAHBZPZN.js → chunk-XZXOGHU5.js} +70 -46
  54. package/dist/bundle/{chunk-6XXI3AHJ.js → chunk-YJ6GFFEE.js} +1 -1
  55. package/dist/bundle/{chunk-ONK66VVG.js → chunk-ZHHVNTBJ.js} +1 -1
  56. package/dist/bundle/{chunk-BZUO2KFV.js → chunk-ZYBDAZFO.js} +1 -1
  57. package/dist/bundle/{command-contract-N5FA573V.js → command-contract-5GJV6EHG.js} +12 -12
  58. package/dist/bundle/decode-ZFAFVFWX.js +159 -0
  59. package/dist/bundle/{echarts-WLPTUTMR.js → echarts-SVXNTKGV.js} +2 -2
  60. package/dist/bundle/{embed-IALJOWZJ.js → embed-V755YE7O.js} +3 -3
  61. package/dist/bundle/{embedder-ZY2TS2XJ.js → embedder-MQAPNQBH.js} +6 -6
  62. package/dist/bundle/{entry-67RA75VS.js → entry-ULQ3VOMQ.js} +3 -3
  63. package/dist/bundle/{first-run-QN3UUBJW.js → first-run-64BTWXDR.js} +5 -5
  64. package/dist/bundle/{first-screen-FK4ZJQJY.js → first-screen-YZCH4TEV.js} +13 -13
  65. package/dist/bundle/{identity-X3YA364I.js → identity-PW45VBUU.js} +1 -1
  66. package/dist/bundle/{instructions-355MU4CT.js → instructions-G3ZUIRRH.js} +1 -1
  67. package/dist/bundle/{node-UGJWZLVB.js → node-IDJXLZSX.js} +2 -2
  68. package/dist/bundle/node-sqlite-W22J37MG.js +62 -0
  69. package/dist/bundle/{oauth-EZGVL3PP.js → oauth-Q52LBXDE.js} +4 -4
  70. package/dist/bundle/{open-ANYJ5AKD.js → open-YLD7VHEC.js} +1 -1
  71. package/dist/bundle/{process-JVAQXITD.js → process-OBESF2XG.js} +1 -1
  72. package/dist/bundle/{program-QGSZY5SZ.js → program-EBMWHOKQ.js} +40 -40
  73. package/dist/bundle/{prompt-EWF4ZSJO.js → prompt-FHHQF3MG.js} +2 -2
  74. package/dist/bundle/recognize-QNHKHGKM.js +22 -0
  75. package/dist/bundle/{remote-KOAALKIC.js → remote-RVZWRCCT.js} +4 -4
  76. package/dist/bundle/{rerank-MCXFZFRH.js → rerank-KG2USEME.js} +4 -4
  77. package/dist/bundle/{serve-QEVXXJ2G.js → serve-I4MJKEQ4.js} +6 -6
  78. package/dist/bundle/server-AXMWFPNT.js +55 -0
  79. package/dist/bundle/{server-Y3ZLG44J.js → server-GV7SV3L6.js} +26 -26
  80. package/dist/bundle/{state-F2ZJV2VP.js → state-AJKHWFBU.js} +3 -3
  81. package/dist/bundle/{store-QX7HBTOW.js → store-L3HFSSGJ.js} +7 -7
  82. package/dist/bundle/store-maintenance-command-Y22ARSDR.js +44 -0
  83. package/dist/bundle/tg.js +2 -2
  84. package/dist/version.d.ts +1 -1
  85. package/dist/version.js +1 -1
  86. package/package.json +2 -2
  87. package/dist/bundle/node-sqlite-FJFIOC3K.js +0 -46
  88. package/dist/bundle/server-6QM3GFZX.js +0 -55
  89. package/dist/bundle/store-maintenance-command-ZBOQSTHY.js +0 -44
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-FO33YFWF.js";
5
+ } from "./chunk-EWL3ZFOI.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-67SRVSPU.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {
@@ -7,14 +7,14 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/store/driver.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/store/driver.js
11
11
  var PRAGMAS = `
12
12
  PRAGMA busy_timeout = 5000;
13
13
  PRAGMA journal_mode = WAL;
14
14
  PRAGMA foreign_keys = ON;
15
15
  `;
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
18
18
  var SQLITE_WARNING = "SQLite is an experimental feature";
19
19
  var quieted = /* @__PURE__ */ new WeakSet();
20
20
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
35
35
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
36
36
  }, "isSqliteWarning");
37
37
 
38
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/store/open.js
38
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/store/open.js
39
39
  var openCache = /* @__PURE__ */ __name(async (path) => {
40
40
  const database = await openFile(path);
41
41
  try {
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
48
48
  }, "openCache");
49
49
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
50
50
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
51
- const { openWithBunSqlite } = await import("./bun-sqlite-XVRVJ7A2.js");
51
+ const { openWithBunSqlite } = await import("./bun-sqlite-YI4AYZXO.js");
52
52
  return await openWithBunSqlite(path);
53
53
  }, "openUnderBun");
54
54
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
55
55
  quietSqliteWarning();
56
- const { openWithNodeSqlite } = await import("./node-sqlite-FJFIOC3K.js");
56
+ const { openWithNodeSqlite } = await import("./node-sqlite-W22J37MG.js");
57
57
  return openWithNodeSqlite(path);
58
58
  }, "openUnderNode");
59
59
  var runtime = /* @__PURE__ */ __name(() => {
@@ -7,7 +7,7 @@ import {
7
7
  commandPathOf,
8
8
  findCommand,
9
9
  outputOf
10
- } from "./chunk-T3ZLOMWW.js";
10
+ } from "./chunk-5P27JGGA.js";
11
11
  import {
12
12
  Command,
13
13
  Help,
@@ -18,7 +18,7 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-LSP2NCNL.js";
21
+ } from "./chunk-77OOX2OE.js";
22
22
  import {
23
23
  CliError,
24
24
  writes
@@ -27,7 +27,7 @@ import {
27
27
  __name
28
28
  } from "./chunk-ZVVMGPBJ.js";
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
31
31
  var SECTIONS = {
32
32
  read: "Read",
33
33
  write: "Write",
@@ -92,7 +92,7 @@ var CORE_SECTIONS = {
92
92
  upgrade: "setup"
93
93
  };
94
94
 
95
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
95
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
96
96
  var DESCRIPTION = 90;
97
97
  var COLUMN = 52;
98
98
  var short = /* @__PURE__ */ __name((text) => {
@@ -131,7 +131,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
131
131
  `;
132
132
  }, "commandsText");
133
133
 
134
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
134
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
135
135
  var ARGUMENT_KINDS = {
136
136
  chat: "chat",
137
137
  chats: "chat",
@@ -323,7 +323,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
323
323
  command.addHelpText("after", () => commandHelpText(command));
324
324
  }, "installCommandHelp");
325
325
 
326
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
326
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
327
327
  var WIRECAT_TOOLS = [
328
328
  {
329
329
  command: "tg",
@@ -350,6 +350,11 @@ var WIRECAT_TOOLS = [
350
350
  package: "@wirecat/drive-cli",
351
351
  does: "Google Drive and Docs as local text, searchable with your other WireCat data"
352
352
  },
353
+ {
354
+ command: "gcal",
355
+ package: "@wirecat/gcal-cli",
356
+ does: "Google Calendar events, searchable with your other WireCat data"
357
+ },
353
358
  {
354
359
  command: "memo",
355
360
  package: "@wirecat/cli-memo",
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-PEIDCYF5.js";
5
+ } from "./chunk-EBB7RFCW.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  singleLine
@@ -14,11 +14,11 @@ import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/store/shared-config.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/store/shared-config.js
18
18
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
19
19
  import { dirname, join, resolve } from "node:path";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
22
22
  var DEFAULT_TASK_CATEGORIES = [
23
23
  {
24
24
  name: "taxes",
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
773
773
  }
774
774
  }, "storedTaskCategories");
775
775
 
776
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/store/shared-config.js
776
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/store/shared-config.js
777
777
  var SECTION = "task_categories";
778
778
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
779
779
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/ports/app.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/ports/app.js
11
11
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
12
12
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
13
13
  const name = envName(app, "READ_ONLY");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/background/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {