@wirecat/cli-memo 0.131.72 → 0.131.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-G6S5HOBT.js → all-profiles-LUGN5BHP.js} +9 -9
- package/dist/bundle/{anthropic-LA6PXTPQ.js → anthropic-W7JXDZPL.js} +16 -7
- package/dist/bundle/{app-server-SESNZIAV.js → app-server-2LQJZC7Z.js} +50 -49
- package/dist/bundle/auto-OCCPDCFY.js +89 -0
- package/dist/bundle/{bun-PZNVNH4G.js → bun-S3JZIN4S.js} +2 -2
- package/dist/bundle/{bun-sqlite-VICDK5FS.js → bun-sqlite-X3WQN3CV.js} +5 -5
- package/dist/bundle/{chunk-ZTONSM5X.js → chunk-2EZFUIL4.js} +2 -2
- package/dist/bundle/{chunk-FXZ7PQKG.js → chunk-3BEJUJEL.js} +8 -8
- package/dist/bundle/{chunk-IRBYZUI7.js → chunk-3OVYPDT6.js} +31 -50
- package/dist/bundle/{chunk-IXZWUHSG.js → chunk-4KDORB7C.js} +12 -37
- package/dist/bundle/{chunk-V3JOIUVB.js → chunk-4O2MYFYC.js} +4 -4
- package/dist/bundle/{chunk-SVVSGUMU.js → chunk-4QGUBKN5.js} +6 -6
- package/dist/bundle/{chunk-3LS76TFB.js → chunk-6AOPUQTC.js} +1 -1
- package/dist/bundle/chunk-6FTZ53TT.js +18 -0
- package/dist/bundle/{chunk-FPWF2XLH.js → chunk-6I4DOBSD.js} +13 -13
- package/dist/bundle/{chunk-FENNNSCI.js → chunk-6Q3JHCU7.js} +12 -12
- package/dist/bundle/{chunk-XXEHPPNS.js → chunk-AHAW3TOS.js} +1266 -952
- package/dist/bundle/{chunk-6B3GQMR6.js → chunk-BDVM5652.js} +1 -1
- package/dist/bundle/{chunk-2VETW2QK.js → chunk-BNJ2XK7D.js} +1192 -838
- package/dist/bundle/{chunk-II2SXJEO.js → chunk-BR4DCOA5.js} +47 -45
- package/dist/bundle/{chunk-FVJSDDSV.js → chunk-C6MWOBEL.js} +26 -22
- package/dist/bundle/{chunk-RGIS2DRA.js → chunk-CWWUZK2U.js} +9 -9
- package/dist/bundle/{chunk-LIF2HXIQ.js → chunk-E2PSOSTN.js} +2 -2
- package/dist/bundle/{chunk-MKOQDN3I.js → chunk-E74VWHZ2.js} +1 -1
- package/dist/bundle/{chunk-5XRCF57Z.js → chunk-EML43XLJ.js} +2 -2
- package/dist/bundle/{chunk-ASDOPGKC.js → chunk-G45BLLDR.js} +4 -4
- package/dist/bundle/{chunk-B7LGXY3S.js → chunk-GPXHGG67.js} +12 -12
- package/dist/bundle/chunk-GWNLLQBD.js +177 -0
- package/dist/bundle/{chunk-FOPDWCRG.js → chunk-HEYIBJ5I.js} +12 -12
- package/dist/bundle/{chunk-PHL53ERQ.js → chunk-IQIM4UC7.js} +10 -10
- package/dist/bundle/{chunk-INQAQ55X.js → chunk-JINEHQ2T.js} +4911 -4900
- package/dist/bundle/chunk-KA5MDFLU.js +138 -0
- package/dist/bundle/{chunk-QUPPO7DB.js → chunk-KDBAY5JZ.js} +1 -1
- package/dist/bundle/{chunk-LJCT7YG6.js → chunk-KEBL3PY4.js} +4 -4
- package/dist/bundle/{chunk-HIHZNBR7.js → chunk-KUFOM3SB.js} +2 -2
- package/dist/bundle/{chunk-PGOMGFXA.js → chunk-KYJBGCTC.js} +2 -2
- package/dist/bundle/{chunk-U3P5F57B.js → chunk-LPGE6ACC.js} +2 -2
- package/dist/bundle/{chunk-I4HWKPQR.js → chunk-LX3OSTBD.js} +4 -4
- package/dist/bundle/{chunk-G3FQTKHT.js → chunk-MPZBV5RL.js} +8 -8
- package/dist/bundle/{chunk-K55WZ67L.js → chunk-NR633L2N.js} +4 -4
- package/dist/bundle/{chunk-DSU6UR2X.js → chunk-NT5IOEEK.js} +1 -1
- package/dist/bundle/{chunk-NRLXWY4Q.js → chunk-OOKMABOJ.js} +1528 -852
- package/dist/bundle/{chunk-L62FWN3Y.js → chunk-OYKQX4H3.js} +1 -1
- package/dist/bundle/{chunk-A4UQKFGY.js → chunk-P6FPRA3P.js} +59 -35
- package/dist/bundle/{chunk-BD7AGXJJ.js → chunk-QCR5WJ7R.js} +53 -48
- package/dist/bundle/{chunk-RF6KPQWV.js → chunk-QKWM4VK4.js} +6 -6
- package/dist/bundle/chunk-QYJJBE56.js +109 -0
- package/dist/bundle/{chunk-MSTWHRLN.js → chunk-SCYHDYLI.js} +3 -1
- package/dist/bundle/{chunk-CLQXHFKG.js → chunk-SIOPF2UG.js} +6 -6
- package/dist/bundle/{chunk-G7XOBQB5.js → chunk-SIQDO5DN.js} +4 -4
- package/dist/bundle/{chunk-ESYCZ575.js → chunk-SJD4KTK2.js} +4 -4
- package/dist/bundle/{chunk-KH43CUE2.js → chunk-UIAGASGP.js} +6 -6
- package/dist/bundle/{chunk-3ZSPTUG3.js → chunk-UU3OAPGO.js} +7 -7
- package/dist/bundle/{chunk-H3LAORYX.js → chunk-V7BDQIZS.js} +2 -2
- package/dist/bundle/{chunk-M2DAITNE.js → chunk-VB4OLJHK.js} +3 -3
- package/dist/bundle/{chunk-YBL4QKLV.js → chunk-VRL5WRRQ.js} +83 -83
- package/dist/bundle/{chunk-HE2F4JII.js → chunk-VYCLOFPC.js} +24 -9
- package/dist/bundle/{chunk-UUBV5ATQ.js → chunk-W46O6RJ5.js} +20 -20
- package/dist/bundle/{chunk-WT2P44YD.js → chunk-WBCY7WHV.js} +17 -17
- package/dist/bundle/{chunk-FDSM2TU6.js → chunk-WFXRR2JT.js} +11 -11
- package/dist/bundle/{chunk-2RNNWFU7.js → chunk-WM7MVKGU.js} +24 -24
- package/dist/bundle/{chunk-XNX3U6GD.js → chunk-WZHCQ4VZ.js} +8 -8
- package/dist/bundle/{chunk-MAGAWAPG.js → chunk-XMHWGHID.js} +4252 -4248
- package/dist/bundle/chunk-XPCTY6XV.js +116 -0
- package/dist/bundle/{chunk-UCRR7R6Q.js → chunk-XPSXVUZG.js} +3 -3
- package/dist/bundle/{chunk-CPUQC7UF.js → chunk-XQ3RZU3J.js} +1 -1
- package/dist/bundle/{chunk-6Z62U7NY.js → chunk-XQHOMQNZ.js} +4 -4
- package/dist/bundle/{chunk-SL2LXOCN.js → chunk-YB4KGUXY.js} +3 -3
- package/dist/bundle/{chunk-STJWETNW.js → chunk-YDTGYYOR.js} +4 -4
- package/dist/bundle/{chunk-FHIGY5K6.js → chunk-YLYZNPAZ.js} +2 -2
- package/dist/bundle/{chunk-ZM6J47GY.js → chunk-ZL63GL3Y.js} +3 -3
- package/dist/bundle/{chunk-SR7C53CS.js → chunk-ZTZLAGZA.js} +3 -3
- package/dist/bundle/{chunk-UX52EWLQ.js → chunk-ZXW5FPH2.js} +1 -1
- package/dist/bundle/command-contract-QQG343ZQ.js +32 -0
- package/dist/bundle/command-server-entry-XVUPTSSH.js +145 -0
- package/dist/bundle/{decode-WRWXOJML.js → decode-METZOSMG.js} +5 -5
- package/dist/bundle/{dispatch-VJSUBAUM.js → dispatch-PHB2Y6ZL.js} +8 -8
- package/dist/bundle/{echarts-MTCNTCST.js → echarts-EBSP4VCK.js} +2 -2
- package/dist/bundle/{embed-PPPCHSTE.js → embed-GVVU7N7W.js} +6 -6
- package/dist/bundle/{embedder-UJBIX6A2.js → embedder-6BZOYAXV.js} +9 -9
- package/dist/bundle/entry-7EYT2OA3.js +21 -0
- package/dist/bundle/{failure-GLF7OMMM.js → failure-OBT7CUVW.js} +2 -2
- package/dist/bundle/failure-YQJ43YFG.js +69 -0
- package/dist/bundle/{first-run-7HAWGQ3B.js → first-run-C7L7IACA.js} +11 -11
- package/dist/bundle/first-screen-6T65PQ37.js +30 -0
- package/dist/bundle/{instructions-JKIO4JF7.js → instructions-VDKK3Y5Z.js} +1 -1
- package/dist/bundle/{mcp-H2WYFBNW.js → mcp-5275YLID.js} +2 -2
- package/dist/bundle/mcp-UCDMODSA.js +90 -0
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-3AIXDDDR.js → node-HWGZYNUX.js} +2 -2
- package/dist/bundle/{node-sqlite-NX722DXD.js → node-sqlite-PSYENWGS.js} +6 -6
- package/dist/bundle/{oauth-2NPSI7Q3.js → oauth-TQGMUJK2.js} +7 -7
- package/dist/bundle/{open-AFRN6Q36.js → open-KDDJDKCE.js} +5 -5
- package/dist/bundle/openai-QPGCUM4T.js +24 -0
- package/dist/bundle/{process-J2IBN6X7.js → process-APNTXJJE.js} +1 -1
- package/dist/bundle/{program-MRG4ZQQI.js → program-RHPSSKFA.js} +262 -153
- package/dist/bundle/{prompt-6XNKR4VQ.js → prompt-BMBZCLGF.js} +5 -5
- package/dist/bundle/{recognize-G3GI32QS.js → recognize-3SEY2MAR.js} +4 -4
- package/dist/bundle/{remote-DJO255PT.js → remote-ODH54UXO.js} +7 -7
- package/dist/bundle/{rerank-5SBZRIHF.js → rerank-JQHBNTUK.js} +7 -7
- package/dist/bundle/{serve-BZVBKGU3.js → serve-C22ZONSM.js} +9 -9
- package/dist/bundle/server-3TQJ47Q6.js +62 -0
- package/dist/bundle/{server-D5BJDKTJ.js → server-FX7RKPL4.js} +71 -67
- package/dist/bundle/server-SHHKLBS2.js +48 -0
- package/dist/bundle/{state-A57F7T5D.js → state-M3VGXSV4.js} +6 -6
- package/dist/bundle/{store-JXD7SGIK.js → store-K45RFKGF.js} +13 -13
- package/dist/bundle/store-maintenance-command-EOTKQ3E5.js +47 -0
- package/dist/bundle/update-PW77Y4DM.js +72 -0
- package/dist/context/context.d.ts.map +1 -1
- package/dist/context/context.js +4 -2
- package/dist/context/context.js.map +1 -1
- package/dist/contract-overrides/search.d.ts.map +1 -1
- package/dist/contract-overrides/search.js +15 -3
- package/dist/contract-overrides/search.js.map +1 -1
- package/dist/digest/backfill.d.ts.map +1 -1
- package/dist/digest/backfill.js +7 -7
- package/dist/digest/backfill.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +11 -3
- package/dist/examples.js.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/search/answers.d.ts +15 -3
- package/dist/search/answers.d.ts.map +1 -1
- package/dist/search/answers.js +76 -6
- package/dist/search/answers.js.map +1 -1
- package/dist/search/command.d.ts.map +1 -1
- package/dist/search/command.js +50 -8
- package/dist/search/command.js.map +1 -1
- package/dist/search/lane-gates.d.ts +4 -3
- package/dist/search/lane-gates.d.ts.map +1 -1
- package/dist/search/lane-gates.js +13 -7
- package/dist/search/lane-gates.js.map +1 -1
- package/dist/search/search.d.ts +10 -2
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +18 -5
- package/dist/search/search.js.map +1 -1
- package/dist/store/group.d.ts +1 -1
- package/dist/store/group.d.ts.map +1 -1
- package/dist/store/group.js +2 -1
- package/dist/store/group.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/cli-memo/SKILL.md +3 -3
- package/skills/cli-memo/topics/meetings.md +2 -1
- package/skills/cli-memo/topics/search.md +1 -0
- package/dist/bundle/auto-WU47LYXJ.js +0 -85
- package/dist/bundle/chunk-THPGFRPZ.js +0 -262
- package/dist/bundle/command-contract-7QECBB6M.js +0 -32
- package/dist/bundle/entry-W6SHKRBE.js +0 -18
- package/dist/bundle/failure-NRJ3EPBO.js +0 -65
- package/dist/bundle/first-screen-FRRTKWFB.js +0 -30
- package/dist/bundle/mcp-OL6ZYF2T.js +0 -90
- package/dist/bundle/openai-U5CQFLRU.js +0 -23
- package/dist/bundle/server-AEZPZ3ZD.js +0 -48
- package/dist/bundle/server-CIT5B2SV.js +0 -61
- package/dist/bundle/store-maintenance-command-5DG4SEQA.js +0 -47
- package/dist/bundle/update-NI24ED4V.js +0 -68
- /package/dist/bundle/{chunk-SYWHHQMC.js → chunk-G5GW3FFJ.js} +0 -0
- /package/dist/bundle/{chunk-YSYFOIW7.js → chunk-IXSUVHW6.js} +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
ensureSqlite,
|
|
5
|
+
isCommandServer
|
|
6
|
+
} from "./chunk-QYJJBE56.js";
|
|
7
|
+
import {
|
|
8
|
+
envName,
|
|
9
|
+
readOnlyLockOf
|
|
10
|
+
} from "./chunk-KUFOM3SB.js";
|
|
11
|
+
import {
|
|
12
|
+
catchCrashes
|
|
13
|
+
} from "./chunk-VYCLOFPC.js";
|
|
14
|
+
import {
|
|
15
|
+
CliError
|
|
16
|
+
} from "./chunk-2EZFUIL4.js";
|
|
17
|
+
import {
|
|
18
|
+
__name
|
|
19
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
20
|
+
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
22
|
+
import { spawn } from "node:child_process";
|
|
23
|
+
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
25
|
+
import { appendFileSync } from "node:fs";
|
|
26
|
+
var logVersion = /* @__PURE__ */ __name((file) => {
|
|
27
|
+
appendFileSync(file, `${JSON.stringify({ command: "", options: ["--version"] })}
|
|
28
|
+
`);
|
|
29
|
+
}, "logVersion");
|
|
30
|
+
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
32
|
+
var processIo = /* @__PURE__ */ __name(() => ({
|
|
33
|
+
argv: process.argv,
|
|
34
|
+
env: process.env,
|
|
35
|
+
platform: process.platform,
|
|
36
|
+
stdin: process.stdin,
|
|
37
|
+
stdout: process.stdout,
|
|
38
|
+
stderr: process.stderr,
|
|
39
|
+
signals: process,
|
|
40
|
+
setExitCode: /* @__PURE__ */ __name((code) => {
|
|
41
|
+
process.exitCode = code;
|
|
42
|
+
}, "setExitCode"),
|
|
43
|
+
spawn
|
|
44
|
+
}), "processIo");
|
|
45
|
+
var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
46
|
+
const io = { ...processIo(), ...entry.io };
|
|
47
|
+
const args = io.argv.slice(2);
|
|
48
|
+
if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
|
|
49
|
+
return printVersion(entry.app, io);
|
|
50
|
+
if (isCommandServer(args)) {
|
|
51
|
+
const { serveEntry } = await import("./command-server-entry-XVUPTSSH.js");
|
|
52
|
+
return serveEntry(entry, io, { firstRunAt, commanderExit });
|
|
53
|
+
}
|
|
54
|
+
const tty = io.stdout.isTTY === true;
|
|
55
|
+
const release = catchCrashes({
|
|
56
|
+
cli: entry.app.command,
|
|
57
|
+
interactive: entry.interactive?.(args, tty) ?? tty,
|
|
58
|
+
...entry.reasons ? { reasons: entry.reasons } : {},
|
|
59
|
+
target: io.signals
|
|
60
|
+
});
|
|
61
|
+
const controller = new AbortController();
|
|
62
|
+
let closed = false;
|
|
63
|
+
let unwritable = false;
|
|
64
|
+
const interrupted = /* @__PURE__ */ __name((signal) => () => controller.abort(new CliError("cancelled", `command interrupted by ${signal}`, { reason: signal, retryable: false })), "interrupted");
|
|
65
|
+
const sigint = interrupted("SIGINT");
|
|
66
|
+
const sigterm = interrupted("SIGTERM");
|
|
67
|
+
const outputFailed = /* @__PURE__ */ __name((error) => {
|
|
68
|
+
if (error.code === "EPIPE") {
|
|
69
|
+
closed = true;
|
|
70
|
+
controller.abort(new CliError("cancelled", "output pipe closed", { retryable: false }));
|
|
71
|
+
} else {
|
|
72
|
+
unwritable = true;
|
|
73
|
+
controller.abort(new CliError("configuration_error", "could not write command output"));
|
|
74
|
+
}
|
|
75
|
+
}, "outputFailed");
|
|
76
|
+
const headless = /* @__PURE__ */ __name((command) => {
|
|
77
|
+
const flags = command?.optsWithGlobals() ?? {};
|
|
78
|
+
return Boolean(flags.json || flags.jsonl || flags.input === false || io.env.CI) || !tty;
|
|
79
|
+
}, "headless");
|
|
80
|
+
const context = {
|
|
81
|
+
args,
|
|
82
|
+
env: io.env,
|
|
83
|
+
tty,
|
|
84
|
+
signal: controller.signal,
|
|
85
|
+
atStart: firstRunAt(entry, io, headless),
|
|
86
|
+
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
87
|
+
if (headless(command) || io.stdin.isTTY !== true)
|
|
88
|
+
return false;
|
|
89
|
+
const { readSecret } = await import("./prompt-BMBZCLGF.js");
|
|
90
|
+
const answer = await readSecret(`${question} [y/N] `, {
|
|
91
|
+
input: io.stdin,
|
|
92
|
+
output: io.stderr,
|
|
93
|
+
echo: true,
|
|
94
|
+
signal: controller.signal
|
|
95
|
+
});
|
|
96
|
+
return /^(y|yes)$/i.test(answer.trim());
|
|
97
|
+
}, "ask"),
|
|
98
|
+
openBrowser: /* @__PURE__ */ __name(async (url, browser, command) => {
|
|
99
|
+
if (!headless(command))
|
|
100
|
+
await openBrowser(url, browser, io);
|
|
101
|
+
}, "openBrowser"),
|
|
102
|
+
outputClosed: /* @__PURE__ */ __name(() => closed, "outputClosed")
|
|
103
|
+
};
|
|
104
|
+
let code;
|
|
105
|
+
try {
|
|
106
|
+
if (entry.sqlite)
|
|
107
|
+
await ensureSqlite();
|
|
108
|
+
io.signals.on("SIGINT", sigint).on("SIGTERM", sigterm);
|
|
109
|
+
io.stdout.on("error", outputFailed);
|
|
110
|
+
io.stderr.on("error", outputFailed);
|
|
111
|
+
const returned = await entry.run(context);
|
|
112
|
+
if (typeof returned === "number")
|
|
113
|
+
code = returned;
|
|
114
|
+
} catch (error) {
|
|
115
|
+
code = commanderExit(error) ?? entry.fail(error, context);
|
|
116
|
+
} finally {
|
|
117
|
+
io.signals.off("SIGINT", sigint).off("SIGTERM", sigterm);
|
|
118
|
+
release();
|
|
119
|
+
}
|
|
120
|
+
if (closed)
|
|
121
|
+
io.setExitCode(0);
|
|
122
|
+
else if (unwritable)
|
|
123
|
+
io.setExitCode(3);
|
|
124
|
+
else if (code !== void 0)
|
|
125
|
+
io.setExitCode(code);
|
|
126
|
+
}, "startCli");
|
|
127
|
+
var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command) => {
|
|
128
|
+
if (command.optsWithGlobals().dryRun === true)
|
|
129
|
+
return;
|
|
130
|
+
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
131
|
+
import("./first-run-C7L7IACA.js"),
|
|
132
|
+
import("./command-contract-QQG343ZQ.js")
|
|
133
|
+
]);
|
|
134
|
+
await setupAtStart({
|
|
135
|
+
command: entry.app.command,
|
|
136
|
+
env: io.env,
|
|
137
|
+
contentLanguages: entry.app.contentLanguages,
|
|
138
|
+
path: commandPathOf(command),
|
|
139
|
+
headless: headless(command),
|
|
140
|
+
readOnlyLock: readOnlyLockOf(entry.app, io.env),
|
|
141
|
+
input: io.stdin
|
|
142
|
+
});
|
|
143
|
+
}, "firstRunAt");
|
|
144
|
+
var printVersion = /* @__PURE__ */ __name((app, io) => {
|
|
145
|
+
const argvLog = io.env[envName(app, "TEST_ARGV_LOG")];
|
|
146
|
+
if (argvLog)
|
|
147
|
+
logVersion(argvLog);
|
|
148
|
+
io.stdout.write(`${app.version}
|
|
149
|
+
`);
|
|
150
|
+
}, "printVersion");
|
|
151
|
+
var commanderExit = /* @__PURE__ */ __name((error) => {
|
|
152
|
+
if (!(error instanceof Error))
|
|
153
|
+
return void 0;
|
|
154
|
+
const { code, exitCode } = error;
|
|
155
|
+
if (typeof code !== "string" || !code.startsWith("commander.") || typeof exitCode !== "number")
|
|
156
|
+
return void 0;
|
|
157
|
+
if (exitCode === 0)
|
|
158
|
+
return 0;
|
|
159
|
+
return code === "commander.help" ? 2 : void 0;
|
|
160
|
+
}, "commanderExit");
|
|
161
|
+
var openBrowser = /* @__PURE__ */ __name((url, browser, io = { platform: process.platform, spawn }) => {
|
|
162
|
+
const [command, prefix] = browser !== void 0 ? [browser, []] : io.platform === "darwin" ? ["open", []] : io.platform === "win32" ? ["rundll32.exe", ["url.dll,FileProtocolHandler"]] : ["xdg-open", []];
|
|
163
|
+
return new Promise((resolve, reject) => {
|
|
164
|
+
const child = io.spawn(command, [...prefix, url], { detached: true, stdio: "ignore", windowsHide: true });
|
|
165
|
+
child.once("error", () => reject(new CliError("configuration_error", `could not start ${command} \u2014 open the printed URL in a browser`)));
|
|
166
|
+
child.once("spawn", () => {
|
|
167
|
+
child.unref();
|
|
168
|
+
resolve();
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
}, "openBrowser");
|
|
172
|
+
|
|
173
|
+
export {
|
|
174
|
+
startCli,
|
|
175
|
+
firstRunAt,
|
|
176
|
+
openBrowser
|
|
177
|
+
};
|
|
@@ -2,7 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
decisionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QCR5WJ7R.js";
|
|
6
|
+
import {
|
|
7
|
+
openStore
|
|
8
|
+
} from "./chunk-OOKMABOJ.js";
|
|
9
|
+
import {
|
|
10
|
+
STORE_CLIENT
|
|
11
|
+
} from "./chunk-EML43XLJ.js";
|
|
6
12
|
import {
|
|
7
13
|
compactText,
|
|
8
14
|
itemOf,
|
|
@@ -14,25 +20,19 @@ import {
|
|
|
14
20
|
rowsOfEntity,
|
|
15
21
|
sealed,
|
|
16
22
|
snakeKeysKeeping
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
openStore
|
|
20
|
-
} from "./chunk-NRLXWY4Q.js";
|
|
23
|
+
} from "./chunk-XMHWGHID.js";
|
|
21
24
|
import {
|
|
22
25
|
currentRun
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
STORE_CLIENT
|
|
26
|
-
} from "./chunk-5XRCF57Z.js";
|
|
26
|
+
} from "./chunk-JINEHQ2T.js";
|
|
27
27
|
import {
|
|
28
28
|
createRenderer
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-W46O6RJ5.js";
|
|
30
30
|
import {
|
|
31
31
|
COMPACT_FLAG
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VYCLOFPC.js";
|
|
33
33
|
import {
|
|
34
34
|
CliError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2EZFUIL4.js";
|
|
36
36
|
import {
|
|
37
37
|
__name
|
|
38
38
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,35 +2,35 @@ 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-BDVM5652.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QKWM4VK4.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
12
12
|
hostHeaderValidationResponse,
|
|
13
13
|
isLegacyRequest
|
|
14
14
|
} from "./chunk-3X4JM3ZR.js";
|
|
15
|
-
import {
|
|
16
|
-
getOAuthProtectedResourceMetadataUrl,
|
|
17
|
-
oauthMetadataResponse,
|
|
18
|
-
requireBearerAuth
|
|
19
|
-
} from "./chunk-H3ZN4YLB.js";
|
|
20
15
|
import {
|
|
21
16
|
activityRecorder,
|
|
22
17
|
calledTools,
|
|
23
18
|
httpActivityFile,
|
|
24
19
|
httpLock
|
|
25
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LX3OSTBD.js";
|
|
21
|
+
import {
|
|
22
|
+
getOAuthProtectedResourceMetadataUrl,
|
|
23
|
+
oauthMetadataResponse,
|
|
24
|
+
requireBearerAuth
|
|
25
|
+
} from "./chunk-H3ZN4YLB.js";
|
|
26
26
|
import {
|
|
27
27
|
CliError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2EZFUIL4.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.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/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";
|