Skip to content

feat: unify plugin-lib repo ref + add ingest mutex #96 - #97

Merged
four-bytes-robby merged 1 commit into
mainfrom
feat/96-unify-plugin-lib-repos
Jun 8, 2026
Merged

four-bytes-robby merged 1 commit into
mainfrom
feat/96-unify-plugin-lib-repos

Conversation

@four-bytes-robby

@four-bytes-robby four-bytes-robby commented Jun 8, 2026 •

Copy link
Copy Markdown
Member

Closes #96

Changes

  • Phase 2: Update package.json dependency from github:four-bytes/opencode-plugin-lib → github:four-bytes/four-opencode-plugin-lib (unified canonical name)
  • Phase 3: Add src/ingest/mutex.ts — in-process Promise-based ingest queue that serializes all ingest runs (auto-ingest + manual /brain ingest) to prevent SQLITE_BUSY from concurrent writes

Verification

  • bun run build passes
  • bun install resolves new repo URL correctly

Summary by cubic

Unifies the @four-bytes/opencode-plugin-lib repo reference and adds an in-process ingest mutex to prevent SQLITE_BUSY during concurrent ingests. Closes #96.

  • Bug Fixes

    • Serialize all ingest runs (auto + /brain ingest) with an in-process Promise mutex to avoid concurrent writes.
  • Dependencies

    • Point @four-bytes/opencode-plugin-lib to github:four-bytes/four-opencode-plugin-lib#v0.2.0 (canonical repo).

Written for commit e927b06. Summary will update on new commits.

Review in cubic

@four-bytes-robby four-bytes-robby self-assigned this Jun 8, 2026
@four-bytes-robby
four-bytes-robby merged commit 885b075 into main Jun 8, 2026
4 checks passed
@four-bytes-robby
four-bytes-robby deleted the feat/96-unify-plugin-lib-repos branch June 8, 2026 08:02
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.

Unify plugin-lib repos + fix parallel ingest locking

1 participant