From 1c0c7280da4634686a04ffc3cb8599f1f49ecffb Mon Sep 17 00:00:00 2001 From: rUv Date: Fri, 20 Feb 2026 19:50:57 +0000 Subject: [PATCH] fix(rvf-solver): include WASM binary in npm tarball, fix ESM phantom entry - Add pkg/.npmignore to override pkg/.gitignore (which had `*` blocking all files from npm pack) - Remove phantom dist/index.mjs ESM entry point (file never existed) - Fix README: max concurrent instances is 7, not 8 - Publish as v0.1.5 with working WASM (135 KB + 172 KB) Co-Authored-By: claude-flow --- npm/packages/rvf-solver/README.md | 2 +- npm/packages/rvf-solver/package.json | 7 +++---- npm/packages/rvf-solver/pkg/.npmignore | 2 ++ 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 npm/packages/rvf-solver/pkg/.npmignore diff --git a/npm/packages/rvf-solver/README.md b/npm/packages/rvf-solver/README.md index c4b0df86..37179d5d 100644 --- a/npm/packages/rvf-solver/README.md +++ b/npm/packages/rvf-solver/README.md @@ -66,7 +66,7 @@ solver.destroy(); ### `RvfSolver.create(): Promise` -Creates a new solver instance. Initializes the WASM module on the first call; subsequent calls reuse the loaded module. Up to 8 concurrent instances are supported. +Creates a new solver instance. Initializes the WASM module on the first call; subsequent calls reuse the loaded module. Up to 7 concurrent instances are supported. ```typescript const solver = await RvfSolver.create(); diff --git a/npm/packages/rvf-solver/package.json b/npm/packages/rvf-solver/package.json index 1c956e04..a4ca23bc 100644 --- a/npm/packages/rvf-solver/package.json +++ b/npm/packages/rvf-solver/package.json @@ -1,15 +1,14 @@ { "name": "@ruvector/rvf-solver", - "version": "0.1.4", + "version": "0.1.5", "description": "RVF self-learning temporal solver — Thompson Sampling, PolicyKernel, ReasoningBank", "main": "dist/index.js", - "module": "dist/index.mjs", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "default": "./dist/index.js" } }, "files": ["dist/", "pkg/", "package.json"], diff --git a/npm/packages/rvf-solver/pkg/.npmignore b/npm/packages/rvf-solver/pkg/.npmignore new file mode 100644 index 00000000..28b30cc3 --- /dev/null +++ b/npm/packages/rvf-solver/pkg/.npmignore @@ -0,0 +1,2 @@ +# Allow all files to be included in npm package +# (overrides .gitignore which blocks everything)