niuma-codex 0.0.1-beta.17 → 0.0.1-beta.18

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
- if (pkg.name !== "niuma-codex" || typeof pkg.version !== "string" || name2 !== `${pkg.version}-${name2.slice(-36)}`) throw Error("\u8FD0\u884C\u8D44\u6E90\u5F52\u5C5E\u4E0D\u5339\u914D");
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.-]+)?-${uuid}$`);
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.17";
9512
+ return false ? null : "0.0.1-beta.18";
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.17",\n "cliVersion": "0.0.1-beta.17",\n "daemonVersion": "0.0.1-beta.17",\n "nodeRange": ">=18.20.5",\n "artifacts": {\n "darwin-arm64": {\n "app": {\n "path": "resources/niuma-lite-arm64.dmg",\n "size": 6895695,\n "sha256": "b4599b3b13bb746314936923e779de1b64578ab278255695e445f3c46eacb77f"\n },\n "runtime": {\n "path": "resources/niuma-daemon-arm64.tgz",\n "size": 18318289,\n "sha256": "559a1c0da46aa148887d6b4c770b4af3a7a542ccaaf2795b4e0df446a6910e13"\n }\n }\n }\n}\n'), version2, process.arch);
18942
+ const manifest = validateManifest(JSON.parse('{\n "schema": 2,\n "source": "bundled",\n "mode": "experimental",\n "combinationId": "0.0.1-beta.18",\n "cliVersion": "0.0.1-beta.18",\n "daemonVersion": "0.0.1-beta.18",\n "nodeRange": ">=18.20.5",\n "artifacts": {\n "darwin-arm64": {\n "app": {\n "path": "resources/niuma-lite-arm64.dmg",\n "size": 6897033,\n "sha256": "80276942d4370b180d0531a8fbb8f93f58949803208d86b202d0d930b6461d97"\n },\n "runtime": {\n "path": "resources/niuma-daemon-arm64.tgz",\n "size": 18318285,\n "sha256": "428406204380655a1fa63ae14acd3057452a43116ffbde091b377cce3ff1b0b6"\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 {
@@ -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.17";
6884
+ return false ? null : "0.0.1-beta.18";
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.17";
8490
+ return false ? null : "0.0.1-beta.18";
8491
8491
  }
8492
8492
  var sourcePresenceVersion = (() => {
8493
8493
  if (true) return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "niuma-codex",
3
- "version": "0.0.1-beta.17",
3
+ "version": "0.0.1-beta.18",
4
4
  "description": "Niuma Desktop CLI:连接本机 Codex 与远程客户端。",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -2,21 +2,21 @@
2
2
  "schema": 2,
3
3
  "source": "bundled",
4
4
  "mode": "experimental",
5
- "combinationId": "0.0.1-beta.17",
6
- "cliVersion": "0.0.1-beta.17",
7
- "daemonVersion": "0.0.1-beta.17",
5
+ "combinationId": "0.0.1-beta.18",
6
+ "cliVersion": "0.0.1-beta.18",
7
+ "daemonVersion": "0.0.1-beta.18",
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": 6895695,
14
- "sha256": "b4599b3b13bb746314936923e779de1b64578ab278255695e445f3c46eacb77f"
13
+ "size": 6897033,
14
+ "sha256": "80276942d4370b180d0531a8fbb8f93f58949803208d86b202d0d930b6461d97"
15
15
  },
16
16
  "runtime": {
17
17
  "path": "resources/niuma-daemon-arm64.tgz",
18
- "size": 18318289,
19
- "sha256": "559a1c0da46aa148887d6b4c770b4af3a7a542ccaaf2795b4e0df446a6910e13"
18
+ "size": 18318285,
19
+ "sha256": "428406204380655a1fa63ae14acd3057452a43116ffbde091b377cce3ff1b0b6"
20
20
  }
21
21
  }
22
22
  }
Binary file
Binary file