@maiaos/node 0.1.0-canary.65 → 0.1.0-canary.67
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/maia-node-main.mjs +1358 -1348
- package/dist/bin/maia-node-main.mjs.map +3 -3
- package/dist/bin/maia-node.cdx.json +36 -36
- package/dist/bin/maia-node.meta.json +1 -1
- package/dist/bin/maia-node.mjs +3 -34
- package/dist/bin/maia-node.release.json +17 -17
- package/dist/bin/maia-process-host-linux-x64.build.json +1 -1
- package/dist/bin/maia-web.release.digest.json +1 -1
- package/dist/bin/panel/assets/index-C38PiPTe.js +30 -0
- package/dist/bin/panel/index.html +1 -1
- package/package.json +5 -5
- package/dist/bin/panel/assets/index-BijqBI2o.js +0 -30
package/dist/bin/maia-node.mjs
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
// Enables Node's compile cache in the state folder, then loads the bundle, so
|
|
3
3
|
// Node reuses the compiled bundle instead of parsing 4 MB of source again.
|
|
4
4
|
// `compile_cache = false` under [node] in config.toml, or a folder not private
|
|
5
|
-
// to this user, turns the cache off (one line on stderr).
|
|
6
|
-
//
|
|
7
|
-
// other logic out of this file.
|
|
5
|
+
// to this user, turns the cache off (one line on stderr). Keep all other logic
|
|
6
|
+
// out of this file.
|
|
8
7
|
import { lstatSync, mkdirSync, readFileSync, writeSync } from "node:fs";
|
|
9
8
|
import { constants, enableCompileCache } from "node:module";
|
|
10
9
|
import { homedir } from "node:os";
|
|
@@ -62,37 +61,7 @@ const fileTurnsCacheOff = () => {
|
|
|
62
61
|
);
|
|
63
62
|
});
|
|
64
63
|
};
|
|
65
|
-
|
|
66
|
-
// DEPRECATED_VARIABLES_CANARY_LINE, in @maiaos/agent; a test starts this
|
|
67
|
-
// launcher on both sides of it.
|
|
68
|
-
const LAST_CANARY = 65;
|
|
69
|
-
const aliasHonored = () => {
|
|
70
|
-
let version = "";
|
|
71
|
-
try {
|
|
72
|
-
const manifest = /** @type {{ application?: { version?: unknown } }} */ (
|
|
73
|
-
JSON.parse(read(new URL("maia-node.release.json", import.meta.url)))
|
|
74
|
-
);
|
|
75
|
-
version = String(manifest.application?.version);
|
|
76
|
-
} catch {
|
|
77
|
-
// No manifest means no known build, so the variable has no effect.
|
|
78
|
-
}
|
|
79
|
-
const canary = /^0\.1\.0-canary\.([1-9][0-9]*)$/u.exec(version)?.[1];
|
|
80
|
-
return (
|
|
81
|
-
version === "0.0.0" ||
|
|
82
|
-
(canary !== undefined && Number(canary) <= LAST_CANARY)
|
|
83
|
-
);
|
|
84
|
-
};
|
|
85
|
-
const variable = "MAIA_NODE_COMPILE_CACHE";
|
|
86
|
-
const alias =
|
|
87
|
-
process.env[variable] !== undefined && aliasHonored()
|
|
88
|
-
? process.env[variable]
|
|
89
|
-
: undefined;
|
|
90
|
-
if (alias !== undefined) {
|
|
91
|
-
say(
|
|
92
|
-
`${variable} is deprecated and a later canary ignores it. It still wins over node.compile_cache in config.toml for now; set node.compile_cache in config.toml and unset ${variable}.`,
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
const off = alias === undefined ? fileTurnsCacheOff() : alias === "0";
|
|
64
|
+
const off = fileTurnsCacheOff();
|
|
96
65
|
const found = off || process.platform === "win32" ? undefined : problem();
|
|
97
66
|
if (found !== undefined) {
|
|
98
67
|
say(`maia-node: compile cache off: ${directory}: ${found}`);
|
|
@@ -2,39 +2,39 @@
|
|
|
2
2
|
"application": {
|
|
3
3
|
"name": "@maiaos/node",
|
|
4
4
|
"path": "services/node/dist/bin/maia-node.mjs",
|
|
5
|
-
"sha256": "
|
|
6
|
-
"version": "0.1.0-canary.
|
|
5
|
+
"sha256": "8b9aa2361909f11009ec8a1b472034e950e9e1e75a4ecade4413dfb5d9a6368c",
|
|
6
|
+
"version": "0.1.0-canary.67"
|
|
7
7
|
},
|
|
8
8
|
"artifacts": [
|
|
9
9
|
{
|
|
10
|
-
"bytes":
|
|
10
|
+
"bytes": 5058765,
|
|
11
11
|
"path": "services/node/dist/bin/maia-node-main.mjs",
|
|
12
12
|
"role": "application-main",
|
|
13
|
-
"sha256": "
|
|
13
|
+
"sha256": "70c581b93fd594efdc37a5c7b7b3314f7d73193d30e62073335ef1a286437f9c"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
"bytes":
|
|
16
|
+
"bytes": 6457839,
|
|
17
17
|
"path": "services/node/dist/bin/maia-node-main.mjs.map",
|
|
18
18
|
"role": "source-map",
|
|
19
|
-
"sha256": "
|
|
19
|
+
"sha256": "06d1cbb4cced4ba51fa4d72670ded0ac520f0daeef71cb05a86515fcb370e5a6"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"bytes": 61820,
|
|
23
23
|
"path": "services/node/dist/bin/maia-node.cdx.json",
|
|
24
24
|
"role": "sbom",
|
|
25
|
-
"sha256": "
|
|
25
|
+
"sha256": "f83e6e8cbbfbab87133e79d1024a4799ccfbe33a238e0b5eea5010cf35fefb3d"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"bytes":
|
|
28
|
+
"bytes": 3111321,
|
|
29
29
|
"path": "services/node/dist/bin/maia-node.meta.json",
|
|
30
30
|
"role": "build-metafile",
|
|
31
|
-
"sha256": "
|
|
31
|
+
"sha256": "bc05040b066f3dc288274d65acae02d8c18f1aa0c8c842ed1634b28146aee163"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"bytes":
|
|
34
|
+
"bytes": 2548,
|
|
35
35
|
"path": "services/node/dist/bin/maia-node.mjs",
|
|
36
36
|
"role": "application",
|
|
37
|
-
"sha256": "
|
|
37
|
+
"sha256": "8b9aa2361909f11009ec8a1b472034e950e9e1e75a4ecade4413dfb5d9a6368c"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"bytes": 216675,
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"bytes": 2135,
|
|
53
53
|
"path": "services/node/dist/bin/maia-process-host-linux-x64.build.json",
|
|
54
54
|
"role": "native-build-metadata",
|
|
55
|
-
"sha256": "
|
|
55
|
+
"sha256": "1be6257a90f7555c91ecdefaa70ed8d7f2fad7d881011ce3f139a7a0c1027174"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
"bytes":
|
|
59
|
-
"path": "services/node/dist/bin/panel/assets/index-
|
|
58
|
+
"bytes": 832543,
|
|
59
|
+
"path": "services/node/dist/bin/panel/assets/index-C38PiPTe.js",
|
|
60
60
|
"role": "panel",
|
|
61
|
-
"sha256": "
|
|
61
|
+
"sha256": "f8326f9b94515d75dfe2c11479b704212e3059a791126340755eb2f178004e22"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"bytes": 22844,
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"bytes": 433,
|
|
71
71
|
"path": "services/node/dist/bin/panel/index.html",
|
|
72
72
|
"role": "panel",
|
|
73
|
-
"sha256": "
|
|
73
|
+
"sha256": "fcd2461e6a813a3b694b1090d5dfd710e34a472f4b3ad36deac534fdb667bdf9"
|
|
74
74
|
}
|
|
75
75
|
],
|
|
76
76
|
"footprint": {
|
|
77
77
|
"artifactCount": 11,
|
|
78
|
-
"boundArtifactBytes":
|
|
78
|
+
"boundArtifactBytes": 15848883,
|
|
79
79
|
"combinedCeiling": "not_accepted",
|
|
80
80
|
"status": "measured_without_accepted_ceiling",
|
|
81
81
|
"unmeasured": [
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"services/node/native/process-host/protocol.h": "c1b97046c62b1b56e80e3d319c395282806d085b16322faa299f45ceb6c127a6",
|
|
59
59
|
"services/node/native/process-host/sha256.h": "b2a686bbe44f7a67b14b9550fd5166db560fbb23104654ae818a92a69b07f819"
|
|
60
60
|
},
|
|
61
|
-
"revision": "
|
|
61
|
+
"revision": "52734e0c67cb01ca375ce487d713c63109d75187"
|
|
62
62
|
},
|
|
63
63
|
"targetTriple": "linux-x64"
|
|
64
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"asset": "maia-web-0.1.0-canary.
|
|
1
|
+
{"asset": "maia-web-0.1.0-canary.67.tgz", "bytes": 15123339, "sha256": "ca19f00d548e9b0a906624ceb4403e372042dbec44419057a545b7a940c96682", "version": "0.1.0-canary.67"}
|