Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,14 @@ jobs:
if [ ! -f "${target_dir}package.json" ]; then
continue
fi
if [ ! -f "${target_dir}noop.cjs" ]; then
echo "ERROR: missing ${target_dir}noop.cjs"
exit 1
fi
if [ ! -f "${target_dir}noop.d.ts" ]; then
echo "ERROR: missing ${target_dir}noop.d.ts"
exit 1
fi
actual_count=$(find "${target_dir}" -maxdepth 1 -type f -name '*.node' | wc -l | tr -d ' ')
if [ "$actual_count" -ne "$expected_count" ]; then
echo "ERROR: expected ${expected_count} .node files in ${target_dir}, found ${actual_count}"
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ members = [
]

[workspace.package]
version = "2026.10318.11638"
version = "2026.10318.12034"
edition = "2024"
license = "AGPL-3.0-only"
authors = ["TrueNine"]
Expand Down
2 changes: 2 additions & 0 deletions cli/npm/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
!.gitignore
!*/
!*/package.json
!*/noop.cjs
!*/noop.d.ts
28 changes: 28 additions & 0 deletions cli/npm/darwin-arm64/noop.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use strict'

const {readdirSync} = require('node:fs')
const {join} = require('node:path')

const EXPORT_BINDINGS = [
['logger', 'napi-logger.'],
['mdCompiler', 'napi-md-compiler.'],
['scriptRuntime', 'napi-script-runtime.'],
['config', 'napi-memory-sync-cli.']
]

const nodeFiles = readdirSync(__dirname).filter(file => file.endsWith('.node'))
const bindings = {}

for (const [exportName, prefix] of EXPORT_BINDINGS) {
const file = nodeFiles.find(candidate => candidate.startsWith(prefix))
if (file == null) continue

Object.defineProperty(bindings, exportName, {
enumerable: true,
get() {
return require(join(__dirname, file))
}
})
}

module.exports = bindings
8 changes: 8 additions & 0 deletions cli/npm/darwin-arm64/noop.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare const bindings: {
readonly logger?: unknown
readonly mdCompiler?: unknown
readonly scriptRuntime?: unknown
readonly config?: unknown
}

export = bindings
2 changes: 1 addition & 1 deletion cli/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@truenine/memory-sync-cli-darwin-arm64",
"version": "2026.10318.11638",
"version": "2026.10318.12034",
"os": [
"darwin"
],
Expand Down
28 changes: 28 additions & 0 deletions cli/npm/darwin-x64/noop.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use strict'

const {readdirSync} = require('node:fs')
const {join} = require('node:path')

const EXPORT_BINDINGS = [
['logger', 'napi-logger.'],
['mdCompiler', 'napi-md-compiler.'],
['scriptRuntime', 'napi-script-runtime.'],
['config', 'napi-memory-sync-cli.']
]

const nodeFiles = readdirSync(__dirname).filter(file => file.endsWith('.node'))
const bindings = {}

for (const [exportName, prefix] of EXPORT_BINDINGS) {
const file = nodeFiles.find(candidate => candidate.startsWith(prefix))
if (file == null) continue

Object.defineProperty(bindings, exportName, {
enumerable: true,
get() {
return require(join(__dirname, file))
}
})
}

module.exports = bindings
8 changes: 8 additions & 0 deletions cli/npm/darwin-x64/noop.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare const bindings: {
readonly logger?: unknown
readonly mdCompiler?: unknown
readonly scriptRuntime?: unknown
readonly config?: unknown
}

export = bindings
2 changes: 1 addition & 1 deletion cli/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@truenine/memory-sync-cli-darwin-x64",
"version": "2026.10318.11638",
"version": "2026.10318.12034",
"os": [
"darwin"
],
Expand Down
28 changes: 28 additions & 0 deletions cli/npm/linux-arm64-gnu/noop.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use strict'

const {readdirSync} = require('node:fs')
const {join} = require('node:path')

const EXPORT_BINDINGS = [
['logger', 'napi-logger.'],
['mdCompiler', 'napi-md-compiler.'],
['scriptRuntime', 'napi-script-runtime.'],
['config', 'napi-memory-sync-cli.']
]

const nodeFiles = readdirSync(__dirname).filter(file => file.endsWith('.node'))
const bindings = {}

for (const [exportName, prefix] of EXPORT_BINDINGS) {
const file = nodeFiles.find(candidate => candidate.startsWith(prefix))
if (file == null) continue

Object.defineProperty(bindings, exportName, {
enumerable: true,
get() {
return require(join(__dirname, file))
}
})
}

