@wirecat/tg-cli 0.131.0 → 0.132.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.
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-TA637IRT.js → adapter-OXVMOWVE.js} +60 -60
- package/dist/bundle/{all-profiles-7M3GBCB6.js → all-profiles-6OQC7PBL.js} +9 -9
- package/dist/bundle/{anthropic-P3THLZWO.js → anthropic-YFMIHFW5.js} +5 -5
- package/dist/bundle/{app-server-OE5EAXIY.js → app-server-S7CJPJXN.js} +52 -52
- package/dist/bundle/{bot-api-WYR2C4A5.js → bot-api-KJ6EZ4R6.js} +61 -61
- package/dist/bundle/{bot-history-PKJTHU7L.js → bot-history-JYCXDFW4.js} +22 -22
- package/dist/bundle/{bun-XMZJDDEA.js → bun-FVTOBYZ2.js} +2 -2
- package/dist/bundle/{bun-sqlite-F5RWCB2N.js → bun-sqlite-KDGWBNOR.js} +6 -6
- package/dist/bundle/{chunk-76UAXRDY.js → chunk-2LZD2VFV.js} +4 -4
- package/dist/bundle/{chunk-JUFLELQ7.js → chunk-2UGSIHLV.js} +2 -2
- package/dist/bundle/{chunk-2U6XE4HI.js → chunk-3QHKZLBU.js} +4 -4
- package/dist/bundle/{chunk-34PRGA7E.js → chunk-42MXCMW6.js} +3 -3
- package/dist/bundle/{chunk-HT6OFANN.js → chunk-44A2XRDE.js} +20 -20
- package/dist/bundle/{chunk-WG6UZJ3E.js → chunk-4CKYANQH.js} +1 -1
- package/dist/bundle/{chunk-AUNNJDVD.js → chunk-4EDJJQJI.js} +28 -8
- package/dist/bundle/{chunk-O7X6RM5R.js → chunk-4YB7JU2W.js} +6 -6
- package/dist/bundle/{chunk-CLG2ISQH.js → chunk-4ZTVJHWU.js} +4 -4
- package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-5RDNBG7D.js} +2 -2
- package/dist/bundle/{chunk-UUNQV4YL.js → chunk-5UPEEMEF.js} +22 -15
- package/dist/bundle/{chunk-YJ4BPNWI.js → chunk-6LPUK62N.js} +3 -3
- package/dist/bundle/{chunk-GNIROVSK.js → chunk-74UPKW7H.js} +2 -2
- package/dist/bundle/{chunk-IULSIKEM.js → chunk-7SEVVE3X.js} +3 -3
- package/dist/bundle/{chunk-PS7ZS5HD.js → chunk-A5D3J7XZ.js} +4 -4
- package/dist/bundle/{chunk-O73DZURO.js → chunk-AERP2QR6.js} +10 -10
- package/dist/bundle/{chunk-6BPM3LNR.js → chunk-AUZWIBHJ.js} +6 -6
- package/dist/bundle/{chunk-JDLNI7BU.js → chunk-B4LGDOG5.js} +263 -260
- package/dist/bundle/{chunk-B6NQJAUC.js → chunk-BLZEQVP4.js} +2 -2
- package/dist/bundle/{chunk-WUIKJJ5A.js → chunk-BMI2NWFI.js} +8 -8
- package/dist/bundle/{chunk-QGFUUJPL.js → chunk-BSXS7VAC.js} +1 -1
- package/dist/bundle/{chunk-OOSX7K7G.js → chunk-CFWFESBO.js} +8 -8
- package/dist/bundle/{chunk-PD4RREQB.js → chunk-DSJNZXTP.js} +1 -1
- package/dist/bundle/{chunk-MYC3M4BY.js → chunk-DXPGMUOR.js} +2 -2
- package/dist/bundle/{chunk-LJO6MMQG.js → chunk-EPR67IRV.js} +4 -4
- package/dist/bundle/{chunk-SLT2PBFP.js → chunk-ESOFH7PA.js} +37 -30
- package/dist/bundle/{chunk-2OXR2MRV.js → chunk-FIUH52FE.js} +1 -1
- package/dist/bundle/{chunk-43KSYUZU.js → chunk-FKGYXIN7.js} +7 -7
- package/dist/bundle/{chunk-TT6OHNV2.js → chunk-FPSRT2TX.js} +2 -2
- package/dist/bundle/{chunk-ITYDJIRC.js → chunk-HBSKP7OV.js} +1 -1
- package/dist/bundle/{chunk-LDSTUBLY.js → chunk-IY7CTAOQ.js} +9 -9
- package/dist/bundle/{chunk-5AJ5RLJW.js → chunk-IYJ4B632.js} +14 -13
- package/dist/bundle/{chunk-J2QQZVEN.js → chunk-JDNDWZYS.js} +4 -4
- package/dist/bundle/{chunk-H655CMXJ.js → chunk-JMJOWT4N.js} +1 -1
- package/dist/bundle/{chunk-NTORQXAS.js → chunk-JNWKV3QV.js} +4 -4
- package/dist/bundle/{chunk-JSE4OBYI.js → chunk-JPSRC732.js} +13 -13
- package/dist/bundle/{chunk-L2SMUTJY.js → chunk-JZJV3DYK.js} +2 -2
- package/dist/bundle/{chunk-EZBMLKBK.js → chunk-KJICORS4.js} +36 -36
- package/dist/bundle/{chunk-P6KGEZIS.js → chunk-LF6FACSW.js} +5 -5
- package/dist/bundle/{chunk-5ZIT6JXP.js → chunk-LG3K5NHX.js} +7 -7
- package/dist/bundle/{chunk-UGYC2FV5.js → chunk-LMGVPDXN.js} +2 -2
- package/dist/bundle/{chunk-6O5AD3GA.js → chunk-LZ3HFDYL.js} +2 -2
- package/dist/bundle/{chunk-JF4AJNCE.js → chunk-M2TV6BDB.js} +7 -7
- package/dist/bundle/{chunk-XC2YJDDK.js → chunk-N5LZ6L4D.js} +3 -3
- package/dist/bundle/{chunk-OX5EAUKF.js → chunk-NLRGMP7M.js} +3 -3
- package/dist/bundle/{chunk-S2IET7WM.js → chunk-NWCFO37P.js} +3 -3
- package/dist/bundle/{chunk-LWSOCKOD.js → chunk-NWDADTPE.js} +3 -3
- package/dist/bundle/{chunk-BXW6FGLD.js → chunk-O3AM32YN.js} +15 -15
- package/dist/bundle/{chunk-5N7TJ6TJ.js → chunk-O43PARFS.js} +166 -161
- package/dist/bundle/{chunk-OPG54IFH.js → chunk-OGZZUDJJ.js} +54 -54
- package/dist/bundle/{chunk-AJQ6JFLY.js → chunk-OIRNHSAH.js} +6 -6
- package/dist/bundle/{chunk-LEPDRO3O.js → chunk-PG37E63A.js} +76 -59
- package/dist/bundle/{chunk-6TJTQ4I4.js → chunk-PR4F3TYK.js} +30 -30
- package/dist/bundle/{chunk-NOZZHEMD.js → chunk-PYECFCPD.js} +1 -1
- package/dist/bundle/{chunk-EXMJDHBM.js → chunk-QNEAPLOP.js} +12 -12
- package/dist/bundle/{chunk-BFERGEBI.js → chunk-QS46C5SW.js} +17 -17
- package/dist/bundle/{chunk-VNJZXV7E.js → chunk-SMQ45RZX.js} +6 -6
- package/dist/bundle/{chunk-PHGH5N4C.js → chunk-U7PHJSTX.js} +2 -2
- package/dist/bundle/{chunk-SQ2JLZFK.js → chunk-UAFSDTID.js} +1 -1
- package/dist/bundle/{chunk-2TOJQQKS.js → chunk-UGD4SCUI.js} +1 -1
- package/dist/bundle/{chunk-VVUUP5NF.js → chunk-WAVRUADL.js} +13 -13
- package/dist/bundle/{chunk-Z2TCTTPJ.js → chunk-Y57EKZZK.js} +676 -435
- package/dist/bundle/{chunk-LTP4BYHJ.js → chunk-YAPO7QNO.js} +6 -6
- package/dist/bundle/{chunk-YZTMQE62.js → chunk-YRXSNH3R.js} +2 -2
- package/dist/bundle/{chunk-AEIDEIVB.js → chunk-YSNQGOUI.js} +2235 -1355
- package/dist/bundle/{chunk-GA3URWIF.js → chunk-YVI5SQPY.js} +1 -1
- package/dist/bundle/{chunk-SS5H2XAT.js → chunk-ZJIGVT6Z.js} +2 -2
- package/dist/bundle/{chunk-NXNSEFGR.js → chunk-ZRW3DF25.js} +24 -24
- package/dist/bundle/{chunk-66PL7P4C.js → chunk-ZZ32DXTH.js} +1 -1
- package/dist/bundle/command-contract-FRH7LBGE.js +37 -0
- package/dist/bundle/{command-server-entry-6FH3RXJ2.js → command-server-entry-TM264M2J.js} +27 -27
- package/dist/bundle/{decode-UBRT2QDP.js → decode-RJFOSHCE.js} +5 -5
- package/dist/bundle/{dispatch-ST5FK2KI.js → dispatch-7OZP3X4O.js} +8 -8
- package/dist/bundle/{echarts-PG45GQLR.js → echarts-PYKF4D7B.js} +2 -2
- package/dist/bundle/{embed-BUQDSZ57.js → embed-JFN6Z5TG.js} +6 -6
- package/dist/bundle/{embedder-TXA3EV7O.js → embedder-WN54JIMY.js} +9 -9
- package/dist/bundle/{entry-JWIEF57D.js → entry-Z6LO6N6S.js} +9 -9
- package/dist/bundle/{failure-GMUQKQ5K.js → failure-UONA2IA5.js} +2 -2
- package/dist/bundle/{first-run-5VTHKMK5.js → first-run-WQAKES7G.js} +12 -12
- package/dist/bundle/first-screen-4RFG22SA.js +35 -0
- package/dist/bundle/{instructions-ZMEPWTFO.js → instructions-PR4BBBTM.js} +1 -1
- package/dist/bundle/{mcp-VFIOZDVY.js → mcp-O6ACR2DX.js} +2 -2
- package/dist/bundle/meeting-combined-MHWTZOF2.js +23 -0
- package/dist/bundle/{meeting-model-5FVNZCTL.js → meeting-model-YVTUOM4H.js} +11 -11
- package/dist/bundle/{meeting-semantic-HUMYFMO7.js → meeting-semantic-X4KG6RNV.js} +6 -6
- package/dist/bundle/{node-N4DQQJKK.js → node-OVS5LTVZ.js} +2 -2
- package/dist/bundle/{node-sqlite-MG4KFXYY.js → node-sqlite-LC44SM4Z.js} +7 -7
- package/dist/bundle/{oauth-NKDSXEH6.js → oauth-NSVUFQCW.js} +7 -7
- package/dist/bundle/{open-DV2YUU2M.js → open-XN5SJFVY.js} +5 -5
- package/dist/bundle/{openai-FEKMZOUJ.js → openai-WOYZHJNL.js} +15 -15
- package/dist/bundle/{process-QZS3TE6A.js → process-UFBRGTQC.js} +1 -1
- package/dist/bundle/{program-FNDGXEVS.js → program-RAGBRRQH.js} +63 -63
- package/dist/bundle/{prompt-C7RSBNH5.js → prompt-6HAKBUQN.js} +5 -5
- package/dist/bundle/{proxy-transport-A4MRO3PF.js → proxy-transport-5EJVFUTC.js} +5 -5
- package/dist/bundle/{recognize-5BL763FS.js → recognize-CN5COBVJ.js} +4 -4
- package/dist/bundle/{remote-CXAKRC7X.js → remote-STX5AMGE.js} +9 -9
- package/dist/bundle/{rerank-XAEXY5A4.js → rerank-ZCOWTXIJ.js} +7 -7
- package/dist/bundle/{serve-JLZGFTZH.js → serve-XMQEOIG2.js} +9 -9
- package/dist/bundle/{server-GF3TV2U7.js → server-PGGUD3DM.js} +44 -44
- package/dist/bundle/server-WTNYWCZ4.js +69 -0
- package/dist/bundle/{sqlite-runtime-3OVQ7OTM.js → sqlite-runtime-PS4DSOIU.js} +6 -6
- package/dist/bundle/{state-FGJKQKC2.js → state-GL4ZC57O.js} +6 -6
- package/dist/bundle/{store-WYLMNAAQ.js → store-HJ76TLWD.js} +19 -19
- package/dist/bundle/{store-2J5VJZQY.js → store-VISFXSHL.js} +17 -17
- package/dist/bundle/store-maintenance-command-SMARMN5C.js +60 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-DAQYQF6R.js +0 -37
- package/dist/bundle/first-screen-PTHIZ5ZF.js +0 -35
- package/dist/bundle/meeting-combined-DU3RJR6X.js +0 -23
- package/dist/bundle/server-GLPEWUYT.js +0 -69
- package/dist/bundle/store-maintenance-command-QN6QH6RA.js +0 -60
- /package/dist/bundle/{chunk-ZI3YTXSF.js → chunk-VKE77B3F.js} +0 -0
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
isCliFailure,
|
|
5
5
|
secretNamed,
|
|
6
6
|
withoutSecrets
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NWDADTPE.js";
|
|
8
8
|
import {
|
|
9
9
|
isContentKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-44A2XRDE.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
16
16
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
20
20
|
import { homedir } from "node:os";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
23
23
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
24
24
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
25
25
|
if (event.event === "store")
|
|
@@ -71,7 +71,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
71
71
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
72
72
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
75
75
|
var MESSAGE_AT_MOST = 500;
|
|
76
76
|
var CAUSES_AT_MOST = 5;
|
|
77
77
|
var FRAMES_AT_MOST = 15;
|
|
@@ -183,7 +183,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
183
183
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
184
184
|
}, "redactText");
|
|
185
185
|
|
|
186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
187
187
|
var REDACTED = "[redacted]";
|
|
188
188
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
189
189
|
if (!record)
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
defineReasons
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4EDJJQJI.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var REASONS = defineReasons([
|
|
@@ -26,7 +26,7 @@ var REASONS = defineReasons([
|
|
|
26
26
|
].map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
27
27
|
|
|
28
28
|
// dist/version.js
|
|
29
|
-
var VERSION = "0.
|
|
29
|
+
var VERSION = "0.132.0";
|
|
30
30
|
|
|
31
31
|
// dist/identity.js
|
|
32
32
|
var TG = {
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5RDNBG7D.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -2,24 +2,24 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FPSRT2TX.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-44A2XRDE.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError,
|
|
12
12
|
singleLine
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5RDNBG7D.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
19
19
|
import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
20
20
|
import { dirname, join, resolve } from "node:path";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
|
|
23
23
|
var REPAIR_WORDS = {
|
|
24
24
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
25
25
|
comment: "a comment, which JSON does not allow",
|
|
@@ -303,7 +303,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
|
|
|
303
303
|
return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
|
|
304
304
|
}, "explainBrokenJson");
|
|
305
305
|
|
|
306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
307
307
|
var DEFAULT_TASK_CATEGORIES = [
|
|
308
308
|
{
|
|
309
309
|
name: "taxes",
|
|
@@ -1058,7 +1058,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}, "storedTaskCategories");
|
|
1060
1060
|
|
|
1061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
1062
1062
|
var SECTION = "task_categories";
|
|
1063
1063
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
1064
1064
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
formatMeetingReference
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PG37E63A.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5RDNBG7D.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
|
|
14
14
|
var positive = /* @__PURE__ */ __name((value, name, max) => {
|
|
15
15
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
16
16
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DSJNZXTP.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-44A2XRDE.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KJICORS4.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
nullable,
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
strictObject,
|
|
17
17
|
string,
|
|
18
18
|
unknown
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4EDJJQJI.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
errorCodes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5RDNBG7D.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
@@ -60,7 +60,7 @@ var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
|
|
|
60
60
|
}, "damagedFile");
|
|
61
61
|
var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
|
|
62
62
|
|
|
63
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
63
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
64
64
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
65
65
|
"authorization",
|
|
66
66
|
"cookie",
|
|
@@ -13,52 +13,52 @@ import {
|
|
|
13
13
|
privateFiles,
|
|
14
14
|
providerRequest,
|
|
15
15
|
withSqliteSidecars
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YSNQGOUI.js";
|
|
17
17
|
import {
|
|
18
18
|
parseProxy,
|
|
19
19
|
proxyAddress,
|
|
20
20
|
proxyError,
|
|
21
21
|
proxyLabel,
|
|
22
22
|
proxySetting
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2UGSIHLV.js";
|
|
24
24
|
import {
|
|
25
25
|
messengerContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JPSRC732.js";
|
|
27
27
|
import {
|
|
28
28
|
uploadBlob
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-B4LGDOG5.js";
|
|
30
30
|
import {
|
|
31
31
|
DESKTOP,
|
|
32
32
|
TG
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-LMGVPDXN.js";
|
|
34
34
|
import {
|
|
35
35
|
asFirstWord,
|
|
36
36
|
environmentOf,
|
|
37
37
|
fromFile,
|
|
38
38
|
settingsFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-O43PARFS.js";
|
|
40
40
|
import {
|
|
41
41
|
hostFetch
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-LF6FACSW.js";
|
|
43
43
|
import {
|
|
44
44
|
currentAttempt
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-KJICORS4.js";
|
|
46
46
|
import {
|
|
47
47
|
Credentials,
|
|
48
48
|
isMovedRun,
|
|
49
49
|
pathsAreOverridden,
|
|
50
50
|
resolvePaths
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-44A2XRDE.js";
|
|
52
52
|
import {
|
|
53
53
|
optional
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-4EDJJQJI.js";
|
|
55
55
|
import {
|
|
56
56
|
importFrom
|
|
57
57
|
} from "./chunk-Y5E2WNWB.js";
|
|
58
58
|
import {
|
|
59
59
|
CliError,
|
|
60
60
|
isCliError
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-5RDNBG7D.js";
|
|
62
62
|
import {
|
|
63
63
|
__name
|
|
64
64
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -189,7 +189,7 @@ var logOut = /* @__PURE__ */ __name(async (profile, sessionPath, context) => {
|
|
|
189
189
|
checks: checkWords("tg", profile),
|
|
190
190
|
...keyring ? { keyring } : {}
|
|
191
191
|
});
|
|
192
|
-
const { TelegramAdapter } = await import("./adapter-
|
|
192
|
+
const { TelegramAdapter } = await import("./adapter-OXVMOWVE.js");
|
|
193
193
|
const adapter = await TelegramAdapter.open({ credentials, sessionPath, ...through ? { proxy: through.proxy } : {} });
|
|
194
194
|
try {
|
|
195
195
|
await adapter.logout();
|
|
@@ -254,7 +254,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
|
|
|
254
254
|
throw new CliError(temporary ? "provider_unavailable" : "authentication_error", loggedIn ? `no Telegram app credentials found for profile "${profile}", although it has logged in on this machine \u2014 the keyring is probably out of reach (cron, ssh, an MCP client that trims the environment: set XDG_RUNTIME_DIR); \`tg ${asFirstWord(profile)}doctor\` shows it. Log in again only if they were removed` : `no Telegram app credentials for profile "${profile}" \u2014 run ${setup} in a local terminal first, or sign in from ${desktop}; agents: read \`tg skill show\``, temporary ? { reason: "credentials.unreachable" } : {});
|
|
255
255
|
}
|
|
256
256
|
const options = { credentials: resolved, sessionPath, ...connecting };
|
|
257
|
-
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-
|
|
257
|
+
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-OXVMOWVE.js")).TelegramAdapter.open({
|
|
258
258
|
...options,
|
|
259
259
|
...proxyOption(proxy()),
|
|
260
260
|
diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
|
|
@@ -979,7 +979,7 @@ var TELEGRAM_BOT = {
|
|
|
979
979
|
const botId = token.split(":", 1)[0] ?? "";
|
|
980
980
|
if (!/^\d+$/.test(botId))
|
|
981
981
|
throw new CliError("authentication_error", "the bot token has no valid bot id");
|
|
982
|
-
const reader = await (environment.botHistory ?? (await import("./bot-history-
|
|
982
|
+
const reader = await (environment.botHistory ?? (await import("./bot-history-JYCXDFW4.js")).openBotHistory)({
|
|
983
983
|
credentials,
|
|
984
984
|
sessionPath: botSessionFile(profile, botId, env),
|
|
985
985
|
token,
|
|
@@ -999,7 +999,7 @@ var TELEGRAM_BOT = {
|
|
|
999
999
|
return void 0;
|
|
1000
1000
|
let personal;
|
|
1001
1001
|
try {
|
|
1002
|
-
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-
|
|
1002
|
+
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-OXVMOWVE.js")).TelegramAdapter.open({
|
|
1003
1003
|
credentials,
|
|
1004
1004
|
sessionPath: personalPath,
|
|
1005
1005
|
checks: words,
|