Skip to content

Commit 661bbe5

Browse files
authored
Merge pull request #140 from TrueNine/dev
refactor: migrate input plugins to Rust and clean up redundant TS wrappers
2 parents 54a9d97 + c954633 commit 661bbe5

File tree

355 files changed

+25597
-20785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

355 files changed

+25597
-20785
lines changed

Cargo.lock

Lines changed: 87 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ members = [
1010
]
1111

1212
[workspace.package]
13-
version = "2026.10408.12323"
13+
version = "2026.10411.10132"
1414
edition = "2024"
1515
rust-version = "1.88"
1616
license = "AGPL-3.0-only"
@@ -26,7 +26,7 @@ tnmsc-script-runtime = { path = "libraries/script-runtime" }
2626

2727
# Serialization
2828
serde = { version = "1.0.228", features = ["derive"] }
29-
serde_json = "1.0.149"
29+
serde_json = { version = "1.0.149", features = ["preserve_order"] }
3030
serde_yml = "0.0.12"
3131

3232
# CLI
@@ -47,7 +47,7 @@ reqwest = { version = "0.13.2", features = ["blocking", "json"] }
4747
markdown = "1.0.0"
4848

4949
# NAPI-RS (Node.js native addon bindings)
50-
napi = { version = "3.8.4", features = ["napi4"] }
50+
napi = { version = "3.8.4", features = ["napi4", "serde-json"] }
5151
napi-derive = "3.5.3"
5252
napi-build = "2.3.1"
5353

cli/npm/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@truenine/memory-sync-cli-darwin-arm64",
3-
"version": "2026.10408.12323",
3+
"version": "2026.10411.10132",
44
"os": [
55
"darwin"
66
],

cli/npm/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@truenine/memory-sync-cli-darwin-x64",
3-
"version": "2026.10408.12323",
3+
"version": "2026.10411.10132",
44
"os": [
55
"darwin"
66
],

cli/npm/linux-arm64-gnu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@truenine/memory-sync-cli-linux-arm64-gnu",
3-
"version": "2026.10408.12323",
3+
"version": "2026.10411.10132",
44
"os": [
55
"linux"
66
],

cli/npm/linux-x64-gnu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@truenine/memory-sync-cli-linux-x64-gnu",
3-
"version": "2026.10408.12323",
3+
"version": "2026.10411.10132",
44
"os": [
55
"linux"
66
],

cli/npm/win32-x64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@truenine/memory-sync-cli-win32-x64-msvc",
3-
"version": "2026.10408.12323",
3+
"version": "2026.10411.10132",
44
"os": [
55
"win32"
66
],

cli/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@truenine/memory-sync-cli",
33
"type": "module",
4-
"version": "2026.10408.12323",
4+
"version": "2026.10411.10132",
55
"description": "TrueNine Memory Synchronization CLI shell",
66
"author": "TrueNine",
77
"license": "AGPL-3.0-only",
@@ -16,10 +16,6 @@
1616
"types": "./dist/index.d.mts",
1717
"import": "./dist/index.mjs"
1818
},
19-
"./globals": {
20-
"types": "./dist/globals.d.mts",
21-
"import": "./dist/globals.mjs"
22-
},
2319
"./schema.json": "./dist/tnmsc.schema.json",
2420
"./package.json": "./package.json"
2521
},
@@ -59,17 +55,21 @@
5955
"sync:sdk-assets": "tsx scripts/sync-sdk-dist.ts",
6056
"check": "run-s ensure:sdk-build check:run",
6157
"check:run": "run-p lint:run check:type:run",
62-
"lint": "run-s ensure:sdk-build lint:run",
58+
"lint": "run-s ensure:sdk-build lint:run lint:rust",
6359
"lint:run": "eslint --cache --cache-location .eslintcache .",
60+
"lint:rust": "cargo fmt --check --manifest-path Cargo.toml",
6461
"prepublishOnly": "run-s build check",
6562
"test": "run-s ensure:sdk-build test:run",
6663
"test:run": "vitest run",
67-
"lint:fix": "run-s ensure:sdk-build lint:fix:run",
64+
"lint:fix": "run-s ensure:sdk-build lint:fix:run lint:fix:rust",
6865
"lint:fix:run": "eslint --fix --cache --cache-location .eslintcache .",
66+
"lint:fix:rust": "cargo fmt --manifest-path Cargo.toml",
6967
"typecheck": "run-s ensure:sdk-build check:type:run",
7068
"check:type:run": "tsc --noEmit -p tsconfig.lib.json"
7169
},
72-
"dependencies": {},
70+
"dependencies": {
71+
"jiti": "catalog:"
72+
},
7373
"optionalDependencies": {
7474
"@truenine/memory-sync-cli-darwin-arm64": "workspace:*",
7575
"@truenine/memory-sync-cli-darwin-x64": "workspace:*",
@@ -83,6 +83,7 @@
8383
},
8484
"devDependencies": {
8585
"@truenine/eslint10-config": "catalog:",
86+
"@truenine/logger": "workspace:*",
8687
"@truenine/memory-sync-sdk": "workspace:*",
8788
"@types/node": "catalog:",
8889
"@vitest/coverage-v8": "catalog:",

cli/scripts/ensure-sdk-build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const cliDir = resolve(__dirname, "..");
1010
const workspaceDir = resolve(cliDir, "..");
1111
const sdkDistDir = resolve(cliDir, "../sdk/dist");
1212

13-
const REQUIRED_SDK_OUTPUTS = ["index.mjs", "index.d.mts", "globals.mjs", "globals.d.mts", "tnmsc.schema.json"] as const;
13+
const REQUIRED_SDK_OUTPUTS = ["index.mjs", "index.d.mts", "tnmsc.schema.json"] as const;
1414

1515
function hasRequiredSdkOutputs(): boolean {
1616
return REQUIRED_SDK_OUTPUTS.every((fileName) => existsSync(resolve(sdkDistDir, fileName)));

cli/scripts/sync-sdk-dist.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function smokeTestScriptRuntimeWorker(): void {
116116
cwd: tempDir,
117117
workspaceDir: tempDir,
118118
aindexDir: join(tempDir, '.aindex'),
119-
command: 'execute',
119+
command: 'install',
120120
platform: process.platform
121121
}),
122122
'utf8'

0 commit comments

Comments
 (0)