@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
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AUWYMMYL.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EO563SUX.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// 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/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// 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/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// 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/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// 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/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
resolvePaths
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BWRCPMMC.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/store/path.js
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
13
13
|
var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath,
|
|
6
6
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UIPT6IAU.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfigFile,
|
|
10
10
|
saveConfigFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BWRCPMMC.js";
|
|
12
12
|
import {
|
|
13
13
|
number,
|
|
14
14
|
object,
|
|
15
15
|
optional,
|
|
16
16
|
string
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EO563SUX.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
24
24
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
25
25
|
const path = scriptPath.replaceAll("\\", "/");
|
|
26
26
|
if (path.includes("/_npx/"))
|
|
@@ -34,7 +34,7 @@ var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
|
34
34
|
return path.includes("/dist/") ? "checkout" : "unknown";
|
|
35
35
|
}, "installerOf");
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
38
38
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
39
39
|
import { existsSync } from "node:fs";
|
|
40
40
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7GQLD5TJ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EO563SUX.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.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -135,7 +135,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
135
135
|
return model;
|
|
136
136
|
}, "speechModel");
|
|
137
137
|
|
|
138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
138
|
+
// 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/speech/install.js
|
|
139
139
|
import { createHash, randomUUID } from "node:crypto";
|
|
140
140
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
141
141
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// 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/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
safeParse,
|
|
15
15
|
stepOf,
|
|
16
16
|
writes
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EO563SUX.js";
|
|
18
18
|
import {
|
|
19
19
|
__commonJS,
|
|
20
20
|
__name,
|
|
@@ -1887,7 +1887,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1887
1887
|
}
|
|
1888
1888
|
});
|
|
1889
1889
|
|
|
1890
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1890
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
1891
1891
|
var EXIT_CODES = {
|
|
1892
1892
|
validation_error: 2,
|
|
1893
1893
|
configuration_error: 3,
|
|
@@ -1907,7 +1907,7 @@ var EXIT_CODES = {
|
|
|
1907
1907
|
var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
|
|
1908
1908
|
var GENERIC_FAILURE = 1;
|
|
1909
1909
|
|
|
1910
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1910
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
1911
1911
|
var CONTROL = (
|
|
1912
1912
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
1913
1913
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -1931,7 +1931,7 @@ var visibleControls = /* @__PURE__ */ __name((text) => {
|
|
|
1931
1931
|
}, "visibleControls");
|
|
1932
1932
|
var singleLine = /* @__PURE__ */ __name((text) => visibleControls(text).replace(LINE_BREAKS, escaped), "singleLine");
|
|
1933
1933
|
|
|
1934
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1934
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
1935
1935
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
1936
1936
|
if (isCliError(failure))
|
|
1937
1937
|
return failure;
|
|
@@ -2078,7 +2078,7 @@ var catchCrashes = /* @__PURE__ */ __name((options) => {
|
|
|
2078
2078
|
};
|
|
2079
2079
|
}, "catchCrashes");
|
|
2080
2080
|
|
|
2081
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2081
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
2082
2082
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2083
2083
|
if (signal?.aborted)
|
|
2084
2084
|
return Promise.reject(signal.reason);
|
|
@@ -2106,7 +2106,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2106
2106
|
});
|
|
2107
2107
|
}, "waitForDrain");
|
|
2108
2108
|
|
|
2109
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2109
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2110
2110
|
var processStreams = {
|
|
2111
2111
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2112
2112
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2135,7 +2135,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2135
2135
|
};
|
|
2136
2136
|
}, "captureStreams");
|
|
2137
2137
|
|
|
2138
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2138
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
2139
2139
|
var DEFAULT_RETRY = {
|
|
2140
2140
|
retries: 1,
|
|
2141
2141
|
baseDelayMs: 250,
|
|
@@ -2147,7 +2147,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
2147
2147
|
return Math.round(random() * ceiling);
|
|
2148
2148
|
}, "backoffMs");
|
|
2149
2149
|
|
|
2150
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2150
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
2151
2151
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
2152
2152
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
2153
2153
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -2212,7 +2212,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2212
2212
|
return project(value, fields);
|
|
2213
2213
|
}, "projectFields");
|
|
2214
2214
|
|
|
2215
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2215
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2216
2216
|
var BATCH_LIMITS = Object.freeze({
|
|
2217
2217
|
requests: 32,
|
|
2218
2218
|
input_bytes: 262144,
|
|
@@ -2339,7 +2339,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2339
2339
|
};
|
|
2340
2340
|
}, "runBatch");
|
|
2341
2341
|
|
|
2342
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2342
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2343
2343
|
import { randomBytes } from "node:crypto";
|
|
2344
2344
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2345
2345
|
import { dirname, join } from "node:path";
|
|
@@ -2383,11 +2383,11 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2383
2383
|
`, 384);
|
|
2384
2384
|
}, "saveConfigFile");
|
|
2385
2385
|
|
|
2386
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2386
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2387
2387
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2388
2388
|
import { join as join3, resolve } from "node:path";
|
|
2389
2389
|
|
|
2390
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2390
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2391
2391
|
import { createRequire } from "node:module";
|
|
2392
2392
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2393
2393
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2407,7 +2407,7 @@ var systemKeyring = {
|
|
|
2407
2407
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2408
2408
|
};
|
|
2409
2409
|
|
|
2410
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2410
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
2411
2411
|
import { homedir, userInfo } from "node:os";
|
|
2412
2412
|
import { join as join2, posix, win32 } from "node:path";
|
|
2413
2413
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -2458,8 +2458,9 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
2458
2458
|
}, "homeIsMoved");
|
|
2459
2459
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join2(configDir, fileName), "configFilePath");
|
|
2460
2460
|
|
|
2461
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2461
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2462
2462
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2463
|
+
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2463
2464
|
var Credentials = class {
|
|
2464
2465
|
static {
|
|
2465
2466
|
__name(this, "Credentials");
|
|
@@ -2474,7 +2475,6 @@ var Credentials = class {
|
|
|
2474
2475
|
#warn;
|
|
2475
2476
|
/** Set only for a moved run with the system keyring. */
|
|
2476
2477
|
#temporaryService;
|
|
2477
|
-
#warned = false;
|
|
2478
2478
|
constructor(options) {
|
|
2479
2479
|
this.#configDir = options.configDir;
|
|
2480
2480
|
this.#storage = options.storage ?? "auto";
|
|
@@ -2492,23 +2492,29 @@ var Credentials = class {
|
|
|
2492
2492
|
const fromEnv = this.#envVar ? this.#env[this.#envVar]?.trim() : void 0;
|
|
2493
2493
|
if (fromEnv)
|
|
2494
2494
|
return { secret: fromEnv, source: "environment" };
|
|
2495
|
+
const fromFile = this.#storage === "keyring" ? void 0 : this.#readFile()?.[account]?.secret;
|
|
2496
|
+
if (fromFile)
|
|
2497
|
+
return { secret: fromFile, source: "file" };
|
|
2495
2498
|
if (this.#storage !== "file") {
|
|
2496
2499
|
const temporary = this.#temporaryService;
|
|
2497
2500
|
const fromKeyring = this.#tryKeyring(() => temporary && this.#keyring.get(temporary, account) || this.#keyring.get(this.#service, account));
|
|
2498
2501
|
if (fromKeyring)
|
|
2499
2502
|
return { secret: fromKeyring, source: "keyring" };
|
|
2500
2503
|
}
|
|
2501
|
-
|
|
2502
|
-
return secret ? { secret, source: "file" } : void 0;
|
|
2504
|
+
return void 0;
|
|
2503
2505
|
}
|
|
2504
|
-
write(account, secret) {
|
|
2505
|
-
|
|
2506
|
+
write(account, secret, options = {}) {
|
|
2507
|
+
const inFile = this.#storage === "auto" && this.#readFile()?.[account] !== void 0;
|
|
2508
|
+
if (this.#storage === "keyring" || this.#storage === "auto" && (options.signIn || !inFile)) {
|
|
2506
2509
|
const stored = this.#tryKeyring(() => {
|
|
2507
2510
|
this.#keyring.set(this.#temporaryService ?? this.#service, account, secret);
|
|
2508
2511
|
return true;
|
|
2509
2512
|
});
|
|
2510
|
-
if (stored)
|
|
2513
|
+
if (stored) {
|
|
2514
|
+
if (inFile)
|
|
2515
|
+
this.#removeFromFile(account);
|
|
2511
2516
|
return "keyring";
|
|
2517
|
+
}
|
|
2512
2518
|
}
|
|
2513
2519
|
const store = this.#readFile();
|
|
2514
2520
|
if (!store) {
|
|
@@ -2528,14 +2534,18 @@ var Credentials = class {
|
|
|
2528
2534
|
this.#warn(removed.includes("keyring") ? `removed this run's own sign-in of ${account} from the OS keyring and kept the owner's: a run with moved folders never removes it` : `kept ${account} in the OS keyring: it is the owner's sign-in, shared with every run, and a run with moved folders never removes it`);
|
|
2529
2535
|
}
|
|
2530
2536
|
}
|
|
2531
|
-
|
|
2532
|
-
if (store?.[account] !== void 0) {
|
|
2533
|
-
delete store[account];
|
|
2534
|
-
this.#writeFile(store);
|
|
2537
|
+
if (this.#storage !== "keyring" && this.#removeFromFile(account))
|
|
2535
2538
|
removed.push("file");
|
|
2536
|
-
}
|
|
2537
2539
|
return removed;
|
|
2538
2540
|
}
|
|
2541
|
+
#removeFromFile(account) {
|
|
2542
|
+
const store = this.#readFile();
|
|
2543
|
+
if (store?.[account] === void 0)
|
|
2544
|
+
return false;
|
|
2545
|
+
delete store[account];
|
|
2546
|
+
this.#writeFile(store);
|
|
2547
|
+
return true;
|
|
2548
|
+
}
|
|
2539
2549
|
/** Only for the warning: a keyring that fails here must not fail a removal that already happened. */
|
|
2540
2550
|
#ownersEntryExists(account) {
|
|
2541
2551
|
try {
|
|
@@ -2574,8 +2584,8 @@ var Credentials = class {
|
|
|
2574
2584
|
try {
|
|
2575
2585
|
return operation();
|
|
2576
2586
|
} catch (error) {
|
|
2577
|
-
if (!this.#
|
|
2578
|
-
this.#
|
|
2587
|
+
if (!warnedRuns.has(this.#env)) {
|
|
2588
|
+
warnedRuns.add(this.#env);
|
|
2579
2589
|
this.#warn(`could not reach the OS keyring \u2014 it may be locked, or no keyring service is running (${error instanceof Error ? error.message : String(error)}); using ${this.#path()} instead, readable only by you`);
|
|
2580
2590
|
}
|
|
2581
2591
|
return void 0;
|
|
@@ -2583,7 +2593,7 @@ var Credentials = class {
|
|
|
2583
2593
|
}
|
|
2584
2594
|
};
|
|
2585
2595
|
|
|
2586
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2596
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2587
2597
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2588
2598
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2589
2599
|
if (signal?.aborted) {
|
|
@@ -2597,7 +2607,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2597
2607
|
}, { once: true });
|
|
2598
2608
|
}), "realSleep");
|
|
2599
2609
|
|
|
2600
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2610
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2601
2611
|
import { appendFileSync } from "node:fs";
|
|
2602
2612
|
var REDACTED_FIELDS = [
|
|
2603
2613
|
"authorization",
|
|
@@ -2692,7 +2702,7 @@ var silent = {
|
|
|
2692
2702
|
}, "error")
|
|
2693
2703
|
};
|
|
2694
2704
|
|
|
2695
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2705
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2696
2706
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2697
2707
|
import { styleText } from "node:util";
|
|
2698
2708
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2767,7 +2777,7 @@ var BORDERLESS = {
|
|
|
2767
2777
|
middle: ""
|
|
2768
2778
|
};
|
|
2769
2779
|
|
|
2770
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2780
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2771
2781
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2772
2782
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2773
2783
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -27,8 +27,9 @@ import {
|
|
|
27
27
|
} from "./chunk-5D4AEUVA.js";
|
|
28
28
|
import {
|
|
29
29
|
agentOf,
|
|
30
|
-
clientHash
|
|
31
|
-
|
|
30
|
+
clientHash,
|
|
31
|
+
currentCaller
|
|
32
|
+
} from "./chunk-5FJQG5UZ.js";
|
|
32
33
|
import {
|
|
33
34
|
__name
|
|
34
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -540,7 +541,14 @@ function toError(value) {
|
|
|
540
541
|
}
|
|
541
542
|
__name(toError, "toError");
|
|
542
543
|
|
|
543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// 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/mcp/caller.js
|
|
545
|
+
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
|
+
const client = caller?.agent?.client?.name;
|
|
547
|
+
if (client && client !== "unknown")
|
|
548
|
+
return client;
|
|
549
|
+
const kind = caller?.agent?.kind;
|
|
550
|
+
return kind && kind !== "mcp-client" ? kind : fallback;
|
|
551
|
+
}, "callingAgent");
|
|
544
552
|
var CALLER_META_KEY = "wirecat.dev/caller";
|
|
545
553
|
var PROXY_CLIENT_NAME = "all-profiles";
|
|
546
554
|
var NAME = /^[\w .@()/+-]{1,64}$/;
|
|
@@ -624,6 +632,7 @@ var passedOn = /* @__PURE__ */ __name((value, tool) => {
|
|
|
624
632
|
export {
|
|
625
633
|
StdioServerTransport,
|
|
626
634
|
serveStdio,
|
|
635
|
+
callingAgent,
|
|
627
636
|
CALLER_META_KEY,
|
|
628
637
|
PROXY_CLIENT_NAME,
|
|
629
638
|
callerOf
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T6DSAROY.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CJUSP5X2.js";
|
|
14
14
|
import {
|
|
15
15
|
lentConnection,
|
|
16
16
|
onlineDeps,
|
|
17
17
|
refuseLacking,
|
|
18
18
|
servicesFor,
|
|
19
19
|
storeModeDeps
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5ZPLOYTP.js";
|
|
21
21
|
import {
|
|
22
22
|
ENTITIES
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3BD24JYK.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_OUTPUT_BYTES,
|
|
26
26
|
LOCAL_WRITE,
|
|
@@ -43,21 +43,21 @@ import {
|
|
|
43
43
|
sealed,
|
|
44
44
|
startRecording,
|
|
45
45
|
traceOf
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KLHLWKWC.js";
|
|
47
47
|
import {
|
|
48
48
|
currentCaller,
|
|
49
49
|
keepsSuccess,
|
|
50
50
|
runContextOf,
|
|
51
51
|
withCaller
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-5FJQG5UZ.js";
|
|
53
53
|
import {
|
|
54
54
|
MAX_BUFFERED_INPUT
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-2ZH3PUQX.js";
|
|
56
56
|
import {
|
|
57
57
|
captureStreams,
|
|
58
58
|
errorObjectOf,
|
|
59
59
|
mcpErrorResult
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-BWRCPMMC.js";
|
|
61
61
|
import {
|
|
62
62
|
CliError,
|
|
63
63
|
SNAKE_CASE,
|
|
@@ -96,15 +96,15 @@ import {
|
|
|
96
96
|
unknown,
|
|
97
97
|
word,
|
|
98
98
|
writes
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-EO563SUX.js";
|
|
100
100
|
import {
|
|
101
101
|
__name
|
|
102
102
|
} from "./chunk-ZVVMGPBJ.js";
|
|
103
103
|
|
|
104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
104
|
+
// 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/mcp/agent.js
|
|
105
105
|
import { Readable } from "node:stream";
|
|
106
106
|
|
|
107
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
107
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
108
108
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
109
109
|
var lintRuleSchema = strictObject({
|
|
110
110
|
id: word,
|
|
@@ -231,7 +231,7 @@ var overridesSchema = array(strictObject({
|
|
|
231
231
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
232
232
|
}));
|
|
233
233
|
|
|
234
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
234
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
235
235
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
236
236
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
237
237
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -276,14 +276,20 @@ var parityGroupSchema = strictObject({
|
|
|
276
276
|
/** Permanent differences, each with its reason; they count against the override budget of the group. */
|
|
277
277
|
differences: array(strictObject({
|
|
278
278
|
rule: word,
|
|
279
|
+
/** `<clis> <path> <flag>`; with `absent`, only `<path> <flag>`: the CLI list is whoever else has it. */
|
|
279
280
|
target: text,
|
|
280
281
|
expected: optional(text),
|
|
282
|
+
/** The CLI that lacks the path or flag by design; the rest must agree, so other CLIs joining do not stale it. */
|
|
283
|
+
absent: optional(word),
|
|
281
284
|
reason: pipe(text, minLength(10, "say why, in a sentence"))
|
|
282
285
|
}))
|
|
283
286
|
});
|
|
284
287
|
var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity groups", array(parityGroupSchema), input, (groups) => [
|
|
285
288
|
...duplicates(groups.map((group) => group.name)).map((name) => `"${name}" is listed twice`),
|
|
286
|
-
...groups.flatMap((group) =>
|
|
289
|
+
...groups.flatMap((group) => [
|
|
290
|
+
...duplicates(group.differences.map((entry) => `${entry.rule} ${entry.target}`)).map((both) => `${group.name}: "${both}" is listed twice`),
|
|
291
|
+
...group.differences.filter((entry) => entry.absent && entry.expected).map((entry) => `${group.name}: "${entry.target}" has \`absent\`, which measures the values itself; drop \`expected\``)
|
|
292
|
+
])
|
|
287
293
|
]), "defineParityGroups");
|
|
288
294
|
var PARITY_GROUPS = defineParityGroups([
|
|
289
295
|
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
|
|
@@ -291,7 +297,12 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
291
297
|
name: "all",
|
|
292
298
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
|
|
293
299
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
|
|
294
|
-
differences: []
|
|
300
|
+
differences: ["mcp serve", "mcp revoke", "mcp server start", "mcp server status", "mcp server stop"].map((path) => ({
|
|
301
|
+
rule: "same-path-contract",
|
|
302
|
+
target: `${path} --profiles`,
|
|
303
|
+
absent: "memo",
|
|
304
|
+
reason: "memo has no profiles: it reads other CLIs' stores and selects their accounts with --source and --account (https://github.com/WireCatLabs/cli-base/issues/390)"
|
|
305
|
+
}))
|
|
295
306
|
},
|
|
296
307
|
// gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
|
|
297
308
|
// CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
|
|
@@ -313,7 +324,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
313
324
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
314
325
|
]);
|
|
315
326
|
|
|
316
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
327
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
317
328
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
318
329
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
319
330
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -329,7 +340,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
329
340
|
}
|
|
330
341
|
]);
|
|
331
342
|
|
|
332
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
343
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
333
344
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
334
345
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
335
346
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -351,7 +362,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
351
362
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
352
363
|
]);
|
|
353
364
|
|
|
354
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
365
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
355
366
|
var CALENDAR_FLAGS = [
|
|
356
367
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
357
368
|
{
|
|
@@ -425,7 +436,7 @@ var CALENDAR_FLAGS = [
|
|
|
425
436
|
}
|
|
426
437
|
];
|
|
427
438
|
|
|
428
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
439
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
429
440
|
var HOW_FLAGS = [
|
|
430
441
|
{
|
|
431
442
|
name: "--limit",
|
|
@@ -803,6 +814,13 @@ var HOW_FLAGS = [
|
|
|
803
814
|
type: "string",
|
|
804
815
|
meaning: "the browser program to open for sign-in"
|
|
805
816
|
},
|
|
817
|
+
{
|
|
818
|
+
name: "--credential-storage",
|
|
819
|
+
value: "<storage>",
|
|
820
|
+
role: "mode",
|
|
821
|
+
type: "choice",
|
|
822
|
+
meaning: "where a sign-in is kept: keyring, which falls back to a private file by itself, or file (WC-SECR-4)"
|
|
823
|
+
},
|
|
806
824
|
{ name: "--checkpoint", value: "<file>", role: "mode", type: "path", meaning: "keep resume progress in this file" },
|
|
807
825
|
{
|
|
808
826
|
name: "--expected-event-id",
|
|
@@ -1405,7 +1423,7 @@ var HOW_FLAGS = [
|
|
|
1405
1423
|
}
|
|
1406
1424
|
];
|
|
1407
1425
|
|
|
1408
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1426
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1409
1427
|
var WHAT_FLAGS = [
|
|
1410
1428
|
{
|
|
1411
1429
|
name: "--analysis-provider",
|
|
@@ -2395,7 +2413,7 @@ var WHAT_FLAGS = [
|
|
|
2395
2413
|
}
|
|
2396
2414
|
];
|
|
2397
2415
|
|
|
2398
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2416
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2399
2417
|
var FLAG_TYPES = [
|
|
2400
2418
|
"switch",
|
|
2401
2419
|
"count",
|
|
@@ -2749,7 +2767,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2749
2767
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
|
|
2750
2768
|
});
|
|
2751
2769
|
|
|
2752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2770
|
+
// 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/mcp/agent.js
|
|
2753
2771
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2754
2772
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2755
2773
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2970,7 +2988,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2970
2988
|
}
|
|
2971
2989
|
}, "runCommandForAgent");
|
|
2972
2990
|
|
|
2973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2991
|
+
// 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/mcp/tool.js
|
|
2974
2992
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
2975
2993
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
2976
2994
|
var message = pipe(
|
|
@@ -3084,7 +3102,7 @@ var entryRunner = /* @__PURE__ */ __name((registration) => {
|
|
|
3084
3102
|
...outcomeOf(result),
|
|
3085
3103
|
startedAt,
|
|
3086
3104
|
finishedAt: Date.now()
|
|
3087
|
-
})?.catch(() => void 0);
|
|
3105
|
+
}, caller)?.catch(() => void 0);
|
|
3088
3106
|
return result;
|
|
3089
3107
|
};
|
|
3090
3108
|
}, "entryRunner");
|
|
@@ -3229,7 +3247,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3229
3247
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3230
3248
|
}, "failed");
|
|
3231
3249
|
|
|
3232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3250
|
+
// 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/mcp/surface.js
|
|
3233
3251
|
import { randomUUID } from "node:crypto";
|
|
3234
3252
|
var MATCHES = 8;
|
|
3235
3253
|
var ANSWER = answerSchema();
|