@wirecat/tg-cli 0.102.0 → 0.104.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/README.md +1 -0
- package/dist/bin/tg.js +31 -19
- package/dist/bundle/{adapter-M2HRSFFL.js → adapter-QTAHA2JC.js} +49 -48
- package/dist/bundle/{all-profiles-GOD2QNTK.js → all-profiles-7CXBVRFU.js} +13 -13
- package/dist/bundle/{anthropic-LKU7RWMA.js → anthropic-FWBQ7JHT.js} +10 -10
- package/dist/bundle/app-server-XF4GY2Y6.js +222 -0
- package/dist/bundle/{bot-api-X3MPFVPL.js → bot-api-XDMMWRYI.js} +50 -49
- package/dist/bundle/{bot-history-OUMVVG22.js → bot-history-TU2X7RNN.js} +19 -19
- package/dist/bundle/{bun-LIZ6MKFS.js → bun-6GSDPKNZ.js} +5 -5
- package/dist/bundle/{bun-sqlite-2IFQYQ44.js → bun-sqlite-AO27E35V.js} +8 -8
- package/dist/bundle/{chunk-ZZLKX62Z.js → chunk-2ABQZVK4.js} +3 -3
- package/dist/bundle/{chunk-5DFGJPT6.js → chunk-3GGU65YR.js} +9 -7
- package/dist/bundle/{chunk-QEPZUFPL.js → chunk-3XZQQGCB.js} +59 -59
- package/dist/bundle/{chunk-W5EB4JLV.js → chunk-54RJDS3X.js} +6 -6
- package/dist/bundle/{chunk-WMOEOVWZ.js → chunk-5D4AEUVA.js} +3 -3
- package/dist/bundle/{chunk-BBC546ZA.js → chunk-5K7E36ND.js} +6 -6
- package/dist/bundle/{chunk-OEJ5DMCX.js → chunk-67SRVSPU.js} +10 -10
- package/dist/bundle/{chunk-TXBUDJ3P.js → chunk-6K4QGBXU.js} +5 -5
- package/dist/bundle/{chunk-264DAFJV.js → chunk-6YUFPSSE.js} +7 -7
- package/dist/bundle/{chunk-HLAZ65AW.js → chunk-7WHM3KNI.js} +5 -5
- package/dist/bundle/{chunk-AVWK4NCW.js → chunk-ADLS6FVG.js} +13 -13
- package/dist/bundle/{chunk-M5UH5CF3.js → chunk-ADMV4WGV.js} +8 -8
- package/dist/bundle/{chunk-WVEHUKCZ.js → chunk-B7TTM75D.js} +4 -4
- package/dist/bundle/{chunk-OHBHHBYL.js → chunk-BI2AXVHY.js} +6 -6
- package/dist/bundle/{chunk-XXTJUZMB.js → chunk-BIWJK5YU.js} +4 -4
- package/dist/bundle/{chunk-Q2NYEX4A.js → chunk-BKVJNPA6.js} +71 -30
- package/dist/bundle/{chunk-5D6OJREA.js → chunk-C5N7G6UH.js} +4 -4
- package/dist/bundle/{chunk-UK3GAN7Q.js → chunk-DANCAYRP.js} +16 -11
- package/dist/bundle/{chunk-7BFO3DY6.js → chunk-DFDN6AUB.js} +2 -2
- package/dist/bundle/{chunk-2XBSVRT2.js → chunk-FG2QTYEF.js} +4 -4
- package/dist/bundle/{chunk-DE7LFMY2.js → chunk-FRZHF2X6.js} +13 -11
- package/dist/bundle/{chunk-VUJ34PEQ.js → chunk-FUWSIEYY.js} +15 -15
- package/dist/bundle/{chunk-GSKFAE3I.js → chunk-GE22MYA6.js} +158 -56
- package/dist/bundle/{chunk-5VSR5ENL.js → chunk-GZ5CR5QB.js} +11 -11
- package/dist/bundle/{chunk-PSH7K6TL.js → chunk-HOR7DS3P.js} +25 -25
- package/dist/bundle/{chunk-CLWYQNSC.js → chunk-KRLCUBII.js} +9 -9
- package/dist/bundle/chunk-LJCGQMGN.js +264 -0
- package/dist/bundle/{chunk-OCWARAFE.js → chunk-LOFG3Q35.js} +5 -5
- package/dist/bundle/{chunk-SRU3OF4R.js → chunk-LSQUNABH.js} +5 -5
- package/dist/bundle/{chunk-MGG7JSNO.js → chunk-MB3PCNRL.js} +6 -6
- package/dist/bundle/{chunk-U4RRZUNP.js → chunk-MCD2GANK.js} +35 -282
- package/dist/bundle/{chunk-5KU4UQBM.js → chunk-MFS52LTZ.js} +4 -4
- package/dist/bundle/{chunk-ENE5CSVY.js → chunk-MR4LW4EC.js} +2176 -1927
- package/dist/bundle/{chunk-2SUTCDGO.js → chunk-N6VHHMSZ.js} +5 -5
- package/dist/bundle/chunk-O5EHUB2V.js +2 -0
- package/dist/bundle/{chunk-FBWOQMPE.js → chunk-P3WU6UYJ.js} +227 -283
- package/dist/bundle/{chunk-F2TG3BA2.js → chunk-PHQTSF44.js} +9 -9
- package/dist/bundle/{chunk-AUOXTGTU.js → chunk-PWIE7VBL.js} +4 -4
- package/dist/bundle/{chunk-TV5DGHBT.js → chunk-QVTCOBN5.js} +263 -249
- package/dist/bundle/{chunk-JFSVXMN6.js → chunk-QY7MW7HK.js} +6 -6
- package/dist/bundle/{chunk-V52SBQYF.js → chunk-RRWMYR2H.js} +18 -17
- package/dist/bundle/{chunk-4QB4WDLT.js → chunk-RTAV5XNT.js} +15 -15
- package/dist/bundle/{server-YWL4HDOP.js → chunk-SZE6425L.js} +54 -67
- package/dist/bundle/{chunk-DG62L57H.js → chunk-T4SDOYPY.js} +20 -20
- package/dist/bundle/{chunk-334UBWOB.js → chunk-TJR37WKA.js} +14 -14
- package/dist/bundle/{chunk-ERQDBK5I.js → chunk-U2AK4QXY.js} +23 -5
- package/dist/bundle/{chunk-BQYTIYGB.js → chunk-UDXRDFHN.js} +97 -96
- package/dist/bundle/{chunk-Y4XSWI22.js → chunk-UT6G2X7T.js} +7 -6
- package/dist/bundle/{chunk-4PDEQL6T.js → chunk-UTVANQN5.js} +6 -6
- package/dist/bundle/{chunk-FOUE7XLK.js → chunk-UVYY5EIS.js} +4 -4
- package/dist/bundle/{chunk-PYTOIDSM.js → chunk-VMU4SGCE.js} +7 -7
- package/dist/bundle/{chunk-ZJVZXJOG.js → chunk-WAGDZB62.js} +5 -5
- package/dist/bundle/{chunk-YHB57PFN.js → chunk-Y3VNNLUT.js} +4 -4
- package/dist/bundle/{chunk-BJG6JA5U.js → chunk-Y5E2WNWB.js} +4 -4
- package/dist/bundle/{chunk-ZRNRQFTF.js → chunk-Y5PJQPMQ.js} +5 -5
- package/dist/bundle/{chunk-CRZPQQHE.js → chunk-YBQ753RP.js} +26 -26
- package/dist/bundle/{chunk-QL7CQ6VZ.js → chunk-YD6ZQ6LM.js} +50 -48
- package/dist/bundle/{chunk-UR6ASUSG.js → chunk-ZBH7Z6WX.js} +6 -6
- package/dist/bundle/{chunk-AFV74GK3.js → chunk-ZVVMGPBJ.js} +2 -2
- package/dist/bundle/command-contract-RICU4OWW.js +32 -0
- package/dist/bundle/{dist-RJMT44PL.js → dist-I7OZPHAZ.js} +3 -3
- package/dist/bundle/{echarts-27W2CIBD.js → echarts-2YP32GX5.js} +5 -5
- package/dist/bundle/{embed-FGJ273X2.js → embed-QNWVBCL5.js} +9 -8
- package/dist/bundle/{embedder-7ELL3CQ3.js → embedder-ENS7ARPP.js} +12 -11
- package/dist/bundle/entry-MPYSQPZO.js +14 -0
- package/dist/bundle/first-run-YLB7RNGP.js +24 -0
- package/dist/bundle/first-screen-AYOE4JFC.js +30 -0
- package/dist/bundle/identity-XQLO7NYW.js +11 -0
- package/dist/bundle/instructions-5F4XG3B6.js +11 -0
- package/dist/bundle/{mcp-4Y37G2UY.js → mcp-OQBZXELQ.js} +5 -5
- package/dist/bundle/{node-RSL3HANO.js → node-JOUDFPFN.js} +5 -5
- package/dist/bundle/{node-IUL5HSYI.js → node-P4E63KXA.js} +5 -5
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/{node-sqlite-7R3PYQGJ.js → node-sqlite-ZY6ZFFXS.js} +8 -8
- package/dist/bundle/oauth-KOR3ZNTA.js +18 -0
- package/dist/bundle/open-JACXAGY5.js +20 -0
- package/dist/bundle/{process-RMV3AKLB.js → process-7W3X5VME.js} +5 -5
- package/dist/bundle/{program-PIUYQHBF.js → program-NSZWGHNJ.js} +52 -51
- package/dist/bundle/prompt-CRRG5UB6.js +13 -0
- package/dist/bundle/proxy-transport-YSBYG26I.js +17 -0
- package/dist/bundle/{recognize-3GMOLZF4.js → recognize-ASXEB45M.js} +9 -9
- package/dist/bundle/remote-CB3GAXGJ.js +27 -0
- package/dist/bundle/{rerank-W3OSXXBN.js → rerank-PDD5BPID.js} +10 -9
- package/dist/bundle/{serve-ZCPO44NO.js → serve-M4XFAYUM.js} +13 -13
- package/dist/bundle/{server-FXU4QFRB.js → server-IN673OYO.js} +37 -35
- package/dist/bundle/server-ISWPSKQ6.js +55 -0
- package/dist/bundle/{state-MJPTDIB5.js → state-626GOOVZ.js} +9 -9
- package/dist/bundle/{store-6VNQG56O.js → store-6JM4HJU5.js} +14 -14
- package/dist/bundle/store-maintenance-command-DI2UX4V3.js +44 -0
- package/dist/bundle/tg.js +8 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/tg-cli/SKILL.md +1 -0
- package/dist/bundle/chunk-2SJOUK6J.js +0 -2
- package/dist/bundle/command-contract-A6VZN3ZR.js +0 -31
- package/dist/bundle/entry-SEE5YWIX.js +0 -14
- package/dist/bundle/first-run-BD7FEC3W.js +0 -24
- package/dist/bundle/first-screen-ASZV6LSA.js +0 -29
- package/dist/bundle/identity-QR4F42T6.js +0 -11
- package/dist/bundle/instructions-L74K64PV.js +0 -9
- package/dist/bundle/node-UPPL626U.js +0 -21
- package/dist/bundle/oauth-4ESGXF6U.js +0 -18
- package/dist/bundle/open-DFYEUGTA.js +0 -20
- package/dist/bundle/prompt-H7GYQQLL.js +0 -13
- package/dist/bundle/proxy-transport-G4MA6BGU.js +0 -17
- package/dist/bundle/remote-IRWTCI2B.js +0 -26
- package/dist/bundle/store-maintenance-command-62TQTMER.js +0 -43
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
__name
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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",
|
|
@@ -1918,7 +1918,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1918
1918
|
}
|
|
1919
1919
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1920
1920
|
|
|
1921
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1921
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
1922
1922
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
1923
1923
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
1924
1924
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -1960,7 +1960,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
1960
1960
|
return String(value);
|
|
1961
1961
|
}), "fill");
|
|
1962
1962
|
|
|
1963
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1963
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
1964
1964
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1965
1965
|
var effectsSchema = strictObject({
|
|
1966
1966
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1968,7 +1968,7 @@ var effectsSchema = strictObject({
|
|
|
1968
1968
|
});
|
|
1969
1969
|
var writes = /* @__PURE__ */ __name((effects) => effects === void 0 || effects.remote === "write" || effects.local === "write", "writes");
|
|
1970
1970
|
|
|
1971
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1971
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
1972
1972
|
var MAX_NEXT_STEPS = 2;
|
|
1973
1973
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
1974
1974
|
var reference = pipe(string(), regex(/^[a-z]+:\S+$/, "a reference such as `note:42`"));
|
|
@@ -2053,7 +2053,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2053
2053
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2054
2054
|
].join("\n"), "jsonlOf");
|
|
2055
2055
|
|
|
2056
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2056
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
2057
2057
|
var CRASH_CODE = "internal_error";
|
|
2058
2058
|
var CRASH_REASON = "command.crashed";
|
|
2059
2059
|
var errorObjectSchema = strictObject({
|
|
@@ -2134,7 +2134,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2134
2134
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2135
2135
|
]);
|
|
2136
2136
|
|
|
2137
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2137
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
2138
2138
|
var SAME_COMMAND = "*";
|
|
2139
2139
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2140
2140
|
var stepSchema = union([
|
|
@@ -2213,7 +2213,7 @@ var STEPS = defineSteps([
|
|
|
2213
2213
|
}
|
|
2214
2214
|
]);
|
|
2215
2215
|
|
|
2216
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2216
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
2217
2217
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2218
2218
|
var logRecordSchema = strictObject({
|
|
2219
2219
|
time: isoTime,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openCache
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KRLCUBII.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
isCliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-67SRVSPU.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
14
|
// dist/telegram/map.js
|
|
15
15
|
import { extname } from "node:path";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
holdLock,
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-54RJDS3X.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-67SRVSPU.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
__commonJS,
|
|
5
5
|
__name,
|
|
6
6
|
__toESM
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
8
8
|
|
|
9
9
|
// node_modules/.pnpm/@stablelib+base64@1.0.1/node_modules/@stablelib/base64/lib/base64.js
|
|
10
10
|
var require_base64 = __commonJS({
|
|
@@ -3615,7 +3615,7 @@ __name(redactSensitive, "redactSensitive");
|
|
|
3615
3615
|
async function checkCredentialsFileSafety(path2, onWarn = (m) => console.warn(`anthropic-sdk: ${m}`)) {
|
|
3616
3616
|
if (typeof process === "undefined" || process.platform === "win32")
|
|
3617
3617
|
return;
|
|
3618
|
-
const { fs } = await import("./node-
|
|
3618
|
+
const { fs } = await import("./node-TLZSIHIJ.js");
|
|
3619
3619
|
let resolved = path2;
|
|
3620
3620
|
let st;
|
|
3621
3621
|
try {
|
|
@@ -3637,7 +3637,7 @@ async function checkCredentialsFileSafety(path2, onWarn = (m) => console.warn(`a
|
|
|
3637
3637
|
}
|
|
3638
3638
|
__name(checkCredentialsFileSafety, "checkCredentialsFileSafety");
|
|
3639
3639
|
async function writeCredentialsFileAtomic(targetPath, data) {
|
|
3640
|
-
const { fs, path: path2 } = await import("./node-
|
|
3640
|
+
const { fs, path: path2 } = await import("./node-TLZSIHIJ.js");
|
|
3641
3641
|
const dir = path2.dirname(targetPath);
|
|
3642
3642
|
await fs.promises.mkdir(dir, { recursive: true, mode: 448 });
|
|
3643
3643
|
const tmpPath = `${targetPath}.${process.pid}.${Math.random().toString(36).slice(2)}.tmp`;
|
|
@@ -4713,7 +4713,7 @@ var loadConfigWithSource = /* @__PURE__ */ __name(async (profile) => {
|
|
|
4713
4713
|
return null;
|
|
4714
4714
|
}
|
|
4715
4715
|
validateProfileName(profileName);
|
|
4716
|
-
const { fs, path: path2 } = await import("./node-
|
|
4716
|
+
const { fs, path: path2 } = await import("./node-TLZSIHIJ.js");
|
|
4717
4717
|
const configPath = path2.join(rootConfigPath, "configs", `${profileName}.json`);
|
|
4718
4718
|
let configRaw;
|
|
4719
4719
|
try {
|
|
@@ -4774,14 +4774,14 @@ var getCredentialsPath = /* @__PURE__ */ __name(async (config, profile) => {
|
|
|
4774
4774
|
return null;
|
|
4775
4775
|
}
|
|
4776
4776
|
validateProfileName(profileName);
|
|
4777
|
-
const { path: path2 } = await import("./node-
|
|
4777
|
+
const { path: path2 } = await import("./node-TLZSIHIJ.js");
|
|
4778
4778
|
return path2.join(rootConfigPath, "credentials", `${profileName}.json`);
|
|
4779
4779
|
}, "getCredentialsPath");
|
|
4780
4780
|
var getRootConfigPath = /* @__PURE__ */ __name(async () => {
|
|
4781
4781
|
if (!supportsLocalConfigFiles()) {
|
|
4782
4782
|
return null;
|
|
4783
4783
|
}
|
|
4784
|
-
const { path: path2 } = await import("./node-
|
|
4784
|
+
const { path: path2 } = await import("./node-TLZSIHIJ.js");
|
|
4785
4785
|
const configDir = readEnv("ANTHROPIC_CONFIG_DIR");
|
|
4786
4786
|
if (configDir) {
|
|
4787
4787
|
return configDir;
|
|
@@ -4821,7 +4821,7 @@ var getActiveProfileName = /* @__PURE__ */ __name(async () => {
|
|
|
4821
4821
|
if (profileName) {
|
|
4822
4822
|
return profileName;
|
|
4823
4823
|
}
|
|
4824
|
-
const { fs, path: path2 } = await import("./node-
|
|
4824
|
+
const { fs, path: path2 } = await import("./node-TLZSIHIJ.js");
|
|
4825
4825
|
const filePath = path2.join(rootConfigPath, "active_config");
|
|
4826
4826
|
try {
|
|
4827
4827
|
return (await fs.promises.readFile(filePath, "utf-8")).trim() || "default";
|
|
@@ -4839,7 +4839,7 @@ function identityTokenFromFile(path2) {
|
|
|
4839
4839
|
throw new AnthropicError("Identity token file path is empty");
|
|
4840
4840
|
}
|
|
4841
4841
|
return async () => {
|
|
4842
|
-
const { fs } = await import("./node-
|
|
4842
|
+
const { fs } = await import("./node-TLZSIHIJ.js");
|
|
4843
4843
|
let content;
|
|
4844
4844
|
try {
|
|
4845
4845
|
content = await fs.promises.readFile(path2, "utf-8");
|
|
@@ -4925,7 +4925,7 @@ __name(oidcFederationProvider, "oidcFederationProvider");
|
|
|
4925
4925
|
// node_modules/.pnpm/@anthropic-ai+sdk@1.3.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs
|
|
4926
4926
|
function userOAuthProvider(config) {
|
|
4927
4927
|
return async (opts) => {
|
|
4928
|
-
const { fs } = await import("./node-
|
|
4928
|
+
const { fs } = await import("./node-TLZSIHIJ.js");
|
|
4929
4929
|
await checkCredentialsFileSafety(config.credentialsPath, config.onSafetyWarning);
|
|
4930
4930
|
let raw;
|
|
4931
4931
|
try {
|
|
@@ -5099,7 +5099,7 @@ function resolveIdentityTokenProvider(auth) {
|
|
|
5099
5099
|
__name(resolveIdentityTokenProvider, "resolveIdentityTokenProvider");
|
|
5100
5100
|
function cachedExchangeProvider(exchange, credentialsPath, onCacheWriteError, onSafetyWarning) {
|
|
5101
5101
|
return async (opts) => {
|
|
5102
|
-
const { fs } = await import("./node-
|
|
5102
|
+
const { fs } = await import("./node-TLZSIHIJ.js");
|
|
5103
5103
|
await checkCredentialsFileSafety(credentialsPath, onSafetyWarning);
|
|
5104
5104
|
let existing;
|
|
5105
5105
|
try {
|
|
@@ -9424,7 +9424,7 @@ var EnvironmentWorker = /* @__PURE__ */ (() => {
|
|
|
9424
9424
|
const ctrl = new AbortController();
|
|
9425
9425
|
const detachExternal = linkAbort(externalSignal, ctrl);
|
|
9426
9426
|
const lease = new Lease(ctrl);
|
|
9427
|
-
const agentToolset = await import("./node-
|
|
9427
|
+
const agentToolset = await import("./node-P4E63KXA.js");
|
|
9428
9428
|
let leaseTtlMs;
|
|
9429
9429
|
let runner;
|
|
9430
9430
|
const heartbeatPromise = heartbeatLoop(sessionClient, work, lease, log, this.requestOptions, (ttlMs) => {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ENTITIES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UDXRDFHN.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-GE22MYA6.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError,
|
|
15
15
|
jsonSchemaOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-67SRVSPU.js";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
__name
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readSharedSection,
|
|
5
5
|
writeSharedSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PHQTSF44.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-67SRVSPU.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
15
15
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
16
16
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
17
17
|
var SECTION = "setup";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
__name
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
UNTRUSTED,
|
|
5
5
|
UNTRUSTED_NEUTRAL,
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RRWMYR2H.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5K7E36ND.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-P3WU6UYJ.js";
|
|
21
21
|
import {
|
|
22
22
|
ENTITIES
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UDXRDFHN.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_OUTPUT_BYTES,
|
|
26
26
|
LOCAL_WRITE,
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
authorityAllowed,
|
|
30
30
|
botApiAllowed,
|
|
31
31
|
changesMessenger,
|
|
32
|
+
enclosingTraceId,
|
|
32
33
|
flatten,
|
|
33
34
|
inRun,
|
|
34
35
|
judgedAnswer,
|
|
@@ -40,22 +41,23 @@ import {
|
|
|
40
41
|
readKeysForCommand,
|
|
41
42
|
refuseStoreChange,
|
|
42
43
|
sealed,
|
|
43
|
-
startRecording
|
|
44
|
-
|
|
44
|
+
startRecording,
|
|
45
|
+
traceOf
|
|
46
|
+
} from "./chunk-GE22MYA6.js";
|
|
45
47
|
import {
|
|
46
48
|
currentCaller,
|
|
47
49
|
keepsSuccess,
|
|
48
50
|
runContextOf,
|
|
49
51
|
withCaller
|
|
50
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-FRZHF2X6.js";
|
|
51
53
|
import {
|
|
52
54
|
MAX_BUFFERED_INPUT
|
|
53
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-7WHM3KNI.js";
|
|
54
56
|
import {
|
|
55
57
|
captureStreams,
|
|
56
58
|
errorObjectOf,
|
|
57
59
|
mcpErrorResult
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-T4SDOYPY.js";
|
|
59
61
|
import {
|
|
60
62
|
CliError,
|
|
61
63
|
SNAKE_CASE,
|
|
@@ -94,15 +96,15 @@ import {
|
|
|
94
96
|
unknown,
|
|
95
97
|
word,
|
|
96
98
|
writes
|
|
97
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-67SRVSPU.js";
|
|
98
100
|
import {
|
|
99
101
|
__name
|
|
100
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
101
103
|
|
|
102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
103
105
|
import { Readable } from "node:stream";
|
|
104
106
|
|
|
105
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
107
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
106
108
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
107
109
|
var lintRuleSchema = strictObject({
|
|
108
110
|
id: word,
|
|
@@ -229,7 +231,7 @@ var overridesSchema = array(strictObject({
|
|
|
229
231
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
230
232
|
}));
|
|
231
233
|
|
|
232
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
234
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
233
235
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
234
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");
|
|
235
237
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -287,9 +289,17 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
287
289
|
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
|
|
288
290
|
{
|
|
289
291
|
name: "all",
|
|
290
|
-
members: ["tg", "max", "memo", "drive", "zm", "wa"
|
|
292
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa"],
|
|
291
293
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
|
|
292
294
|
differences: []
|
|
295
|
+
},
|
|
296
|
+
// gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
|
|
297
|
+
// CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
|
|
298
|
+
{
|
|
299
|
+
name: "gcal-shared",
|
|
300
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa", "gcal"],
|
|
301
|
+
covers: ["commands", "upgrade", "notes", "meetings"],
|
|
302
|
+
differences: []
|
|
293
303
|
}
|
|
294
304
|
]);
|
|
295
305
|
var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
|
|
@@ -303,7 +313,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
303
313
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
304
314
|
]);
|
|
305
315
|
|
|
306
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
316
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
307
317
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
308
318
|
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");
|
|
309
319
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -319,7 +329,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
319
329
|
}
|
|
320
330
|
]);
|
|
321
331
|
|
|
322
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
332
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
323
333
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
324
334
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
325
335
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -341,7 +351,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
341
351
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
342
352
|
]);
|
|
343
353
|
|
|
344
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
354
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
345
355
|
var CALENDAR_FLAGS = [
|
|
346
356
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
347
357
|
{
|
|
@@ -399,10 +409,23 @@ var CALENDAR_FLAGS = [
|
|
|
399
409
|
role: "target",
|
|
400
410
|
type: "switch",
|
|
401
411
|
meaning: "act on the whole repeating event, not only this occurrence"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
name: "--following",
|
|
415
|
+
role: "target",
|
|
416
|
+
type: "switch",
|
|
417
|
+
meaning: "act on this occurrence and every later one of the repeating event"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
name: "--to-calendar",
|
|
421
|
+
value: "<id>",
|
|
422
|
+
role: "target",
|
|
423
|
+
type: "id",
|
|
424
|
+
meaning: "the calendar it moves to, of the same account"
|
|
402
425
|
}
|
|
403
426
|
];
|
|
404
427
|
|
|
405
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
428
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
406
429
|
var HOW_FLAGS = [
|
|
407
430
|
{
|
|
408
431
|
name: "--limit",
|
|
@@ -1382,7 +1405,7 @@ var HOW_FLAGS = [
|
|
|
1382
1405
|
}
|
|
1383
1406
|
];
|
|
1384
1407
|
|
|
1385
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1408
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
1386
1409
|
var WHAT_FLAGS = [
|
|
1387
1410
|
{
|
|
1388
1411
|
name: "--analysis-provider",
|
|
@@ -1572,6 +1595,13 @@ var WHAT_FLAGS = [
|
|
|
1572
1595
|
type: "string",
|
|
1573
1596
|
meaning: "the profile to use, instead of the first word"
|
|
1574
1597
|
},
|
|
1598
|
+
{
|
|
1599
|
+
name: "--profiles",
|
|
1600
|
+
value: "<names|all>",
|
|
1601
|
+
role: "scope",
|
|
1602
|
+
type: "list",
|
|
1603
|
+
meaning: "the profiles an MCP server serves, comma-separated, or all of them"
|
|
1604
|
+
},
|
|
1575
1605
|
{
|
|
1576
1606
|
name: "--history-since-time",
|
|
1577
1607
|
value: "<time>",
|
|
@@ -2365,7 +2395,7 @@ var WHAT_FLAGS = [
|
|
|
2365
2395
|
}
|
|
2366
2396
|
];
|
|
2367
2397
|
|
|
2368
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2398
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.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
|
|
2369
2399
|
var FLAG_TYPES = [
|
|
2370
2400
|
"switch",
|
|
2371
2401
|
"count",
|
|
@@ -2473,7 +2503,9 @@ var verbs = [
|
|
|
2473
2503
|
["start", "start a running process, or a login session"],
|
|
2474
2504
|
["stop", "stop a running process"],
|
|
2475
2505
|
["restart", "stop and start a running process"],
|
|
2506
|
+
["serve", "run a server in this process and answer its clients until stopped"],
|
|
2476
2507
|
["end", "end a login session"],
|
|
2508
|
+
["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
|
|
2477
2509
|
["install", "install a system unit"],
|
|
2478
2510
|
["uninstall", "remove a system unit"],
|
|
2479
2511
|
["cancel", "stop a job or a pending thing"],
|
|
@@ -2538,7 +2570,7 @@ var verbs = [
|
|
|
2538
2570
|
["reject", "the owner refuses what an agent proposed"],
|
|
2539
2571
|
["review", "list what waits for the owner's decision"],
|
|
2540
2572
|
["resolve", "settle one thing that waits for the owner's decision, with the owner's choice"],
|
|
2541
|
-
["move", "move a
|
|
2573
|
+
["move", "move a thing to another place in the source: a file to a folder, an event to a calendar"],
|
|
2542
2574
|
["copy", "copy a file in the source"],
|
|
2543
2575
|
["run", "run a saved job once, now, as its timer would"],
|
|
2544
2576
|
["claim", "take a thing for a while so no other agent works it at once; the claim lapses by itself"],
|
|
@@ -2717,7 +2749,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2717
2749
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
|
|
2718
2750
|
});
|
|
2719
2751
|
|
|
2720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2721
2753
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2722
2754
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2723
2755
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2836,7 +2868,7 @@ var toolsFromCommands = /* @__PURE__ */ __name((commands, options = {}) => {
|
|
|
2836
2868
|
path: info.path,
|
|
2837
2869
|
title: info.summary ?? info.description,
|
|
2838
2870
|
description: info.description,
|
|
2839
|
-
writes: writes(info.effects),
|
|
2871
|
+
writes: writes(info.effects) && options.fetchOnly?.(info.path) !== true,
|
|
2840
2872
|
input: schemaOf(fieldsOf(info, options)),
|
|
2841
2873
|
...info.output ? { output: info.output } : {}
|
|
2842
2874
|
}));
|
|
@@ -2886,7 +2918,16 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2886
2918
|
let result;
|
|
2887
2919
|
let failure;
|
|
2888
2920
|
const streams = captureStreams();
|
|
2889
|
-
const
|
|
2921
|
+
const command = `mcp ${path.join(" ")}`;
|
|
2922
|
+
const traceId = enclosingTraceId() ?? traceOf(ctx.env ?? {}).traceId;
|
|
2923
|
+
const scope = {
|
|
2924
|
+
runId: newRunId(/* @__PURE__ */ new Date(), command),
|
|
2925
|
+
command,
|
|
2926
|
+
startedAt: Date.now(),
|
|
2927
|
+
profile: ctx.profile,
|
|
2928
|
+
...traceId === void 0 ? {} : { traceId }
|
|
2929
|
+
};
|
|
2930
|
+
const code = await inRun(scope, () => program.run(argv, {
|
|
2890
2931
|
...ctx.environment,
|
|
2891
2932
|
streams,
|
|
2892
2933
|
tty: false,
|
|
@@ -2914,7 +2955,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2914
2955
|
connection: /* @__PURE__ */ __name(() => borrowed ??= lend().then((adapter) => lentConnection(adapter)), "connection")
|
|
2915
2956
|
}
|
|
2916
2957
|
} : {}
|
|
2917
|
-
});
|
|
2958
|
+
}));
|
|
2918
2959
|
if (failure)
|
|
2919
2960
|
return { error: failure };
|
|
2920
2961
|
if (answered2)
|
|
@@ -2929,7 +2970,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2929
2970
|
}
|
|
2930
2971
|
}, "runCommandForAgent");
|
|
2931
2972
|
|
|
2932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
2933
2974
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
2934
2975
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
2935
2976
|
var message = pipe(
|
|
@@ -3188,7 +3229,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3188
3229
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3189
3230
|
}, "failed");
|
|
3190
3231
|
|
|
3191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3192
3233
|
import { randomUUID } from "node:crypto";
|
|
3193
3234
|
var MATCHES = 8;
|
|
3194
3235
|
var ANSWER = answerSchema();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
__name
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|