Pre-GA dead-code sweep. A deterministic import-reachability walk from the
package's real entry points (the exports map, the CLI bin, the conversation
surface) found 34 source modules that nothing reachable imports — they
compile and ship as dist output that no consumer or internal path can ever
reach. All were superseded duplicates, abandoned parallel implementations,
or built-but-never-wired features:
- superseded duplicates of live modules: an older "unified" entry, a
standalone neural-import variant, a static NLP processor + its matcher,
a parallel API-types module, a duplicate progress-types module
- an abandoned import path (orchestrator + entity deduplicator + barrels)
left behind when ingestion moved to the coordinator
- unwired feature modules (instance pool, import presets, cached
embeddings, relationship-confidence scorer) reachable only from tests
- dead leaf utilities (write buffer, deleted-items index, bounded
registry, two crypto shims, a cache manager, a structured logger, a
stale v5 type-migration helper, a browser-only FS type shim) and
several dead re-export barrels
- a CLI catalog command wired into no command
Also removed two tests that only exercised deleted modules, repointed two
VFS tests off a deleted barrel onto the implementation module, and deleted
one example that demoed removed features.
Verified: clean build (both tsc passes), unit 1505 + integration 607 green,
and a re-run of the reachability walk reports zero remaining orphans.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| tests | ||
| bluesky-distributed-setup.js | ||
| complete-import-demo.ts | ||
| demo.ts | ||
| import-excel-pdf-csv.ts | ||
| import-with-progress.ts | ||
| monitor-cache-performance.ts | ||
| quick-import-test.ts | ||
| README.md | ||
| smart-import-example.ts | ||
| test-csv-performance.ts | ||
| test-deduplication.ts | ||
| test-excel-import.ts | ||
| test-excel-performance.ts | ||
| test-pdf-performance.ts | ||
| unified-import-example.ts | ||
Brainy Examples
This directory contains example code and test scripts for Brainy.
Structure
demo.ts- Basic demonstration of Brainy's core featurestests/- Various test scripts demonstrating different aspects of Brainy- Performance tests
- Memory tests
- Storage adapter tests
- API functionality tests
- CLI tests
Running Examples
Basic Demo
npm run build
node dist/examples/demo.js
Test Scripts
The scripts in tests/ are standalone Node.js scripts that can be run directly:
node examples/tests/test-simple.js
node examples/tests/test-core-functionality.js
Note
These are examples and test scripts for reference. For production use, see the main documentation in the project root.