@wirecat/tg-cli 0.119.0 → 0.120.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/contracts/wirecat.json +2 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-NEQQOANM.js → adapter-OJKHXGBC.js} +49 -49
- package/dist/bundle/{all-profiles-QFT46FTF.js → all-profiles-URIWNL23.js} +10 -10
- package/dist/bundle/{anthropic-UJ4RYCWU.js → anthropic-YUKNB63B.js} +5 -5
- package/dist/bundle/{app-server-NE3EL5IK.js → app-server-H5QNHGH4.js} +43 -43
- package/dist/bundle/{bot-api-D4H5SCP5.js → bot-api-27GN4Y3D.js} +49 -49
- package/dist/bundle/{bot-history-KF2PUMWA.js → bot-history-VVSWLVZM.js} +18 -18
- package/dist/bundle/{bun-F7MH5YKA.js → bun-PAAJX3GU.js} +2 -2
- package/dist/bundle/{bun-sqlite-FYDJXUHF.js → bun-sqlite-TPEBWFZH.js} +5 -5
- package/dist/bundle/{chunk-XM3P7LLT.js → chunk-34DSPJNN.js} +2 -2
- package/dist/bundle/{chunk-QD27C3BG.js → chunk-3FPFRDG2.js} +10 -8
- package/dist/bundle/{chunk-OG2CG2GS.js → chunk-3GLLWDM6.js} +12 -12
- package/dist/bundle/{chunk-FQ3C6DFV.js → chunk-3SANNNWS.js} +3 -3
- package/dist/bundle/{chunk-G3MQOH6Z.js → chunk-4JATS2J5.js} +3 -3
- package/dist/bundle/{chunk-6OE5I3PR.js → chunk-4OWY7QBE.js} +6 -6
- package/dist/bundle/{chunk-QG5U6HCI.js → chunk-4W4EVVL4.js} +4 -4
- package/dist/bundle/{chunk-JKKEMVW3.js → chunk-6XHZV7AQ.js} +4 -4
- package/dist/bundle/{chunk-IAGX5VFL.js → chunk-7DPWVKYS.js} +4 -4
- package/dist/bundle/{chunk-5EHJWIW4.js → chunk-7I6YVQHW.js} +2 -2
- package/dist/bundle/{chunk-TKHEVAEG.js → chunk-7N4IUEX3.js} +8 -8
- package/dist/bundle/{chunk-HV5YYAJX.js → chunk-7VNV426X.js} +51 -18
- package/dist/bundle/{chunk-YMWPRHXG.js → chunk-7WS3ULOO.js} +1185 -426
- package/dist/bundle/{chunk-FJKP6MMP.js → chunk-B7B65ZLU.js} +2 -2
- package/dist/bundle/{chunk-3EQ7USKJ.js → chunk-CGUDXNJE.js} +2 -2
- package/dist/bundle/{chunk-4AACB23H.js → chunk-CLTMVPGT.js} +13 -13
- package/dist/bundle/{chunk-FQZSS3AB.js → chunk-CLURRDNU.js} +6 -6
- package/dist/bundle/{chunk-RGU2G3KL.js → chunk-CYWV2RLN.js} +4 -4
- package/dist/bundle/{chunk-F223KYWG.js → chunk-D2WNQJUQ.js} +1 -1
- package/dist/bundle/{chunk-6ERQJRL2.js → chunk-DDKFAUQD.js} +2 -2
- package/dist/bundle/{chunk-Z4CGZAFQ.js → chunk-DE7QIEUP.js} +34 -34
- package/dist/bundle/{chunk-7VUNJDYU.js → chunk-DH7VKHTZ.js} +4 -4
- package/dist/bundle/{chunk-L33G5ARH.js → chunk-DQTQO6PB.js} +1005 -768
- package/dist/bundle/{chunk-TEZKCH5B.js → chunk-FATTEYZH.js} +2 -2
- package/dist/bundle/{chunk-23JGV5FQ.js → chunk-FPWXG53C.js} +11 -11
- package/dist/bundle/{chunk-MDLSI3EN.js → chunk-H5XC2WYO.js} +35 -589
- package/dist/bundle/{chunk-UBCLVM7C.js → chunk-HDSKBXAF.js} +3 -3
- package/dist/bundle/{chunk-X5PDWCG7.js → chunk-HIBYYKGO.js} +1 -1
- package/dist/bundle/{chunk-HPQQ76WF.js → chunk-JJY3TQTM.js} +3 -3
- package/dist/bundle/{chunk-D6YTBJY6.js → chunk-JQLGS3SG.js} +1 -1
- package/dist/bundle/{chunk-2BAJ6ORN.js → chunk-JSEIT2WO.js} +1 -1
- package/dist/bundle/{chunk-BXIPT2BO.js → chunk-KLHOQ6XQ.js} +1 -1
- package/dist/bundle/{chunk-CX2WCEQU.js → chunk-KP26Y5OA.js} +1440 -248
- package/dist/bundle/{chunk-3K65KTXD.js → chunk-KRCMKFUV.js} +2 -2
- package/dist/bundle/{chunk-HGMMRT4G.js → chunk-KTV5Y5EX.js} +2 -2
- package/dist/bundle/{chunk-7C6POLLO.js → chunk-KW6JZGG3.js} +1 -1
- package/dist/bundle/{chunk-D4Y2KL5V.js → chunk-LLCGOZ44.js} +4 -4
- package/dist/bundle/{chunk-FRW3CWC7.js → chunk-LS72R7DN.js} +34 -34
- package/dist/bundle/{chunk-NDSRND3E.js → chunk-LVGX7VTD.js} +4 -4
- package/dist/bundle/{chunk-5FEEFXJA.js → chunk-MCPOZNWG.js} +1 -1
- package/dist/bundle/{chunk-6K5R3YPN.js → chunk-MMPISXSU.js} +2 -2
- package/dist/bundle/{chunk-65BWMPCI.js → chunk-MTD6WZKV.js} +2 -2
- package/dist/bundle/{chunk-TT4CIXVH.js → chunk-PDYTNTQI.js} +6 -6
- package/dist/bundle/{chunk-KBHK5UGL.js → chunk-RX5CJ55S.js} +1 -1
- package/dist/bundle/{chunk-QTFXYR5W.js → chunk-S6OC367D.js} +4 -4
- package/dist/bundle/{chunk-DQELQ7BL.js → chunk-THJHYMFR.js} +1293 -1525
- package/dist/bundle/{chunk-RUNFFBJU.js → chunk-U2TPRUWK.js} +84 -72
- package/dist/bundle/{chunk-V5Z2JO6X.js → chunk-U6HEZPCR.js} +19 -19
- package/dist/bundle/{chunk-SMHLQEE2.js → chunk-VUBZFMGP.js} +2 -2
- package/dist/bundle/{chunk-W2BIBPRU.js → chunk-VUUR2SRS.js} +67 -44
- package/dist/bundle/{chunk-KC4MQRAB.js → chunk-WGGSFGNZ.js} +8 -8
- package/dist/bundle/{chunk-ZEQ7ONPZ.js → chunk-WLBPNLDF.js} +3 -3
- package/dist/bundle/{chunk-QQ3QZFFD.js → chunk-WQ55F4Y3.js} +8 -8
- package/dist/bundle/{chunk-72QLHHSO.js → chunk-YBOVL25O.js} +17 -15
- package/dist/bundle/{chunk-S3HAFJVC.js → chunk-YDROJG2Y.js} +86 -29
- package/dist/bundle/{chunk-CIDFV3IT.js → chunk-YQKEPT22.js} +1 -1
- package/dist/bundle/{chunk-XDMJVWWR.js → chunk-ZON7K5QE.js} +3 -3
- package/dist/bundle/{chunk-ROOUBFUW.js → chunk-ZRRZTPSB.js} +18152 -17010
- package/dist/bundle/command-contract-KW6FNOJO.js +33 -0
- package/dist/bundle/{decode-5N4ERCHC.js → decode-RVWSCZW4.js} +5 -5
- package/dist/bundle/{dispatch-TBGXBDHE.js → dispatch-U2DW6UI7.js} +8 -8
- package/dist/bundle/{echarts-YDEBAMXT.js → echarts-6VNUD3JF.js} +2 -2
- package/dist/bundle/{embed-T7H62XFR.js → embed-LWLCQKIK.js} +6 -6
- package/dist/bundle/{embedder-AW3O2TR3.js → embedder-CXKHLRJT.js} +9 -9
- package/dist/bundle/{entry-L2LJ2VPY.js → entry-HV4NSX3Z.js} +7 -7
- package/dist/bundle/{failure-AWHPW2HE.js → failure-HJD7S5UA.js} +2 -2
- package/dist/bundle/{first-run-6PBZSRZU.js → first-run-OPI6NIWQ.js} +11 -11
- package/dist/bundle/first-screen-BVQLF4LN.js +31 -0
- package/dist/bundle/{instructions-C3NJERO7.js → instructions-TK4HXL3A.js} +1 -1
- package/dist/bundle/{mcp-CWLASTLV.js → mcp-7KQUJNFN.js} +2 -2
- package/dist/bundle/{node-P3CIIYWU.js → node-WFPNBUCU.js} +2 -2
- package/dist/bundle/{node-sqlite-YVHMNRVA.js → node-sqlite-L5BRGJLK.js} +6 -6
- package/dist/bundle/{oauth-5OQYA2SV.js → oauth-CGVWL35B.js} +7 -7
- package/dist/bundle/{open-YGWUVSU7.js → open-HLL55C5S.js} +5 -5
- package/dist/bundle/{openai-U45JBQ6F.js → openai-YFCNXIJ4.js} +14 -14
- package/dist/bundle/{process-DCYX5EDG.js → process-4A5JP5LO.js} +1 -1
- package/dist/bundle/{program-UZBFH2EZ.js → program-IFGQGSUF.js} +52 -52
- package/dist/bundle/{prompt-HPVTPTFI.js → prompt-B5FYE2DQ.js} +5 -5
- package/dist/bundle/{proxy-transport-D7MCHGSV.js → proxy-transport-ENU2SJYT.js} +5 -5
- package/dist/bundle/{recognize-IJCPFJ76.js → recognize-ZHMHGIV3.js} +4 -4
- package/dist/bundle/{remote-MWDYQWFW.js → remote-A3W5HE52.js} +7 -7
- package/dist/bundle/{rerank-SXG64475.js → rerank-HWJAQOZM.js} +7 -7
- package/dist/bundle/{serve-KJQENHEH.js → serve-PP326Q2F.js} +9 -9
- package/dist/bundle/{server-MXVXZWN6.js → server-MV6CL63L.js} +35 -35
- package/dist/bundle/server-TZGGOJ26.js +60 -0
- package/dist/bundle/{state-CKKJWH27.js → state-Y3RJ7ZXB.js} +6 -6
- package/dist/bundle/{store-R3BE4V56.js → store-EVNI2MHZ.js} +13 -13
- package/dist/bundle/store-maintenance-command-XPQE47RE.js +49 -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-7TGMZRBE.js +0 -33
- package/dist/bundle/first-screen-UKCD7D2R.js +0 -31
- package/dist/bundle/server-RTMCRKQF.js +0 -60
- package/dist/bundle/store-maintenance-command-KDGBSBNU.js +0 -49
- /package/dist/bundle/{chunk-DWX4DE2I.js → chunk-YVNHQFLC.js} +0 -0
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
string,
|
|
20
20
|
text,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WGGSFGNZ.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
visibleControls
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VUBZFMGP.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__name,
|
|
@@ -1896,7 +1896,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
1898
|
|
|
1899
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1899
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
1900
1900
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
1901
1901
|
if (signal?.aborted)
|
|
1902
1902
|
return Promise.reject(signal.reason);
|
|
@@ -1924,7 +1924,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
1924
1924
|
});
|
|
1925
1925
|
}, "waitForDrain");
|
|
1926
1926
|
|
|
1927
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1927
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
1928
1928
|
var processStreams = {
|
|
1929
1929
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
1930
1930
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -1953,7 +1953,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
1953
1953
|
};
|
|
1954
1954
|
}, "captureStreams");
|
|
1955
1955
|
|
|
1956
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1956
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
1957
1957
|
var DEFAULT_RETRY = {
|
|
1958
1958
|
retries: 1,
|
|
1959
1959
|
baseDelayMs: 250,
|
|
@@ -1965,7 +1965,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
1965
1965
|
return Math.round(random() * ceiling);
|
|
1966
1966
|
}, "backoffMs");
|
|
1967
1967
|
|
|
1968
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1968
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_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
|
|
1969
1969
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
1970
1970
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
1971
1971
|
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))))
|
|
@@ -2030,7 +2030,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2030
2030
|
return project(value, fields);
|
|
2031
2031
|
}, "projectFields");
|
|
2032
2032
|
|
|
2033
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2033
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2034
2034
|
var BATCH_LIMITS = Object.freeze({
|
|
2035
2035
|
requests: 32,
|
|
2036
2036
|
input_bytes: 262144,
|
|
@@ -2157,7 +2157,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2157
2157
|
};
|
|
2158
2158
|
}, "runBatch");
|
|
2159
2159
|
|
|
2160
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2160
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2161
2161
|
import { randomBytes } from "node:crypto";
|
|
2162
2162
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2163
2163
|
import { dirname, join } from "node:path";
|
|
@@ -2201,16 +2201,16 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2201
2201
|
`, 384);
|
|
2202
2202
|
}, "saveConfigFile");
|
|
2203
2203
|
|
|
2204
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2204
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2205
2205
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2206
2206
|
var baseConstantsSchema = object({});
|
|
2207
2207
|
var LayerSchema = record(string(), unknown());
|
|
2208
2208
|
|
|
2209
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2209
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2210
2210
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2211
2211
|
import { join as join3, resolve } from "node:path";
|
|
2212
2212
|
|
|
2213
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2213
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2214
2214
|
import { createRequire } from "node:module";
|
|
2215
2215
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2216
2216
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2230,7 +2230,7 @@ var systemKeyring = {
|
|
|
2230
2230
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2231
2231
|
};
|
|
2232
2232
|
|
|
2233
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2233
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
2234
2234
|
import { homedir, userInfo } from "node:os";
|
|
2235
2235
|
import { join as join2, posix, win32 } from "node:path";
|
|
2236
2236
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -2282,7 +2282,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
2282
2282
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
2283
2283
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join2(configDir, fileName), "configFilePath");
|
|
2284
2284
|
|
|
2285
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2285
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2286
2286
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2287
2287
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2288
2288
|
var Credentials = class {
|
|
@@ -2417,7 +2417,7 @@ var Credentials = class {
|
|
|
2417
2417
|
}
|
|
2418
2418
|
};
|
|
2419
2419
|
|
|
2420
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2420
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2421
2421
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2422
2422
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2423
2423
|
if (signal?.aborted) {
|
|
@@ -2431,10 +2431,10 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2431
2431
|
}, { once: true });
|
|
2432
2432
|
}), "realSleep");
|
|
2433
2433
|
|
|
2434
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2434
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2435
2435
|
import { appendFileSync } from "node:fs";
|
|
2436
2436
|
|
|
2437
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2437
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
2438
2438
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2439
2439
|
var logRecordSchema = strictObject({
|
|
2440
2440
|
time: isoTime,
|
|
@@ -2512,7 +2512,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2512
2512
|
return traceId;
|
|
2513
2513
|
}, "traceIdOf");
|
|
2514
2514
|
|
|
2515
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2515
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2516
2516
|
var REDACTED_FIELDS = [
|
|
2517
2517
|
"authorization",
|
|
2518
2518
|
"Authorization",
|
|
@@ -2606,7 +2606,7 @@ var silent = {
|
|
|
2606
2606
|
}, "error")
|
|
2607
2607
|
};
|
|
2608
2608
|
|
|
2609
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2609
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2610
2610
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2611
2611
|
import { styleText } from "node:util";
|
|
2612
2612
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2681,7 +2681,7 @@ var BORDERLESS = {
|
|
|
2681
2681
|
middle: ""
|
|
2682
2682
|
};
|
|
2683
2683
|
|
|
2684
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2684
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2685
2685
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2686
2686
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2687
2687
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|
|
@@ -39,7 +39,7 @@ var CliError = class extends Error {
|
|
|
39
39
|
};
|
|
40
40
|
var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
|
|
41
41
|
|
|
42
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
43
43
|
var CONTROL = (
|
|
44
44
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
45
45
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7VNV426X.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-34DSPJNN.js";
|
|
14
14
|
import {
|
|
15
15
|
QUERY_ARGUMENT,
|
|
16
16
|
lentConnection,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
refuseLacking,
|
|
19
19
|
servicesFor,
|
|
20
20
|
storeModeDeps
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7WS3ULOO.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_OUTPUT_BYTES,
|
|
24
24
|
ENTITIES,
|
|
@@ -28,40 +28,40 @@ import {
|
|
|
28
28
|
authorityAllowed,
|
|
29
29
|
botApiAllowed,
|
|
30
30
|
changesMessenger,
|
|
31
|
-
enclosingTraceId,
|
|
32
31
|
flatten,
|
|
33
|
-
inRun,
|
|
34
32
|
judgedAnswer,
|
|
35
33
|
judgedEffects,
|
|
36
34
|
keyForCommand,
|
|
37
35
|
levelFor,
|
|
38
36
|
listOf,
|
|
39
|
-
newRunId,
|
|
40
37
|
readKeysForCommand,
|
|
41
38
|
refuseStoreChange,
|
|
42
39
|
sealed,
|
|
43
|
-
startRecording
|
|
44
|
-
|
|
45
|
-
} from "./chunk-DQELQ7BL.js";
|
|
40
|
+
startRecording
|
|
41
|
+
} from "./chunk-THJHYMFR.js";
|
|
46
42
|
import {
|
|
47
43
|
currentCaller,
|
|
48
44
|
keepsSuccess,
|
|
49
45
|
runContextOf,
|
|
50
46
|
withCaller
|
|
51
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-3FPFRDG2.js";
|
|
52
48
|
import {
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
enclosingTraceId,
|
|
50
|
+
inRun,
|
|
51
|
+
newRunId,
|
|
52
|
+
queryDescription,
|
|
53
|
+
traceOf
|
|
54
|
+
} from "./chunk-KP26Y5OA.js";
|
|
55
55
|
import {
|
|
56
56
|
storeDamaged
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-WLBPNLDF.js";
|
|
58
58
|
import {
|
|
59
59
|
MAX_BUFFERED_INPUT
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-KTV5Y5EX.js";
|
|
61
61
|
import {
|
|
62
62
|
captureStreams,
|
|
63
63
|
traceIdOf
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-U6HEZPCR.js";
|
|
65
65
|
import {
|
|
66
66
|
COMPACT_FLAG,
|
|
67
67
|
SNAKE_CASE,
|
|
@@ -100,19 +100,19 @@ import {
|
|
|
100
100
|
unknown,
|
|
101
101
|
word,
|
|
102
102
|
writes
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-WGGSFGNZ.js";
|
|
104
104
|
import {
|
|
105
105
|
CliError,
|
|
106
106
|
errorCodes
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-VUBZFMGP.js";
|
|
108
108
|
import {
|
|
109
109
|
__name
|
|
110
110
|
} from "./chunk-ZVVMGPBJ.js";
|
|
111
111
|
|
|
112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
113
113
|
import { Readable } from "node:stream";
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_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
|
|
116
116
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
117
117
|
var lintRuleSchema = strictObject({
|
|
118
118
|
id: word,
|
|
@@ -252,7 +252,7 @@ var overrideSchema = strictObject({
|
|
|
252
252
|
});
|
|
253
253
|
var overridesSchema = array(overrideSchema);
|
|
254
254
|
|
|
255
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
255
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_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
|
|
256
256
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
257
257
|
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");
|
|
258
258
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -378,7 +378,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
378
378
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
379
379
|
]);
|
|
380
380
|
|
|
381
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
381
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_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
|
|
382
382
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
383
383
|
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");
|
|
384
384
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -394,7 +394,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
394
394
|
}
|
|
395
395
|
]);
|
|
396
396
|
|
|
397
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
397
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_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
|
|
398
398
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
399
399
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
400
400
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -416,7 +416,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
416
416
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
417
417
|
]);
|
|
418
418
|
|
|
419
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
419
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_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
|
|
420
420
|
var CALENDAR_FLAGS = [
|
|
421
421
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
422
422
|
{
|
|
@@ -490,7 +490,7 @@ var CALENDAR_FLAGS = [
|
|
|
490
490
|
}
|
|
491
491
|
];
|
|
492
492
|
|
|
493
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
493
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
|
|
494
494
|
var CRM_FLAGS = [
|
|
495
495
|
{
|
|
496
496
|
name: "--pipeline",
|
|
@@ -595,6 +595,13 @@ var CRM_FLAGS = [
|
|
|
595
595
|
type: "choice",
|
|
596
596
|
meaning: "it renews by itself at its end, or it does not"
|
|
597
597
|
},
|
|
598
|
+
{
|
|
599
|
+
name: "--period",
|
|
600
|
+
value: "<count-unit>",
|
|
601
|
+
role: "value",
|
|
602
|
+
type: "duration",
|
|
603
|
+
meaning: "how often a charge repeats: a count and a calendar unit, such as 1-month"
|
|
604
|
+
},
|
|
598
605
|
{
|
|
599
606
|
name: "--opening-balance",
|
|
600
607
|
value: "<decimal>",
|
|
@@ -633,7 +640,7 @@ var CRM_FLAGS = [
|
|
|
633
640
|
}
|
|
634
641
|
];
|
|
635
642
|
|
|
636
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
643
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_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
|
|
637
644
|
var HOW_FLAGS = [
|
|
638
645
|
{
|
|
639
646
|
name: "--limit",
|
|
@@ -919,6 +926,7 @@ var HOW_FLAGS = [
|
|
|
919
926
|
replaces: ["--expected"]
|
|
920
927
|
},
|
|
921
928
|
{ name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
|
|
929
|
+
{ name: "--with-muted", role: "mode", type: "switch", meaning: "also read the chats the owner muted" },
|
|
922
930
|
{
|
|
923
931
|
name: "--for-everyone",
|
|
924
932
|
role: "mode",
|
|
@@ -1211,6 +1219,7 @@ var HOW_FLAGS = [
|
|
|
1211
1219
|
{ name: "--retract", role: "action", type: "switch", meaning: "take the owner's vote back" },
|
|
1212
1220
|
{ name: "--revoke", role: "action", type: "switch", meaning: "forget every login given to a browser app" },
|
|
1213
1221
|
{ name: "--track", role: "action", type: "switch", meaning: "also do it daily while serve runs" },
|
|
1222
|
+
{ name: "--undo", role: "mode", type: "switch", meaning: "put back what the last change replaced, not a new value" },
|
|
1214
1223
|
{
|
|
1215
1224
|
name: "--transcribe",
|
|
1216
1225
|
role: "action",
|
|
@@ -1629,7 +1638,7 @@ var HOW_FLAGS = [
|
|
|
1629
1638
|
}
|
|
1630
1639
|
];
|
|
1631
1640
|
|
|
1632
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1641
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
|
|
1633
1642
|
var KNOWLEDGE_FLAGS = [
|
|
1634
1643
|
{
|
|
1635
1644
|
name: "--quote",
|
|
@@ -1661,7 +1670,7 @@ var KNOWLEDGE_FLAGS = [
|
|
|
1661
1670
|
}
|
|
1662
1671
|
];
|
|
1663
1672
|
|
|
1664
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1673
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1665
1674
|
var MAIL_FLAGS = [
|
|
1666
1675
|
{
|
|
1667
1676
|
name: "--cc",
|
|
@@ -1691,7 +1700,7 @@ var MAIL_FLAGS = [
|
|
|
1691
1700
|
}
|
|
1692
1701
|
];
|
|
1693
1702
|
|
|
1694
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1703
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
|
|
1695
1704
|
var PRIVACY_FLAGS = [
|
|
1696
1705
|
{
|
|
1697
1706
|
name: "--about-text",
|
|
@@ -1752,8 +1761,15 @@ var PRIVACY_FLAGS = [
|
|
|
1752
1761
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1753
1762
|
];
|
|
1754
1763
|
|
|
1755
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1764
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
|
|
1756
1765
|
var SCHEDULE_FLAGS = [
|
|
1766
|
+
{
|
|
1767
|
+
name: "--locale",
|
|
1768
|
+
value: "<code>",
|
|
1769
|
+
role: "target",
|
|
1770
|
+
type: "string",
|
|
1771
|
+
meaning: "a human language, as an ISO 639-1 code such as en or ru: which language's version it acts on"
|
|
1772
|
+
},
|
|
1757
1773
|
{
|
|
1758
1774
|
name: "--notify-on",
|
|
1759
1775
|
value: "<when>",
|
|
@@ -1778,7 +1794,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1778
1794
|
}
|
|
1779
1795
|
];
|
|
1780
1796
|
|
|
1781
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1797
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_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
|
|
1782
1798
|
var WHAT_FLAGS = [
|
|
1783
1799
|
{
|
|
1784
1800
|
name: "--analysis-provider",
|
|
@@ -1794,6 +1810,13 @@ var WHAT_FLAGS = [
|
|
|
1794
1810
|
type: "choice",
|
|
1795
1811
|
meaning: "who computes embeddings: a local model or a configured remote model service"
|
|
1796
1812
|
},
|
|
1813
|
+
{
|
|
1814
|
+
name: "--region",
|
|
1815
|
+
value: "<country>",
|
|
1816
|
+
role: "mode",
|
|
1817
|
+
type: "string",
|
|
1818
|
+
meaning: "the two-letter country code, such as ru, that phone numbers written without + are read in"
|
|
1819
|
+
},
|
|
1797
1820
|
{
|
|
1798
1821
|
name: "--consent-provider",
|
|
1799
1822
|
value: "<identity>",
|
|
@@ -2322,7 +2345,13 @@ var WHAT_FLAGS = [
|
|
|
2322
2345
|
meaning: "who joins by the link asks first, and an admin lets them in"
|
|
2323
2346
|
},
|
|
2324
2347
|
{ name: "--can", value: "<rights>", role: "value", type: "list", meaning: "what an admin may do, comma-separated" },
|
|
2325
|
-
{
|
|
2348
|
+
{
|
|
2349
|
+
name: "--channel",
|
|
2350
|
+
role: "value",
|
|
2351
|
+
type: "switch",
|
|
2352
|
+
otherValues: ["channel"],
|
|
2353
|
+
meaning: "a channel instead of a group (a switch), or what a message is written for (<channel>), such as email"
|
|
2354
|
+
},
|
|
2326
2355
|
{
|
|
2327
2356
|
name: "--certainty",
|
|
2328
2357
|
value: "<n>",
|
|
@@ -2504,14 +2533,7 @@ var WHAT_FLAGS = [
|
|
|
2504
2533
|
type: "id",
|
|
2505
2534
|
meaning: "the stored calendar event it is linked to, or none to unlink"
|
|
2506
2535
|
},
|
|
2507
|
-
{
|
|
2508
|
-
name: "--every",
|
|
2509
|
-
value: "<duration>",
|
|
2510
|
-
role: "value",
|
|
2511
|
-
type: "duration",
|
|
2512
|
-
otherValues: ["count-unit"],
|
|
2513
|
-
meaning: "repeat this often: a length of time for a timer (<duration>), a count and a calendar unit for a charge, such as 1-month (<count-unit>)"
|
|
2514
|
-
},
|
|
2536
|
+
{ name: "--every", value: "<duration>", role: "value", type: "duration", meaning: "repeat this often" },
|
|
2515
2537
|
{
|
|
2516
2538
|
name: "--evidence",
|
|
2517
2539
|
value: "<ref...>",
|
|
@@ -2538,7 +2560,7 @@ var WHAT_FLAGS = [
|
|
|
2538
2560
|
value: "<file>",
|
|
2539
2561
|
role: "value",
|
|
2540
2562
|
type: "path",
|
|
2541
|
-
meaning: "a file to send with
|
|
2563
|
+
meaning: "a file it reads: one to send with a message, the text its caption, or the new text of a write"
|
|
2542
2564
|
},
|
|
2543
2565
|
{
|
|
2544
2566
|
name: "--filename",
|
|
@@ -2762,7 +2784,7 @@ var WHAT_FLAGS = [
|
|
|
2762
2784
|
}
|
|
2763
2785
|
];
|
|
2764
2786
|
|
|
2765
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2787
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_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
|
|
2766
2788
|
var FLAG_TYPES = [
|
|
2767
2789
|
"switch",
|
|
2768
2790
|
"count",
|
|
@@ -2858,6 +2880,7 @@ var verbs = [
|
|
|
2858
2880
|
["status", "how a thing stands right now"],
|
|
2859
2881
|
["check", "verify, and change nothing; the answer says what is wrong and how to fix it"],
|
|
2860
2882
|
["test", "run rules over what is already stored and say what they would have done, doing none of it"],
|
|
2883
|
+
["preview", "render what would be sent or written, from what is stored or a draft; sends and saves nothing"],
|
|
2861
2884
|
["apply", "run the owner's saved rules over what is already stored and change what they match; dry run unless --yes"],
|
|
2862
2885
|
["scan", "read stored messages for what a rule finds, such as tasks, and list it; records it only with --yes"],
|
|
2863
2886
|
["pause", "stop what a running process does for a profile, without stopping the process"],
|
|
@@ -3177,7 +3200,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3177
3200
|
]
|
|
3178
3201
|
});
|
|
3179
3202
|
|
|
3180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3181
3204
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3182
3205
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3183
3206
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3400,7 +3423,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3400
3423
|
}
|
|
3401
3424
|
}, "runCommandForAgent");
|
|
3402
3425
|
|
|
3403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3404
3427
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3405
3428
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3406
3429
|
var message = pipe(
|
|
@@ -3659,7 +3682,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3659
3682
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3660
3683
|
}, "failed");
|
|
3661
3684
|
|
|
3662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3663
3686
|
import { randomUUID } from "node:crypto";
|
|
3664
3687
|
var MATCHES = 8;
|
|
3665
3688
|
var ANSWER = answerSchema();
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorCodes,
|
|
5
5
|
isCliError,
|
|
6
6
|
visibleControls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VUBZFMGP.js";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_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
|
|
13
13
|
var EXIT_CODES = {
|
|
14
14
|
validation_error: 2,
|
|
15
15
|
configuration_error: 3,
|
|
@@ -1306,7 +1306,7 @@ function unwrap(schema) {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
__name(unwrap, "unwrap");
|
|
1308
1308
|
|
|
1309
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1309
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
1310
1310
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1311
1311
|
var effectsSchema = strictObject({
|
|
1312
1312
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1943,7 +1943,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1943
1943
|
}
|
|
1944
1944
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1945
1945
|
|
|
1946
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1946
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
1947
1947
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
1948
1948
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
1949
1949
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -1985,7 +1985,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
1985
1985
|
return String(value);
|
|
1986
1986
|
}), "fill");
|
|
1987
1987
|
|
|
1988
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1988
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
1989
1989
|
var MAX_NEXT_STEPS = 2;
|
|
1990
1990
|
var COMPACT_FLAG = "--compact";
|
|
1991
1991
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2097,7 +2097,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2097
2097
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2098
2098
|
].join("\n"), "jsonlOf");
|
|
2099
2099
|
|
|
2100
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2100
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
2101
2101
|
var CRASH_CODE = "internal_error";
|
|
2102
2102
|
var CRASH_REASON = "command.crashed";
|
|
2103
2103
|
var errorObjectSchema = strictObject({
|
|
@@ -2190,7 +2190,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2190
2190
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2191
2191
|
]);
|
|
2192
2192
|
|
|
2193
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2193
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
2194
2194
|
var SAME_COMMAND = "*";
|
|
2195
2195
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2196
2196
|
var stepSchema = union([
|
|
@@ -2269,7 +2269,7 @@ var STEPS = defineSteps([
|
|
|
2269
2269
|
}
|
|
2270
2270
|
]);
|
|
2271
2271
|
|
|
2272
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2272
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
2273
2273
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
2274
2274
|
if (isCliError(failure))
|
|
2275
2275
|
return failure;
|
|
@@ -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-VUBZFMGP.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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/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 ?? {};
|
|
@@ -44,7 +44,7 @@ var wrapping = /* @__PURE__ */ __name((error, original) => {
|
|
|
44
44
|
var storeDamaged = /* @__PURE__ */ __name((error, next) => damageIn(error) ? wrapping(new CliError("configuration_error", `the store file is damaged${next ? `; \`${next}\` says what is damaged and what to do` : ""}`, { reason: "store.damaged" }), error) : error, "storeDamaged");
|
|
45
45
|
var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
48
48
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
49
49
|
"authorization",
|
|
50
50
|
"cookie",
|