pinomad 0.13.0 → 0.14.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/dist/chunk-0dh2k3er.js +43 -0
- package/dist/{chunk-kmzzjv53.js → chunk-1mjbt2z2.js} +143 -10
- package/dist/{chunk-s0h7c7da.js → chunk-1rdbnvy6.js} +1 -1
- package/dist/{chunk-53xv3fny.js → chunk-35szq73k.js} +2446 -416
- package/dist/{chunk-aapsc9g0.js → chunk-5j7ybhjj.js} +1952 -295
- package/dist/{chunk-m51mq8vh.js → chunk-5pv0g1nj.js} +12 -10
- package/dist/{chunk-7mn38n4f.js → chunk-63ymn5c9.js} +2 -2
- package/dist/{chunk-563fnad9.js → chunk-6j6hkfbj.js} +8 -4
- package/dist/{chunk-pqe7q1s7.js → chunk-6vbp1vva.js} +2 -1
- package/dist/{chunk-g3ahp7b9.js → chunk-9trbbz4r.js} +1 -1
- package/dist/{chunk-d9mq5d46.js → chunk-b0nwq1dt.js} +10 -8
- package/dist/chunk-dsr19q5h.js +23 -0
- package/dist/{chunk-6th9xv39.js → chunk-e53c0s8z.js} +9 -7
- package/dist/{chunk-4fferbxw.js → chunk-e59k3bmz.js} +213 -30
- package/dist/chunk-eerpgvy9.js +315 -0
- package/dist/chunk-eewxy4cp.js +240 -0
- package/dist/{chunk-maqv34cs.js → chunk-evbv1fkn.js} +3 -3
- package/dist/{chunk-ra86wjp5.js → chunk-ex5yr09h.js} +11 -6
- package/dist/{chunk-t91zt5f0.js → chunk-hg9gs396.js} +1 -1
- package/dist/{chunk-90g1cg9n.js → chunk-mtkvft88.js} +1 -1
- package/dist/{chunk-wd7aracm.js → chunk-mxwcnnkg.js} +1 -303
- package/dist/{chunk-d4tq62yr.js → chunk-w927q9m1.js} +12 -11
- package/dist/pinomad.js +12 -12
- package/package.json +5 -1
- package/web/assets/{core-BHm2gdHL.js → core-BWHGsFpV.js} +1 -1
- package/web/assets/{highlighted-diff-DrHvSLK9.js → highlighted-diff-DJ7KZCpS.js} +2 -2
- package/web/assets/{highlights-1aLwssz-.js → highlights-CyEmo6OI.js} +1 -1
- package/web/assets/{highlights-themes-C1p4pFYS.js → highlights-themes-CSNkBojy.js} +1 -1
- package/web/assets/index-C_qkbyL7.css +1 -0
- package/web/assets/index-DefQtCI2.js +396 -0
- package/web/assets/{shiki-BwyCm3kZ.js → shiki-BzCmRG-v.js} +2 -2
- package/web/assets/{shiki-langs-CMlALLSg.js → shiki-langs-DOkjyV4d.js} +1 -1
- package/web/assets/{stream-tokenizer-BlgIhw0y.js → stream-tokenizer-CBPqFe4Z.js} +1 -1
- package/web/assets/{theming-themes-DDvoqEqT.js → theming-themes-wKVca0aB.js} +1 -1
- package/web/assets/{xterm-view-BnKOnF3C.js → xterm-view-CKa1-QCM.js} +12 -12
- package/web/index.html +3 -2
- package/web/theme-boot.js +11 -0
- package/dist/chunk-sd640dt7.js +0 -22
- package/dist/chunk-t6fw0wa9.js +0 -96
- package/web/assets/index-A_AUJoO6.css +0 -1
- package/web/assets/index-BafYMKiN.js +0 -396
package/web/index.html
CHANGED
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
7
7
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
8
8
|
<title>PiNomad</title>
|
|
9
|
-
<script
|
|
10
|
-
<
|
|
9
|
+
<script src="/theme-boot.js"></script>
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-DefQtCI2.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-C_qkbyL7.css">
|
|
11
12
|
</head>
|
|
12
13
|
<body>
|
|
13
14
|
<div id="root"></div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Applies the stored appearance (src/entities/appearance/appearance.ts) before
|
|
2
|
+
// the app's module loads, so a forced light or dark theme doesn't flash the
|
|
3
|
+
// system's on first paint. A separate file because the CSP allows no inline script.
|
|
4
|
+
try {
|
|
5
|
+
var appearance = localStorage.getItem("pinomad.appearance");
|
|
6
|
+
if (appearance === "light" || appearance === "dark") {
|
|
7
|
+
document.documentElement.setAttribute("data-theme", appearance);
|
|
8
|
+
}
|
|
9
|
+
} catch (_) {
|
|
10
|
+
// Storage blocked: the app falls back to the system's appearance.
|
|
11
|
+
}
|
package/dist/chunk-sd640dt7.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
joinServer,
|
|
4
|
-
main
|
|
5
|
-
} from "./chunk-d9mq5d46.js";
|
|
6
|
-
import"./chunk-7mn38n4f.js";
|
|
7
|
-
import"./chunk-563fnad9.js";
|
|
8
|
-
import"./chunk-t91zt5f0.js";
|
|
9
|
-
import"./chunk-nq57fdnq.js";
|
|
10
|
-
import"./chunk-g3ahp7b9.js";
|
|
11
|
-
import"./chunk-wd7aracm.js";
|
|
12
|
-
import"./chunk-4fferbxw.js";
|
|
13
|
-
import"./chunk-kzbzacz9.js";
|
|
14
|
-
import"./chunk-kmzzjv53.js";
|
|
15
|
-
import"./chunk-pqe7q1s7.js";
|
|
16
|
-
import"./chunk-ngf1zatm.js";
|
|
17
|
-
import"./chunk-s0h7c7da.js";
|
|
18
|
-
import"./chunk-df32avw6.js";
|
|
19
|
-
export {
|
|
20
|
-
main,
|
|
21
|
-
joinServer
|
|
22
|
-
};
|
package/dist/chunk-t6fw0wa9.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
restartService,
|
|
4
|
-
serviceManager
|
|
5
|
-
} from "./chunk-wd7aracm.js";
|
|
6
|
-
import"./chunk-4fferbxw.js";
|
|
7
|
-
import"./chunk-kzbzacz9.js";
|
|
8
|
-
import"./chunk-kmzzjv53.js";
|
|
9
|
-
import"./chunk-pqe7q1s7.js";
|
|
10
|
-
import {
|
|
11
|
-
hostAddressOptions
|
|
12
|
-
} from "./chunk-ngf1zatm.js";
|
|
13
|
-
import {
|
|
14
|
-
commandHint,
|
|
15
|
-
globalPrefixOf,
|
|
16
|
-
packageDir,
|
|
17
|
-
packagedVersion
|
|
18
|
-
} from "./chunk-s0h7c7da.js";
|
|
19
|
-
import"./chunk-df32avw6.js";
|
|
20
|
-
|
|
21
|
-
// apps/host/src/cli/upgrade.ts
|
|
22
|
-
import { execFile, spawn } from "node:child_process";
|
|
23
|
-
import { existsSync } from "node:fs";
|
|
24
|
-
import { dirname, join } from "node:path";
|
|
25
|
-
import { fileURLToPath } from "node:url";
|
|
26
|
-
import { parseArgs, promisify } from "node:util";
|
|
27
|
-
var exec = promisify(execFile);
|
|
28
|
-
var repoRoot = fileURLToPath(new URL("../../../../", import.meta.url));
|
|
29
|
-
var step = (command, args, binDir) => new Promise((resolve) => {
|
|
30
|
-
const env = binDir === undefined ? process.env : { ...process.env, PATH: `${binDir}:${process.env.PATH ?? ""}` };
|
|
31
|
-
spawn(command, [...args], { cwd: repoRoot, env, stdio: "inherit" }).once("exit", (code) => resolve(code ?? 1));
|
|
32
|
-
});
|
|
33
|
-
function npmBeside(execPath) {
|
|
34
|
-
const binDir = dirname(execPath);
|
|
35
|
-
const cli = join(binDir, "..", "lib", "node_modules", "npm", "bin", "npm-cli.js");
|
|
36
|
-
return existsSync(cli) ? { command: execPath, args: [cli], binDir } : { command: "npm", args: [] };
|
|
37
|
-
}
|
|
38
|
-
var serviceState = () => Promise.resolve().then(() => serviceManager().state()).catch(() => ({ installed: false, stopped: false }));
|
|
39
|
-
async function main(argv, deps = {}) {
|
|
40
|
-
const { values } = parseArgs({
|
|
41
|
-
args: [...argv],
|
|
42
|
-
options: { force: { type: "boolean", default: false }, ...hostAddressOptions }
|
|
43
|
-
});
|
|
44
|
-
const run = deps.run ?? ((command, args) => exec(command, args, { cwd: repoRoot }));
|
|
45
|
-
const runStep = deps.step ?? step;
|
|
46
|
-
const restart = deps.restart ?? restartService;
|
|
47
|
-
if (packagedVersion === undefined) {
|
|
48
|
-
const { stdout } = await run("git", ["status", "--porcelain"]);
|
|
49
|
-
if (stdout.trim() !== "") {
|
|
50
|
-
console.error("upgrade: the checkout has uncommitted changes; commit or stash them first");
|
|
51
|
-
process.exitCode = 1;
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
for (const [command, args] of [
|
|
55
|
-
["git", ["pull", "--ff-only"]],
|
|
56
|
-
["bun", ["install"]],
|
|
57
|
-
["bun", ["run", "build"]]
|
|
58
|
-
]) {
|
|
59
|
-
const code = await runStep(command, args);
|
|
60
|
-
if (code !== 0) {
|
|
61
|
-
process.exitCode = code;
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
} else {
|
|
66
|
-
const prefix = globalPrefixOf(packageDir);
|
|
67
|
-
if (prefix === undefined) {
|
|
68
|
-
console.error(`upgrade: pinomad isn't a global npm install (${packageDir}); upgrade it the way it was installed`);
|
|
69
|
-
process.exitCode = 1;
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
const npm = npmBeside(process.execPath);
|
|
73
|
-
const code = await runStep(npm.command, [...npm.args, "install", "-g", "--prefix", prefix, "pinomad@latest"], npm.binDir);
|
|
74
|
-
if (code !== 0) {
|
|
75
|
-
process.exitCode = code;
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
const service = await (deps.serviceState ?? serviceState)();
|
|
80
|
-
if (!service.installed) {
|
|
81
|
-
console.log("service not installed; upgrade done, nothing restarted");
|
|
82
|
-
process.exitCode = 0;
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
if (service.stopped) {
|
|
86
|
-
console.log(`service stopped; upgrade done, it stays off until \`${commandHint("service")} start\``);
|
|
87
|
-
process.exitCode = 0;
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
(deps.exit ?? process.exit)(await restart({ force: values.force, argv: argv.filter((arg) => arg !== "--force") }));
|
|
91
|
-
}
|
|
92
|
-
if (false) {}
|
|
93
|
-
export {
|
|
94
|
-
npmBeside,
|
|
95
|
-
main
|
|
96
|
-
};
|