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 <ruv@ruv.net>
This commit is contained in:
rUv 2026-02-20 19:50:57 +00:00
parent 4e4d5d3830
commit 1c0c7280da
3 changed files with 6 additions and 5 deletions

View file

@ -66,7 +66,7 @@ solver.destroy();
### `RvfSolver.create(): Promise<RvfSolver>`
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();

View file

@ -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"],

View file

@ -0,0 +1,2 @@
# Allow all files to be included in npm package
# (overrides .gitignore which blocks everything)