niuma-codex 0.0.1-beta.17 → 0.0.1-beta.19
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/cli.js
CHANGED
|
@@ -304,7 +304,14 @@ async function inspect(o) {
|
|
|
304
304
|
const pkgFile = path4.join(file, "package.json"), ps = await stat(pkgFile);
|
|
305
305
|
if (!ps?.isFile() || ps.size > 65536) throw Error("\u8FD0\u884C\u8D44\u6E90\u5305\u6807\u8BC6\u4E0D\u53EF\u7528");
|
|
306
306
|
const pkg = JSON.parse(await fs4.readFile(pkgFile, "utf8"));
|
|
307
|
-
|
|
307
|
+
const suffix = name2.endsWith("-local") ? "local" : name2.slice(-36);
|
|
308
|
+
if (pkg.name !== "niuma-codex" || typeof pkg.version !== "string" || name2 !== `${pkg.version}-${suffix}`) throw Error("\u8FD0\u884C\u8D44\u6E90\u5F52\u5C5E\u4E0D\u5339\u914D");
|
|
309
|
+
if (suffix === "local") {
|
|
310
|
+
const dist = path4.join(file, "dist");
|
|
311
|
+
if (!await directory(dist)) throw Error("\u672C\u5730\u8FD0\u884C\u8D44\u6E90\u5165\u53E3\u7F3A\u5931");
|
|
312
|
+
const entry = await stat(path4.join(dist, "managed-tauri.js"));
|
|
313
|
+
if (!entry?.isFile()) throw Error("\u672C\u5730\u8FD0\u884C\u8D44\u6E90\u5165\u53E3\u7F3A\u5931\u6216\u5305\u542B\u94FE\u63A5");
|
|
314
|
+
}
|
|
308
315
|
} else await o.assertApp(file);
|
|
309
316
|
}
|
|
310
317
|
targets.push({ ...t2, dev: s.dev, ino: s.ino });
|
|
@@ -374,7 +381,7 @@ var init_uninstall = __esm({
|
|
|
374
381
|
init_lock();
|
|
375
382
|
init_migration();
|
|
376
383
|
uuid = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
377
|
-
runtimeName = new RegExp(`^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)
|
|
384
|
+
runtimeName = new RegExp(`^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?-(?:${uuid}|local)$`);
|
|
378
385
|
backupName = new RegExp(`^\\.Niuma Lite\\.(?:previous|installing)-${uuid}\\.app$`);
|
|
379
386
|
records = /* @__PURE__ */ new Set(["current.json", "login-receipt.json", "migration.json", "install-intent.json"]);
|
|
380
387
|
}
|
|
@@ -9502,7 +9509,7 @@ var init_src = __esm({
|
|
|
9502
9509
|
// apps/desktop/src/release-version.ts
|
|
9503
9510
|
import { readFileSync } from "node:fs";
|
|
9504
9511
|
function desktopReleaseVersion() {
|
|
9505
|
-
return false ? null : "0.0.1-beta.
|
|
9512
|
+
return false ? null : "0.0.1-beta.19";
|
|
9506
9513
|
}
|
|
9507
9514
|
function desktopPresenceVersion() {
|
|
9508
9515
|
return desktopReleaseVersion() ?? sourcePresenceVersion;
|
|
@@ -18932,7 +18939,7 @@ async function runLiteInstall() {
|
|
|
18932
18939
|
if (process.platform !== "darwin") throw Error("\u8F7B\u91CF\u684C\u9762\u5E94\u7528\u4EC5\u652F\u6301 macOS\uFF0C\u8BF7\u4F7F\u7528 --background");
|
|
18933
18940
|
const version2 = desktopReleaseVersion();
|
|
18934
18941
|
if (!version2 || false || false) throw Error("\u6B64\u7248\u672C\u5C1A\u672A\u914D\u7F6E Tauri \u8F7B\u91CF\u53D1\u884C\u8D44\u6E90\uFF0C\u6682\u4E0D\u80FD\u901A\u8FC7 install-app \u5B89\u88C5\uFF1B\u7EAF\u540E\u53F0\u8BF7\u4F7F\u7528 --background");
|
|
18935
|
-
const manifest = validateManifest(JSON.parse('{\n "schema": 2,\n "source": "bundled",\n "mode": "experimental",\n "combinationId": "0.0.1-beta.
|
|
18942
|
+
const manifest = validateManifest(JSON.parse('{\n "schema": 2,\n "source": "bundled",\n "mode": "experimental",\n "combinationId": "0.0.1-beta.19",\n "cliVersion": "0.0.1-beta.19",\n "daemonVersion": "0.0.1-beta.19",\n "nodeRange": ">=18.20.5",\n "artifacts": {\n "darwin-arm64": {\n "app": {\n "path": "resources/niuma-lite-arm64.dmg",\n "size": 8094635,\n "sha256": "e604bb75c10ce91098d4ffb3c924fee12a7033cd2e2a4b21d6908fcb051499ea"\n },\n "runtime": {\n "path": "resources/niuma-daemon-arm64.tgz",\n "size": 18318107,\n "sha256": "1c0fa575593bc0df18305b795223ac94ecb50c7f0813e7aa9f477484be0c6e6d"\n }\n }\n }\n}\n'), version2, process.arch);
|
|
18936
18943
|
if (manifest.schema === 2) await confirmExperimental(manifest.mode, !!process.stdin.isTTY && !!process.stdout.isTTY, async () => {
|
|
18937
18944
|
const prompt = createInterface3({ input: process.stdin, output: process.stdout });
|
|
18938
18945
|
try {
|
package/dist/managed-tauri.js
CHANGED
|
@@ -6881,7 +6881,7 @@ var init_src2 = __esm({
|
|
|
6881
6881
|
// apps/desktop/src/release-version.ts
|
|
6882
6882
|
import { readFileSync } from "node:fs";
|
|
6883
6883
|
function desktopReleaseVersion() {
|
|
6884
|
-
return false ? null : "0.0.1-beta.
|
|
6884
|
+
return false ? null : "0.0.1-beta.19";
|
|
6885
6885
|
}
|
|
6886
6886
|
function desktopPresenceVersion() {
|
|
6887
6887
|
return desktopReleaseVersion() ?? sourcePresenceVersion;
|
package/dist/managed.js
CHANGED
|
@@ -8487,7 +8487,7 @@ function parseAttachmentTaskV2StatusQuery(value) {
|
|
|
8487
8487
|
|
|
8488
8488
|
// apps/desktop/src/release-version.ts
|
|
8489
8489
|
function desktopReleaseVersion() {
|
|
8490
|
-
return false ? null : "0.0.1-beta.
|
|
8490
|
+
return false ? null : "0.0.1-beta.19";
|
|
8491
8491
|
}
|
|
8492
8492
|
var sourcePresenceVersion = (() => {
|
|
8493
8493
|
if (true) return null;
|
package/package.json
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"schema": 2,
|
|
3
3
|
"source": "bundled",
|
|
4
4
|
"mode": "experimental",
|
|
5
|
-
"combinationId": "0.0.1-beta.
|
|
6
|
-
"cliVersion": "0.0.1-beta.
|
|
7
|
-
"daemonVersion": "0.0.1-beta.
|
|
5
|
+
"combinationId": "0.0.1-beta.19",
|
|
6
|
+
"cliVersion": "0.0.1-beta.19",
|
|
7
|
+
"daemonVersion": "0.0.1-beta.19",
|
|
8
8
|
"nodeRange": ">=18.20.5",
|
|
9
9
|
"artifacts": {
|
|
10
10
|
"darwin-arm64": {
|
|
11
11
|
"app": {
|
|
12
12
|
"path": "resources/niuma-lite-arm64.dmg",
|
|
13
|
-
"size":
|
|
14
|
-
"sha256": "
|
|
13
|
+
"size": 8094635,
|
|
14
|
+
"sha256": "e604bb75c10ce91098d4ffb3c924fee12a7033cd2e2a4b21d6908fcb051499ea"
|
|
15
15
|
},
|
|
16
16
|
"runtime": {
|
|
17
17
|
"path": "resources/niuma-daemon-arm64.tgz",
|
|
18
|
-
"size":
|
|
19
|
-
"sha256": "
|
|
18
|
+
"size": 18318107,
|
|
19
|
+
"sha256": "1c0fa575593bc0df18305b795223ac94ecb50c7f0813e7aa9f477484be0c6e6d"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
Binary file
|
|
Binary file
|