From b9898022e306c9b678176d8c5dc9d957cc837031 Mon Sep 17 00:00:00 2001 From: TrueNine Date: Tue, 3 Mar 2026 10:58:07 +0800 Subject: [PATCH 1/4] =?UTF-8?q?refactor(scripts):=20=E4=BD=BF=E7=94=A8dirn?= =?UTF-8?q?ame=E5=92=8CfileURLToPath=E6=9B=BF=E6=8D=A2import.meta.dirname?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用更稳定的dirname和fileURLToPath方法来获取当前文件路径,避免直接依赖import.meta.dirname可能带来的兼容性问题 --- scripts/copy-napi.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/copy-napi.ts b/scripts/copy-napi.ts index cb2ce017..eff80158 100644 --- a/scripts/copy-napi.ts +++ b/scripts/copy-napi.ts @@ -1,6 +1,7 @@ #!/usr/bin/env tsx import {cpSync, existsSync, mkdirSync, readdirSync} from 'node:fs' -import {join, resolve} from 'node:path' +import {dirname, join, resolve} from 'node:path' +import {fileURLToPath} from 'node:url' import process from 'node:process' const NATIVE_MODULES = [ @@ -17,7 +18,8 @@ const PLATFORM_MAP: Record = { 'darwin-x64': 'darwin-x64', } -const root = resolve(import.meta.dirname, '..') +const __dirname = dirname(fileURLToPath(import.meta.url)) +const root = resolve(__dirname, '..') const suffix = PLATFORM_MAP[`${process.platform}-${process.arch}`] if (suffix == null) { From c7fa086aa0841868fc1b5b8f4dec96a1a57853d6 Mon Sep 17 00:00:00 2001 From: TrueNine Date: Tue, 3 Mar 2026 10:58:31 +0800 Subject: [PATCH 2/4] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0package.json?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E7=89=88=E6=9C=AC=E5=8F=B7=E8=87=B32026.1030?= =?UTF-8?q?3.11058?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b37844b9..c0d3916e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@truenine/memory-sync", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "description": "Cross-AI-tool prompt synchronisation toolkit (CLI + Tauri desktop GUI) — one ruleset, multi-target adaptation. Monorepo powered by pnpm + Turbo.", "license": "AGPL-3.0-only", "keywords": [ From 8ba0fd20b1bf159558cb000548835bce6ebbf35b Mon Sep 17 00:00:00 2001 From: TrueNine Date: Tue, 3 Mar 2026 10:58:46 +0800 Subject: [PATCH 3/4] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E6=89=80?= =?UTF-8?q?=E6=9C=89=E5=8C=85=E7=9A=84=E7=89=88=E6=9C=AC=E5=8F=B7=E8=87=B3?= =?UTF-8?q?2026.10303.11058?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli/npm/darwin-arm64/package.json | 2 +- cli/npm/darwin-x64/package.json | 2 +- cli/npm/linux-arm64-gnu/package.json | 2 +- cli/npm/linux-x64-gnu/package.json | 2 +- cli/npm/win32-x64-msvc/package.json | 2 +- cli/package.json | 2 +- doc/package.json | 2 +- gui/package.json | 2 +- gui/src-tauri/Cargo.toml | 2 +- gui/src-tauri/tauri.conf.json | 2 +- libraries/logger/package.json | 2 +- libraries/md-compiler/package.json | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cli/npm/darwin-arm64/package.json b/cli/npm/darwin-arm64/package.json index 781ef0a8..ca3b6810 100644 --- a/cli/npm/darwin-arm64/package.json +++ b/cli/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@truenine/memory-sync-cli-darwin-arm64", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "os": [ "darwin" ], diff --git a/cli/npm/darwin-x64/package.json b/cli/npm/darwin-x64/package.json index 6f504af0..4c3104f3 100644 --- a/cli/npm/darwin-x64/package.json +++ b/cli/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@truenine/memory-sync-cli-darwin-x64", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "os": [ "darwin" ], diff --git a/cli/npm/linux-arm64-gnu/package.json b/cli/npm/linux-arm64-gnu/package.json index 1f991eab..a4189f57 100644 --- a/cli/npm/linux-arm64-gnu/package.json +++ b/cli/npm/linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@truenine/memory-sync-cli-linux-arm64-gnu", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "os": [ "linux" ], diff --git a/cli/npm/linux-x64-gnu/package.json b/cli/npm/linux-x64-gnu/package.json index 8d946917..86af2ea8 100644 --- a/cli/npm/linux-x64-gnu/package.json +++ b/cli/npm/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@truenine/memory-sync-cli-linux-x64-gnu", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "os": [ "linux" ], diff --git a/cli/npm/win32-x64-msvc/package.json b/cli/npm/win32-x64-msvc/package.json index 05a2bd89..9774d61c 100644 --- a/cli/npm/win32-x64-msvc/package.json +++ b/cli/npm/win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@truenine/memory-sync-cli-win32-x64-msvc", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "os": [ "win32" ], diff --git a/cli/package.json b/cli/package.json index 32d615d0..eb19e634 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,7 +1,7 @@ { "name": "@truenine/memory-sync-cli", "type": "module", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "description": "TrueNine Memory Synchronization CLI", "author": "TrueNine", "license": "AGPL-3.0-only", diff --git a/doc/package.json b/doc/package.json index 75edd3d2..1594fdec 100644 --- a/doc/package.json +++ b/doc/package.json @@ -1,6 +1,6 @@ { "name": "@truenine/memory-sync-docs", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "private": true, "description": "Documentation site for @truenine/memory-sync, built with Next.js 16 and MDX.", "engines": { diff --git a/gui/package.json b/gui/package.json index 0703be48..2d13eab8 100644 --- a/gui/package.json +++ b/gui/package.json @@ -1,6 +1,6 @@ { "name": "@truenine/memory-sync-gui", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "private": true, "engines": { "node": ">=25.2.1", diff --git a/gui/src-tauri/Cargo.toml b/gui/src-tauri/Cargo.toml index 36b13723..cb674f79 100644 --- a/gui/src-tauri/Cargo.toml +++ b/gui/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "memory-sync-gui" -version = "2026.10303.11050" +version = "2026.10303.11058" description = "Memory Sync desktop GUI application" authors.workspace = true edition.workspace = true diff --git a/gui/src-tauri/tauri.conf.json b/gui/src-tauri/tauri.conf.json index e62ccc30..4a1bbe31 100644 --- a/gui/src-tauri/tauri.conf.json +++ b/gui/src-tauri/tauri.conf.json @@ -1,6 +1,6 @@ { "$schema": "https://schema.tauri.app/config/2", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "productName": "Memory Sync", "identifier": "org.truenine.memory-sync", "build": { diff --git a/libraries/logger/package.json b/libraries/logger/package.json index 2b9d27e9..c6f029c7 100644 --- a/libraries/logger/package.json +++ b/libraries/logger/package.json @@ -1,7 +1,7 @@ { "name": "@truenine/logger", "type": "module", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "private": true, "description": "Rust-powered structured logger for Node.js with pure-TS fallback", "license": "AGPL-3.0-only", diff --git a/libraries/md-compiler/package.json b/libraries/md-compiler/package.json index c4d51652..1bae642d 100644 --- a/libraries/md-compiler/package.json +++ b/libraries/md-compiler/package.json @@ -1,7 +1,7 @@ { "name": "@truenine/md-compiler", "type": "module", - "version": "2026.10303.11050", + "version": "2026.10303.11058", "private": true, "description": "Rust-powered MDX→Markdown compiler for Node.js with pure-TS fallback", "license": "AGPL-3.0-only", From e3b54aaac5f779fa4c140d27cc94d8de8747596a Mon Sep 17 00:00:00 2001 From: TrueNine Date: Tue, 3 Mar 2026 10:58:56 +0800 Subject: [PATCH 4/4] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20memory-sync-g?= =?UTF-8?q?ui=20=E7=89=88=E6=9C=AC=E8=87=B3=202026.10303.11058?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index b96519b8..cbb32af9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2071,7 +2071,7 @@ dependencies = [ [[package]] name = "memory-sync-gui" -version = "2026.10303.11050" +version = "2026.10303.11058" dependencies = [ "dirs", "proptest",