Commit graph

343 commits

Author SHA1 Message Date
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
a88268fd25 chore(release): 7.15.4 2026-02-02 09:21:31 -08:00
0ec3d85c39 chore(release): 7.15.3 2026-02-02 08:52:53 -08:00
389e9d6258 chore(release): 7.15.2 2026-02-01 17:56:14 -08:00
0add0af45a chore(release): 7.15.1 2026-02-01 16:25:05 -08:00
b87426409d chore(release): 7.15.0 2026-02-01 13:05:10 -08:00
3a21bf62b7 chore(release): 7.14.0 2026-02-01 11:12:35 -08:00
36db644eca refactor: remove src/cortex/ directory and fix README claims
- Move neuralImport.ts and neuralImportAugmentation.ts to src/neural/
- Delete 3 dead files (healthCheck, backupRestore, performanceMonitor)
- Remove cortex entries from package.json browser field
- Fix unsubstantiated performance claims in README (add PROJECTED labels)
- Delete stale dist/cortex/ artifacts
2026-02-01 11:07:26 -08:00