Skip to content

chore: plugin-only trim · CHANGELOG split · README update (v3.0.2)#185

Merged
kengio merged 2 commits into
mainfrom
chore/plugin-trim
May 22, 2026
Merged

chore: plugin-only trim · CHANGELOG split · README update (v3.0.2)#185
kengio merged 2 commits into
mainfrom
chore/plugin-trim

Conversation

@kengio
Copy link
Copy Markdown
Collaborator

@kengio kengio commented May 22, 2026

Summary

Trims this repo to plugin-only. Removes the legacy v2.x TypeScript/Bun CLI source (src/, package.json, bun.lock, tsconfig.json, biome.json), renames PLUGIN-CHANGELOG.mdCHANGELOG.md (after removing the old CLI changelog), updates README install instructions to the Rust CLI paths, and bumps the plugin to v3.0.2.

The Rust CLI lives at onebrain-ai/onebrain-cli and ships from its own GitHub Releases. This repo no longer maintains a CLI source or publishes Releases.

Changes

Concern Action
Bun toolchain git rm src/ (full tree, 17 k lines), package.json, bun.lock, tsconfig.json, biome.json. AGPL on the legacy code stays preserved in git history.
CHANGELOG split Removed legacy repo-root CHANGELOG.md (38 KB · Bun-era CLI changelog). Renamed PLUGIN-CHANGELOG.mdCHANGELOG.md per [[onebrain-changelog-structure]] one-changelog-per-repo rule. All historical plugin entries preserved verbatim.
plugin.json Bump 3.0.13.0.2 (manifest change + scope reduction → version bump per repo convention)
README.md (1) Version badge: npm @onebrain-ai/cli → GH Release on onebrain-ai/onebrain-cli. (2) License badge: MIT → AGPL-3.0-only (matches v3.0.1 relicense). (3) Install section: rewrite to brew tap + npm wrapper + GH Release direct + onebrain update self-installer; remove "Optional bun" hint. (4) Auto Checkpoint footnote: both install paths.

Separately (NOT in this PR)

After merge, will delete all 39 GitHub Releases (v2.0.0 → v2.3.3) and all matching v2.x tags from onebrain-ai/onebrain. The canonical Releases stream going forward is onebrain-ai/onebrain-cli/releases. This is a one-off CLI action, not a code change.

