@wirecat/tg-cli 0.109.0 → 0.111.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-6JLFYFL5.js → adapter-WFC2JAD4.js} +45 -45
- package/dist/bundle/{all-profiles-X7Y3T5S4.js → all-profiles-FEUSGHT7.js} +8 -8
- package/dist/bundle/{anthropic-LGVXAADT.js → anthropic-O646SJIJ.js} +5 -5
- package/dist/bundle/{app-server-UI3AFSJX.js → app-server-7P23Y45A.js} +40 -40
- package/dist/bundle/{bot-api-TQYRNYJQ.js → bot-api-WTJCL6VF.js} +46 -46
- package/dist/bundle/{bot-history-DDNTNMNB.js → bot-history-5J2Q4SPC.js} +15 -15
- package/dist/bundle/{bun-WXGS6HML.js → bun-KUKVEKDW.js} +2 -2
- package/dist/bundle/{bun-sqlite-M6JEXKRT.js → bun-sqlite-2G5TXHYE.js} +4 -4
- package/dist/bundle/{chunk-P5ILJ7MN.js → chunk-2K6IGVSI.js} +5 -5
- package/dist/bundle/{chunk-WHYS6OSG.js → chunk-2ZH3PUQX.js} +2 -2
- package/dist/bundle/{chunk-YYOIULA2.js → chunk-33HEHPIK.js} +8 -8
- package/dist/bundle/{chunk-4R4AH6FM.js → chunk-3BD24JYK.js} +98 -94
- package/dist/bundle/{chunk-AGVKIJB7.js → chunk-3WUTBGZE.js} +6 -6
- package/dist/bundle/{chunk-7T7ILNCU.js → chunk-43ZFY6TW.js} +2 -2
- package/dist/bundle/{chunk-CVLDXFRP.js → chunk-5FJQG5UZ.js} +10 -9
- package/dist/bundle/{chunk-XJVGCCQE.js → chunk-5ZPLOYTP.js} +1911 -630
- package/dist/bundle/{chunk-3PEZWXKO.js → chunk-7665YBJ7.js} +6 -6
- package/dist/bundle/{chunk-UUQ3BH2Z.js → chunk-7GQLD5TJ.js} +2 -2
- package/dist/bundle/{chunk-VFVMB3NV.js → chunk-ABVHA4K6.js} +5 -5
- package/dist/bundle/{chunk-IULYECPC.js → chunk-AUWYMMYL.js} +4 -4
- package/dist/bundle/{chunk-YXCQ4DLZ.js → chunk-BNQOUCL2.js} +1 -1
- package/dist/bundle/{chunk-N5FSRC6H.js → chunk-BWRCPMMC.js} +41 -31
- package/dist/bundle/{chunk-IV2QWSPG.js → chunk-CJUSP5X2.js} +12 -3
- package/dist/bundle/{chunk-CH2ESVV5.js → chunk-COHMFCHD.js} +42 -24
- package/dist/bundle/{chunk-2ILQYCBY.js → chunk-DEG4JJHG.js} +568 -297
- package/dist/bundle/{chunk-DO33KAMM.js → chunk-DREEXESG.js} +96 -60
- package/dist/bundle/{chunk-NAVNCM5K.js → chunk-EB44Z44U.js} +1 -1
- package/dist/bundle/{chunk-XMMWKHNY.js → chunk-EO563SUX.js} +7 -7
- package/dist/bundle/{chunk-ZMZKZL3Y.js → chunk-HN6ZMUAS.js} +1 -1
- package/dist/bundle/{chunk-ZUOS7QUB.js → chunk-ITSSCYLP.js} +11 -11
- package/dist/bundle/{chunk-BESIMQ5U.js → chunk-J2Z5E7TO.js} +1 -1
- package/dist/bundle/{chunk-N56WXUCW.js → chunk-J4QVXR5I.js} +2 -2
- package/dist/bundle/{chunk-MF6NKU3Z.js → chunk-K457FHD4.js} +33 -23
- package/dist/bundle/{chunk-M62LF3QE.js → chunk-KE47Y4PW.js} +941 -494
- package/dist/bundle/{chunk-DZVYGBZB.js → chunk-KLHLWKWC.js} +67 -54
- package/dist/bundle/{chunk-SH63Q4QR.js → chunk-LLAZSGS7.js} +22 -22
- package/dist/bundle/{chunk-WNTXIQMB.js → chunk-MSGYLWCH.js} +2 -2
- package/dist/bundle/{chunk-ZFMS5G4H.js → chunk-NIKYFRDQ.js} +2 -2
- package/dist/bundle/{chunk-7AJ2IESO.js → chunk-NQAV7U7C.js} +1 -1
- package/dist/bundle/{chunk-GUFM5RLW.js → chunk-ONHHBPV3.js} +2 -2
- package/dist/bundle/{chunk-BHPCZCX7.js → chunk-OYVDWHP5.js} +2 -2
- package/dist/bundle/{chunk-25VC6U3A.js → chunk-PNUHAHTF.js} +1 -1
- package/dist/bundle/{chunk-ZHP44EML.js → chunk-PQGWEFJ2.js} +3 -3
- package/dist/bundle/{chunk-KHKC236O.js → chunk-QAC6Z675.js} +2 -2
- package/dist/bundle/{chunk-P57R2P75.js → chunk-QEAMO2TS.js} +7 -7
- package/dist/bundle/{chunk-RD2NLJSU.js → chunk-QLLPZWYZ.js} +4 -4
- package/dist/bundle/{chunk-BZIZLEJN.js → chunk-QVM2HKJP.js} +4 -4
- package/dist/bundle/{chunk-UIPBAT2T.js → chunk-T6DSAROY.js} +17 -14
- package/dist/bundle/{chunk-S7B6MTXX.js → chunk-TWZTQHP6.js} +6 -6
- package/dist/bundle/{chunk-VYR2IIWW.js → chunk-UDYCZ5KB.js} +1 -1
- package/dist/bundle/{chunk-QQF7RDLR.js → chunk-UFIUMPXP.js} +4 -4
- package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
- package/dist/bundle/{chunk-INYO2QFW.js → chunk-UMUJHC4M.js} +3 -3
- package/dist/bundle/{chunk-TMXNMO66.js → chunk-UPRYEDAV.js} +3 -3
- package/dist/bundle/{chunk-IGIPIO4J.js → chunk-VIEVOF3O.js} +11 -11
- package/dist/bundle/{chunk-5SUFMBU5.js → chunk-WDRNVSWF.js} +45 -45
- package/dist/bundle/{chunk-C3RX3UOE.js → chunk-XIRASTVS.js} +11 -11
- package/dist/bundle/{chunk-OHLMHBDI.js → chunk-XXOJ7PQY.js} +32 -31
- package/dist/bundle/{chunk-CHI6D4D6.js → chunk-YFK3DNNP.js} +4 -4
- package/dist/bundle/{chunk-AD3QPYI3.js → chunk-YG4BO7N3.js} +2 -2
- package/dist/bundle/{chunk-76C5SSMR.js → chunk-ZCHC7TYO.js} +12 -12
- package/dist/bundle/{chunk-P55L4S6N.js → chunk-ZCV4UEVH.js} +3 -3
- package/dist/bundle/command-contract-JCRVVL7P.js +32 -0
- package/dist/bundle/{decode-RKPOGPBE.js → decode-QJNVAAKJ.js} +4 -4
- package/dist/bundle/{echarts-H5QQRBHI.js → echarts-2EDY7OUX.js} +2 -2
- package/dist/bundle/{embed-7TVAPNP7.js → embed-PZSXOQJO.js} +5 -5
- package/dist/bundle/{embedder-YOOHWWN6.js → embedder-O4EGMMUU.js} +8 -8
- package/dist/bundle/{entry-SAKW5HEZ.js → entry-DVLMQM6J.js} +5 -5
- package/dist/bundle/{first-run-C744N572.js → first-run-J67KTUWA.js} +9 -9
- package/dist/bundle/first-screen-PYEE5NMQ.js +30 -0
- package/dist/bundle/{identity-NRWTZIQ4.js → identity-DSYY4FLQ.js} +3 -3
- package/dist/bundle/{instructions-6LWRAW47.js → instructions-O535XB2L.js} +1 -1
- package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
- package/dist/bundle/{node-XN4PIVWW.js → node-S3VEQNTE.js} +2 -2
- package/dist/bundle/{node-sqlite-PCBGROGQ.js → node-sqlite-3DNWF2BW.js} +4 -4
- package/dist/bundle/{oauth-PX6NGHUV.js → oauth-IU2RAZ3D.js} +6 -6
- package/dist/bundle/{open-BKJGJ6GX.js → open-M2IPPXMI.js} +3 -3
- package/dist/bundle/{openai-MJP7CZXP.js → openai-GDI7HISL.js} +13 -13
- package/dist/bundle/{process-4PRR3MLT.js → process-3IGMEATV.js} +1 -1
- package/dist/bundle/{program-7YZUO42B.js → program-P7YPHVLD.js} +50 -48
- package/dist/bundle/{prompt-CILSZC2R.js → prompt-S6R7IHDK.js} +4 -4
- package/dist/bundle/{proxy-transport-FWGKTYBL.js → proxy-transport-OROEVBCG.js} +4 -4
- package/dist/bundle/{recognize-AVFDJAIL.js → recognize-PFZRQ3P4.js} +3 -3
- package/dist/bundle/{remote-2VYXGOM4.js → remote-Q37V7LUX.js} +6 -6
- package/dist/bundle/{rerank-6FU2JPCD.js → rerank-V5YQQQAM.js} +6 -6
- package/dist/bundle/{serve-3YQOHBR6.js → serve-5CAD2UVG.js} +8 -8
- package/dist/bundle/{server-TPK3LNEX.js → server-R6YAO2SG.js} +32 -32
- package/dist/bundle/server-RUQLAWWS.js +56 -0
- package/dist/bundle/{state-LLUNBLZE.js → state-Y3A2NEM3.js} +5 -5
- package/dist/bundle/{store-27FQ743G.js → store-H5K32CNI.js} +10 -10
- package/dist/bundle/store-maintenance-command-QZDC4WKW.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +14 -9
- package/dist/bundle/command-contract-E2MWR3T3.js +0 -32
- package/dist/bundle/first-screen-7GKUEIWS.js +0 -30
- package/dist/bundle/server-S2K4YDDG.js +0 -56
- package/dist/bundle/store-maintenance-command-AFJMKEBK.js +0 -45
- /package/dist/bundle/{chunk-62EDJKGP.js → chunk-NPGVOZVK.js} +0 -0
|
@@ -2,23 +2,23 @@ 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-7GQLD5TJ.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
singleLine
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BWRCPMMC.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EO563SUX.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/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.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/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.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/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 });
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EO563SUX.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/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");
|
|
@@ -3,19 +3,19 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
errorCodes,
|
|
5
5
|
isContentKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EO563SUX.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.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
12
12
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
13
13
|
import { createHash } from "node:crypto";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
16
16
|
import { homedir } from "node:os";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
19
19
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
20
20
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
21
21
|
const { code, exitCode } = value ?? {};
|
|
@@ -23,7 +23,7 @@ var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
|
23
23
|
}, "isCommanderFailure");
|
|
24
24
|
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
27
27
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
28
28
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
29
29
|
if (event.event === "warning") {
|
|
@@ -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.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
75
75
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
76
76
|
"authorization",
|
|
77
77
|
"cookie",
|
|
@@ -152,7 +152,7 @@ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.
|
|
|
152
152
|
var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
|
|
153
153
|
var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
|
|
154
154
|
|
|
155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
156
156
|
var MESSAGE_AT_MOST = 500;
|
|
157
157
|
var CAUSES_AT_MOST = 5;
|
|
158
158
|
var FRAMES_AT_MOST = 15;
|
|
@@ -253,14 +253,15 @@ var endpointTemplate = /* @__PURE__ */ __name((raw) => {
|
|
|
253
253
|
}, "endpointTemplate");
|
|
254
254
|
var INTERNATIONAL_PHONE = /\+\d[\d\s()-]{6,}\d/.source;
|
|
255
255
|
var BARE_PHONE = /(^|[^\w-])\d{11,15}\b/.source;
|
|
256
|
+
var MESSENGER_ID = /\b\d+(?:-\d+)?(?::\d+)?@(?:s\.whatsapp\.net|g\.us|c\.us|lid|broadcast|newsletter)\b/g;
|
|
256
257
|
var redactText = /* @__PURE__ */ __name((text) => {
|
|
257
258
|
const home = homedir();
|
|
258
259
|
let out = home && home !== "/" ? text.split(home).join("~") : text;
|
|
259
|
-
out = withoutSecrets(out.replace(/"[^"\n]*"|“[^”\n]*”|«[^»\n]*»/g, '"[redacted]"')).replace(/\b(bearer|basic|token|key|password|secret)(\s*[:=]\s*|\s+)[^\s'"]+/gi, "$1$2[redacted]").replace(/[\w.+-]+@[\w-]+\.[\w.-]+/g, "[email]").replace(new RegExp(INTERNATIONAL_PHONE, "g"), "[number]").replace(new RegExp(BARE_PHONE, "g"), "$1[number]").replace(/\bbot\d+:[\w-]+/g, "bot[token]").replace(/\b\d{6,}:[\w-]{20,}\b/g, "[token]").replace(/(\?|&)[^\s#]*/g, "$1[redacted]").replace(/\b[A-Za-z0-9_-]{40,}\b/g, "[redacted]");
|
|
260
|
+
out = withoutSecrets(out.replace(/"[^"\n]*"|“[^”\n]*”|«[^»\n]*»/g, '"[redacted]"')).replace(/\b(bearer|basic|token|key|password|secret)(\s*[:=]\s*|\s+)[^\s'"]+/gi, "$1$2[redacted]").replace(MESSENGER_ID, "[id]").replace(/[\w.+-]+@[\w-]+\.[\w.-]+/g, "[email]").replace(new RegExp(INTERNATIONAL_PHONE, "g"), "[number]").replace(new RegExp(BARE_PHONE, "g"), "$1[number]").replace(/\bbot\d+:[\w-]+/g, "bot[token]").replace(/\b\d{6,}:[\w-]{20,}\b/g, "[token]").replace(/(\?|&)[^\s#]*/g, "$1[redacted]").replace(/\b[A-Za-z0-9_-]{40,}\b/g, "[redacted]");
|
|
260
261
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
261
262
|
}, "redactText");
|
|
262
263
|
|
|
263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
264
265
|
var REDACTED = "[redacted]";
|
|
265
266
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
266
267
|
if (!record)
|