@wirecat/tg-cli 0.106.0 → 0.107.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-TIGHDHUK.js → adapter-PN5AXCJ7.js} +37 -37
- package/dist/bundle/{all-profiles-N4DLSGWY.js → all-profiles-SDHNKZQQ.js} +5 -5
- package/dist/bundle/{anthropic-D2T2QRLR.js → anthropic-F3BXQLYB.js} +3 -3
- package/dist/bundle/{app-server-FZTDNSPB.js → app-server-XDKMWVCD.js} +34 -34
- package/dist/bundle/{bot-api-OMUV6EIK.js → bot-api-YXJL4CEV.js} +38 -38
- package/dist/bundle/{bot-history-P2MWYLXW.js → bot-history-SDLHR7PV.js} +10 -10
- package/dist/bundle/{bun-UA5PRMLC.js → bun-SMH7PKUS.js} +2 -2
- package/dist/bundle/{bun-sqlite-XVRVJ7A2.js → bun-sqlite-KB6PSTWH.js} +2 -2
- package/dist/bundle/{chunk-T4UTTH3A.js → chunk-3UEFJ75D.js} +1 -1
- package/dist/bundle/{chunk-ID6TO5P5.js → chunk-44UANKAI.js} +9 -9
- package/dist/bundle/{chunk-R2F6U4F3.js → chunk-465FPHSG.js} +7 -7
- package/dist/bundle/{chunk-C2MKA7SX.js → chunk-53QVFV34.js} +1 -1
- package/dist/bundle/{chunk-PEIDCYF5.js → chunk-53RW4KLL.js} +1 -1
- package/dist/bundle/{chunk-7P6ZCUPN.js → chunk-5QBTHR57.js} +2 -2
- package/dist/bundle/{chunk-QQYM26DA.js → chunk-6FSG6QZH.js} +1 -1
- package/dist/bundle/{chunk-XFXTB522.js → chunk-A4DS5ANQ.js} +1 -1
- package/dist/bundle/{chunk-LGKLQE2I.js → chunk-AWBJSYX6.js} +1 -1
- package/dist/bundle/{chunk-ADLIUGL2.js → chunk-BGVODG6P.js} +2 -2
- package/dist/bundle/{chunk-T3ZLOMWW.js → chunk-BMXGEQDA.js} +4 -4
- package/dist/bundle/{chunk-AQSKZMBD.js → chunk-BYDDYOF4.js} +7 -7
- package/dist/bundle/{chunk-JOSUY2NX.js → chunk-CJJVFGFX.js} +1 -1
- package/dist/bundle/{chunk-WLGQTYIO.js → chunk-DBZVF73F.js} +2 -2
- package/dist/bundle/{chunk-XQV7EMAI.js → chunk-DFZBGU4G.js} +4 -4
- package/dist/bundle/{chunk-LSP2NCNL.js → chunk-GGAG3G7B.js} +47 -47
- package/dist/bundle/{chunk-QWTHUKS4.js → chunk-GJS26XEB.js} +4 -4
- package/dist/bundle/{chunk-EW3Y44NV.js → chunk-H4LIQVPN.js} +9 -9
- package/dist/bundle/{chunk-6BQUCCBD.js → chunk-IY7IEM56.js} +4 -4
- package/dist/bundle/{chunk-2J3TUUCO.js → chunk-JAWXJILO.js} +2 -2
- package/dist/bundle/{chunk-GD6BOLZP.js → chunk-JZOXKRDG.js} +11 -6
- package/dist/bundle/{chunk-T5OFRHDS.js → chunk-KROO42KC.js} +5 -5
- package/dist/bundle/{chunk-WPRLG5SL.js → chunk-LA2OUJK5.js} +8 -8
- package/dist/bundle/{chunk-BLWCHZCW.js → chunk-MOZX3JX3.js} +2 -2
- package/dist/bundle/{chunk-2GQCWNX5.js → chunk-NCWB3KXP.js} +1 -1
- package/dist/bundle/{chunk-QI75LME5.js → chunk-NMTFZNFU.js} +26 -26
- package/dist/bundle/{chunk-E5Z4FGRD.js → chunk-NSQL3YRD.js} +20 -20
- package/dist/bundle/{chunk-XMKKBDEW.js → chunk-NUVHRCUK.js} +276 -259
- package/dist/bundle/{chunk-BZUO2KFV.js → chunk-O7VQHFMZ.js} +1 -1
- package/dist/bundle/{chunk-6XXI3AHJ.js → chunk-OIHAM73W.js} +1 -1
- package/dist/bundle/{chunk-PAHBZPZN.js → chunk-P4A27ETD.js} +46 -46
- package/dist/bundle/{chunk-ELQ5ORY2.js → chunk-P5KMLJQR.js} +195 -195
- package/dist/bundle/{chunk-EUTOFAUT.js → chunk-P5UG655O.js} +2 -2
- package/dist/bundle/{recognize-T5TPTI6P.js → chunk-PYRJO6B3.js} +6 -6
- package/dist/bundle/{chunk-C6NTI37N.js → chunk-REJM262E.js} +10 -10
- package/dist/bundle/{chunk-EPKGNUOZ.js → chunk-RGNKRI5T.js} +20 -20
- package/dist/bundle/{chunk-XXLAGQDN.js → chunk-STGY3EAZ.js} +1 -1
- package/dist/bundle/{chunk-VYFKWPIS.js → chunk-TEHAIU6I.js} +42 -42
- package/dist/bundle/{chunk-V7OXTQBY.js → chunk-TFV4UPQZ.js} +3 -3
- package/dist/bundle/{chunk-PHPXTRMS.js → chunk-TKCZYJAT.js} +374 -308
- package/dist/bundle/{chunk-XX37LKXG.js → chunk-VMKPRAIB.js} +4 -4
- package/dist/bundle/{chunk-GHAQXUH3.js → chunk-WFG7KFM4.js} +1 -1
- package/dist/bundle/{chunk-ONK66VVG.js → chunk-WS3S7DXT.js} +1 -1
- package/dist/bundle/{chunk-DECFDUNW.js → chunk-WXIGT6FY.js} +11 -11
- package/dist/bundle/{chunk-FO33YFWF.js → chunk-X7M7YZPF.js} +5 -5
- package/dist/bundle/{chunk-DC7O7TVJ.js → chunk-YA44IPCS.js} +1 -1
- package/dist/bundle/{chunk-67GS5BZI.js → chunk-YSDA3EWT.js} +92 -92
- package/dist/bundle/{command-contract-N5FA573V.js → command-contract-B4DA4MXP.js} +12 -12
- package/dist/bundle/decode-WEP3HD56.js +159 -0
- package/dist/bundle/{echarts-WLPTUTMR.js → echarts-MRMILSAF.js} +2 -2
- package/dist/bundle/{embed-IALJOWZJ.js → embed-LCLTUVUD.js} +3 -3
- package/dist/bundle/{embedder-ZY2TS2XJ.js → embedder-O4WNEXUC.js} +6 -6
- package/dist/bundle/{entry-67RA75VS.js → entry-7HDX6BDR.js} +3 -3
- package/dist/bundle/{first-run-QN3UUBJW.js → first-run-M7YVVQJS.js} +5 -5
- package/dist/bundle/{first-screen-FK4ZJQJY.js → first-screen-MXW3UZFB.js} +13 -13
- package/dist/bundle/{identity-X3YA364I.js → identity-EEMHQOTN.js} +1 -1
- package/dist/bundle/{instructions-355MU4CT.js → instructions-YIH3J4TI.js} +1 -1
- package/dist/bundle/{node-UGJWZLVB.js → node-YWT7RFN6.js} +2 -2
- package/dist/bundle/{node-sqlite-FJFIOC3K.js → node-sqlite-LVHTONMA.js} +2 -2
- package/dist/bundle/{oauth-EZGVL3PP.js → oauth-CADZB7TT.js} +4 -4
- package/dist/bundle/{open-ANYJ5AKD.js → open-AMRU27KK.js} +1 -1
- package/dist/bundle/{process-JVAQXITD.js → process-JC76J5UD.js} +1 -1
- package/dist/bundle/{program-QGSZY5SZ.js → program-FI6MTY2V.js} +40 -40
- package/dist/bundle/{prompt-EWF4ZSJO.js → prompt-SPYTHKHN.js} +2 -2
- package/dist/bundle/recognize-G5VVM6MU.js +22 -0
- package/dist/bundle/{remote-KOAALKIC.js → remote-Z3HW42CH.js} +4 -4
- package/dist/bundle/{rerank-MCXFZFRH.js → rerank-QJ5NLZUU.js} +4 -4
- package/dist/bundle/{serve-QEVXXJ2G.js → serve-3I4C6Y5X.js} +6 -6
- package/dist/bundle/{server-Y3ZLG44J.js → server-2L4BONHN.js} +26 -26
- package/dist/bundle/server-7TJ337SR.js +55 -0
- package/dist/bundle/{state-F2ZJV2VP.js → state-IXZYPH46.js} +3 -3
- package/dist/bundle/{store-QX7HBTOW.js → store-KS4XIA2R.js} +7 -7
- package/dist/bundle/store-maintenance-command-I3L24P22.js +44 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-6QM3GFZX.js +0 -55
- package/dist/bundle/store-maintenance-command-ZBOQSTHY.js +0 -44
|
@@ -7,7 +7,7 @@ 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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -7,7 +7,7 @@ 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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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");
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X7M7YZPF.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-67SRVSPU.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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");
|
|
@@ -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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-53QVFV34.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-67SRVSPU.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ENTITIES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YSDA3EWT.js";
|
|
6
6
|
import {
|
|
7
7
|
annotate,
|
|
8
8
|
answerSchema,
|
|
9
9
|
describeOptions,
|
|
10
10
|
keyForCommand,
|
|
11
11
|
metaOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GGAG3G7B.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError,
|
|
15
15
|
jsonSchemaOf
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
22
22
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
23
23
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
|
|
24
24
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -48,7 +48,7 @@ var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
|
|
|
48
48
|
return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
|
|
49
49
|
}, "answerProjectionSchema");
|
|
50
50
|
|
|
51
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
52
52
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
53
53
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
54
54
|
const entity = answerEntitySchema(command);
|
|
@@ -8,14 +8,14 @@ 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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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;
|
|
@@ -260,7 +260,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
260
260
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
261
261
|
}, "redactText");
|
|
262
262
|
|
|
263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
264
264
|
var REDACTED = "[redacted]";
|
|
265
265
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
266
266
|
if (!record)
|
|
@@ -10,7 +10,7 @@ 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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-BYDDYOF4.js";
|
|
32
32
|
import {
|
|
33
33
|
__name
|
|
34
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -540,7 +540,7 @@ function toError(value) {
|
|
|
540
540
|
}
|
|
541
541
|
__name(toError, "toError");
|
|
542
542
|
|
|
543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
544
544
|
var CALLER_META_KEY = "wirecat.dev/caller";
|
|
545
545
|
var PROXY_CLIENT_NAME = "all-profiles";
|
|
546
546
|
var NAME = /^[\w .@()/+-]{1,64}$/;
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JAWXJILO.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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|