@wirecat/cli-memo 0.131.74 → 0.131.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/actions.d.ts +1 -0
- package/dist/actions/actions.d.ts.map +1 -1
- package/dist/actions/actions.js +3 -3
- package/dist/actions/actions.js.map +1 -1
- package/dist/actions/command.d.ts.map +1 -1
- package/dist/actions/command.js +3 -1
- package/dist/actions/command.js.map +1 -1
- package/dist/agents/command.d.ts.map +1 -1
- package/dist/agents/command.js +3 -2
- package/dist/agents/command.js.map +1 -1
- package/dist/agents/log.d.ts +1 -1
- package/dist/agents/log.d.ts.map +1 -1
- package/dist/agents/log.js +5 -4
- package/dist/agents/log.js.map +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bin/memo.js.map +1 -1
- package/dist/bundle/{all-profiles-LUGN5BHP.js → all-profiles-CGQTLFDM.js} +5 -5
- package/dist/bundle/{anthropic-W7JXDZPL.js → anthropic-C744EPRR.js} +2 -2
- package/dist/bundle/{app-server-2LQJZC7Z.js → app-server-LOH7WXAB.js} +36 -36
- package/dist/bundle/auto-R3ABUML7.js +89 -0
- package/dist/bundle/{bun-S3JZIN4S.js → bun-SQWZDSWT.js} +2 -2
- package/dist/bundle/{bun-sqlite-X3WQN3CV.js → bun-sqlite-YVBFXNWB.js} +2 -2
- package/dist/bundle/{chunk-OOKMABOJ.js → chunk-2KGYREGD.js} +365 -362
- package/dist/bundle/{chunk-SCYHDYLI.js → chunk-3NCRQMEN.js} +1 -1
- package/dist/bundle/{chunk-BDVM5652.js → chunk-3PLYUZAR.js} +1 -1
- package/dist/bundle/{chunk-YLYZNPAZ.js → chunk-42UNPXTC.js} +1 -1
- package/dist/bundle/{chunk-GPXHGG67.js → chunk-47WS4BML.js} +4 -4
- package/dist/bundle/{chunk-HEYIBJ5I.js → chunk-4DTJF6E7.js} +19 -7
- package/dist/bundle/chunk-4IWOPJL4.js +185 -0
- package/dist/bundle/{chunk-E2PSOSTN.js → chunk-5AQIET5P.js} +1 -1
- package/dist/bundle/{chunk-WFXRR2JT.js → chunk-5NY7U6CM.js} +8 -8
- package/dist/bundle/{chunk-3OVYPDT6.js → chunk-6RPLAGAL.js} +20 -20
- package/dist/bundle/{chunk-4KDORB7C.js → chunk-6YRVBXFH.js} +7 -7
- package/dist/bundle/{chunk-KDBAY5JZ.js → chunk-7OZEQIK7.js} +1 -1
- package/dist/bundle/{chunk-WZHCQ4VZ.js → chunk-7PSGKP3R.js} +6 -6
- package/dist/bundle/{chunk-VB4OLJHK.js → chunk-7XFJRX6F.js} +2 -2
- package/dist/bundle/{chunk-CWWUZK2U.js → chunk-AI6PMW7L.js} +4 -4
- package/dist/bundle/{chunk-BR4DCOA5.js → chunk-AUCXJVUI.js} +29 -29
- package/dist/bundle/{chunk-UIAGASGP.js → chunk-C7OOLF5J.js} +5 -5
- package/dist/bundle/{chunk-NR633L2N.js → chunk-DDSKTPU7.js} +3 -3
- package/dist/bundle/{chunk-MPZBV5RL.js → chunk-DUON3SRD.js} +7 -7
- package/dist/bundle/{chunk-XQHOMQNZ.js → chunk-EVLOYNXC.js} +3 -3
- package/dist/bundle/{chunk-LPGE6ACC.js → chunk-FH753LZS.js} +1 -1
- package/dist/bundle/{chunk-JINEHQ2T.js → chunk-FUATAPSB.js} +93 -80
- package/dist/bundle/{chunk-AHAW3TOS.js → chunk-GB64N6DP.js} +297 -294
- package/dist/bundle/{chunk-XQ3RZU3J.js → chunk-GBU4U55M.js} +1 -1
- package/dist/bundle/{chunk-XPSXVUZG.js → chunk-H3WELZYK.js} +2 -2
- package/dist/bundle/{chunk-6FTZ53TT.js → chunk-HAMGOLFU.js} +1 -1
- package/dist/bundle/{chunk-KYJBGCTC.js → chunk-KYLKZKQ7.js} +1 -1
- package/dist/bundle/{chunk-SJD4KTK2.js → chunk-LLBZDBPT.js} +2 -2
- package/dist/bundle/{chunk-QCR5WJ7R.js → chunk-MFQTOOHR.js} +397 -34
- package/dist/bundle/{chunk-P6FPRA3P.js → chunk-MODHP5VA.js} +12 -12
- package/dist/bundle/{chunk-LX3OSTBD.js → chunk-N2FIIVJV.js} +4 -4
- package/dist/bundle/{chunk-V7BDQIZS.js → chunk-NE3UIK5P.js} +2 -2
- package/dist/bundle/{chunk-ZTZLAGZA.js → chunk-NM4QMIOQ.js} +2 -2
- package/dist/bundle/{chunk-G45BLLDR.js → chunk-O3KNZVDZ.js} +2 -2
- package/dist/bundle/{chunk-XMHWGHID.js → chunk-ODCHYVTW.js} +173 -152
- package/dist/bundle/{chunk-6I4DOBSD.js → chunk-OEH5JUAL.js} +12 -12
- package/dist/bundle/{chunk-SIQDO5DN.js → chunk-OJU774SG.js} +3 -3
- package/dist/bundle/{chunk-ZL63GL3Y.js → chunk-PFNEOHCY.js} +2 -2
- package/dist/bundle/{chunk-C6MWOBEL.js → chunk-RLRKBPLJ.js} +15 -9
- package/dist/bundle/{chunk-3BEJUJEL.js → chunk-RTSRESGX.js} +5 -5
- package/dist/bundle/{chunk-KUFOM3SB.js → chunk-S54Z74G2.js} +1 -1
- package/dist/bundle/{chunk-UU3OAPGO.js → chunk-SF2OLWBU.js} +6 -6
- package/dist/bundle/{chunk-6AOPUQTC.js → chunk-TD4HM7XL.js} +1 -1
- package/dist/bundle/{chunk-EML43XLJ.js → chunk-TGURQ4YH.js} +31 -1
- package/dist/bundle/{chunk-E74VWHZ2.js → chunk-TPWAXJUQ.js} +1 -1
- package/dist/bundle/{chunk-4QGUBKN5.js → chunk-TXVXEE7L.js} +4 -4
- package/dist/bundle/{chunk-BNJ2XK7D.js → chunk-V6CRCAWN.js} +711 -367
- package/dist/bundle/{chunk-YB4KGUXY.js → chunk-VFJAGY3L.js} +2 -2
- package/dist/bundle/{chunk-YDTGYYOR.js → chunk-W5ARY4U2.js} +4 -4
- package/dist/bundle/{chunk-VRL5WRRQ.js → chunk-XGPSFPLH.js} +45 -45
- package/dist/bundle/{chunk-QYJJBE56.js → chunk-Y7YXXWQI.js} +3 -3
- package/dist/bundle/{chunk-SIOPF2UG.js → chunk-YD7XTYEC.js} +5 -5
- package/dist/bundle/{chunk-GWNLLQBD.js → chunk-YNXQAB4X.js} +11 -10
- package/dist/bundle/{chunk-WBCY7WHV.js → chunk-YRJ2576I.js} +10 -10
- package/dist/bundle/{chunk-WM7MVKGU.js → chunk-YSOTOUHJ.js} +13 -13
- package/dist/bundle/{chunk-IQIM4UC7.js → chunk-YU7KZW5I.js} +4 -4
- package/dist/bundle/{chunk-ZXW5FPH2.js → chunk-Z3NRIW4M.js} +1 -1
- package/dist/bundle/{chunk-6Q3JHCU7.js → chunk-ZHAHSVQO.js} +5 -5
- package/dist/bundle/{chunk-QKWM4VK4.js → chunk-ZIA7AU7L.js} +2 -2
- package/dist/bundle/{command-contract-QQG343ZQ.js → command-contract-IEUSFI3B.js} +11 -11
- package/dist/bundle/{command-server-entry-XVUPTSSH.js → command-server-entry-472XWNSN.js} +66 -50
- package/dist/bundle/{decode-METZOSMG.js → decode-SFZ67QJN.js} +2 -2
- package/dist/bundle/{echarts-EBSP4VCK.js → echarts-3U34KH7O.js} +2 -2
- package/dist/bundle/{embed-GVVU7N7W.js → embed-ZEZXJ45Q.js} +3 -3
- package/dist/bundle/{embedder-6BZOYAXV.js → embedder-AASO2I4Z.js} +6 -6
- package/dist/bundle/{entry-7EYT2OA3.js → entry-7VHMR3LD.js} +5 -5
- package/dist/bundle/failure-DJSK3LGN.js +69 -0
- package/dist/bundle/{first-run-C7L7IACA.js → first-run-YL3TIUU3.js} +5 -5
- package/dist/bundle/{first-screen-6T65PQ37.js → first-screen-OQVOWRYM.js} +12 -12
- package/dist/bundle/{instructions-VDKK3Y5Z.js → instructions-HG2ZZ7AP.js} +1 -1
- package/dist/bundle/{mcp-UCDMODSA.js → mcp-EUFDOVMI.js} +35 -35
- package/dist/bundle/memo.js +8 -8
- package/dist/bundle/{node-HWGZYNUX.js → node-7AQN6OTR.js} +2 -2
- package/dist/bundle/{node-sqlite-PSYENWGS.js → node-sqlite-55KMFPGI.js} +3 -3
- package/dist/bundle/{oauth-TQGMUJK2.js → oauth-S2GLD4PY.js} +4 -4
- package/dist/bundle/{open-KDDJDKCE.js → open-6R4UPST5.js} +2 -2
- package/dist/bundle/{openai-QPGCUM4T.js → openai-JK5GCSDK.js} +7 -7
- package/dist/bundle/{process-APNTXJJE.js → process-C7J3IT7Q.js} +1 -1
- package/dist/bundle/{program-RHPSSKFA.js → program-KWI6M5IB.js} +3251 -2563
- package/dist/bundle/{prompt-BMBZCLGF.js → prompt-EEFKVWSA.js} +2 -2
- package/dist/bundle/{recognize-3SEY2MAR.js → recognize-STYHVWQ6.js} +1 -1
- package/dist/bundle/{remote-ODH54UXO.js → remote-6MXZXHYY.js} +4 -4
- package/dist/bundle/{rerank-JQHBNTUK.js → rerank-IMX2ONZG.js} +4 -4
- package/dist/bundle/{serve-C22ZONSM.js → serve-ZNN464BH.js} +6 -6
- package/dist/bundle/server-4CHUUMVI.js +48 -0
- package/dist/bundle/{server-FX7RKPL4.js → server-L6OS2MJ5.js} +53 -52
- package/dist/bundle/server-VCZCAQOB.js +62 -0
- package/dist/bundle/{state-M3VGXSV4.js → state-7MP4KKPG.js} +3 -3
- package/dist/bundle/{store-K45RFKGF.js → store-EMAKEEYI.js} +9 -9
- package/dist/bundle/store-maintenance-command-LWN6OUFA.js +47 -0
- package/dist/bundle/update-I4X2UO6J.js +72 -0
- package/dist/digest/backfill.d.ts +1 -1
- package/dist/digest/backfill.d.ts.map +1 -1
- package/dist/digest/backfill.js +73 -43
- package/dist/digest/backfill.js.map +1 -1
- package/dist/digest/brief.d.ts +14 -3
- package/dist/digest/brief.d.ts.map +1 -1
- package/dist/digest/brief.js +84 -34
- package/dist/digest/brief.js.map +1 -1
- package/dist/digest/command.d.ts +3 -0
- package/dist/digest/command.d.ts.map +1 -1
- package/dist/digest/command.js +23 -0
- package/dist/digest/command.js.map +1 -1
- package/dist/digest/digest-commands.d.ts +6 -0
- package/dist/digest/digest-commands.d.ts.map +1 -0
- package/dist/digest/digest-commands.js +242 -0
- package/dist/digest/digest-commands.js.map +1 -0
- package/dist/digest/digest.d.ts +5 -2
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +29 -8
- package/dist/digest/digest.js.map +1 -1
- package/dist/digest/digests.d.ts +72 -0
- package/dist/digest/digests.d.ts.map +1 -0
- package/dist/digest/digests.js +122 -0
- package/dist/digest/digests.js.map +1 -0
- package/dist/digest/tasks.d.ts +7 -4
- package/dist/digest/tasks.d.ts.map +1 -1
- package/dist/digest/tasks.js +13 -5
- package/dist/digest/tasks.js.map +1 -1
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/doctor/command.js +2 -1
- package/dist/doctor/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +28 -2
- package/dist/examples.js.map +1 -1
- package/dist/exit-code.d.ts +7 -0
- package/dist/exit-code.d.ts.map +1 -0
- package/dist/exit-code.js +19 -0
- package/dist/exit-code.js.map +1 -0
- package/dist/facts/command.d.ts.map +1 -1
- package/dist/facts/command.js +3 -2
- package/dist/facts/command.js.map +1 -1
- package/dist/facts/fact.d.ts +1 -1
- package/dist/facts/fact.d.ts.map +1 -1
- package/dist/facts/fact.js +3 -3
- package/dist/facts/fact.js.map +1 -1
- package/dist/mcp/catalogue.d.ts +3 -0
- package/dist/mcp/catalogue.d.ts.map +1 -1
- package/dist/mcp/catalogue.js +1 -0
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/memories/command.d.ts.map +1 -1
- package/dist/memories/command.js +3 -2
- package/dist/memories/command.js.map +1 -1
- package/dist/memories/memory.d.ts +1 -1
- package/dist/memories/memory.d.ts.map +1 -1
- package/dist/memories/memory.js +2 -2
- package/dist/memories/memory.js.map +1 -1
- package/dist/page.d.ts +14 -5
- package/dist/page.d.ts.map +1 -1
- package/dist/page.js +11 -5
- package/dist/page.js.map +1 -1
- package/dist/people/command.d.ts +0 -1
- package/dist/people/command.d.ts.map +1 -1
- package/dist/people/command.js +114 -12
- package/dist/people/command.js.map +1 -1
- package/dist/program.d.ts +6 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +15 -5
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +30 -0
- package/dist/reasons.js.map +1 -1
- package/dist/records/import.d.ts.map +1 -1
- package/dist/records/import.js +60 -5
- package/dist/records/import.js.map +1 -1
- package/dist/records/input.d.ts +6 -2
- package/dist/records/input.d.ts.map +1 -1
- package/dist/records/input.js +87 -3
- package/dist/records/input.js.map +1 -1
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +13 -1
- package/dist/rows.js.map +1 -1
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +2 -1
- package/dist/run/import.js.map +1 -1
- package/dist/schedule/command.d.ts +8 -0
- package/dist/schedule/command.d.ts.map +1 -1
- package/dist/schedule/command.js +4 -2
- package/dist/schedule/command.js.map +1 -1
- package/dist/search/people.d.ts +2 -0
- package/dist/search/people.d.ts.map +1 -1
- package/dist/search/people.js +11 -4
- package/dist/search/people.js.map +1 -1
- package/dist/sources/command.d.ts.map +1 -1
- package/dist/sources/command.js +27 -2
- package/dist/sources/command.js.map +1 -1
- package/dist/sources/read.d.ts +13 -0
- package/dist/sources/read.d.ts.map +1 -1
- package/dist/sources/read.js +27 -1
- package/dist/sources/read.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-OCCPDCFY.js +0 -89
- package/dist/bundle/chunk-XPCTY6XV.js +0 -116
- package/dist/bundle/failure-YQJ43YFG.js +0 -69
- package/dist/bundle/server-3TQJ47Q6.js +0 -62
- package/dist/bundle/server-SHHKLBS2.js +0 -48
- package/dist/bundle/store-maintenance-command-EOTKQ3E5.js +0 -47
- package/dist/bundle/update-PW77Y4DM.js +0 -72
- /package/dist/bundle/{chunk-IXSUVHW6.js → chunk-IKIYW7FW.js} +0 -0
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
servicesFor,
|
|
17
17
|
throughWrapper,
|
|
18
18
|
withFileLockAsync
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GB64N6DP.js";
|
|
20
20
|
import {
|
|
21
21
|
servingProfiles
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PFNEOHCY.js";
|
|
23
23
|
import {
|
|
24
24
|
chatReferenceOf,
|
|
25
25
|
ensureAccount,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
isId,
|
|
28
28
|
openStore,
|
|
29
29
|
pickPerson
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2KGYREGD.js";
|
|
31
31
|
import {
|
|
32
32
|
CEILING_KEY,
|
|
33
33
|
WRITE_KEYS,
|
|
@@ -47,13 +47,13 @@ import {
|
|
|
47
47
|
rememberAccount,
|
|
48
48
|
rootOf2 as rootOf,
|
|
49
49
|
skipFlagFor
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-ODCHYVTW.js";
|
|
51
51
|
import {
|
|
52
52
|
providerErrorKey
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-SF2OLWBU.js";
|
|
54
54
|
import {
|
|
55
55
|
isCliFailure
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-7XFJRX6F.js";
|
|
57
57
|
import {
|
|
58
58
|
resolvePaths
|
|
59
59
|
} from "./chunk-W46O6RJ5.js";
|
|
@@ -64,7 +64,7 @@ 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.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
68
68
|
import { openSync } from "node:fs";
|
|
69
69
|
import { createInterface } from "node:readline";
|
|
70
70
|
import { ReadStream } from "node:tty";
|
|
@@ -119,7 +119,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
119
119
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
120
120
|
}, "terminalAsker");
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
123
123
|
import { readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
124
124
|
import { join } from "node:path";
|
|
125
125
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -209,7 +209,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
209
209
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
210
210
|
}, "waitForTurn");
|
|
211
211
|
|
|
212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
213
213
|
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
214
214
|
const words = [];
|
|
215
215
|
for (let at = command; at?.parent; at = at.parent)
|
|
@@ -269,7 +269,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
269
269
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
270
270
|
}, "refuseUnknownPermissionKeys");
|
|
271
271
|
|
|
272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
273
273
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
274
274
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
275
275
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -366,7 +366,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
366
366
|
});
|
|
367
367
|
}, "flooded");
|
|
368
368
|
|
|
369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
370
370
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
371
371
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
372
372
|
const write = currentOperation();
|
|
@@ -465,7 +465,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
465
465
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
466
466
|
}, "byPart");
|
|
467
467
|
|
|
468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
469
469
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
470
470
|
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" }) => {
|
|
471
471
|
let warned = false;
|
|
@@ -1041,7 +1041,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1041
1041
|
}
|
|
1042
1042
|
}, "keep");
|
|
1043
1043
|
|
|
1044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1045
1045
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1046
1046
|
let opened;
|
|
1047
1047
|
return {
|
|
@@ -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-3PLYUZAR.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZIA7AU7L.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
calledTools,
|
|
18
18
|
httpActivityFile,
|
|
19
19
|
httpLock
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-N2FIIVJV.js";
|
|
21
21
|
import {
|
|
22
22
|
getOAuthProtectedResourceMetadataUrl,
|
|
23
23
|
oauthMetadataResponse,
|
|
@@ -30,7 +30,7 @@ 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.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/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
|
__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.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/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 = "";
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MFQTOOHR.js";
|
|
6
6
|
import {
|
|
7
7
|
upgradeCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-V6CRCAWN.js";
|
|
9
9
|
import {
|
|
10
10
|
latestVersion,
|
|
11
11
|
runUpdate,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
APP,
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TGURQ4YH.js";
|
|
18
18
|
import {
|
|
19
19
|
installerOf
|
|
20
20
|
} from "./chunk-NT5IOEEK.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
FETCH,
|
|
23
23
|
annotate,
|
|
24
24
|
overrideSharedContract
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ODCHYVTW.js";
|
|
26
26
|
import {
|
|
27
27
|
createRenderer,
|
|
28
28
|
resolvePaths
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
// dist/update.js
|
|
35
35
|
import { join } from "node:path";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
38
38
|
import { realpathSync } from "node:fs";
|
|
39
39
|
import { fileURLToPath } from "node:url";
|
|
40
40
|
var QUIET_WORDS = [
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ACCESS_SECONDS,
|
|
5
5
|
REFRESH_SECONDS,
|
|
6
6
|
readStored
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-N2FIIVJV.js";
|
|
8
8
|
import {
|
|
9
9
|
OAuthError,
|
|
10
10
|
OAuthErrorCode
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
commandPathOf,
|
|
7
7
|
findCommand,
|
|
8
8
|
outputOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-O3KNZVDZ.js";
|
|
10
|
+
import "./chunk-ODCHYVTW.js";
|
|
11
|
+
import "./chunk-SF2OLWBU.js";
|
|
12
|
+
import "./chunk-TD4HM7XL.js";
|
|
13
|
+
import "./chunk-EVLOYNXC.js";
|
|
14
|
+
import "./chunk-S54Z74G2.js";
|
|
15
|
+
import "./chunk-FUATAPSB.js";
|
|
16
|
+
import "./chunk-7XFJRX6F.js";
|
|
17
|
+
import "./chunk-TXVXEE7L.js";
|
|
18
|
+
import "./chunk-OJU774SG.js";
|
|
19
|
+
import "./chunk-FH753LZS.js";
|
|
20
20
|
import "./chunk-G5GW3FFJ.js";
|
|
21
21
|
import "./chunk-W46O6RJ5.js";
|
|
22
22
|
import "./chunk-VYCLOFPC.js";
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
COMMAND_SERVER_CONCURRENT,
|
|
5
|
+
enterCommandServer,
|
|
6
6
|
serveCommands
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-4IWOPJL4.js";
|
|
8
|
+
import "./chunk-HAMGOLFU.js";
|
|
9
9
|
import {
|
|
10
10
|
ensureSqlite
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-XMHWGHID.js";
|
|
16
|
-
import "./chunk-UU3OAPGO.js";
|
|
17
|
-
import "./chunk-6AOPUQTC.js";
|
|
18
|
-
import "./chunk-XQHOMQNZ.js";
|
|
19
|
-
import "./chunk-KUFOM3SB.js";
|
|
11
|
+
} from "./chunk-Y7YXXWQI.js";
|
|
12
|
+
import "./chunk-C7OOLF5J.js";
|
|
13
|
+
import "./chunk-3NCRQMEN.js";
|
|
14
|
+
import "./chunk-O3KNZVDZ.js";
|
|
20
15
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
16
|
+
commandServerRequest,
|
|
17
|
+
exitCodeSet,
|
|
18
|
+
inCommandServerRequest
|
|
19
|
+
} from "./chunk-ODCHYVTW.js";
|
|
20
|
+
import "./chunk-SF2OLWBU.js";
|
|
21
|
+
import "./chunk-TD4HM7XL.js";
|
|
22
|
+
import "./chunk-EVLOYNXC.js";
|
|
23
|
+
import "./chunk-S54Z74G2.js";
|
|
24
|
+
import {
|
|
25
|
+
asOwnProcess
|
|
26
|
+
} from "./chunk-FUATAPSB.js";
|
|
27
|
+
import "./chunk-7XFJRX6F.js";
|
|
28
|
+
import "./chunk-TXVXEE7L.js";
|
|
29
|
+
import "./chunk-OJU774SG.js";
|
|
30
|
+
import "./chunk-FH753LZS.js";
|
|
27
31
|
import "./chunk-G5GW3FFJ.js";
|
|
28
32
|
import "./chunk-W46O6RJ5.js";
|
|
29
33
|
import {
|
|
@@ -37,7 +41,7 @@ import {
|
|
|
37
41
|
__name
|
|
38
42
|
} from "./chunk-ZVVMGPBJ.js";
|
|
39
43
|
|
|
40
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/command-server-entry.js
|
|
41
45
|
import { PassThrough } from "node:stream";
|
|
42
46
|
var route = /* @__PURE__ */ __name((stream, sink) => {
|
|
43
47
|
const original = stream.write;
|
|
@@ -57,7 +61,21 @@ var closedStdin = /* @__PURE__ */ __name(() => {
|
|
|
57
61
|
stdin.end();
|
|
58
62
|
return stdin;
|
|
59
63
|
}, "closedStdin");
|
|
60
|
-
var useStdin = /* @__PURE__ */ __name((
|
|
64
|
+
var useStdin = /* @__PURE__ */ __name((outside) => Object.defineProperty(process, "stdin", {
|
|
65
|
+
get: /* @__PURE__ */ __name(() => commandServerRequest()?.stdin ?? outside, "get"),
|
|
66
|
+
configurable: true,
|
|
67
|
+
enumerable: true
|
|
68
|
+
}), "useStdin");
|
|
69
|
+
var roomFor = /* @__PURE__ */ __name((runs) => {
|
|
70
|
+
const emitters = [process, process.stdout, process.stderr];
|
|
71
|
+
const before = emitters.map((emitter) => emitter.getMaxListeners());
|
|
72
|
+
for (const emitter of emitters)
|
|
73
|
+
emitter.setMaxListeners(emitter.getMaxListeners() + 2 * runs);
|
|
74
|
+
return () => {
|
|
75
|
+
for (const [at, emitter] of emitters.entries())
|
|
76
|
+
emitter.setMaxListeners(before[at]);
|
|
77
|
+
};
|
|
78
|
+
}, "roomFor");
|
|
61
79
|
var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commanderExit }) => {
|
|
62
80
|
const release = catchCrashes({
|
|
63
81
|
cli: entry.app.command,
|
|
@@ -72,51 +90,47 @@ var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commande
|
|
|
72
90
|
const toStderr = /* @__PURE__ */ __name((chunk) => {
|
|
73
91
|
ownStderr(chunk);
|
|
74
92
|
}, "toStderr");
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
93
|
+
const sink = /* @__PURE__ */ __name((pick) => () => {
|
|
94
|
+
const request = commandServerRequest();
|
|
95
|
+
return request ? (chunk) => pick(request).push(chunk) : toStderr;
|
|
96
|
+
}, "sink");
|
|
97
|
+
const unrouteOut = route(process.stdout, sink((request) => request.stdout));
|
|
98
|
+
const unrouteErr = route(process.stderr, sink((request) => request.stderr));
|
|
78
99
|
const stdin = Object.getOwnPropertyDescriptor(process, "stdin");
|
|
79
100
|
const requests = io.stdin;
|
|
80
101
|
useStdin(closedStdin());
|
|
102
|
+
const unroom = roomFor(COMMAND_SERVER_CONCURRENT);
|
|
81
103
|
io.signals.on("SIGINT", stop).on("SIGTERM", stop);
|
|
82
104
|
io.stdout.on("error", stop);
|
|
83
|
-
const run = /* @__PURE__ */ __name(async (argv) => {
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
current = { stdout, stderr };
|
|
87
|
-
process.exitCode = void 0;
|
|
88
|
-
useAsProcessRun(void 0);
|
|
89
|
-
const input = closedStdin();
|
|
90
|
-
useStdin(input);
|
|
91
|
-
const requestIo = { ...io, argv: [...io.argv.slice(0, 2), ...argv], stdin: input };
|
|
105
|
+
const run = /* @__PURE__ */ __name(async (argv, alone) => {
|
|
106
|
+
const request = { stdout: [], stderr: [], stdin: closedStdin(), alone };
|
|
107
|
+
const requestIo = { ...io, argv: [...io.argv.slice(0, 2), ...argv], stdin: request.stdin };
|
|
92
108
|
const context = {
|
|
93
109
|
args: argv,
|
|
94
110
|
env: io.env,
|
|
95
111
|
tty: false,
|
|
96
112
|
signal: stopper.signal,
|
|
97
113
|
atStart: /* @__PURE__ */ __name(async (command) => {
|
|
98
|
-
|
|
114
|
+
await enterCommandServer(command, entry.app.command);
|
|
99
115
|
await firstRunAt(entry, requestIo, () => true)(command);
|
|
100
116
|
}, "atStart"),
|
|
101
117
|
ask: /* @__PURE__ */ __name(async () => false, "ask"),
|
|
102
118
|
openBrowser: /* @__PURE__ */ __name(async () => void 0, "openBrowser"),
|
|
103
|
-
outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed")
|
|
119
|
+
outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed"),
|
|
120
|
+
setExitCode: /* @__PURE__ */ __name((code2) => {
|
|
121
|
+
request.exitCode = code2;
|
|
122
|
+
}, "setExitCode")
|
|
104
123
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
} finally {
|
|
116
|
-
current = void 0;
|
|
117
|
-
process.exitCode = void 0;
|
|
118
|
-
}
|
|
119
|
-
return { code, stdout: Buffer.concat(stdout).toString("utf8"), stderr: Buffer.concat(stderr).toString("utf8") };
|
|
124
|
+
const code = await inCommandServerRequest(request, () => asOwnProcess(async () => {
|
|
125
|
+
try {
|
|
126
|
+
const returned = await entry.run(context);
|
|
127
|
+
return typeof returned === "number" ? returned : exitCodeSet() ?? 0;
|
|
128
|
+
} catch (error) {
|
|
129
|
+
return commanderExit(error) ?? entry.fail(error, context);
|
|
130
|
+
}
|
|
131
|
+
}));
|
|
132
|
+
const text = /* @__PURE__ */ __name((chunks) => Buffer.concat(chunks).toString("utf8"), "text");
|
|
133
|
+
return { code, stdout: text(request.stdout), stderr: text(request.stderr) };
|
|
120
134
|
}, "run");
|
|
121
135
|
try {
|
|
122
136
|
if (entry.sqlite)
|
|
@@ -126,12 +140,14 @@ var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commande
|
|
|
126
140
|
write: /* @__PURE__ */ __name((line) => new Promise((resolve) => protocol(line) ? resolve() : io.stdout.once("drain", resolve)), "write"),
|
|
127
141
|
run,
|
|
128
142
|
cli: entry.app.command,
|
|
143
|
+
concurrent: COMMAND_SERVER_CONCURRENT,
|
|
129
144
|
version: entry.app.version,
|
|
130
145
|
signal: stopper.signal
|
|
131
146
|
});
|
|
132
147
|
io.setExitCode(0);
|
|
133
148
|
} finally {
|
|
134
149
|
io.signals.off("SIGINT", stop).off("SIGTERM", stop);
|
|
150
|
+
unroom();
|
|
135
151
|
unrouteOut();
|
|
136
152
|
unrouteErr();
|
|
137
153
|
if (stdin)
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
decodeChannels,
|
|
7
7
|
formatOf,
|
|
8
8
|
runFfmpeg
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-VFJAGY3L.js";
|
|
10
|
+
import "./chunk-DDSKTPU7.js";
|
|
11
11
|
import "./chunk-W46O6RJ5.js";
|
|
12
12
|
import "./chunk-VYCLOFPC.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -42399,7 +42399,7 @@ function install11(registers) {
|
|
|
42399
42399
|
}
|
|
42400
42400
|
__name(install11, "install");
|
|
42401
42401
|
|
|
42402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
|
|
42403
42403
|
var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
42404
42404
|
animation: false,
|
|
42405
42405
|
backgroundColor: "#111827",
|
|
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
|
42447
42447
|
} : {}
|
|
42448
42448
|
}), "echartsOption");
|
|
42449
42449
|
|
|
42450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/charts/echarts.js
|
|
42451
42451
|
use([install2, install, install6, install5, install10, install7, install11]);
|
|
42452
42452
|
var echartsRenderer = {
|
|
42453
42453
|
render: /* @__PURE__ */ __name(async (chart, size) => {
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
truncated,
|
|
14
14
|
unit,
|
|
15
15
|
warmEmbedders
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-YD7XTYEC.js";
|
|
17
|
+
import "./chunk-OJU774SG.js";
|
|
18
|
+
import "./chunk-FH753LZS.js";
|
|
19
19
|
import "./chunk-W46O6RJ5.js";
|
|
20
20
|
import "./chunk-VYCLOFPC.js";
|
|
21
21
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
openSession,
|
|
5
5
|
truncated,
|
|
6
6
|
unit
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-YD7XTYEC.js";
|
|
8
|
+
import "./chunk-OJU774SG.js";
|
|
9
|
+
import "./chunk-FH753LZS.js";
|
|
10
10
|
import "./chunk-W46O6RJ5.js";
|
|
11
11
|
import "./chunk-VYCLOFPC.js";
|
|
12
12
|
import {
|
|
@@ -19,11 +19,11 @@ 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.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
23
23
|
import { readFileSync } from "node:fs";
|
|
24
24
|
import { join } from "node:path";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
|
|
27
27
|
var SIZE = 224;
|
|
28
28
|
var MEAN = [0.48145466, 0.4578275, 0.40821073];
|
|
29
29
|
var STD = [0.26862954, 0.26130258, 0.27577711];
|
|
@@ -62,7 +62,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
|
|
|
62
62
|
return pixels;
|
|
63
63
|
}, "preprocess");
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
65
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
66
66
|
var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
|
|
67
67
|
const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
|
|
68
68
|
const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
firstRunAt,
|
|
5
5
|
openBrowser,
|
|
6
6
|
startCli
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-YNXQAB4X.js";
|
|
8
|
+
import "./chunk-Y7YXXWQI.js";
|
|
9
|
+
import "./chunk-C7OOLF5J.js";
|
|
10
|
+
import "./chunk-3NCRQMEN.js";
|
|
11
|
+
import "./chunk-S54Z74G2.js";
|
|
12
12
|
import "./chunk-W46O6RJ5.js";
|
|
13
13
|
import "./chunk-VYCLOFPC.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
errorObject,
|
|
5
|
+
mcpFailure,
|
|
6
|
+
recognisable,
|
|
7
|
+
reportFailure,
|
|
8
|
+
throwParseFailures
|
|
9
|
+
} from "./chunk-47WS4BML.js";
|
|
10
|
+
import "./chunk-V6CRCAWN.js";
|
|
11
|
+
import "./chunk-TPWAXJUQ.js";
|
|
12
|
+
import "./chunk-KA5MDFLU.js";
|
|
13
|
+
import "./chunk-3PLYUZAR.js";
|
|
14
|
+
import "./chunk-6RPLAGAL.js";
|
|
15
|
+
import "./chunk-42UNPXTC.js";
|
|
16
|
+
import "./chunk-RLRKBPLJ.js";
|
|
17
|
+
import "./chunk-N2FIIVJV.js";
|
|
18
|
+
import "./chunk-XGPSFPLH.js";
|
|
19
|
+
import "./chunk-YSOTOUHJ.js";
|
|
20
|
+
import "./chunk-GB64N6DP.js";
|
|
21
|
+
import "./chunk-OEH5JUAL.js";
|
|
22
|
+
import "./chunk-PFNEOHCY.js";
|
|
23
|
+
import "./chunk-NM4QMIOQ.js";
|
|
24
|
+
import "./chunk-7PSGKP3R.js";
|
|
25
|
+
import "./chunk-HTQTIKWP.js";
|
|
26
|
+
import "./chunk-YRJ2576I.js";
|
|
27
|
+
import "./chunk-KEBL3PY4.js";
|
|
28
|
+
import "./chunk-OYKQX4H3.js";
|
|
29
|
+
import "./chunk-YNXQAB4X.js";
|
|
30
|
+
import "./chunk-H3WELZYK.js";
|
|
31
|
+
import "./chunk-5AQIET5P.js";
|
|
32
|
+
import "./chunk-2KGYREGD.js";
|
|
33
|
+
import "./chunk-DUON3SRD.js";
|
|
34
|
+
import "./chunk-GBU4U55M.js";
|
|
35
|
+
import "./chunk-LLBZDBPT.js";
|
|
36
|
+
import "./chunk-YD7XTYEC.js";
|
|
37
|
+
import "./chunk-BPGYTJNB.js";
|
|
38
|
+
import "./chunk-TGURQ4YH.js";
|
|
39
|
+
import "./chunk-NT5IOEEK.js";
|
|
40
|
+
import "./chunk-D72URWJE.js";
|
|
41
|
+
import "./chunk-4IWOPJL4.js";
|
|
42
|
+
import "./chunk-HAMGOLFU.js";
|
|
43
|
+
import "./chunk-Y7YXXWQI.js";
|
|
44
|
+
import "./chunk-C7OOLF5J.js";
|
|
45
|
+
import "./chunk-3NCRQMEN.js";
|
|
46
|
+
import "./chunk-O3KNZVDZ.js";
|
|
47
|
+
import "./chunk-ODCHYVTW.js";
|
|
48
|
+
import "./chunk-SF2OLWBU.js";
|
|
49
|
+
import "./chunk-TD4HM7XL.js";
|
|
50
|
+
import "./chunk-EVLOYNXC.js";
|
|
51
|
+
import "./chunk-S54Z74G2.js";
|
|
52
|
+
import "./chunk-FUATAPSB.js";
|
|
53
|
+
import "./chunk-7XFJRX6F.js";
|
|
54
|
+
import "./chunk-TXVXEE7L.js";
|
|
55
|
+
import "./chunk-OJU774SG.js";
|
|
56
|
+
import "./chunk-FH753LZS.js";
|
|
57
|
+
import "./chunk-G5GW3FFJ.js";
|
|
58
|
+
import "./chunk-W46O6RJ5.js";
|
|
59
|
+
import "./chunk-VYCLOFPC.js";
|
|
60
|
+
import "./chunk-Y5E2WNWB.js";
|
|
61
|
+
import "./chunk-2EZFUIL4.js";
|
|
62
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
63
|
+
export {
|
|
64
|
+
errorObject,
|
|
65
|
+
mcpFailure,
|
|
66
|
+
recognisable,
|
|
67
|
+
reportFailure,
|
|
68
|
+
throwParseFailures
|
|
69
|
+
};
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
asksAtStart,
|
|
6
6
|
setupAtStart,
|
|
7
7
|
systemLanguage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YRJ2576I.js";
|
|
9
9
|
import "./chunk-KEBL3PY4.js";
|
|
10
10
|
import "./chunk-OYKQX4H3.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DUON3SRD.js";
|
|
12
12
|
import "./chunk-NT5IOEEK.js";
|
|
13
13
|
import "./chunk-D72URWJE.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-EVLOYNXC.js";
|
|
15
|
+
import "./chunk-TXVXEE7L.js";
|
|
16
|
+
import "./chunk-FH753LZS.js";
|
|
17
17
|
import "./chunk-W46O6RJ5.js";
|
|
18
18
|
import "./chunk-VYCLOFPC.js";
|
|
19
19
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
WIRECAT_TOOLS,
|
|
5
5
|
firstScreen,
|
|
6
6
|
installHelp
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7PSGKP3R.js";
|
|
8
8
|
import "./chunk-HTQTIKWP.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-O3KNZVDZ.js";
|
|
10
|
+
import "./chunk-ODCHYVTW.js";
|
|
11
|
+
import "./chunk-SF2OLWBU.js";
|
|
12
|
+
import "./chunk-TD4HM7XL.js";
|
|
13
|
+
import "./chunk-EVLOYNXC.js";
|
|
14
|
+
import "./chunk-S54Z74G2.js";
|
|
15
|
+
import "./chunk-FUATAPSB.js";
|
|
16
|
+
import "./chunk-7XFJRX6F.js";
|
|
17
|
+
import "./chunk-TXVXEE7L.js";
|
|
18
|
+
import "./chunk-OJU774SG.js";
|
|
19
|
+
import "./chunk-FH753LZS.js";
|
|
20
20
|
import "./chunk-G5GW3FFJ.js";
|
|
21
21
|
import "./chunk-W46O6RJ5.js";
|
|
22
22
|
import "./chunk-VYCLOFPC.js";
|