What's NOT touched

  • Skills (.claude/plugins/onebrain/skills/*) — unchanged
  • Agents (.claude/plugins/onebrain/agents/*) — unchanged
  • Hooks (.claude/plugins/onebrain/hooks/*) — unchanged
  • INSTRUCTIONS.md — unchanged
  • Gemini config (.gemini/*) — unchanged
  • Obsidian config (.obsidian/*) — unchanged
  • LICENSE — unchanged (stays AGPL-3.0-only)

Test plan

  • git status clean after add: 64 files staged (62 deletions + 2 modifications)
  • plugin.json valid JSON with version: "3.0.2", license: "AGPL-3.0-only", requires.cli: ">=3.0.0"
  • CHANGELOG renamed with v3.0.2 entry preserved alongside v3.0.1 and v3.0.0
  • README install commands updated; no more npm install -g @onebrain-ai/cli as the only path
  • 3-round parallel review
  • No CI on this repo — relying on review + manual verification

Stats

  • 65 files changed, 470 insertions, 17,935 deletions (~17 k line removal from src/)
  • Repo size impact: ~38 KB removed (CHANGELOG) + ~1 KB (package.json) + ~5 KB (bun.lock) + 17 k lines of TS source

kengio added 2 commits May 22, 2026 16:29
…ADME install update (v3.0.2)

This repo is now strictly the OneBrain plugin (skills, agents, hooks, INSTRUCTIONS,
harness configs). The legacy v2.x TypeScript/Bun CLI source has been removed; the
Rust CLI lives at `onebrain-ai/onebrain-cli` and ships from its own GH Releases.

Repo file changes:
- rm Bun toolchain: src/ (full tree, 17k lines), package.json, bun.lock,
  tsconfig.json, biome.json. AGPL on the legacy code stays preserved in git
  history.
- rm legacy repo-root CHANGELOG.md (Bun-era CLI changelog, 38 KB)
- mv PLUGIN-CHANGELOG.md → CHANGELOG.md (per [[onebrain-changelog-structure]]
  one-changelog-per-repo rule)

plugin.json:
- bump 3.0.1 → 3.0.2 (manifest change + scope reduction = version bump per
  repo convention)

CHANGELOG.md (v3.0.2 entry, 6 bullets within 8-bullet cap):
- chore: plugin-only trim summary
- rm Bun toolchain from root
- CHANGELOG split + heading rename
- README update — install paths now point at the Rust CLI (Homebrew tap, npm
  wrapper, GH Release direct, onebrain update self-installer); license badge
  MIT → AGPL-3.0-only
- GH Releases on this repo wiped (separate one-off; see follow-up)

README.md:
- Update version badge from npm to GH Release on onebrain-ai/onebrain-cli
- License badge MIT → AGPL-3.0-only
- Install section rewrite: brew tap + npm wrapper + GH Release direct + self-
  update path, with link to onebrain-ai/onebrain-cli
- Drop "Optional bun" hint — v3 is a self-contained Rust binary
- Auto Checkpoint footnote updated with both install paths

Separately (NOT in this PR diff): all 39 GH Releases (v2.0.0 → v2.3.3) and
matching v2.x tags will be deleted from onebrain-ai/onebrain after merge.
Canonical Releases stream is onebrain-ai/onebrain-cli/releases going forward.
…SKILL (round-1 review)

Reviewer found 2 stale paths after the trim:

1. CONTRIBUTING.md (line 365, 382-391): referenced `src/commands/init.ts` /
   `src/commands/update.ts` (deleted by this PR) and `PLUGIN-CHANGELOG.md`
   (renamed). Updated to point at the new install paths (brew tap + npm
   wrapper + GH Release direct) and the new single-track plugin-only
   versioning model — CLI versioning lives at onebrain-ai/onebrain-cli now.

2. .claude/plugins/onebrain/skills/update/SKILL.md (line 25, 198, 204):
   hardcoded `PLUGIN-CHANGELOG.md` URL — would 404 on the next /update
   after this PR merges. Updated to `CHANGELOG.md`. Also updated the
   "seven root files" gotcha to "six root files" with a callout about
   vault-sync cleaning up the stale PLUGIN-CHANGELOG.md on pre-v3.0.2
   vaults migrating forward.
@kengio kengio merged commit 586c67a into main May 22, 2026
1 check failed
@kengio kengio deleted the chore/plugin-trim branch May 22, 2026 09:33
kengio added a commit that referenced this pull request May 22, 2026
…in skills

Three small cleanups missed by PR #185:

1. rm root hooks/checkpoint-hook.sh — legacy Bash wrapper (10.8 KB) from
   pre-v3 era. v3 Stop hook uses `onebrain checkpoint stop` (CLI subcommand)
   directly; PreCompact/PostCompact hooks were retired in v1.10.x. No
   references to this file remain in the repo. Dead code.

2. skills/update/SKILL.md (line 107): "vault-sync handles seven root-level
   files: README.md/CONTRIBUTING.md/CHANGELOG.md/PLUGIN-CHANGELOG.md" →
   updated to six files (PLUGIN-CHANGELOG.md was renamed to CHANGELOG.md
   in v3.0.2 plugin-only trim, so the seventh slot no longer exists).
   Added the "pre-v3.0.2 cleanup" note inline.

3. skills/wrapup/SKILL.md (line 125): "Symmetry with `onebrain orphan-scan`"
   pointed at `src/commands/internal/orphan-scan.ts` — that path was
   deleted in PR #185 (Bun TS source moved to onebrain-ai/onebrain-cli as
   Rust). Updated pointer to the Rust path:
   `onebrain-ai/onebrain-cli → crates/onebrain-fs/src/orphan/`.

No skill behavior changes; no version bump (docs + dead-code only).
kengio added a commit that referenced this pull request May 22, 2026
…in skills (#186)

Three small cleanups missed by PR #185:

1. rm root hooks/checkpoint-hook.sh — legacy Bash wrapper (10.8 KB) from
   pre-v3 era. v3 Stop hook uses `onebrain checkpoint stop` (CLI subcommand)
   directly; PreCompact/PostCompact hooks were retired in v1.10.x. No
   references to this file remain in the repo. Dead code.

2. skills/update/SKILL.md (line 107): "vault-sync handles seven root-level
   files: README.md/CONTRIBUTING.md/CHANGELOG.md/PLUGIN-CHANGELOG.md" →
   updated to six files (PLUGIN-CHANGELOG.md was renamed to CHANGELOG.md
   in v3.0.2 plugin-only trim, so the seventh slot no longer exists).
   Added the "pre-v3.0.2 cleanup" note inline.

3. skills/wrapup/SKILL.md (line 125): "Symmetry with `onebrain orphan-scan`"
   pointed at `src/commands/internal/orphan-scan.ts` — that path was
   deleted in PR #185 (Bun TS source moved to onebrain-ai/onebrain-cli as
   Rust). Updated pointer to the Rust path:
   `onebrain-ai/onebrain-cli → crates/onebrain-fs/src/orphan/`.

No skill behavior changes; no version bump (docs + dead-code only).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant