Commit graph

350 commits

Author SHA1 Message Date
03d654061f build(8.0): clean dist before every build so stale artifacts never ship
The incremental `tsc` build never removed dist output for source files
deleted in earlier refactors, so a cluster of 5-month-old artifacts kept
shipping in the published package — an entire orphaned native module tree
(dist/native/*, the Native* graph/metadata adapters, the mmap adapter)
whose source was removed when those responsibilities moved behind the
provider boundary. Nothing in the live tree imported them; they were dead
weight in every tarball, carrying stale type signatures with no source.

Add a `clean` script (cross-platform `fs.rmSync`) and a `prebuild` hook so
every build — including the `prepare` build that runs on publish — starts
from an empty dist. Verified: a planted stale file is wiped on the next
build, and a clean rebuild drops the entire orphaned tree.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 15:18:26 -07:00
6991bbe3d2 chore(release): 8.0.0-rc.3 2026-06-23 16:06:20 -07:00
89c4b7016c chore(release): 8.0.0-rc.2 2026-06-21 10:45:28 -07:00
0a36b3329d chore(release): 8.0.0-rc.1 2026-06-20 14:50:44 -07:00
e5997a1516 test(8.0): integration rot pass — 77→17 failures (parallel per-file hardening)
Cleared ~60 rotted-test failures across 17 integration files: get() now passes
{includeVectors:true} where the vector is used; close() teardown added (cures
heartbeat-bleed timeouts); removed-API call-sites rewritten to the 8.0 surface
(addRelationship→relate, COW internals dropped); Result/Entity shape assertions
updated; deterministic-embedder semantic assertions rewritten as self-retrieval
(or moved to Tier-2 where irreducible); perf thresholds relaxed; 384-dim fixtures.

Adds the Tier-2 (real-model) scaffolding: tests/setup-semantic.ts +
tests/configs/vitest.semantic.config.ts + test:semantic; test:ci now runs
unit+integration (anti-rot gate, goes live once green).

Remaining 17 failures are REAL 8.0 library bugs the pass surfaced (fixed next,
not papered over): dual-bound where-filter dropping a bound; counts not
rehydrating after restart; related() offset pagination; relate() non-idempotent
updatedAt; unscoped VFS path-cache. Plus find-unified finish + a few stragglers.
2026-06-17 13:11:41 -07:00
73a7d8291b test(8.0): drop dead s3/distributed/cloud scripts + 32GB→8GB integration heap
Companion to the s3 suite removal: s3 and distributed storage were removed in
8.0, so test:s3 / test:distributed / test:cloud pointed at gone code. Also
lowers test:integration's heap to 8 GB now that Tier 1 uses the deterministic
embedder (runs on any machine).
2026-06-16 12:52:56 -07:00
1f7e365a4e chore(8.0): final pre-RC1 sweep — API consistency, named errors, orphans, zero-cast codebase 2026-06-11 14:51:00 -07:00
266715aeee chore(8.0)!: drop browser support, cloud SDKs, legacy pipeline, dead threading
Brainy 8.0 is server-only. This commit takes the consequences seriously and
removes everything that was only there to keep browser/cloud/threading
surfaces alive.

Browser support drop (per the @deprecated notes in environment.ts):
  - isBrowser, isWebWorker, areWebWorkersAvailable, navigator.deviceMemory
    paths, window/document/self.onmessage code.
  - browser console.log in unified.ts, the 'browser' branch in
    autoConfiguration.ts (env enum + scaleUp cases), 'browser-cache' model
    path, MCP service environment value.
  - package.json browser field.
  - src/worker.ts (Web Worker entrypoint) deleted.

Cloud SDK removal (the four adapters were dropped in Phase 7; the SDKs
were the lingering tax):
  - @aws-sdk/client-s3, @azure/identity, @azure/storage-blob, and
    @google-cloud/storage removed from package.json. Lockfile drops the
    entire @aws/@azure/@google-cloud/@smithy transitive tree.
  - EnhancedS3Clear class deleted from enhancedClearOperations.ts (the
    only @aws-sdk/client-s3 consumer; the dynamic import sites went with
    it). EnhancedFileSystemClear stays.
  - src/utils/adaptiveSocketManager.ts deleted entirely (474 LOC of HTTPS
    socket-pool management for the dropped cloud HTTP handler).
    performanceMonitor.ts no longer reports a socketConfig; socket
    utilization is fixed at 0.

Dead threading subsystem:
  - executeInThread was imported by distance.ts and hnswIndex.ts but
    never called. It was scaffolding for a future "off-main-thread
    distance batch" optimization that never shipped.
  - src/utils/workerUtils.ts deleted (Web Worker code path + an
    unreachable Node Worker Threads code path).
  - environment.ts loses isThreadingAvailable, isThreadingAvailableAsync,
    areWorkerThreadsAvailable, areWorkerThreadsAvailableSync. All exports
    purged from index.ts and unified.ts.
  - autoConfiguration.ts drops AutoConfigResult.threadingAvailable.

Legacy plugin/augmentation pipeline:
  - src/pipeline.ts deleted. The whole file was a no-op stub for
    backwards compat — Pipeline class had no methods, no lifecycle hooks,
    no before/after callbacks. AugmentationPipeline, augmentationPipeline,
    createPipeline, createStreamingPipeline, StreamlinedPipelineOptions,
    StreamlinedPipelineResult, StreamlinedExecutionMode were all aliases
    for the same stub.
  - src/mcp/mcpAugmentationToolset.ts deleted. executePipeline always
    threw "deprecated", isValidAugmentationType always returned false,
    getAvailableTools always returned []. Dead surface.
  - BrainyMCPService no longer instantiates a toolset. TOOL_EXECUTION
    requests now return the standard UNSUPPORTED_REQUEST_TYPE error.
    'availableTools' system-info returns [] (was the same in practice).

Net: 22 files changed, ~6400 LOC deleted (including legacy code +
mechanical lockfile churn). Build clean, 1409/1409 tests pass.
2026-06-09 16:38:30 -07:00
d6daafb426 chore(release): 7.31.2 2026-06-09 12:54:06 -07:00
6716329d06 chore(release): 7.31.1 2026-06-09 10:36:29 -07:00
65cfd2cc6c chore(release): 7.31.0 2026-06-09 10:04:45 -07:00
ccc1d74953 chore(release): 7.30.2 2026-06-08 12:54:32 -07:00
34e8271c53 chore(release): 7.30.1 2026-06-08 11:32:11 -07:00
a82c3339df chore(release): 7.30.0 2026-06-05 11:16:15 -07:00
8c68396e71 chore(release): 7.29.0 2026-06-04 17:26:04 -07:00
4927d49e87 chore(release): 7.28.0 2026-05-28 12:27:29 -07:00
338946cec2 chore(release): 7.27.0 2026-05-28 11:55:37 -07:00
d30eb6f39f chore(release): 7.26.0 2026-05-28 10:38:18 -07:00
df7d739008 chore(release): 7.25.0 2026-05-27 15:45:33 -07:00
bca3736f4c chore(release): 7.24.0 2026-05-26 14:21:04 -07:00
2591001bd0 chore(release): 7.23.0 2026-05-26 13:56:09 -07:00
16f39f2b73 chore(release): 7.22.1 2026-05-26 11:33:34 -07:00
505651d70f chore(release): 7.22.0 2026-05-15 12:31:46 -07:00
79f58cb87b chore(release): 7.21.0 2026-05-15 11:26:30 -07:00
1bc6a430c7 chore(release): 7.20.0 2026-04-10 11:42:39 -07:00
634ddfb2bb chore(release): 7.19.19 2026-04-09 16:43:57 -07:00
9855f431f7 chore(release): 7.19.18 2026-04-09 16:29:29 -07:00
75141ef400 chore(release): 7.19.17 2026-04-09 16:27:10 -07:00
086d90d01c chore(release): 7.19.16 2026-03-24 13:12:40 -07:00
e6c5eb6d8b chore(release): 7.19.15 2026-03-23 15:46:19 -07:00
74bc61a89c chore(release): 7.19.14 2026-03-22 16:53:26 -07:00
3dd5ac0d8c chore(release): 7.19.13 2026-03-22 14:56:04 -07:00
60a0f1051f fix: suppress misleading 'Using Q8 WASM' log when Cortex native is active
EmbeddingManager constructor logged 'Using Q8 precision (WASM)' before
plugins had a chance to register a native embedder. Deferred logging to
init() so the startup message reflects the actual embedding engine.
2026-03-22 14:53:48 -07:00
c054c41943 fix: add rootDirectory to BrainyConfig.storage type
The storage config type only exposed { type, options, branch } but plugin
storage factories (e.g. Cortex mmap) read rootDirectory from the top level
of the config object. This caused undefined storage paths when Cortex was
active. The underlying StorageOptions interface already declares
rootDirectory — this aligns BrainyConfig.storage to match.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 09:46:11 -07:00
1b04fa3755 chore(release): 7.19.10 2026-02-24 12:26:03 -08:00
027607688f chore(release): 7.19.9 2026-02-23 16:00:32 -08:00
1a9cacd5fc chore(release): 7.19.8 2026-02-23 15:16:41 -08:00
c376fb9b61 chore(release): 7.19.7 2026-02-23 13:07:46 -08:00
7518c212ea chore(release): 7.19.6 2026-02-19 17:46:51 -08:00
fae88d0fdd chore(release): 7.19.5 2026-02-19 17:06:33 -08:00
b98bd532d2 chore(release): 7.19.4 2026-02-19 17:05:34 -08:00
33ea5e322a chore(release): 7.19.3 2026-02-19 17:04:37 -08:00
b6e3470b83 docs: add public frontmatter to docs for soulcraft.com/docs pipeline
Add YAML frontmatter (slug, public, category, template, order) to 8
existing docs and 2 new getting-started guides (installation, quick-start).
Include docs/**/*.md in npm package files so the portal sync-docs script
can read them from node_modules after publish.

Update CLAUDE.md with docs pipeline trigger phrases and release checklist.
2026-02-19 17:04:05 -08:00
9d5a74abe1 chore(release): 7.19.2 2026-02-18 15:38:59 -08:00
cc286ba2fc fix: include WASM pkg files in npm package
The pkg/ directory containing the Candle WASM binary was excluded from
the npm tarball because it contained its own package.json and .gitignore
(with `*` pattern). The build:copy-wasm script now skips these files
when copying to dist/, ensuring candle_embeddings.js/.wasm are included.

Also adds ./embeddings/wasm export subpath for clean ESM imports.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 17:26:22 -08:00
21371786fb chore(release): 7.19.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 17:04:15 -08:00
4602960e86 chore(release): 7.18.0 2026-02-16 16:58:31 -08:00
d453539a4d chore(release): 7.17.0 2026-02-09 16:13:52 -08:00
e9f6a1b461 chore(release): 7.16.0 2026-02-09 12:08:34 -08:00
edb5ec4696 chore(release): 7.15.5 2026-02-02 09:29:53 -08:00