From 7a2b0efb01224fa4b89371b8be494e9f08795dcb Mon Sep 17 00:00:00 2001 From: 4 Bytes Robby Date: Sun, 7 Jun 2026 16:32:14 +0200 Subject: [PATCH 1/3] fix: remove unused config/sidebar from exports, drop root export, clean scripts #93 --- package.json | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 271d2f7..77a6240 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,12 @@ { "name": "@four-bytes/four-opencode-brain", - "version": "1.5.0", - "description": "Unified brain plugin — single SQLite DB for RAG search, memory, and knowledge base with content-hash dedup and per-session LRU cache", + "version": "1.5.1", + "description": "Unified brain plugin — single SQLite DB for RAG search, memory, and knowledge base", "license": "Apache-2.0", "type": "module", - "main": "dist/four-opencode-brain.js", "scripts": { "build": "NODE_ENV=production bun run scripts/build.ts", - "test": "bun test", - "build:tui": "echo \"TUI built as part of main build (tsc)\"", - "prepublishOnly": "npm run build && npm run build:tui", - "dev": "bun run scripts/build.ts" + "test": "bun test" }, "keywords": [ "opencode", @@ -18,7 +14,7 @@ "four-bytes" ], "dependencies": { - "@four-bytes/opencode-plugin-lib": "github:four-bytes/opencode-plugin-lib", + "@four-bytes/opencode-plugin-lib": "github:four-bytes/opencode-plugin-lib#v0.2.0", "@opencode-ai/plugin": "1.16.2", "@opentui/core": "0.3.2", "@opentui/solid": "0.3.2", @@ -34,22 +30,13 @@ "bun-types": "1.3.14" }, "exports": { - ".": { - "import": "./dist/four-opencode-brain.js" - }, "./server": { - "import": "./dist/four-opencode-brain.js", - "config": { - "enabled": true - } + "types": "./dist/four-opencode-brain.d.ts", + "import": "./dist/four-opencode-brain.js" }, "./tui": { "types": "./dist/four-opencode-brain-tui.d.ts", - "import": "./dist/four-opencode-brain-tui.jsx", - "config": { - "enabled": true, - "sidebar": true - } + "import": "./dist/four-opencode-brain-tui.jsx" } } -} \ No newline at end of file +} From a5e21a2b0486dcb368bdabf0a5388e47c2c9fd61 Mon Sep 17 00:00:00 2001 From: 4 Bytes Robby Date: Sun, 7 Jun 2026 16:33:44 +0200 Subject: [PATCH 2/3] =?UTF-8?q?docs:=20fix=20install=20instructions=20?= =?UTF-8?q?=E2=80=94=20add=20opencode=20plugin=20-g,=20v1.5.0=20badge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 500d135..e6a860e 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,32 @@ [![npm](https://img.shields.io/npm/v/@four-bytes/four-opencode-brain)](https://www.npmjs.com/package/@four-bytes/four-opencode-brain) [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE) -[![Version](https://img.shields.io/badge/version-1.4.0-blue)](https://github.com/four-bytes/four-opencode-brain/releases) +[![Version](https://img.shields.io/badge/version-1.5.0-blue)](https://github.com/four-bytes/four-opencode-brain/releases) ## Features +## Installation + +```bash +# Clone and install +git clone https://github.com/four-bytes/four-opencode-brain +cd four-opencode-brain +bun install && bun run build + +# Register globally (required — TUI slot plugin) +opencode plugin install . -g +``` + +Or via GitHub dependency in opencode.json: + +```json +{ + "plugin": [ + "github:four-bytes/four-opencode-brain" + ] +} +``` + - **Hybrid Search** — FTS5 full-text + vec0 vector search with RRF fusion - **Memory** — Session-scoped notes, decisions, patterns, errors, diary entries - **Knowledge Base** — Problem-centric entries with confidence gating and review lifecycle @@ -16,13 +38,6 @@ - **Content-Hash Dedup** — Skips unchanged files automatically ## Installation - -```bash -npm install @four-bytes/four-opencode-brain -``` - -Or install via opencode's plugin marketplace. - ## Quick Start After installation, the brain auto-ingests your project on startup (git repos only). You can also: From 751fe542bac34e736201b0041297f9acc80e1550 Mon Sep 17 00:00:00 2001 From: 4 Bytes Robby Date: Sun, 7 Jun 2026 16:37:50 +0200 Subject: [PATCH 3/3] fix: restore Features section content deleted by overzealous sed --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index e6a860e..119112b 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,13 @@ ## Features +- **Hybrid Search** — FTS5 full-text + vec0 vector search with RRF fusion +- **Memory** — Session-scoped notes, decisions, patterns, errors, diary entries +- **Knowledge Base** — Problem-centric entries with confidence gating and review lifecycle +- **Auto-Ingest** — Indexes project files on startup (git repos only) +- **TUI Status Bar** — Live spinner, progress, and completion indicators +- **Content-Hash Dedup** — Skips unchanged files automatically + ## Installation ```bash