The Phase-0 CI was red on all three runtimes: `src/embeddings/wasm/pkg/` (the
wasm-pack output the dynamic `import('./pkg/candle_embeddings.js')` resolves) was
gitignored + untracked, so tsc failed to resolve it on a fresh clone (TS2307), and
the Bun job ran test:bun without building dist first.
Fixes:
- Track the 3.1 MB prebuilt pkg (candle_embeddings.js/.d.ts + _bg.wasm/.d.ts). It
ships in the npm tarball anyway; versioning it lets consumers + CI build without
a Rust/wasm-pack toolchain and makes the shipped artifact reproducible (closes
the "publish ships whatever the maintainer last built" supply-chain gap). The
top-level .gitignore intended this (`!*.wasm` etc.) but excluded the whole dir,
so the re-includes were dead, and a nested wasm-pack `.gitignore *` also masked
it — force-added past both.
- CI Bun job: `npm run build` before `test:bun` (it imports the built dist/).
Verified against a tracked-files-only tree (fresh-clone sim): typecheck 0, build 0,
test:bun 8/8.
116 lines
1.9 KiB
Text
116 lines
1.9 KiB
Text
# Dependencies
|
|
node_modules/
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# Build outputs
|
|
dist/
|
|
build/
|
|
*.tsbuildinfo
|
|
|
|
# Environment variables
|
|
.env
|
|
.env.local
|
|
.env.development.local
|
|
.env.test.local
|
|
.env.production.local
|
|
|
|
# Runtime data
|
|
brainy-data/
|
|
.brainy/
|
|
*.log
|
|
*.pid
|
|
*.seed
|
|
*.pid.lock
|
|
|
|
# Coverage directory used by tools like istanbul
|
|
coverage/
|
|
*.lcov
|
|
|
|
# Test results
|
|
tests/results/
|
|
|
|
# Filesystem test artifacts (created by integration tests)
|
|
test-*/
|
|
|
|
# IDE files
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# OS files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Temporary files
|
|
tmp/
|
|
temp/
|
|
*.tmp
|
|
|
|
# Planning and instruction files
|
|
plan.md
|
|
|
|
# Package files
|
|
*.tgz
|
|
|
|
# Private/confidential files
|
|
PLAN.md
|
|
INTERNAL_NOTES.md
|
|
TODO_PRIVATE.md
|
|
*.tar.gz
|
|
|
|
# Strategy and planning documents (private)
|
|
.strategy/
|
|
# Removed: PRODUCTION_*.md (now these should be public documentation)
|
|
DISTRIBUTED_*.md
|
|
*_ASSESSMENT.md
|
|
*_ANALYSIS.md
|
|
*_TRUTH*.md
|
|
|
|
# Models (downloaded at runtime)
|
|
models/
|
|
models-cache/
|
|
|
|
# But include bundled WASM model assets
|
|
!assets/models/
|
|
|
|
# Development planning files (not for commit)
|
|
PLAN.md
|
|
|
|
# Backup folders
|
|
backup-*
|
|
backup/
|
|
|
|
# Internal documentation
|
|
docs/internal/
|
|
|
|
# Cache files
|
|
*.cache
|
|
|
|
# Rust/Cargo build artifacts
|
|
src/embeddings/candle-wasm/target/
|
|
src/embeddings/candle-wasm/Cargo.lock
|
|
|
|
# Ignore the wasm-pack output dir's CONTENTS (note the `/*`, not `/`, so the
|
|
# re-includes below can take effect — git cannot re-include a file whose parent
|
|
# DIRECTORY is excluded). Keep the pre-built WASM committed: it ships in the npm
|
|
# package anyway, it lets consumers + CI build without a Rust/wasm-pack toolchain,
|
|
# and versioning it makes the shipped artifact reproducible (not "whatever the
|
|
# maintainer last built").
|
|
src/embeddings/wasm/pkg/*
|
|
!src/embeddings/wasm/pkg/*.wasm
|
|
!src/embeddings/wasm/pkg/*.js
|
|
!src/embeddings/wasm/pkg/*.d.ts
|
|
|
|
# Log files (redundant but explicit)
|
|
*.log
|
|
|
|
# Temporary files (redundant but explicit)
|
|
*.tmp
|
|
/.junie/guidelines.md
|
|
|
|
# Claude Code harness state
|
|
.claude/scheduled_tasks.lock
|