@wirecat/tg-cli 0.120.0 → 0.121.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/contracts/wirecat.json +25 -3
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-OJKHXGBC.js → adapter-GVSBFSBY.js} +53 -49
- package/dist/bundle/{all-profiles-URIWNL23.js → all-profiles-CTOGU4XR.js} +6 -6
- package/dist/bundle/{anthropic-YUKNB63B.js → anthropic-7472H6ES.js} +13 -4
- package/dist/bundle/{app-server-H5QNHGH4.js → app-server-GZWV4NPR.js} +43 -42
- package/dist/bundle/{bot-api-27GN4Y3D.js → bot-api-PPVAKICN.js} +47 -44
- package/dist/bundle/{bot-history-VVSWLVZM.js → bot-history-7YY7MCR4.js} +12 -12
- package/dist/bundle/{bun-PAAJX3GU.js → bun-KCN62RMD.js} +2 -2
- package/dist/bundle/{bun-sqlite-TPEBWFZH.js → bun-sqlite-2BNE56MY.js} +2 -2
- package/dist/bundle/{chunk-FPWXG53C.js → chunk-24DWSW6H.js} +35 -120
- package/dist/bundle/{chunk-DDKFAUQD.js → chunk-3E35VJME.js} +1 -1
- package/dist/bundle/{chunk-KP26Y5OA.js → chunk-3EGVR7OF.js} +4883 -4825
- package/dist/bundle/{chunk-CYWV2RLN.js → chunk-3HNI6GI7.js} +4 -4
- package/dist/bundle/{chunk-U2TPRUWK.js → chunk-4HJCWFPN.js} +81 -81
- package/dist/bundle/{chunk-KW6JZGG3.js → chunk-4J34T6IQ.js} +1 -1
- package/dist/bundle/{chunk-MMPISXSU.js → chunk-54KFRAHF.js} +1 -1
- package/dist/bundle/{chunk-ZRRZTPSB.js → chunk-5P43K3GL.js} +1418 -742
- package/dist/bundle/{chunk-3GLLWDM6.js → chunk-6LRKWXCS.js} +16 -16
- package/dist/bundle/{chunk-3FPFRDG2.js → chunk-6SQAE7NM.js} +6 -6
- package/dist/bundle/{chunk-WLBPNLDF.js → chunk-7MXRFFIT.js} +2 -2
- package/dist/bundle/{chunk-KRCMKFUV.js → chunk-7UIMMQOV.js} +1 -1
- package/dist/bundle/{chunk-DH7VKHTZ.js → chunk-AYDLA27G.js} +3 -3
- package/dist/bundle/{chunk-7N4IUEX3.js → chunk-BJTJBNR7.js} +6 -6
- package/dist/bundle/{chunk-JJY3TQTM.js → chunk-CLMRF6XR.js} +2 -2
- package/dist/bundle/{chunk-JQLGS3SG.js → chunk-CMEWPXKU.js} +1 -1
- package/dist/bundle/{chunk-THJHYMFR.js → chunk-CPDYPZIG.js} +3599 -3595
- package/dist/bundle/{chunk-WQ55F4Y3.js → chunk-DAK2J3FG.js} +7 -7
- package/dist/bundle/{chunk-YDROJG2Y.js → chunk-DG44ORQ3.js} +4 -4
- package/dist/bundle/{chunk-D2WNQJUQ.js → chunk-ESLV57MC.js} +1 -1
- package/dist/bundle/{chunk-CLTMVPGT.js → chunk-FERGNQYA.js} +12 -12
- package/dist/bundle/{chunk-KTV5Y5EX.js → chunk-GB55EDOF.js} +1 -1
- package/dist/bundle/chunk-GNGYV5NX.js +116 -0
- package/dist/bundle/{chunk-4OWY7QBE.js → chunk-KKD5ZPGD.js} +5 -5
- package/dist/bundle/{chunk-4JATS2J5.js → chunk-KPAUPIC3.js} +2 -2
- package/dist/bundle/chunk-KVW7LCZK.js +109 -0
- package/dist/bundle/{chunk-LLCGOZ44.js → chunk-LTAHG7BO.js} +2 -2
- package/dist/bundle/{chunk-DE7QIEUP.js → chunk-M47CXY5J.js} +30 -49
- package/dist/bundle/{chunk-DQTQO6PB.js → chunk-M73VM67N.js} +1209 -851
- package/dist/bundle/{chunk-6XHZV7AQ.js → chunk-MAPJUOTD.js} +3 -3
- package/dist/bundle/{chunk-S6OC367D.js → chunk-MKAKM3V7.js} +2 -2
- package/dist/bundle/{chunk-LS72R7DN.js → chunk-NR7PGYPO.js} +37 -35
- package/dist/bundle/chunk-PLBEUSZP.js +18 -0
- package/dist/bundle/{chunk-B7B65ZLU.js → chunk-QMNUQTA2.js} +1 -1
- package/dist/bundle/{chunk-3SANNNWS.js → chunk-QNNUNGPL.js} +2 -2
- package/dist/bundle/{chunk-YQKEPT22.js → chunk-QQ264PXQ.js} +1 -1
- package/dist/bundle/{chunk-JSEIT2WO.js → chunk-R6KXHBMW.js} +1 -1
- package/dist/bundle/{chunk-YBOVL25O.js → chunk-RPBO5XL3.js} +16 -16
- package/dist/bundle/{chunk-VUUR2SRS.js → chunk-RZX7RDXY.js} +33 -16
- package/dist/bundle/{chunk-7VNV426X.js → chunk-S7P5X23R.js} +26 -22
- package/dist/bundle/{chunk-HDSKBXAF.js → chunk-SHIHW2YN.js} +2 -2
- package/dist/bundle/{chunk-7WS3ULOO.js → chunk-SQWTUENZ.js} +1155 -800
- package/dist/bundle/{chunk-34DSPJNN.js → chunk-T7ONSJAA.js} +2 -2
- package/dist/bundle/{chunk-HIBYYKGO.js → chunk-TEMCXODM.js} +1 -1
- package/dist/bundle/{chunk-MTD6WZKV.js → chunk-VAAZL6OD.js} +6 -6
- package/dist/bundle/{chunk-PDYTNTQI.js → chunk-VPNLTNQD.js} +5 -5
- package/dist/bundle/{chunk-ZON7K5QE.js → chunk-W77WC6ZK.js} +2 -2
- package/dist/bundle/{chunk-KLHOQ6XQ.js → chunk-Y4CSR5RP.js} +3 -1
- package/dist/bundle/{chunk-CGUDXNJE.js → chunk-YMJKHMHX.js} +1 -1
- package/dist/bundle/{chunk-CLURRDNU.js → chunk-YRY752BB.js} +4 -4
- package/dist/bundle/{chunk-H5XC2WYO.js → chunk-ZSW7LN7T.js} +22 -22
- package/dist/bundle/{command-contract-KW6FNOJO.js → command-contract-3W73W27G.js} +12 -12
- package/dist/bundle/command-server-entry-37PKBJ5A.js +146 -0
- package/dist/bundle/{decode-RVWSCZW4.js → decode-F7KC7WT4.js} +2 -2
- package/dist/bundle/{echarts-6VNUD3JF.js → echarts-4VYG66GX.js} +2 -2
- package/dist/bundle/{embed-LWLCQKIK.js → embed-ENZ6R4HF.js} +3 -3
- package/dist/bundle/{embedder-CXKHLRJT.js → embedder-4CBICMFO.js} +6 -6
- package/dist/bundle/{entry-HV4NSX3Z.js → entry-XQ562EDO.js} +7 -4
- package/dist/bundle/{first-run-OPI6NIWQ.js → first-run-PPXOC6ID.js} +5 -5
- package/dist/bundle/{first-screen-BVQLF4LN.js → first-screen-JC6BYZYD.js} +13 -13
- package/dist/bundle/{instructions-TK4HXL3A.js → instructions-XLCMJ5PJ.js} +1 -1
- package/dist/bundle/{node-WFPNBUCU.js → node-SSAC67R5.js} +2 -2
- package/dist/bundle/{node-sqlite-L5BRGJLK.js → node-sqlite-SUUUSYSZ.js} +3 -3
- package/dist/bundle/{oauth-CGVWL35B.js → oauth-2ZNHMPEX.js} +4 -4
- package/dist/bundle/{open-HLL55C5S.js → open-EFNT7V2Q.js} +2 -2
- package/dist/bundle/{openai-YFCNXIJ4.js → openai-7STFVJXA.js} +13 -13
- package/dist/bundle/{process-4A5JP5LO.js → process-63F4PNWH.js} +1 -1
- package/dist/bundle/{program-IFGQGSUF.js → program-C2E3TQNK.js} +63 -60
- package/dist/bundle/{prompt-B5FYE2DQ.js → prompt-QPO7EKD5.js} +2 -2
- package/dist/bundle/{recognize-ZHMHGIV3.js → recognize-MLXEHFYL.js} +1 -1
- package/dist/bundle/{remote-A3W5HE52.js → remote-DO7FLJEF.js} +4 -4
- package/dist/bundle/{rerank-HWJAQOZM.js → rerank-W3WSBDAM.js} +4 -4
- package/dist/bundle/{serve-PP326Q2F.js → serve-Z3TOTEMQ.js} +11 -11
- package/dist/bundle/{server-MV6CL63L.js → server-BYSOJCUA.js} +32 -32
- package/dist/bundle/server-IRUVLXD4.js +61 -0
- package/dist/bundle/{state-Y3RJ7ZXB.js → state-PKRPBCMY.js} +3 -3
- package/dist/bundle/{store-EVNI2MHZ.js → store-Y4G7CNJT.js} +9 -9
- package/dist/bundle/store-maintenance-command-PHK43OSM.js +49 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-TZGGOJ26.js +0 -60
- package/dist/bundle/store-maintenance-command-XPQE47RE.js +0 -49
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
ensureSqlite,
|
|
5
|
+
isCommandServer
|
|
6
|
+
} from "./chunk-KVW7LCZK.js";
|
|
3
7
|
import {
|
|
4
8
|
envName,
|
|
5
9
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
CAPABILITY_STATEMENTS,
|
|
9
|
-
storeCapable
|
|
10
|
-
} from "./chunk-PDYTNTQI.js";
|
|
10
|
+
} from "./chunk-3E35VJME.js";
|
|
11
11
|
import {
|
|
12
12
|
catchCrashes
|
|
13
13
|
} from "./chunk-WGGSFGNZ.js";
|
|
14
|
-
import {
|
|
15
|
-
importFrom
|
|
16
|
-
} from "./chunk-Y5E2WNWB.js";
|
|
17
14
|
import {
|
|
18
15
|
CliError
|
|
19
16
|
} from "./chunk-VUBZFMGP.js";
|
|
@@ -21,98 +18,10 @@ import {
|
|
|
21
18
|
__name
|
|
22
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
20
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
-
import { spawn
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
22
|
+
import { spawn } from "node:child_process";
|
|
26
23
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
-
import { spawn, spawnSync } from "node:child_process";
|
|
29
|
-
import { readFileSync } from "node:fs";
|
|
30
|
-
import { dirname } from "node:path";
|
|
31
|
-
var RESTARTED = "CLI_MESSAGING_SQLITE_RESTARTED";
|
|
32
|
-
var USER_LIBRARY_PATH = "CLI_MESSAGING_USER_LD_LIBRARY_PATH";
|
|
33
|
-
var FORWARDED = ["SIGTERM", "SIGHUP", "SIGQUIT"];
|
|
34
|
-
var ensureSqlite = /* @__PURE__ */ __name(async (runtime = nodeRuntime()) => {
|
|
35
|
-
const { env } = runtime;
|
|
36
|
-
if (env[RESTARTED]) {
|
|
37
|
-
if (env[USER_LIBRARY_PATH] === void 0)
|
|
38
|
-
delete env.LD_LIBRARY_PATH;
|
|
39
|
-
else
|
|
40
|
-
env.LD_LIBRARY_PATH = env[USER_LIBRARY_PATH];
|
|
41
|
-
delete env[USER_LIBRARY_PATH];
|
|
42
|
-
delete env[RESTARTED];
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
if (runtime.bun || runtime.platform !== "linux")
|
|
46
|
-
return;
|
|
47
|
-
const maps = runtime.maps();
|
|
48
|
-
if (!maps.includes("libsqlite3"))
|
|
49
|
-
return;
|
|
50
|
-
if (await runtime.capable())
|
|
51
|
-
return;
|
|
52
|
-
const library = await runtime.library(maps.includes("ld-musl"));
|
|
53
|
-
if (!library)
|
|
54
|
-
return;
|
|
55
|
-
const restarted = {
|
|
56
|
-
...env,
|
|
57
|
-
LD_LIBRARY_PATH: [dirname(library.path), env.LD_LIBRARY_PATH].filter(Boolean).join(":"),
|
|
58
|
-
[RESTARTED]: "1"
|
|
59
|
-
};
|
|
60
|
-
if (env.LD_LIBRARY_PATH !== void 0)
|
|
61
|
-
restarted[USER_LIBRARY_PATH] = env.LD_LIBRARY_PATH;
|
|
62
|
-
if (!runtime.works(restarted, library.version))
|
|
63
|
-
return;
|
|
64
|
-
await runtime.restart(restarted);
|
|
65
|
-
}, "ensureSqlite");
|
|
66
|
-
var trialScript = /* @__PURE__ */ __name((version) => `
|
|
67
|
-
const { DatabaseSync } = await import("node:sqlite")
|
|
68
|
-
const database = new DatabaseSync(":memory:")
|
|
69
|
-
if (database.prepare("SELECT sqlite_version() AS v").get().v !== ${JSON.stringify(version)}) process.exit(1)
|
|
70
|
-
for (const statement of ${JSON.stringify(CAPABILITY_STATEMENTS)}) database.exec(statement)
|
|
71
|
-
`, "trialScript");
|
|
72
|
-
var nodeRuntime = /* @__PURE__ */ __name(() => ({
|
|
73
|
-
env: process.env,
|
|
74
|
-
platform: process.platform,
|
|
75
|
-
bun: "Bun" in globalThis,
|
|
76
|
-
maps: /* @__PURE__ */ __name(() => {
|
|
77
|
-
try {
|
|
78
|
-
return readFileSync("/proc/self/maps", "utf8");
|
|
79
|
-
} catch {
|
|
80
|
-
return "";
|
|
81
|
-
}
|
|
82
|
-
}, "maps"),
|
|
83
|
-
capable: /* @__PURE__ */ __name(() => storeCapable().then(() => true, () => false), "capable"),
|
|
84
|
-
library: /* @__PURE__ */ __name(async (musl) => {
|
|
85
|
-
try {
|
|
86
|
-
const { libraryFor, SQLITE_VERSION } = await importFrom(new URL("sqlite-runtime.js", import.meta.resolve("@wirecat/cli-core")).href, "@wirecat/cli-core-sqlite");
|
|
87
|
-
const path = libraryFor({ musl });
|
|
88
|
-
return path === void 0 ? void 0 : { path, version: SQLITE_VERSION };
|
|
89
|
-
} catch {
|
|
90
|
-
return void 0;
|
|
91
|
-
}
|
|
92
|
-
}, "library"),
|
|
93
|
-
works: /* @__PURE__ */ __name((env, version) => spawnSync(process.execPath, ["--no-warnings", "--input-type=module", "-e", trialScript(version)], {
|
|
94
|
-
env,
|
|
95
|
-
stdio: "ignore",
|
|
96
|
-
timeout: 1e4
|
|
97
|
-
}).status === 0, "works"),
|
|
98
|
-
restart: /* @__PURE__ */ __name((env) => relay(spawn(process.execPath, [...process.execArgv, ...process.argv.slice(1)], { env, stdio: "inherit" })), "restart")
|
|
99
|
-
}), "nodeRuntime");
|
|
100
|
-
var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() => {
|
|
101
|
-
for (const signal of FORWARDED)
|
|
102
|
-
host.on(signal, () => child.kill(signal));
|
|
103
|
-
host.on("SIGINT", () => {
|
|
104
|
-
});
|
|
105
|
-
child.on("error", () => host.exit(1));
|
|
106
|
-
child.on("exit", (code, signal) => {
|
|
107
|
-
if (signal) {
|
|
108
|
-
host.removeAllListeners(signal);
|
|
109
|
-
host.kill(host.pid, signal);
|
|
110
|
-
} else
|
|
111
|
-
host.exit(code ?? 1);
|
|
112
|
-
});
|
|
113
|
-
}), "relay");
|
|
114
|
-
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
116
25
|
import { appendFileSync } from "node:fs";
|
|
117
26
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
118
27
|
const words = [];
|
|
@@ -136,7 +45,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
136
45
|
`);
|
|
137
46
|
}, "logVersion");
|
|
138
47
|
|
|
139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
140
49
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
141
50
|
argv: process.argv,
|
|
142
51
|
env: process.env,
|
|
@@ -148,13 +57,17 @@ var processIo = /* @__PURE__ */ __name(() => ({
|
|
|
148
57
|
setExitCode: /* @__PURE__ */ __name((code) => {
|
|
149
58
|
process.exitCode = code;
|
|
150
59
|
}, "setExitCode"),
|
|
151
|
-
spawn
|
|
60
|
+
spawn
|
|
152
61
|
}), "processIo");
|
|
153
62
|
var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
154
63
|
const io = { ...processIo(), ...entry.io };
|
|
155
64
|
const args = io.argv.slice(2);
|
|
156
65
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
|
|
157
66
|
return printVersion(entry.app, io);
|
|
67
|
+
if (isCommandServer(args)) {
|
|
68
|
+
const { serveEntry } = await import("./command-server-entry-37PKBJ5A.js");
|
|
69
|
+
return serveEntry(entry, io, { firstRunAt, commanderExit });
|
|
70
|
+
}
|
|
158
71
|
const tty = io.stdout.isTTY === true;
|
|
159
72
|
const release = catchCrashes({
|
|
160
73
|
cli: entry.app.command,
|
|
@@ -186,27 +99,11 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
186
99
|
env: io.env,
|
|
187
100
|
tty,
|
|
188
101
|
signal: controller.signal,
|
|
189
|
-
atStart:
|
|
190
|
-
if (command.optsWithGlobals().dryRun === true)
|
|
191
|
-
return;
|
|
192
|
-
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
193
|
-
import("./first-run-OPI6NIWQ.js"),
|
|
194
|
-
import("./command-contract-KW6FNOJO.js")
|
|
195
|
-
]);
|
|
196
|
-
await setupAtStart({
|
|
197
|
-
command: entry.app.command,
|
|
198
|
-
env: io.env,
|
|
199
|
-
contentLanguages: entry.app.contentLanguages,
|
|
200
|
-
path: commandPathOf(command),
|
|
201
|
-
headless: headless(command),
|
|
202
|
-
readOnlyLock: readOnlyLockOf(entry.app, io.env),
|
|
203
|
-
input: io.stdin
|
|
204
|
-
});
|
|
205
|
-
}, "atStart"),
|
|
102
|
+
atStart: firstRunAt(entry, io, headless),
|
|
206
103
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
207
104
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
208
105
|
return false;
|
|
209
|
-
const { readSecret } = await import("./prompt-
|
|
106
|
+
const { readSecret } = await import("./prompt-QPO7EKD5.js");
|
|
210
107
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
211
108
|
input: io.stdin,
|
|
212
109
|
output: io.stderr,
|
|
@@ -244,6 +141,23 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
244
141
|
else if (code !== void 0)
|
|
245
142
|
io.setExitCode(code);
|
|
246
143
|
}, "startCli");
|
|
144
|
+
var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command) => {
|
|
145
|
+
if (command.optsWithGlobals().dryRun === true)
|
|
146
|
+
return;
|
|
147
|
+
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
148
|
+
import("./first-run-PPXOC6ID.js"),
|
|
149
|
+
import("./command-contract-3W73W27G.js")
|
|
150
|
+
]);
|
|
151
|
+
await setupAtStart({
|
|
152
|
+
command: entry.app.command,
|
|
153
|
+
env: io.env,
|
|
154
|
+
contentLanguages: entry.app.contentLanguages,
|
|
155
|
+
path: commandPathOf(command),
|
|
156
|
+
headless: headless(command),
|
|
157
|
+
readOnlyLock: readOnlyLockOf(entry.app, io.env),
|
|
158
|
+
input: io.stdin
|
|
159
|
+
});
|
|
160
|
+
}, "firstRunAt");
|
|
247
161
|
var printVersion = /* @__PURE__ */ __name((app, io) => {
|
|
248
162
|
const argvLog = io.env[envName(app, "TEST_ARGV_LOG")];
|
|
249
163
|
if (argvLog)
|
|
@@ -261,7 +175,7 @@ var commanderExit = /* @__PURE__ */ __name((error) => {
|
|
|
261
175
|
return 0;
|
|
262
176
|
return code === "commander.help" ? 2 : void 0;
|
|
263
177
|
}, "commanderExit");
|
|
264
|
-
var openBrowser = /* @__PURE__ */ __name((url, browser, io = { platform: process.platform, spawn
|
|
178
|
+
var openBrowser = /* @__PURE__ */ __name((url, browser, io = { platform: process.platform, spawn }) => {
|
|
265
179
|
const [command, prefix] = browser !== void 0 ? [browser, []] : io.platform === "darwin" ? ["open", []] : io.platform === "win32" ? ["rundll32.exe", ["url.dll,FileProtocolHandler"]] : ["xdg-open", []];
|
|
266
180
|
return new Promise((resolve, reject) => {
|
|
267
181
|
const child = io.spawn(command, [...prefix, url], { detached: true, stdio: "ignore", windowsHide: true });
|
|
@@ -277,5 +191,6 @@ export {
|
|
|
277
191
|
logParsedArgv,
|
|
278
192
|
logVersion,
|
|
279
193
|
startCli,
|
|
194
|
+
firstRunAt,
|
|
280
195
|
openBrowser
|
|
281
196
|
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|