module.exports = bindings
8 changes: 8 additions & 0 deletions cli/npm/linux-arm64-gnu/noop.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare const bindings: {
readonly logger?: unknown
readonly mdCompiler?: unknown
readonly scriptRuntime?: unknown
readonly config?: unknown
}

export = bindings
2 changes: 1 addition & 1 deletion cli/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@truenine/memory-sync-cli-linux-arm64-gnu",
"version": "2026.10318.11638",
"version": "2026.10318.12034",
"os": [
"linux"
],
Expand Down
28 changes: 28 additions & 0 deletions cli/npm/linux-x64-gnu/noop.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use strict'

const {readdirSync} = require('node:fs')
const {join} = require('node:path')

const EXPORT_BINDINGS = [
['logger', 'napi-logger.'],
['mdCompiler', 'napi-md-compiler.'],
['scriptRuntime', 'napi-script-runtime.'],
['config', 'napi-memory-sync-cli.']
]

const nodeFiles = readdirSync(__dirname).filter(file => file.endsWith('.node'))
const bindings = {}

for (const [exportName, prefix] of EXPORT_BINDINGS) {
const file = nodeFiles.find(candidate => candidate.startsWith(prefix))
if (file == null) continue

Object.defineProperty(bindings, exportName, {
enumerable: true,
get() {
return require(join(__dirname, file))
}
})
}

module.exports = bindings
8 changes: 8 additions & 0 deletions cli/npm/linux-x64-gnu/noop.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare const bindings: {
readonly logger?: unknown
readonly mdCompiler?: unknown
readonly scriptRuntime?: unknown
readonly config?: unknown
}

export = bindings
2 changes: 1 addition & 1 deletion cli/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@truenine/memory-sync-cli-linux-x64-gnu",
"version": "2026.10318.11638",
"version": "2026.10318.12034",
"os": [
"linux"
],
Expand Down
28 changes: 28 additions & 0 deletions cli/npm/win32-x64-msvc/noop.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use strict'

const {readdirSync} = require('node:fs')
const {join} = require('node:path')

const EXPORT_BINDINGS = [
['logger', 'napi-logger.'],
['mdCompiler', 'napi-md-compiler.'],
['scriptRuntime', 'napi-script-runtime.'],
['config', 'napi-memory-sync-cli.']
]

const nodeFiles = readdirSync(__dirname).filter(file => file.endsWith('.node'))
const bindings = {}

for (const [exportName, prefix] of EXPORT_BINDINGS) {
const file = nodeFiles.find(candidate => candidate.startsWith(prefix))
if (file == null) continue

Object.defineProperty(bindings, exportName, {
enumerable: true,
get() {
return require(join(__dirname, file))
}
})
}

module.exports = bindings
8 changes: 8 additions & 0 deletions cli/npm/win32-x64-msvc/noop.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare const bindings: {
readonly logger?: unknown
readonly mdCompiler?: unknown
readonly scriptRuntime?: unknown
readonly config?: unknown
}

export = bindings
2 changes: 1 addition & 1 deletion cli/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@truenine/memory-sync-cli-win32-x64-msvc",
"version": "2026.10318.11638",
"version": "2026.10318.12034",
"os": [
"win32"
],
Expand Down
7 changes: 4 additions & 3 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@truenine/memory-sync-cli",
"type": "module",
"version": "2026.10318.11638",
"version": "2026.10318.12034",
"description": "TrueNine Memory Synchronization CLI",
"author": "TrueNine",
"license": "AGPL-3.0-only",
Expand Down Expand Up @@ -51,7 +51,7 @@
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"build": "run-s build:deps build:napi bundle generate:schema check",
"build": "run-s build:deps build:napi bundle write:main-wrapper generate:schema check",
"build:napi": "tsx ../scripts/copy-napi.ts",
"build:deps": "pnpm -F @truenine/logger -F @truenine/md-compiler -F @truenine/script-runtime run build",
"bundle": "tsx ../scripts/build-quiet.ts",
Expand All @@ -62,7 +62,8 @@
"test": "run-s build:deps test:run",
"test:run": "vitest run",
"lintfix": "eslint --fix --cache .",
"typecheck": "tsc --noEmit -p tsconfig.lib.json"
"typecheck": "tsc --noEmit -p tsconfig.lib.json",
"write:main-wrapper": "tsx scripts/write-main-wrapper.ts"
},
"dependencies": {
"json5": "catalog:",
Expand Down
Loading
Loading