Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ Issues → Branch → PR → Merge (feature workflow)

**CI:** `package.json` pins to a GitHub tag:
```json
"@four-bytes/opencode-plugin-lib": "github:four-bytes/four-opencode-plugin-lib#v0.8.4"
"@four-bytes/opencode-plugin-lib": "github:four-bytes/four-opencode-plugin-lib#v0.8.6"
```
When plugin-lib changes are merged:
1. Bump version in plugin-lib's `package.json`
2. Tag: `git tag v0.8.4 && git push --tags`
2. Tag: `git tag v0.8.6 && git push --tags`
3. Update all dependent plugins' `package.json` + `bun.lock` to new tag

**Local dev:** Uses `bun link` to point `node_modules/@four-bytes/opencode-plugin-lib` at the local source `~/four-opencode-plugin-lib`:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@four-bytes/four-opencode-brain",
"version": "1.8.4",
"version": "1.8.5",
"description": "Unified brain plugin — single SQLite DB for RAG search, memory, and knowledge base",
"license": "Apache-2.0",
"type": "module",
Expand All @@ -15,7 +15,7 @@
"four-bytes"
],
"dependencies": {
"@four-bytes/opencode-plugin-lib": "github:four-bytes/four-opencode-plugin-lib#v0.8.4",
"@four-bytes/opencode-plugin-lib": "github:four-bytes/four-opencode-plugin-lib#v0.8.5",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== package.json ==\n'
cat -n package.json | sed -n '1,120p'

printf '\n== AGENTS.md files ==\n'
fd -a 'AGENTS.md' . | sed 's#^\./##' || true

printf '\n== references to opencode-plugin-lib ==\n'
rg -n '`@four-bytes/opencode-plugin-lib`|four-opencode-plugin-lib|v0\.8\.(5|6)' -S . --glob '!**/node_modules/**' --glob '!**/dist/**' --glob '!**/build/**' || true

printf '\n== lockfiles ==\n'
fd -a 'bun.lock*' . | sed 's#^\./##' || true
for f in $(fd -a 'bun.lock*' . | sed 's#^\./##'); do
  printf '\n--- %s ---\n' "$f"
  rg -n 'four-opencode-plugin-lib|`@four-bytes/opencode-plugin-lib`|v0\.8\.(5|6)' -S "$f" || true
done

Repository: four-bytes/four-opencode-brain

Length of output: 4987


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== package.json files ==\n'
fd -a '^package\.json$' . | sed 's#^\./##' || true

printf '\n== AGENTS.md excerpt ==\n'
cat -n AGENTS.md | sed -n '48,70p'

printf '\n== all package.json references to the shared lib ==\n'
for f in $(fd -a '^package\.json$' . | sed 's#^\./##'); do
  if rg -n '`@four-bytes/opencode-plugin-lib`' "$f" >/dev/null; then
    printf '\n--- %s ---\n' "$f"
    rg -n '`@four-bytes/opencode-plugin-lib`' "$f"
  fi
done

Repository: four-bytes/four-opencode-brain

Length of output: 1530


Align the plugin-lib pin with the release guidance and lockfile. package.json still points at v0.8.5 while AGENTS.md says v0.8.6, and bun.lock is still on the older resolution. Bump the pin and regenerate the lockfile together so installs and docs stay in sync.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 18, The plugin-lib dependency pin is out of sync with
the release guidance and lockfile. Update the `@four-bytes/opencode-plugin-lib`
entry in package.json from v0.8.5 to the documented v0.8.6, then regenerate
bun.lock so the resolved version matches. Make sure the change stays consistent
with the package manifest and lockfile entries for the dependency.

Source: Learnings

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The @four-bytes/opencode-plugin-lib dependency is pinned to #v0.8.5 in package.json, but AGENTS.md documents the version as #v0.8.6 (line updated in the same batch). This mismatch means either the dependency reference wasn't bumped to match the documented tag, or AGENTS.md was updated prematurely. If v0.8.6 is the intended tag, the package.json dependency line needs updating too.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At package.json, line 18:

<comment>The `@four-bytes/opencode-plugin-lib` dependency is pinned to `#v0.8.5` in `package.json`, but `AGENTS.md` documents the version as `#v0.8.6` (line updated in the same batch). This mismatch means either the dependency reference wasn't bumped to match the documented tag, or AGENTS.md was updated prematurely. If `v0.8.6` is the intended tag, the `package.json` dependency line needs updating too.</comment>

<file context>
@@ -15,7 +15,7 @@
   ],
   "dependencies": {
-    "@four-bytes/opencode-plugin-lib": "github:four-bytes/four-opencode-plugin-lib#v0.8.4",
+    "@four-bytes/opencode-plugin-lib": "github:four-bytes/four-opencode-plugin-lib#v0.8.5",
     "@opencode-ai/plugin": "1.16.2",
     "@opentui/core": "0.3.2",
</file context>
Suggested change
"@four-bytes/opencode-plugin-lib": "github:four-bytes/four-opencode-plugin-lib#v0.8.5",
"@four-bytes/opencode-plugin-lib": "github:four-bytes/four-opencode-plugin-lib#v0.8.6",

"@opencode-ai/plugin": "1.16.2",
"@opentui/core": "0.3.2",
"@opentui/solid": "0.3.2",
Expand Down
Loading