@galaxy-blackhole/blackhole-harness 0.1.1 → 0.1.2
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/apps/cli/lib/main.js +9 -4
- package/apps/cli/src/paths.ts +7 -1
- package/apps/cli/src/runtime.ts +8 -4
- package/package.json +1 -1
- package/prepare.mjs +18 -1
- package/packages/host/gbh-libreoffice-kit-darwin-x64/package.json +0 -26
- package/packages/host/gbh-libreoffice-kit-darwin-x64/program/LibreOfficeDev.app/Contents/Resources/presets/autotext/mytexts.bau +0 -0
- package/packages/host/gbh-libreoffice-kit-darwin-x64/program/LibreOfficeDev.app/Contents/Resources/presets/config/autotbl.fmt +0 -0
- package/packages/host/gbh-libreoffice-kit-darwin-x64/program/LibreOfficeDev.app/Contents/Resources/presets/database/biblio/biblio.dbf +0 -0
- package/packages/host/gbh-libreoffice-kit-darwin-x64/program/LibreOfficeDev.app/Contents/Resources/presets/database/biblio/biblio.dbt +0 -0
- package/packages/host/gbh-libreoffice-kit-darwin-x64/program/LibreOfficeDev.app/Contents/Resources/presets/database/biblio.odb +0 -0
- package/packages/host/gbh-libreoffice-kit-darwin-x64/program/LibreOfficeDev.app/Contents/Resources/presets/database/evolocal.odb +0 -0
- package/packages/host/gbh-libreoffice-kit-darwin-x64/program/LibreOfficeDev.app/Contents/Resources/presets/gallery/sg30.sdv +0 -0
- package/packages/host/gbh-libreoffice-kit-darwin-x64/program/LibreOfficeDev.app/Contents/Resources/presets/gallery/sg30.thm +0 -0
package/apps/cli/lib/main.js
CHANGED
|
@@ -33,7 +33,8 @@ import { fileURLToPath } from "node:url";
|
|
|
33
33
|
var cacheKernel;
|
|
34
34
|
var DEFAULT_PORT = 5439;
|
|
35
35
|
var LOOPBACK_HOST = "127.0.0.1";
|
|
36
|
-
var MIN_NODE_MAJOR =
|
|
36
|
+
var MIN_NODE_MAJOR = 22;
|
|
37
|
+
var MIN_NODE_MINOR = 6;
|
|
37
38
|
var DEFAULT_PROFILE = "blackhole";
|
|
38
39
|
var ORACLE_PORT = 4001;
|
|
39
40
|
function galaxyRoot() {
|
|
@@ -2061,9 +2062,13 @@ function resolveNodeRuntime() {
|
|
|
2061
2062
|
rejected.push({ bin: candidate.bin, reason: "did not answer --version (known silent failure)" });
|
|
2062
2063
|
continue;
|
|
2063
2064
|
}
|
|
2064
|
-
const major =
|
|
2065
|
-
if (major < MIN_NODE_MAJOR) {
|
|
2066
|
-
rejected.push({
|
|
2065
|
+
const [major = 0, minor = 0] = version.slice(1).split(".").map((part) => Number(part));
|
|
2066
|
+
if (major < MIN_NODE_MAJOR || major === MIN_NODE_MAJOR && minor < MIN_NODE_MINOR) {
|
|
2067
|
+
rejected.push({
|
|
2068
|
+
bin: candidate.bin,
|
|
2069
|
+
version,
|
|
2070
|
+
reason: `below the required v${MIN_NODE_MAJOR}.${MIN_NODE_MINOR}`
|
|
2071
|
+
});
|
|
2067
2072
|
continue;
|
|
2068
2073
|
}
|
|
2069
2074
|
cached = { bin: candidate.bin, version, major, source: candidate.source };
|
package/apps/cli/src/paths.ts
CHANGED
|
@@ -27,7 +27,13 @@ export const DEFAULT_PORT = 5439;
|
|
|
27
27
|
export const LOOPBACK_HOST = "127.0.0.1";
|
|
28
28
|
|
|
29
29
|
/** Lowest Node major this app boots the harness with; v24 exits silently on this machine. */
|
|
30
|
-
export const MIN_NODE_MAJOR =
|
|
30
|
+
export const MIN_NODE_MAJOR = 22;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Nhỏ nhất của dòng {@link MIN_NODE_MAJOR}: 22.6 là bản đầu có `--experimental-strip-types`.
|
|
34
|
+
* @remarks Launcher chạy thẳng `.ts` nên Node 22.0–22.5 không dùng được dù đúng major.
|
|
35
|
+
*/
|
|
36
|
+
export const MIN_NODE_MINOR = 6;
|
|
31
37
|
|
|
32
38
|
/** Profile the app boots. */
|
|
33
39
|
export const DEFAULT_PROFILE = "blackhole";
|
package/apps/cli/src/runtime.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { spawnSync } from "node:child_process";
|
|
|
10
10
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
11
11
|
import { homedir } from "node:os";
|
|
12
12
|
import { join } from "node:path";
|
|
13
|
-
import { MIN_NODE_MAJOR, dshBinPath, dshManifestPath } from "./paths.ts";
|
|
13
|
+
import { MIN_NODE_MAJOR, MIN_NODE_MINOR, dshBinPath, dshManifestPath } from "./paths.ts";
|
|
14
14
|
|
|
15
15
|
/** A Node binary this app is willing to boot the harness with. */
|
|
16
16
|
export interface NodeRuntime {
|
|
@@ -123,9 +123,13 @@ export function resolveNodeRuntime(): NodeRuntime {
|
|
|
123
123
|
rejected.push({ bin: candidate.bin, reason: "did not answer --version (known silent failure)" });
|
|
124
124
|
continue;
|
|
125
125
|
}
|
|
126
|
-
const major =
|
|
127
|
-
if (major < MIN_NODE_MAJOR) {
|
|
128
|
-
rejected.push({
|
|
126
|
+
const [major = 0, minor = 0] = version.slice(1).split(".").map(part => Number(part));
|
|
127
|
+
if (major < MIN_NODE_MAJOR || (major === MIN_NODE_MAJOR && minor < MIN_NODE_MINOR)) {
|
|
128
|
+
rejected.push({
|
|
129
|
+
bin: candidate.bin,
|
|
130
|
+
version,
|
|
131
|
+
reason: `below the required v${MIN_NODE_MAJOR}.${MIN_NODE_MINOR}`,
|
|
132
|
+
});
|
|
129
133
|
continue;
|
|
130
134
|
}
|
|
131
135
|
cached = { bin: candidate.bin, version, major, source: candidate.source };
|
package/package.json
CHANGED
package/prepare.mjs
CHANGED
|
@@ -29,7 +29,24 @@ const REPO = dirname(STAGING);
|
|
|
29
29
|
const KEEP = new Set(["prepare.mjs", "README.md"]);
|
|
30
30
|
/** Ten goi va version publish. */
|
|
31
31
|
const NAME = "@galaxy-blackhole/blackhole-harness";
|
|
32
|
-
|
|
32
|
+
// 12/11/2026 (Lead): version doc tu env de `GBH_HARNESS_VERSION=0.1.2 bun run pack:harness` khong
|
|
33
|
+
// bi ghi de ve 0.1.0 (npm khong cho publish lai cung version, nen pack sai version la mat 1 luot).
|
|
34
|
+
// 12/11/2026 (Lead bổ sung): giữ version ĐANG CÓ trong npm-package/package.json khi không đặt env —
|
|
35
|
+
// nếu luôn mặc định 0.1.0 thì mỗi lượt `publish:harness` lại đụng "cannot publish over 0.1.0".
|
|
36
|
+
const VERSION = (process.env.GBH_HARNESS_VERSION ?? docVersion() ?? "0.1.0").trim();
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Version đang nằm trong staging package.json, nếu có.
|
|
40
|
+
* @returns version đã publish gần nhất theo staging, hoặc undefined khi chưa có tệp.
|
|
41
|
+
*/
|
|
42
|
+
function docVersion() {
|
|
43
|
+
try {
|
|
44
|
+
const doc = JSON.parse(readFileSync(join(STAGING, "package.json"), "utf8"));
|
|
45
|
+
return typeof doc.version === "string" ? doc.version.trim() : undefined;
|
|
46
|
+
} catch {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
33
50
|
|
|
34
51
|
/** Bo dem dung luong/so tep theo tung nhom, de in bao cao cuoi. */
|
|
35
52
|
const stats = new Map();
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@galaxy-blackhole/gbh-libreoffice-kit-darwin-x64",
|
|
3
|
-
"version": "0.2.1-alpha.4",
|
|
4
|
-
"private": true,
|
|
5
|
-
"description": "Bo nhi phan LibreOffice cho darwin-x64 (khong phai ma).",
|
|
6
|
-
"license": "MPL-2.0",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"exports": {
|
|
9
|
-
"./prebuilds.json": "./prebuilds.json",
|
|
10
|
-
"./package.json": "./package.json"
|
|
11
|
-
},
|
|
12
|
-
"os": [
|
|
13
|
-
"darwin"
|
|
14
|
-
],
|
|
15
|
-
"cpu": [
|
|
16
|
-
"x64"
|
|
17
|
-
],
|
|
18
|
-
"gbh": {
|
|
19
|
-
"provenance": {
|
|
20
|
-
"stock": "@deepseek-ai/libreoffice-kit-darwin-x64",
|
|
21
|
-
"version": "0.1.5",
|
|
22
|
-
"sha": "865bed0ca46779eb5d56b8da2938c6e54197432dde8f25fc3c778d6e84a8294c"
|
|
23
|
-
},
|
|
24
|
-
"draft": "Ban sao 1:1 tu goi goc - chua co dong nao trong bang doi chieu (khong khai gbh.row)."
|
|
25
|
-
}
|
|
26
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|