@wirecat/cli-template 0.16.0 → 0.18.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/.github/workflows/ci.yml +18 -0
- package/.github/workflows/release-pr.yml +37 -0
- package/CHANGELOG.md +39 -0
- package/bin/release +17 -3
- package/biome.json +6 -0
- package/contracts/plan.json +2 -1
- package/dist/bin/clidev.js +2 -2
- package/dist/bundle/{all-profiles-FS7AEOE7.js → all-profiles-I2I5Y47S.js} +7 -7
- package/dist/bundle/{anthropic-5RN7BGDI.js → anthropic-6KWLOH3O.js} +4 -4
- package/dist/bundle/{app-server-WGTKZQKJ.js → app-server-WDHIM77I.js} +42 -39
- package/dist/bundle/{bun-ILPS6AYA.js → bun-NQS22GBW.js} +2 -2
- package/dist/bundle/{bun-sqlite-WK2IGBGD.js → bun-sqlite-ZHYZDAFU.js} +3 -3
- package/dist/bundle/{chunk-VS5LGSTM.js → chunk-43KXTQB6.js} +1 -1
- package/dist/bundle/{chunk-C3GNOEJP.js → chunk-4DHYD37E.js} +3 -3
- package/dist/bundle/{chunk-ADFSSIV4.js → chunk-64DNKCG6.js} +4 -4
- package/dist/bundle/{chunk-ATHZEV2Z.js → chunk-6HV2ZUJ7.js} +3 -3
- package/dist/bundle/{chunk-BPMKAZSS.js → chunk-6K7LOCZA.js} +204 -79
- package/dist/bundle/{chunk-YNROUY3R.js → chunk-ALOTPATU.js} +11 -11
- package/dist/bundle/{chunk-ZSY4WAGI.js → chunk-AQGUIORH.js} +303 -261
- package/dist/bundle/{chunk-EA3TMI4A.js → chunk-CAX65NS4.js} +2477 -1235
- package/dist/bundle/{chunk-MEXT6XDP.js → chunk-CZB5RLXN.js} +3 -3
- package/dist/bundle/{chunk-VPCXYY46.js → chunk-E5O6R3NL.js} +1 -1
- package/dist/bundle/{chunk-TXHCL75B.js → chunk-EMPBFRAG.js} +32 -26
- package/dist/bundle/{chunk-RFJKNFVF.js → chunk-ERHKHYWL.js} +6 -6
- package/dist/bundle/{chunk-ORV4EGNC.js → chunk-F2KGCZQP.js} +8 -8
- package/dist/bundle/{chunk-5KAYQKBK.js → chunk-FGQC6DQK.js} +63 -63
- package/dist/bundle/{chunk-VOTEB3AN.js → chunk-FPC4ESDC.js} +1 -1
- package/dist/bundle/{chunk-QGOOPPEW.js → chunk-G7JA7YXK.js} +5 -5
- package/dist/bundle/{chunk-JJZCPBH3.js → chunk-GBXTIWAE.js} +53 -44
- package/dist/bundle/{chunk-3MDNAYQA.js → chunk-HMP5CI4F.js} +4 -2
- package/dist/bundle/{chunk-2MWNE4L3.js → chunk-I5HN34YA.js} +4 -4
- package/dist/bundle/{chunk-LRHX62ZF.js → chunk-IKFNRGSZ.js} +3 -3
- package/dist/bundle/{chunk-7Z4HR6GO.js → chunk-IKGARE4J.js} +1 -1
- package/dist/bundle/{chunk-3WDYHOAF.js → chunk-JECGG4TM.js} +1 -1
- package/dist/bundle/{chunk-WDWP5N6M.js → chunk-KMYKWHFH.js} +26 -26
- package/dist/bundle/{chunk-ENDBOYQR.js → chunk-KSABL7M2.js} +89 -45
- package/dist/bundle/{chunk-DEHBTFIC.js → chunk-KWQSDU3D.js} +2 -2
- package/dist/bundle/{chunk-CGFQT3LQ.js → chunk-L4U3V7OU.js} +1 -1
- package/dist/bundle/{chunk-HTYLT6ME.js → chunk-MJSZEF7M.js} +296 -173
- package/dist/bundle/{chunk-OGTRPW2K.js → chunk-MVWHCXYA.js} +7 -7
- package/dist/bundle/{chunk-ETJXPB6A.js → chunk-NVALUKZU.js} +4 -4
- package/dist/bundle/{chunk-6WOJIAYA.js → chunk-Q5J3LKRL.js} +2 -2
- package/dist/bundle/{chunk-7EUX7AZV.js → chunk-QHXHJ3BK.js} +3 -3
- package/dist/bundle/{chunk-NENYWEXF.js → chunk-RKZJ7ZKU.js} +1 -1
- package/dist/bundle/{chunk-JFXWLQ2L.js → chunk-RQPDYAHW.js} +2 -2
- package/dist/bundle/{chunk-RYOAQCVJ.js → chunk-RSCHWXF5.js} +2 -2
- package/dist/bundle/{chunk-FMO6F5Q2.js → chunk-RYBCV3CX.js} +2 -2
- package/dist/bundle/{chunk-G45R7M42.js → chunk-T6ZLWN7E.js} +1 -1
- package/dist/bundle/{chunk-5HHIPDNW.js → chunk-T7657XL5.js} +2 -2
- package/dist/bundle/{chunk-SKBRW5U3.js → chunk-TH6AVNNH.js} +2 -2
- package/dist/bundle/{chunk-MBBOINK4.js → chunk-TMFSNTR2.js} +3 -3
- package/dist/bundle/{chunk-Z5NL6YNU.js → chunk-UESBF7HN.js} +6 -6
- package/dist/bundle/{chunk-EILS4BTQ.js → chunk-UGPJDNVX.js} +26 -26
- package/dist/bundle/{chunk-OF56L2JU.js → chunk-UXLB5I2B.js} +4 -4
- package/dist/bundle/{chunk-CTBHQRX6.js → chunk-VDV3WS4O.js} +13 -13
- package/dist/bundle/{chunk-NVPWZF67.js → chunk-VDXS7GR7.js} +8 -8
- package/dist/bundle/{chunk-YIVY2WI3.js → chunk-YLN6DBJV.js} +1 -1
- package/dist/bundle/{chunk-WM5AMTRY.js → chunk-YMGJJG3W.js} +31 -13
- package/dist/bundle/clidev.js +3 -3
- package/dist/bundle/{command-contract-ZDU73EPH.js → command-contract-JGOS34WS.js} +11 -11
- package/dist/bundle/{decode-QMLOGZ6R.js → decode-HHZMCEZF.js} +3 -3
- package/dist/bundle/{echarts-DRDGGHJT.js → echarts-LYV2DLKU.js} +2 -2
- package/dist/bundle/{embed-PIR2LJR2.js → embed-BPN3SCZ7.js} +4 -4
- package/dist/bundle/{embedder-6KBRPAEQ.js → embedder-NZAL7DVD.js} +7 -7
- package/dist/bundle/{first-run-JO3CMY3Z.js → first-run-OKN7MVLP.js} +8 -8
- package/dist/bundle/first-screen-6XGF2AKF.js +26 -0
- package/dist/bundle/{instructions-EOQOXY6V.js → instructions-N2HYCEWN.js} +1 -1
- package/dist/bundle/{mcp-7HBLFGCW.js → mcp-OGWFYUDR.js} +2 -2
- package/dist/bundle/{node-52WF2326.js → node-MIHFH7T4.js} +2 -2
- package/dist/bundle/{node-sqlite-LIK6OYNF.js → node-sqlite-FF2SFXPZ.js} +4 -4
- package/dist/bundle/{oauth-7FVF7HQQ.js → oauth-72XUHG3K.js} +5 -5
- package/dist/bundle/{open-CRZDEATN.js → open-HL6SSRKY.js} +3 -3
- package/dist/bundle/{openai-WAJ6WREQ.js → openai-DSWDZHQA.js} +12 -12
- package/dist/bundle/{process-YIQPKLZI.js → process-5EQF2SZN.js} +1 -1
- package/dist/bundle/{program-ZFFFPBRS.js → program-QPXFRATG.js} +970 -503
- package/dist/bundle/{prompt-QQIVHO3M.js → prompt-VVRJDKQK.js} +3 -3
- package/dist/bundle/{recognize-4KLBZDEC.js → recognize-T6RIVTQL.js} +2 -2
- package/dist/bundle/{remote-BABMZTHA.js → remote-7Z3C3FOG.js} +5 -5
- package/dist/bundle/{rerank-P3IQQJIL.js → rerank-RUFDP7NP.js} +5 -5
- package/dist/bundle/{serve-25SSAKRZ.js → serve-YZQDRGZW.js} +7 -7
- package/dist/bundle/server-NDSKEME6.js +52 -0
- package/dist/bundle/{server-P4XUYY5A.js → server-WSFS656N.js} +28 -28
- package/dist/bundle/{state-QCQALQBJ.js → state-GOQ4J5RS.js} +4 -4
- package/dist/bundle/{store-ZECPRGGH.js → store-KRGXTPKQ.js} +12 -10
- package/dist/bundle/store-maintenance-command-FNNZ5YCX.js +42 -0
- package/dist/commands/session.js +1 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +1 -0
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/dev/skills/release/SKILL.md +10 -3
- package/docs/dev/skills/release/fresh-audit.md +1 -1
- package/kit/dist/new.js +2 -1
- package/package.json +4 -4
- package/pnpm-workspace.yaml +2 -0
- package/src/commands/session.ts +1 -1
- package/src/program.ts +1 -0
- package/src/run-scope.test.ts +31 -0
- package/src/version.ts +1 -1
- package/dist/bundle/first-screen-3T5IXTFL.js +0 -26
- package/dist/bundle/server-G4GCDMYI.js +0 -52
- package/dist/bundle/store-maintenance-command-ECUO5G6L.js +0 -42
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
refuseLacking,
|
|
14
14
|
servicesFor,
|
|
15
15
|
throughWrapper
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AQGUIORH.js";
|
|
17
17
|
import {
|
|
18
18
|
servingProfiles
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4DHYD37E.js";
|
|
20
20
|
import {
|
|
21
21
|
AUTHORITY_KEY,
|
|
22
22
|
CEILING_KEY,
|
|
@@ -45,29 +45,29 @@ import {
|
|
|
45
45
|
rememberAccount,
|
|
46
46
|
rootOf2 as rootOf,
|
|
47
47
|
skipFlagFor
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-MJSZEF7M.js";
|
|
49
49
|
import {
|
|
50
50
|
isCliFailure,
|
|
51
51
|
providerErrorKey
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-F2KGCZQP.js";
|
|
53
53
|
import {
|
|
54
54
|
openStore
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-CAX65NS4.js";
|
|
56
56
|
import {
|
|
57
57
|
CliError,
|
|
58
58
|
logRecordOf,
|
|
59
59
|
realSleep,
|
|
60
60
|
resolvePaths,
|
|
61
61
|
writeSecurely
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-KMYKWHFH.js";
|
|
63
63
|
import {
|
|
64
64
|
__name
|
|
65
65
|
} from "./chunk-ZVVMGPBJ.js";
|
|
66
66
|
|
|
67
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
67
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
68
68
|
import { randomUUID } from "node:crypto";
|
|
69
69
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
71
71
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
72
72
|
import { dirname, join } from "node:path";
|
|
73
73
|
var MOST_DEADLINES = 50;
|
|
@@ -151,11 +151,11 @@ var FloodMemory = class {
|
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
155
155
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
156
156
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
157
157
|
|
|
158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
159
159
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
160
160
|
import { dirname as dirname2 } from "node:path";
|
|
161
161
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -222,7 +222,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
222
222
|
}
|
|
223
223
|
}, "lockTime");
|
|
224
224
|
|
|
225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
226
226
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
227
227
|
var SendJournal = class {
|
|
228
228
|
static {
|
|
@@ -299,7 +299,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
299
299
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
300
300
|
}, "withSendId");
|
|
301
301
|
|
|
302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
303
303
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
304
304
|
import { join as join3 } from "node:path";
|
|
305
305
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -411,7 +411,7 @@ var RecipientList = class {
|
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
413
|
|
|
414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
415
415
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
416
416
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
417
417
|
"attachments.extract",
|
|
@@ -604,7 +604,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
604
604
|
}), "guardFor");
|
|
605
605
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
606
606
|
|
|
607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
608
608
|
import { openSync as openSync2 } from "node:fs";
|
|
609
609
|
import { createInterface } from "node:readline";
|
|
610
610
|
import { ReadStream } from "node:tty";
|
|
@@ -659,7 +659,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
659
659
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
660
660
|
}, "terminalAsker");
|
|
661
661
|
|
|
662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
663
663
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
664
664
|
import { join as join4 } from "node:path";
|
|
665
665
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -717,8 +717,39 @@ var Pacer = class {
|
|
|
717
717
|
renameSync2(temporary, this.path);
|
|
718
718
|
}
|
|
719
719
|
};
|
|
720
|
+
var ANNOUNCE_WAIT_MS = 5e3;
|
|
721
|
+
var LONGEST_PACE_WAIT_MS = 5 * 6e4;
|
|
722
|
+
var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
723
|
+
const { name, operation, warn } = options;
|
|
724
|
+
const now = options.now ?? Date.now;
|
|
725
|
+
let at = now();
|
|
726
|
+
try {
|
|
727
|
+
at = await pacer.reserve();
|
|
728
|
+
} catch (error) {
|
|
729
|
+
warn?.(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
|
|
730
|
+
event: "warning",
|
|
731
|
+
code: "wait_not_remembered",
|
|
732
|
+
operation
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
const waitMs = at - now();
|
|
736
|
+
if (waitMs <= 0)
|
|
737
|
+
return;
|
|
738
|
+
if (waitMs > LONGEST_PACE_WAIT_MS)
|
|
739
|
+
throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
|
|
740
|
+
if (waitMs >= ANNOUNCE_WAIT_MS) {
|
|
741
|
+
const seconds = Math.ceil(waitMs / 1e3);
|
|
742
|
+
warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
|
|
743
|
+
event: "warning",
|
|
744
|
+
code: "pace_wait",
|
|
745
|
+
operation,
|
|
746
|
+
counts: { seconds }
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
750
|
+
}, "waitForTurn");
|
|
720
751
|
|
|
721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
722
753
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
723
754
|
"help",
|
|
724
755
|
"guide",
|
|
@@ -798,12 +829,10 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
798
829
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
799
830
|
}, "refuseUnknownPermissionKeys");
|
|
800
831
|
|
|
801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
802
833
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
803
834
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
804
835
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
805
|
-
var ANNOUNCE_WAIT_MS = 5e3;
|
|
806
|
-
var LONGEST_PACE_WAIT_MS = 5 * 6e4;
|
|
807
836
|
var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
|
|
808
837
|
var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
|
|
809
838
|
const kept = /* @__PURE__ */ __name(async (operation, what2) => {
|
|
@@ -859,28 +888,8 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
859
888
|
await kept(operation, () => pacer.holdFor(waitMs));
|
|
860
889
|
}, "noted");
|
|
861
890
|
const turn = /* @__PURE__ */ __name(async (operation) => {
|
|
862
|
-
if (
|
|
863
|
-
|
|
864
|
-
let at = Date.now();
|
|
865
|
-
await kept(operation, async () => {
|
|
866
|
-
at = await pacer.reserve();
|
|
867
|
-
});
|
|
868
|
-
const waitMs = at - Date.now();
|
|
869
|
-
if (waitMs <= 0)
|
|
870
|
-
return;
|
|
871
|
-
if (waitMs > LONGEST_PACE_WAIT_MS) {
|
|
872
|
-
throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
|
|
873
|
-
}
|
|
874
|
-
if (waitMs >= ANNOUNCE_WAIT_MS) {
|
|
875
|
-
const seconds = Math.ceil(waitMs / 1e3);
|
|
876
|
-
warn(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
|
|
877
|
-
event: "warning",
|
|
878
|
-
code: "pace_wait",
|
|
879
|
-
operation,
|
|
880
|
-
counts: { seconds }
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
|
-
await new Promise((resolve) => setTimeout(resolve, waitMs));
|
|
891
|
+
if (pacer)
|
|
892
|
+
await waitForTurn(pacer, { name, operation, warn });
|
|
884
893
|
}, "turn");
|
|
885
894
|
return throughWrapper(messenger, {}, (operation, call) => {
|
|
886
895
|
if (LONG_LIVED.has(operation))
|
|
@@ -917,7 +926,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
917
926
|
});
|
|
918
927
|
}, "flooded");
|
|
919
928
|
|
|
920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
921
930
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
922
931
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
923
932
|
const write = currentOperation();
|
|
@@ -1016,7 +1025,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1016
1025
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1017
1026
|
}, "byPart");
|
|
1018
1027
|
|
|
1019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
1020
1029
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
1021
1030
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
1022
1031
|
let warned = false;
|
|
@@ -1592,7 +1601,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1592
1601
|
}
|
|
1593
1602
|
}, "keep");
|
|
1594
1603
|
|
|
1595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1596
1605
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1597
1606
|
let opened;
|
|
1598
1607
|
return {
|
|
@@ -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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -25,10 +25,12 @@ var PRAGMAS = `
|
|
|
25
25
|
PRAGMA journal_mode = WAL;
|
|
26
26
|
PRAGMA foreign_keys = ON;
|
|
27
27
|
`;
|
|
28
|
+
var isQueryOnly = /* @__PURE__ */ __name((database) => Number(Object.values(database.prepare("PRAGMA query_only").get() ?? {})[0]) === 1, "isQueryOnly");
|
|
28
29
|
|
|
29
30
|
export {
|
|
30
31
|
TIME_LIMIT_FUNCTION,
|
|
31
32
|
TimeLimitReached,
|
|
32
33
|
beforeTimeLimit,
|
|
33
|
-
PRAGMAS
|
|
34
|
+
PRAGMAS,
|
|
35
|
+
isQueryOnly
|
|
34
36
|
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath,
|
|
6
6
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IKGARE4J.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfigFile,
|
|
10
10
|
number,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
optional,
|
|
13
13
|
saveConfigFile,
|
|
14
14
|
string
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KMYKWHFH.js";
|
|
16
16
|
import {
|
|
17
17
|
__name,
|
|
18
18
|
__toESM
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
22
22
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
23
23
|
const path = scriptPath.replaceAll("\\", "/");
|
|
24
24
|
if (path.includes("/_npx/"))
|
|
@@ -32,7 +32,7 @@ var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
|
32
32
|
return path.includes("/dist/") ? "checkout" : "unknown";
|
|
33
33
|
}, "installerOf");
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
35
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
36
36
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
37
37
|
import { existsSync } from "node:fs";
|
|
38
38
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-T7657XL5.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KMYKWHFH.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/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 } = {}) => {
|
|
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
|
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
|
|
530
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
530
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
531
531
|
import { existsSync } from "node:fs";
|
|
532
532
|
import { win32 } from "node:path";
|
|
533
533
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
8
8
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"authorization",
|
|
10
10
|
"cookie",
|
|
@@ -1872,7 +1872,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1872
1872
|
}
|
|
1873
1873
|
});
|
|
1874
1874
|
|
|
1875
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1875
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
1876
1876
|
var errorCodes = [
|
|
1877
1877
|
"validation_error",
|
|
1878
1878
|
"configuration_error",
|
|
@@ -3752,7 +3752,7 @@ function toStandardJsonSchema(schema) {
|
|
|
3752
3752
|
}
|
|
3753
3753
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
3754
3754
|
|
|
3755
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3755
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
3756
3756
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
3757
3757
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
3758
3758
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -3794,7 +3794,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
3794
3794
|
return String(value);
|
|
3795
3795
|
}), "fill");
|
|
3796
3796
|
|
|
3797
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3797
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
3798
3798
|
var EXIT_CODES = {
|
|
3799
3799
|
validation_error: 2,
|
|
3800
3800
|
configuration_error: 3,
|
|
@@ -3815,7 +3815,7 @@ var EXIT_CODES = {
|
|
|
3815
3815
|
var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
|
|
3816
3816
|
var GENERIC_FAILURE = 1;
|
|
3817
3817
|
|
|
3818
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3818
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
3819
3819
|
var CONTROL = (
|
|
3820
3820
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
3821
3821
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -3839,7 +3839,7 @@ var visibleControls = /* @__PURE__ */ __name((text2) => {
|
|
|
3839
3839
|
}, "visibleControls");
|
|
3840
3840
|
var singleLine = /* @__PURE__ */ __name((text2) => visibleControls(text2).replace(LINE_BREAKS, escaped), "singleLine");
|
|
3841
3841
|
|
|
3842
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3842
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
3843
3843
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
3844
3844
|
var effectsSchema = strictObject({
|
|
3845
3845
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -3847,7 +3847,7 @@ var effectsSchema = strictObject({
|
|
|
3847
3847
|
});
|
|
3848
3848
|
var writes = /* @__PURE__ */ __name((effects) => effects === void 0 || effects.remote === "write" || effects.local === "write", "writes");
|
|
3849
3849
|
|
|
3850
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3850
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
3851
3851
|
var MAX_NEXT_STEPS = 2;
|
|
3852
3852
|
var COMPACT_FLAG = "--compact";
|
|
3853
3853
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -3959,7 +3959,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
3959
3959
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
3960
3960
|
].join("\n"), "jsonlOf");
|
|
3961
3961
|
|
|
3962
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3962
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
3963
3963
|
var CRASH_CODE = "internal_error";
|
|
3964
3964
|
var CRASH_REASON = "command.crashed";
|
|
3965
3965
|
var errorObjectSchema = strictObject({
|
|
@@ -4052,7 +4052,7 @@ var BASE_REASONS = defineReasons([
|
|
|
4052
4052
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
4053
4053
|
]);
|
|
4054
4054
|
|
|
4055
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4055
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
4056
4056
|
var SAME_COMMAND = "*";
|
|
4057
4057
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
4058
4058
|
var stepSchema = union([
|
|
@@ -4131,7 +4131,7 @@ var STEPS = defineSteps([
|
|
|
4131
4131
|
}
|
|
4132
4132
|
]);
|
|
4133
4133
|
|
|
4134
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4134
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
4135
4135
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
4136
4136
|
if (isCliError(failure))
|
|
4137
4137
|
return failure;
|
|
@@ -4278,7 +4278,7 @@ var catchCrashes = /* @__PURE__ */ __name((options) => {
|
|
|
4278
4278
|
};
|
|
4279
4279
|
}, "catchCrashes");
|
|
4280
4280
|
|
|
4281
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4281
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
4282
4282
|
import { homedir, userInfo } from "node:os";
|
|
4283
4283
|
import { join, posix, win32 } from "node:path";
|
|
4284
4284
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -4330,7 +4330,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
4330
4330
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
4331
4331
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
4332
4332
|
|
|
4333
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4333
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
4334
4334
|
var DEFAULT_RETRY = {
|
|
4335
4335
|
retries: 1,
|
|
4336
4336
|
baseDelayMs: 250,
|
|
@@ -4342,7 +4342,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
4342
4342
|
return Math.round(random() * ceiling);
|
|
4343
4343
|
}, "backoffMs");
|
|
4344
4344
|
|
|
4345
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4345
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
4346
4346
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
4347
4347
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
4348
4348
|
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))))
|
|
@@ -4407,7 +4407,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
4407
4407
|
return project(value, fields);
|
|
4408
4408
|
}, "projectFields");
|
|
4409
4409
|
|
|
4410
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4410
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
4411
4411
|
var BATCH_LIMITS = Object.freeze({
|
|
4412
4412
|
requests: 32,
|
|
4413
4413
|
input_bytes: 262144,
|
|
@@ -4534,7 +4534,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
4534
4534
|
};
|
|
4535
4535
|
}, "runBatch");
|
|
4536
4536
|
|
|
4537
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4537
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
4538
4538
|
import { randomBytes } from "node:crypto";
|
|
4539
4539
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
4540
4540
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -4578,16 +4578,16 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
4578
4578
|
`, 384);
|
|
4579
4579
|
}, "saveConfigFile");
|
|
4580
4580
|
|
|
4581
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4581
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
4582
4582
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
4583
4583
|
var baseConstantsSchema = object({});
|
|
4584
4584
|
var LayerSchema = record(string(), unknown());
|
|
4585
4585
|
|
|
4586
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4586
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
4587
4587
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
4588
4588
|
import { join as join3, resolve } from "node:path";
|
|
4589
4589
|
|
|
4590
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4590
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
4591
4591
|
import { createRequire } from "node:module";
|
|
4592
4592
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
4593
4593
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -4607,7 +4607,7 @@ var systemKeyring = {
|
|
|
4607
4607
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
4608
4608
|
};
|
|
4609
4609
|
|
|
4610
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4610
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
4611
4611
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
4612
4612
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
4613
4613
|
var Credentials = class {
|
|
@@ -4742,7 +4742,7 @@ var Credentials = class {
|
|
|
4742
4742
|
}
|
|
4743
4743
|
};
|
|
4744
4744
|
|
|
4745
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4745
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
4746
4746
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
4747
4747
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
4748
4748
|
if (signal?.aborted) {
|
|
@@ -4757,10 +4757,10 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
4757
4757
|
}), "realSleep");
|
|
4758
4758
|
var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
|
|
4759
4759
|
|
|
4760
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4760
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
4761
4761
|
import { appendFileSync } from "node:fs";
|
|
4762
4762
|
|
|
4763
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4763
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
4764
4764
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
4765
4765
|
var logRecordSchema = strictObject({
|
|
4766
4766
|
time: isoTime,
|
|
@@ -4838,7 +4838,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
4838
4838
|
return traceId;
|
|
4839
4839
|
}, "traceIdOf");
|
|
4840
4840
|
|
|
4841
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4841
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
4842
4842
|
var REDACTED_FIELDS = [
|
|
4843
4843
|
"authorization",
|
|
4844
4844
|
"Authorization",
|
|
@@ -4932,7 +4932,7 @@ var silent = {
|
|
|
4932
4932
|
}, "error")
|
|
4933
4933
|
};
|
|
4934
4934
|
|
|
4935
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4935
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
4936
4936
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
4937
4937
|
import { styleText } from "node:util";
|
|
4938
4938
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -5006,7 +5006,7 @@ var BORDERLESS = {
|
|
|
5006
5006
|
middle: ""
|
|
5007
5007
|
};
|
|
5008
5008
|
|
|
5009
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
5009
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
5010
5010
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
5011
5011
|
if (signal?.aborted)
|
|
5012
5012
|
return Promise.reject(signal.reason);
|
|
@@ -5034,7 +5034,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
5034
5034
|
});
|
|
5035
5035
|
}, "waitForDrain");
|
|
5036
5036
|
|
|
5037
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
5037
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
5038
5038
|
var processStreams = {
|
|
5039
5039
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
5040
5040
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -5063,7 +5063,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
5063
5063
|
};
|
|
5064
5064
|
}, "captureStreams");
|
|
5065
5065
|
|
|
5066
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
5066
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
5067
5067
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
5068
5068
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
5069
5069
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|