@truenine/memory-sync-cli 2026.10406.121 → 2026.10411.10132

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.
@@ -1 +1 @@
1
- import"node:module";import*as e from"node:fs";import{readFileSync as t}from"node:fs";import n from"node:process";import*as r from"node:path";function i(e){return typeof e==`object`&&!!e}function a(e){if(!i(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}async function o(){let{createJiti:e}=await import(`./jiti-B3PPFIgr.mjs`);return e(import.meta.url,{fsCache:!1,moduleCache:!1,interopDefault:!1})}function s(e){if(!i(e))throw Error(`proxy.ts must export a module namespace object`);let t=e.default;if(t==null)throw Error(`proxy.ts must export a default value`);if(typeof t!=`function`&&!a(t))throw TypeError(`proxy.ts default export must be a function or plain object`);let n=e.config;if(n!=null&&!a(n))throw Error(`proxy.ts config export must be a plain object`);let r={default:t};return n==null?r:{...r,config:n}}async function c(t){let n=r.resolve(t);if(!e.existsSync(n))throw Error(`proxy.ts not found: ${n}`);return s(await(await o()).import(n))}function l(e,t){let n=e.config?.matcher?.commands;return n==null||n.length===0?!0:n.includes(t)}function u(e,t){if(e.trim().length===0)throw Error(`${t} cannot be empty`);return e}function d(e){if(typeof e==`function`)return e;let t=e;if(t.resolvePublicPath!=null){if(typeof t.resolvePublicPath!=`function`)throw TypeError(`proxy.ts default export resolvePublicPath must be a function`);return t.resolvePublicPath}}async function f(e,t,n){let r=u(n,`logical public path`),i=await c(e);if(!l(i,t.command))return r;let a=d(i.default);if(a==null)return r;let o=await a(r,t);if(typeof o!=`string`)throw Error(`proxy.ts must resolve public paths to a string`);return u(o,`proxy.ts resolved public path`)}async function p(e,t,n){return f(e,t,n)}async function m(){let[,,e,r,i]=n.argv;if(e==null||r==null||i==null)throw Error(`Usage: script-runtime-worker <file-path> <ctx-json-path> <logical-path>`);let a=t(r,`utf8`),o=await p(e,JSON.parse(a),i);n.stdout.write(`${o}\n`)}m().catch(e=>{n.stderr.write(`${e instanceof Error?e.message:String(e)}\n`),n.exit(1)});export{};
1
+ import*as e from"node:fs";import{readFileSync as t}from"node:fs";import n from"node:process";import*as r from"node:path";function i(e){return typeof e==`object`&&!!e}function a(e){if(!i(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}async function o(){let{createJiti:e}=await import(`jiti`);return e(import.meta.url,{fsCache:!1,moduleCache:!1,interopDefault:!1})}function s(e){if(!i(e))throw Error(`proxy.ts must export a module namespace object`);let t=e.default;if(t==null)throw Error(`proxy.ts must export a default value`);if(typeof t!=`function`&&!a(t))throw TypeError(`proxy.ts default export must be a function or plain object`);let n=e.config;if(n!=null&&!a(n))throw Error(`proxy.ts config export must be a plain object`);let r={default:t};return n==null?r:{...r,config:n}}async function c(t){let n=r.resolve(t);if(!e.existsSync(n))throw Error(`proxy.ts not found: ${n}`);return s(await(await o()).import(n))}function l(e,t){let n=e.config?.matcher?.commands;return n==null||n.length===0?!0:n.includes(t)}function u(e,t){if(e.trim().length===0)throw Error(`${t} cannot be empty`);return e}function d(e){if(typeof e==`function`)return e;let t=e;if(t.resolvePublicPath!=null){if(typeof t.resolvePublicPath!=`function`)throw TypeError(`proxy.ts default export resolvePublicPath must be a function`);return t.resolvePublicPath}}async function f(e,t,n){let r=u(n,`logical public path`),i=await c(e);if(!l(i,t.command))return r;let a=d(i.default);if(a==null)return r;let o=await a(r,t);if(typeof o!=`string`)throw Error(`proxy.ts must resolve public paths to a string`);return u(o,`proxy.ts resolved public path`)}async function p(e,t,n){return f(e,t,n)}async function m(){let[,,e,r,i]=n.argv;if(e==null||r==null||i==null)throw Error(`Usage: script-runtime-worker <file-path> <ctx-json-path> <logical-path>`);let a=t(r,`utf8`),o=await p(e,JSON.parse(a),i);n.stdout.write(`${o}\n`)}m().catch(e=>{n.stderr.write(`${e instanceof Error?e.message:String(e)}\n`),n.exit(1)});export{};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@truenine/memory-sync-cli",
3
3
  "type": "module",
4
- "version": "2026.10406.121",
4
+ "version": "2026.10411.10132",
5
5
  "description": "TrueNine Memory Synchronization CLI shell",
6
6
  "author": "TrueNine",
7
7
  "license": "AGPL-3.0-only",
@@ -16,10 +16,6 @@
16
16
  "types": "./dist/index.d.mts",
17
17
  "import": "./dist/index.mjs"
18
18
  },
19
- "./globals": {
20
- "types": "./dist/globals.d.mts",
21
- "import": "./dist/globals.mjs"
22
- },
23
19
  "./schema.json": "./dist/tnmsc.schema.json",
24
20
  "./package.json": "./package.json"
25
21
  },
@@ -50,29 +46,32 @@
50
46
  "access": "public",
51
47
  "registry": "https://registry.npmjs.org/"
52
48
  },
53
- "dependencies": {},
49
+ "dependencies": {
50
+ "jiti": "^2.6.1"
51
+ },
54
52
  "optionalDependencies": {
55
53
  "json5": "^2.2.3",
56
54
  "yaml": "^2.8.3",
57
55
  "zod": "^4.3.6",
58
- "@truenine/memory-sync-cli-darwin-arm64": "2026.10406.121",
59
- "@truenine/memory-sync-cli-darwin-x64": "2026.10406.121",
60
- "@truenine/memory-sync-cli-linux-arm64-gnu": "2026.10406.121",
61
- "@truenine/memory-sync-cli-linux-x64-gnu": "2026.10406.121",
62
- "@truenine/memory-sync-cli-win32-x64-msvc": "2026.10406.121",
63
- "@truenine/script-runtime": "2026.10406.121"
56
+ "@truenine/memory-sync-cli-darwin-arm64": "2026.10411.10132",
57
+ "@truenine/memory-sync-cli-darwin-x64": "2026.10411.10132",
58
+ "@truenine/memory-sync-cli-linux-arm64-gnu": "2026.10411.10132",
59
+ "@truenine/memory-sync-cli-linux-x64-gnu": "2026.10411.10132",
60
+ "@truenine/memory-sync-cli-win32-x64-msvc": "2026.10411.10132",
61
+ "@truenine/script-runtime": "2026.10411.10132"
64
62
  },
65
63
  "devDependencies": {
66
- "@truenine/eslint10-config": "^2026.10402.10314",
67
- "@types/node": "^25.5.2",
68
- "@vitest/coverage-v8": "4.1.2",
64
+ "@truenine/eslint10-config": "^2026.10411.10025",
65
+ "@types/node": "^25.6.0",
66
+ "@vitest/coverage-v8": "4.1.4",
69
67
  "eslint": "^10.2.0",
70
68
  "npm-run-all2": "^8.0.4",
71
69
  "tsdown": "^0.21.7",
72
70
  "tsx": "^4.21.0",
73
71
  "typescript": "6.0.2",
74
- "vitest": "^4.1.2",
75
- "@truenine/memory-sync-sdk": "2026.10406.121"
72
+ "vitest": "^4.1.4",
73
+ "@truenine/logger": "2026.10411.10132",
74
+ "@truenine/memory-sync-sdk": "2026.10411.10132"
76
75
  },
77
76
  "scripts": {
78
77
  "build": "run-s build:sdk build:shell sync:sdk-assets",
@@ -83,12 +82,14 @@
83
82
  "sync:sdk-assets": "tsx scripts/sync-sdk-dist.ts",
84
83
  "check": "run-s ensure:sdk-build check:run",
85
84
  "check:run": "run-p lint:run check:type:run",
86
- "lint": "run-s ensure:sdk-build lint:run",
85
+ "lint": "run-s ensure:sdk-build lint:run lint:rust",
87
86
  "lint:run": "eslint --cache --cache-location .eslintcache .",
87
+ "lint:rust": "cargo fmt --check --manifest-path Cargo.toml",
88
88
  "test": "run-s ensure:sdk-build test:run",
89
89
  "test:run": "vitest run",
90
- "lint:fix": "run-s ensure:sdk-build lint:fix:run",
90
+ "lint:fix": "run-s ensure:sdk-build lint:fix:run lint:fix:rust",
91
91
  "lint:fix:run": "eslint --fix --cache --cache-location .eslintcache .",
92
+ "lint:fix:rust": "cargo fmt --manifest-path Cargo.toml",
92
93
  "typecheck": "run-s ensure:sdk-build check:type:run",
93
94
  "check:type:run": "tsc --noEmit -p tsconfig.lib.json"
94
95
  }