@wirecat/cli-memo 0.131.23 → 0.131.25
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 +9 -12
- package/dist/app.d.ts +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-VIPS6NHI.js → all-profiles-L2T7PQ7S.js} +9 -9
- package/dist/bundle/{anthropic-2QZHSXBA.js → anthropic-KWI2B4O2.js} +6 -6
- package/dist/bundle/{app-server-NTSADYGW.js → app-server-GLDIS3HE.js} +42 -42
- package/dist/bundle/auto-QFG57LR6.js +86 -0
- package/dist/bundle/{bun-KF5QK2YN.js → bun-SMKYTOGI.js} +2 -2
- package/dist/bundle/{bun-sqlite-XUCC2PWC.js → bun-sqlite-PKY3JXMR.js} +5 -5
- package/dist/bundle/{chunk-V7Y5FOYJ.js → chunk-47EZNSMD.js} +2 -2
- package/dist/bundle/{chunk-4QY7XOVI.js → chunk-4AONXXP2.js} +45 -26
- package/dist/bundle/{chunk-XRJIQC6P.js → chunk-5ANNUWNM.js} +2 -2
- package/dist/bundle/{chunk-QZXHMQCM.js → chunk-5GMOYTJQ.js} +1 -1
- package/dist/bundle/{chunk-N5L6YYYW.js → chunk-5JYB6QKS.js} +3 -15
- package/dist/bundle/{chunk-24P36RXS.js → chunk-5SKYUS4U.js} +484 -312
- package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-6OP743NB.js} +2 -2
- package/dist/bundle/{chunk-Z6YD3YK4.js → chunk-7Y6O4UQB.js} +22 -22
- package/dist/bundle/{chunk-G4GEARGN.js → chunk-BNF2ZUNS.js} +9 -9
- package/dist/bundle/{chunk-AHFMQAJT.js → chunk-BX7DVBWD.js} +15 -12
- package/dist/bundle/{chunk-PDQFWOR5.js → chunk-D5ZV7PRP.js} +3 -3
- package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-E2WPSRCI.js} +1 -1
- package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
- package/dist/bundle/{chunk-7PQOYNMA.js → chunk-EEVUVWHW.js} +2 -2
- package/dist/bundle/{chunk-GQOFHKUX.js → chunk-EFTJ4RTT.js} +6 -6
- package/dist/bundle/{chunk-BSDOH7DN.js → chunk-ENU2556X.js} +3 -3
- package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-ERQHZZNF.js} +1 -1
- package/dist/bundle/{chunk-5WCEWK2F.js → chunk-FS3ABWVX.js} +12 -12
- package/dist/bundle/{chunk-JY4LVWGZ.js → chunk-G2BB5WY5.js} +15 -8
- package/dist/bundle/{chunk-O7OI5V7W.js → chunk-H5QHU5LZ.js} +8 -8
- package/dist/bundle/{chunk-AETJWLHX.js → chunk-I5LIEFQR.js} +4 -4
- package/dist/bundle/{chunk-JCCL7RGH.js → chunk-I7PL5WX2.js} +4 -4
- package/dist/bundle/{chunk-37NN65PB.js → chunk-IE27DJP3.js} +10 -10
- package/dist/bundle/{chunk-DIP3ENSY.js → chunk-ILUTSRU3.js} +1 -1
- package/dist/bundle/{chunk-DIELPPLF.js → chunk-INA5WGY7.js} +2 -2
- package/dist/bundle/{chunk-STZMKXK5.js → chunk-J7T6RSR5.js} +4 -4
- package/dist/bundle/{chunk-BSR4QZW5.js → chunk-JDDLDKC7.js} +3 -3
- package/dist/bundle/{chunk-MJWFSOJN.js → chunk-JLBKAIVT.js} +371 -211
- package/dist/bundle/{chunk-UJEO3VWA.js → chunk-JVNSHN2J.js} +1 -1
- package/dist/bundle/{chunk-ZCPUKUST.js → chunk-KFZGI7BU.js} +1 -1
- package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
- package/dist/bundle/{chunk-CTT5VK66.js → chunk-LFNJ6CG6.js} +6 -6
- package/dist/bundle/chunk-MAUKGKRA.js +428 -0
- package/dist/bundle/{chunk-44NQLD5C.js → chunk-MWX7UJCL.js} +7 -7
- package/dist/bundle/{chunk-IJI62T4U.js → chunk-MZS3LIMW.js} +29 -29
- package/dist/bundle/{chunk-JDNA36EX.js → chunk-NFTWNCEL.js} +9 -9
- package/dist/bundle/{chunk-RE5SEGSR.js → chunk-OGMTUMB7.js} +4 -4
- package/dist/bundle/{chunk-QFO6K6CW.js → chunk-ON5SHKHB.js} +46 -46
- package/dist/bundle/{chunk-JRJIFGU2.js → chunk-PCT2CIYR.js} +5 -5
- package/dist/bundle/{chunk-46WO42ZW.js → chunk-POXCMAM7.js} +448 -517
- package/dist/bundle/{chunk-6PXE6QSQ.js → chunk-QA674BMY.js} +1 -1
- package/dist/bundle/{chunk-QSN5NUVL.js → chunk-QJJSMLBR.js} +3 -3
- package/dist/bundle/{chunk-GDGY2KIX.js → chunk-QOWGFGG3.js} +5 -5
- package/dist/bundle/{chunk-6I7XGWGH.js → chunk-QYDCVWD4.js} +6 -6
- package/dist/bundle/{chunk-NY4IKP35.js → chunk-RKLZQVKL.js} +2 -2
- package/dist/bundle/{chunk-FXF34MI2.js → chunk-RTII6JWI.js} +3 -3
- package/dist/bundle/{chunk-V5ZID7KC.js → chunk-SBMBBVXF.js} +1 -1
- package/dist/bundle/{chunk-H76MIWB2.js → chunk-SW5YJCHC.js} +4 -4
- package/dist/bundle/{chunk-YKZNFSQE.js → chunk-T3R6QHD2.js} +2 -2
- package/dist/bundle/{chunk-T4LW6UYQ.js → chunk-TZ7WDQPD.js} +40 -34
- package/dist/bundle/{chunk-R4V63U6A.js → chunk-UQS6Y2A7.js} +4 -4
- package/dist/bundle/{chunk-UMWR5PKA.js → chunk-UWUP3A5H.js} +13 -13
- package/dist/bundle/{chunk-5M4KSMYN.js → chunk-VGYXKQJE.js} +155 -81
- package/dist/bundle/{chunk-Z7XHH2Q5.js → chunk-VZ3K7IYC.js} +35 -17
- package/dist/bundle/{chunk-XTARXRP6.js → chunk-WGHQXJHL.js} +10 -10
- package/dist/bundle/{chunk-2IKXEL4V.js → chunk-WHVH72AD.js} +2 -2
- package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
- package/dist/bundle/{chunk-L6FKTS3L.js → chunk-XFDE6AL4.js} +8 -8
- package/dist/bundle/{chunk-W53TRO7J.js → chunk-YMAS7U5X.js} +650 -330
- package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
- package/dist/bundle/{chunk-HBXZ7WIV.js → chunk-ZKZT6PCF.js} +8 -8
- package/dist/bundle/{chunk-CKLCJ6O7.js → chunk-ZLB2CM7Z.js} +6 -6
- package/dist/bundle/{chunk-4DKMYDLT.js → chunk-ZUV337F2.js} +43 -30
- package/dist/bundle/{chunk-BIYSJBQR.js → chunk-ZVEGLXYB.js} +4 -4
- package/dist/bundle/command-contract-47EKA67S.js +32 -0
- package/dist/bundle/{decode-LFASKQPE.js → decode-EEDEXCHR.js} +5 -5
- package/dist/bundle/{dispatch-MELZFYOS.js → dispatch-CU5KGRQL.js} +8 -8
- package/dist/bundle/{echarts-5AB3LFVD.js → echarts-36MD3UZF.js} +2 -2
- package/dist/bundle/{embed-6KQN523T.js → embed-R6JZ4CDW.js} +6 -6
- package/dist/bundle/{embedder-7SGPMINO.js → embedder-XUIOKCH6.js} +9 -9
- package/dist/bundle/{entry-CNZGHHZB.js → entry-WOAZRQ5F.js} +7 -7
- package/dist/bundle/failure-BHRE5S75.js +66 -0
- package/dist/bundle/{failure-RBNZBCZJ.js → failure-TUXXI6JT.js} +2 -2
- package/dist/bundle/{first-run-UI6UT4OR.js → first-run-3ZUSIFQJ.js} +11 -11
- package/dist/bundle/first-screen-WQ2IDXDP.js +30 -0
- package/dist/bundle/{instructions-52W6ZQTU.js → instructions-7VMPJMUM.js} +1 -1
- package/dist/bundle/mcp-I7LL7AJG.js +90 -0
- package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-TL2PBNKO.js → node-SBHCG4ZC.js} +2 -2
- package/dist/bundle/{node-sqlite-64QIEQ37.js → node-sqlite-EMKROM5U.js} +6 -6
- package/dist/bundle/{oauth-GH7GLGEJ.js → oauth-OJPTUA5K.js} +7 -7
- package/dist/bundle/{open-PCKU5XOH.js → open-XI2AVS5B.js} +5 -5
- package/dist/bundle/{openai-P5QVLTF6.js → openai-NCYTRZB6.js} +10 -10
- package/dist/bundle/{process-PWAGP6YY.js → process-373B2EBA.js} +1 -1
- package/dist/bundle/{chunk-32FPXLNY.js → program-VW7IJ755.js} +9893 -2081
- package/dist/bundle/{prompt-FNBKJZLM.js → prompt-L3KQBPNH.js} +5 -5
- package/dist/bundle/{recognize-5TKRMMA2.js → recognize-GFWZX4F6.js} +4 -4
- package/dist/bundle/{remote-XZJ7ZAKJ.js → remote-5IGAYQBB.js} +7 -7
- package/dist/bundle/{rerank-JUH3QHX7.js → rerank-6HWHGDFX.js} +7 -7
- package/dist/bundle/{serve-JP6U3PUO.js → serve-AA7RKEOM.js} +9 -9
- package/dist/bundle/server-MWUCYBJF.js +61 -0
- package/dist/bundle/server-XEY5AKKG.js +48 -0
- package/dist/bundle/{server-VXI43PF5.js → server-Z6L4U6HO.js} +57 -57
- package/dist/bundle/{state-G4NEN2OZ.js → state-3WTPOBXR.js} +6 -6
- package/dist/bundle/{store-NHFLFHD5.js → store-LNP5BXUL.js} +13 -13
- package/dist/bundle/store-maintenance-command-6HEGTKPL.js +48 -0
- package/dist/bundle/update-6GWVILUX.js +69 -0
- package/dist/config.d.ts +2 -28
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -35
- package/dist/config.js.map +1 -1
- package/dist/doctor/command.d.ts +0 -12
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/doctor/command.js +19 -24
- package/dist/doctor/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +1 -8
- package/dist/examples.js.map +1 -1
- package/dist/failure.d.ts +2 -2
- package/dist/mail/command.d.ts.map +1 -1
- package/dist/mail/command.js +2 -87
- package/dist/mail/command.js.map +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +1 -1
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/mail/moved.d.ts +1 -1
- package/dist/mail/moved.d.ts.map +1 -1
- package/dist/mail/moved.js +3 -0
- package/dist/mail/moved.js.map +1 -1
- package/dist/mail/review-command.d.ts +1 -1
- package/dist/mail/review-command.d.ts.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/read-only.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -13
- package/dist/reasons.js.map +1 -1
- package/dist/run/auto.js +3 -3
- package/dist/run/auto.js.map +1 -1
- package/dist/run/import.d.ts +2 -2
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +24 -121
- package/dist/run/import.js.map +1 -1
- package/dist/search/command.js +1 -1
- package/dist/store/source-list.d.ts +1 -6
- package/dist/store/source-list.d.ts.map +1 -1
- package/dist/store/source-list.js +11 -46
- package/dist/store/source-list.js.map +1 -1
- package/dist/tasks/command.js +1 -1
- package/dist/tasks/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/scenarios/set-up.md +3 -3
- package/skills/cli-memo/SKILL.md +13 -21
- package/skills/mail-triage/SKILL.md +9 -5
- package/dist/bundle/auto-MJWSDIMF.js +0 -86
- package/dist/bundle/chunk-UQA5UFJ2.js +0 -103
- package/dist/bundle/command-contract-XBYNZVP5.js +0 -32
- package/dist/bundle/failure-LJAYEPTS.js +0 -66
- package/dist/bundle/first-screen-3WDPZZXV.js +0 -30
- package/dist/bundle/mcp-JIOYIKWO.js +0 -90
- package/dist/bundle/program-D7OTNHGU.js +0 -10947
- package/dist/bundle/server-5M4YI3V4.js +0 -48
- package/dist/bundle/server-XAHF22CQ.js +0 -61
- package/dist/bundle/setup-YLI4S4TW.js +0 -973
- package/dist/bundle/store-maintenance-command-6UEORZWI.js +0 -48
- package/dist/bundle/update-6SD2JZUC.js +0 -69
- package/dist/mail/accounts.d.ts +0 -7
- package/dist/mail/accounts.d.ts.map +0 -1
- package/dist/mail/accounts.js +0 -28
- package/dist/mail/accounts.js.map +0 -1
- package/dist/mail/backfill-headers.d.ts +0 -11
- package/dist/mail/backfill-headers.d.ts.map +0 -1
- package/dist/mail/backfill-headers.js +0 -84
- package/dist/mail/backfill-headers.js.map +0 -1
- package/dist/mail/domain-age.d.ts +0 -26
- package/dist/mail/domain-age.d.ts.map +0 -1
- package/dist/mail/domain-age.js +0 -151
- package/dist/mail/domain-age.js.map +0 -1
- package/dist/mail/gmail.d.ts +0 -39
- package/dist/mail/gmail.d.ts.map +0 -1
- package/dist/mail/gmail.js +0 -325
- package/dist/mail/gmail.js.map +0 -1
- package/dist/mail/himalaya.d.ts +0 -22
- package/dist/mail/himalaya.d.ts.map +0 -1
- package/dist/mail/himalaya.js +0 -113
- package/dist/mail/himalaya.js.map +0 -1
- package/dist/mail/mbox.d.ts +0 -9
- package/dist/mail/mbox.d.ts.map +0 -1
- package/dist/mail/mbox.js +0 -230
- package/dist/mail/mbox.js.map +0 -1
- package/dist/mail/repair.d.ts +0 -7
- package/dist/mail/repair.d.ts.map +0 -1
- package/dist/mail/repair.js +0 -54
- package/dist/mail/repair.js.map +0 -1
- package/dist/mail/rule-store.d.ts +0 -12
- package/dist/mail/rule-store.d.ts.map +0 -1
- package/dist/mail/rule-store.js +0 -83
- package/dist/mail/rule-store.js.map +0 -1
- package/dist/mail/setup-command.d.ts +0 -4
- package/dist/mail/setup-command.d.ts.map +0 -1
- package/dist/mail/setup-command.js +0 -41
- package/dist/mail/setup-command.js.map +0 -1
- package/dist/mail/setup.d.ts +0 -19
- package/dist/mail/setup.d.ts.map +0 -1
- package/dist/mail/setup.js +0 -95
- package/dist/mail/setup.js.map +0 -1
- package/dist/mail/slices.d.ts +0 -6
- package/dist/mail/slices.d.ts.map +0 -1
- package/dist/mail/slices.js +0 -7
- package/dist/mail/slices.js.map +0 -1
- package/dist/mail/source.d.ts +0 -7
- package/dist/mail/source.d.ts.map +0 -1
- package/dist/mail/source.js +0 -119
- package/dist/mail/source.js.map +0 -1
- package/dist/mail/sync.d.ts +0 -21
- package/dist/mail/sync.d.ts.map +0 -1
- package/dist/mail/sync.js +0 -24
- package/dist/mail/sync.js.map +0 -1
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
- /package/dist/bundle/{chunk-WX2WLEEF.js → chunk-MNDLWYNQ.js} +0 -0
|
@@ -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.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
8
8
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"authorization",
|
|
10
10
|
"cookie",
|
|
@@ -2,15 +2,15 @@ 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-LFNJ6CG6.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EB2IULWB.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.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/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 = {
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listen
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5GMOYTJQ.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-47EZNSMD.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -22,15 +22,15 @@ import {
|
|
|
22
22
|
calledTools,
|
|
23
23
|
httpActivityFile,
|
|
24
24
|
httpLock
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZVEGLXYB.js";
|
|
26
26
|
import {
|
|
27
27
|
CliError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-EB2IULWB.js";
|
|
29
29
|
import {
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
34
34
|
import { randomUUID } from "node:crypto";
|
|
35
35
|
var MCP_PATH = "/mcp";
|
|
36
36
|
var AS_METADATA = "/.well-known/oauth-authorization-server";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
inspectConfig,
|
|
5
5
|
loadConfig,
|
|
6
6
|
memoPermissionKeys
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MAUKGKRA.js";
|
|
8
8
|
import {
|
|
9
9
|
CEILING_KEY,
|
|
10
10
|
changesAuthority,
|
|
@@ -13,20 +13,20 @@ import {
|
|
|
13
13
|
layerPermissions,
|
|
14
14
|
levelFor,
|
|
15
15
|
metaOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JLBKAIVT.js";
|
|
17
17
|
import {
|
|
18
18
|
setupPermissionCeiling
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-I5LIEFQR.js";
|
|
20
20
|
import {
|
|
21
21
|
readOnlyLockOf,
|
|
22
22
|
readOnlyRefusal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WHVH72AD.js";
|
|
24
24
|
import {
|
|
25
25
|
APP
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5JYB6QKS.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-EB2IULWB.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
agentOf,
|
|
8
8
|
clientHash,
|
|
9
9
|
currentCaller
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NFTWNCEL.js";
|
|
11
11
|
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.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
16
16
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
17
17
|
const client = caller?.agent?.client?.name;
|
|
18
18
|
if (client && client !== "unknown")
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EEVUVWHW.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EB2IULWB.js";
|
|
11
11
|
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.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/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 } = {}) => {
|
|
@@ -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.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/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.",
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ERQHZZNF.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
callerOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RKLZQVKL.js";
|
|
11
11
|
import {
|
|
12
12
|
StdioServerTransport,
|
|
13
13
|
serveStdio
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
23
23
|
import { spawn } from "node:child_process";
|
|
24
24
|
import { randomUUID } from "node:crypto";
|
|
25
25
|
var PROTOCOL = "2025-06-18";
|
|
@@ -253,7 +253,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
253
253
|
}, "serveAllProfilesOverStdio");
|
|
254
254
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
255
255
|
const { build, close } = allProfilesServer(options);
|
|
256
|
-
const { serveOverHttp } = await import("./serve-
|
|
256
|
+
const { serveOverHttp } = await import("./serve-AA7RKEOM.js");
|
|
257
257
|
const listening = await serveOverHttp(build, {
|
|
258
258
|
...http,
|
|
259
259
|
appName: options.command,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EB2IULWB.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/http/public-url.js
|
|
11
11
|
var EXAMPLE = "--public-url https://<name>.ts.net";
|
|
12
12
|
var publicUrlOf = /* @__PURE__ */ __name((given, { missing, reaches, path = false }) => {
|
|
13
13
|
if (!given)
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
errorObjectOf,
|
|
8
8
|
getDotPath,
|
|
9
9
|
isoTime,
|
|
10
|
+
object,
|
|
10
11
|
optional,
|
|
11
12
|
parseRegistry,
|
|
12
13
|
picklist,
|
|
@@ -18,12 +19,12 @@ import {
|
|
|
18
19
|
string,
|
|
19
20
|
text,
|
|
20
21
|
unknown
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-G2BB5WY5.js";
|
|
22
23
|
import {
|
|
23
24
|
CliError,
|
|
24
25
|
isCliError,
|
|
25
26
|
visibleControls
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-EB2IULWB.js";
|
|
27
28
|
import {
|
|
28
29
|
__commonJS,
|
|
29
30
|
__name,
|
|
@@ -1896,7 +1897,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1896
1897
|
}
|
|
1897
1898
|
});
|
|
1898
1899
|
|
|
1899
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1900
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
1900
1901
|
import { homedir, userInfo } from "node:os";
|
|
1901
1902
|
import { join, posix, win32 } from "node:path";
|
|
1902
1903
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -1947,7 +1948,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1947
1948
|
}, "homeIsMoved");
|
|
1948
1949
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1949
1950
|
|
|
1950
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1951
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
1951
1952
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
1952
1953
|
if (signal?.aborted)
|
|
1953
1954
|
return Promise.reject(signal.reason);
|
|
@@ -1975,7 +1976,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
1975
1976
|
});
|
|
1976
1977
|
}, "waitForDrain");
|
|
1977
1978
|
|
|
1978
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1979
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
1979
1980
|
var processStreams = {
|
|
1980
1981
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
1981
1982
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2004,7 +2005,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2004
2005
|
};
|
|
2005
2006
|
}, "captureStreams");
|
|
2006
2007
|
|
|
2007
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2008
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2008
2009
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2009
2010
|
import { styleText } from "node:util";
|
|
2010
2011
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2078,7 +2079,7 @@ var BORDERLESS = {
|
|
|
2078
2079
|
middle: ""
|
|
2079
2080
|
};
|
|
2080
2081
|
|
|
2081
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2082
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2082
2083
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2083
2084
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2084
2085
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -2115,7 +2116,7 @@ var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processS
|
|
|
2115
2116
|
};
|
|
2116
2117
|
}, "createRenderer");
|
|
2117
2118
|
|
|
2118
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2119
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
2119
2120
|
var DEFAULT_RETRY = {
|
|
2120
2121
|
retries: 1,
|
|
2121
2122
|
baseDelayMs: 250,
|
|
@@ -2127,7 +2128,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
2127
2128
|
return Math.round(random() * ceiling);
|
|
2128
2129
|
}, "backoffMs");
|
|
2129
2130
|
|
|
2130
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2131
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
2131
2132
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
2132
2133
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
2133
2134
|
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))))
|
|
@@ -2138,14 +2139,14 @@ var fieldsOf = /* @__PURE__ */ __name((value) => {
|
|
|
2138
2139
|
validate(paths);
|
|
2139
2140
|
return [...new Set(paths)];
|
|
2140
2141
|
}, "fieldsOf");
|
|
2141
|
-
var
|
|
2142
|
+
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "object");
|
|
2142
2143
|
var retained = /* @__PURE__ */ new Set(["operation_id", "page", "next", "missing", "meta", "coverage"]);
|
|
2143
2144
|
var itemPaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("items.") ? path.slice(6) : path), "itemPaths");
|
|
2144
2145
|
var onePaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("item.") ? path.slice(5) : path), "onePaths");
|
|
2145
2146
|
var select = /* @__PURE__ */ __name((value, paths) => {
|
|
2146
2147
|
if (Array.isArray(value))
|
|
2147
2148
|
return value.map((item) => select(item, paths));
|
|
2148
|
-
if (!
|
|
2149
|
+
if (!object2(value))
|
|
2149
2150
|
return value;
|
|
2150
2151
|
const result = {};
|
|
2151
2152
|
const groups = /* @__PURE__ */ new Map();
|
|
@@ -2163,9 +2164,9 @@ var select = /* @__PURE__ */ __name((value, paths) => {
|
|
|
2163
2164
|
const found = value[key];
|
|
2164
2165
|
if (children.includes(""))
|
|
2165
2166
|
result[key] = found;
|
|
2166
|
-
else if (
|
|
2167
|
+
else if (object2(found) || Array.isArray(found)) {
|
|
2167
2168
|
const selected = select(found, children);
|
|
2168
|
-
if (Array.isArray(selected) ||
|
|
2169
|
+
if (Array.isArray(selected) || object2(selected) && Object.keys(selected).length > 0)
|
|
2169
2170
|
result[key] = selected;
|
|
2170
2171
|
}
|
|
2171
2172
|
}
|
|
@@ -2177,22 +2178,22 @@ var select = /* @__PURE__ */ __name((value, paths) => {
|
|
|
2177
2178
|
var project = /* @__PURE__ */ __name((value, fields) => {
|
|
2178
2179
|
if (Array.isArray(value))
|
|
2179
2180
|
return value.map((item) => select(item, itemPaths(fields)));
|
|
2180
|
-
if (
|
|
2181
|
+
if (object2(value) && Object.hasOwn(value, "type") && value.type === "item" && Object.hasOwn(value, "data") && Object.keys(value).every((key) => ["type", "data"].includes(key)))
|
|
2181
2182
|
return { ...value, data: project(value.data, fields) };
|
|
2182
|
-
if (
|
|
2183
|
+
if (object2(value) && Object.hasOwn(value, "type") && value.type === "end" && Object.hasOwn(value, "complete") && typeof value.complete === "boolean")
|
|
2183
2184
|
return value;
|
|
2184
|
-
if (
|
|
2185
|
+
if (object2(value) && Object.hasOwn(value, "item") && (Object.hasOwn(value, "meta") || Object.keys(value).every((key) => ["item", "next", "missing"].includes(key))))
|
|
2185
2186
|
return { ...value, item: project(value.item, onePaths(fields)) };
|
|
2186
|
-
if (
|
|
2187
|
+
if (object2(value) && Array.isArray(value.items))
|
|
2187
2188
|
return { ...value, items: value.items.map((item) => select(item, itemPaths(fields))) };
|
|
2188
|
-
return select(value,
|
|
2189
|
+
return select(value, object2(value) && !Object.hasOwn(value, "items") ? itemPaths(fields) : fields);
|
|
2189
2190
|
}, "project");
|
|
2190
2191
|
var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
2191
2192
|
validate(fields);
|
|
2192
2193
|
return project(value, fields);
|
|
2193
2194
|
}, "projectFields");
|
|
2194
2195
|
|
|
2195
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2196
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2196
2197
|
var BATCH_LIMITS = Object.freeze({
|
|
2197
2198
|
requests: 32,
|
|
2198
2199
|
input_bytes: 262144,
|
|
@@ -2270,10 +2271,10 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2270
2271
|
if (maxOutputBytes < 8192 + requests.length * 2048)
|
|
2271
2272
|
invalid("batch output budget cannot hold its result framing");
|
|
2272
2273
|
const errorOf = /* @__PURE__ */ __name((error) => {
|
|
2273
|
-
const
|
|
2274
|
+
const object3 = errorObjectOf(error, options.failureContext).error;
|
|
2274
2275
|
try {
|
|
2275
|
-
if (Buffer.byteLength(JSON.stringify(
|
|
2276
|
-
return
|
|
2276
|
+
if (Buffer.byteLength(JSON.stringify(object3), "utf8") <= 512)
|
|
2277
|
+
return object3;
|
|
2277
2278
|
} catch {
|
|
2278
2279
|
}
|
|
2279
2280
|
const fallback = errorObjectOf(error).error;
|
|
@@ -2318,11 +2319,11 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2318
2319
|
}
|
|
2319
2320
|
} catch (error) {
|
|
2320
2321
|
options.signal?.throwIfAborted();
|
|
2321
|
-
const
|
|
2322
|
+
const object3 = errorOf(error);
|
|
2322
2323
|
result = {
|
|
2323
2324
|
...framing,
|
|
2324
|
-
status:
|
|
2325
|
-
error:
|
|
2325
|
+
status: object3.reason === "batch.read-budget" ? "not_run" : "error",
|
|
2326
|
+
error: object3,
|
|
2326
2327
|
complete: false
|
|
2327
2328
|
};
|
|
2328
2329
|
}
|
|
@@ -2339,7 +2340,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2339
2340
|
};
|
|
2340
2341
|
}, "runBatch");
|
|
2341
2342
|
|
|
2342
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2343
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2343
2344
|
import { randomBytes } from "node:crypto";
|
|
2344
2345
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2345
2346
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2383,11 +2384,16 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2383
2384
|
`, 384);
|
|
2384
2385
|
}, "saveConfigFile");
|
|
2385
2386
|
|
|
2386
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2387
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2388
|
+
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2389
|
+
var baseConstantsSchema = object({});
|
|
2390
|
+
var LayerSchema = record(string(), unknown());
|
|
2391
|
+
|
|
2392
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2387
2393
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2388
2394
|
import { join as join3, resolve } from "node:path";
|
|
2389
2395
|
|
|
2390
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2396
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2391
2397
|
import { createRequire } from "node:module";
|
|
2392
2398
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2393
2399
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2407,7 +2413,7 @@ var systemKeyring = {
|
|
|
2407
2413
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2408
2414
|
};
|
|
2409
2415
|
|
|
2410
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2416
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2411
2417
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2412
2418
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2413
2419
|
var Credentials = class {
|
|
@@ -2542,7 +2548,7 @@ var Credentials = class {
|
|
|
2542
2548
|
}
|
|
2543
2549
|
};
|
|
2544
2550
|
|
|
2545
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2551
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2546
2552
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2547
2553
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2548
2554
|
if (signal?.aborted) {
|
|
@@ -2556,7 +2562,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2556
2562
|
}, { once: true });
|
|
2557
2563
|
}), "realSleep");
|
|
2558
2564
|
|
|
2559
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2565
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/deadline.js
|
|
2560
2566
|
var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSleep } = {}) => {
|
|
2561
2567
|
if (timeoutMs !== void 0 && (!Number.isSafeInteger(timeoutMs) || timeoutMs < 0 || timeoutMs > 2147483647))
|
|
2562
2568
|
throw new CliError("validation_error", "timeoutMs must be an integer from zero through 2147483647");
|
|
@@ -2640,10 +2646,10 @@ var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSl
|
|
|
2640
2646
|
};
|
|
2641
2647
|
}, "createDeadline");
|
|
2642
2648
|
|
|
2643
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2649
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2644
2650
|
import { appendFileSync } from "node:fs";
|
|
2645
2651
|
|
|
2646
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2652
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_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
|
|
2647
2653
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2648
2654
|
var logRecordSchema = strictObject({
|
|
2649
2655
|
time: isoTime,
|
|
@@ -2721,7 +2727,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2721
2727
|
return traceId;
|
|
2722
2728
|
}, "traceIdOf");
|
|
2723
2729
|
|
|
2724
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2730
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2725
2731
|
var REDACTED_FIELDS = [
|
|
2726
2732
|
"authorization",
|
|
2727
2733
|
"Authorization",
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
describeOptions,
|
|
8
8
|
keyForCommand,
|
|
9
9
|
metaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JLBKAIVT.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonSchemaOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-G2BB5WY5.js";
|
|
14
14
|
import {
|
|
15
15
|
CliError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EB2IULWB.js";
|
|
17
17
|
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.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
22
22
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
23
23
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
24
24
|
const entity = answerEntitySchema(command);
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EB2IULWB.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3 } from "node:path";
|
|
374
374
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
375
375
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|