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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 1.1.1

- Register `/graphify` independently of asynchronous v2 MCP reconciliation.
- Execute the command through the supported v2 session prompt API, preserving arguments, attachments, and delivery.
- Reject command execution for disabled or unrelated Graphify connections.
- Check the v2 entrypoint against `@opencode/plugin` 2.0.26 types and test deferred MCP registration.

## 1.1.0

- Add an OpenCode v2 `setup(ctx)` entrypoint while keeping OpenCode v1 support through `server()`.
Expand Down
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ bundled API keys, or install scripts.

Supports OpenCode v1 and v2 from the same package. OpenCode v1 support requires
**OpenCode 1.18.29** or newer; tested with **OpenCode 1.18.35**. OpenCode v2
support targets the V2 plugin API and configuration shape.
support is tested with **@opencode/cli 2.0.26**. Version **1.1.1** contains the
v2 command compatibility fix; publish that release before using the npm examples below.
You also need a Graphify account with an accessible indexed repository and a
working model provider in OpenCode. Graphify sign-in is separate from model-provider sign-in.

Expand All @@ -23,7 +24,7 @@ For OpenCode v1, add this entry to your existing `opencode.json` (project) or
```json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["graphify-opencode@1.1.0"]
"plugin": ["graphify-opencode@1.1.1"]
}
```

Expand All @@ -32,7 +33,7 @@ For OpenCode v2, use `plugins`:
```json
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["graphify-opencode@1.1.0"]
"plugins": ["graphify-opencode@1.1.1"]
}
```

Expand Down Expand Up @@ -68,6 +69,8 @@ preserves an existing `/graphify` command and your tool and permission settings.
Plugin-specific guidance is active only for an enabled remote `graphify` entry
whose URL is exactly `https://api.graphify.com/mcp`. In OpenCode v2, that server
is managed through `mcp.servers.graphify` and uses `disabled: true` to opt out.
The v2 `/graphify` command remains listed when disabled, but refuses to submit a
request until the Graphify connection is enabled. Restart after changing settings.

To disable Graphify in OpenCode v1, add this to your configuration and restart
OpenCode:
Expand Down Expand Up @@ -180,9 +183,12 @@ npm pack --dry-run

The package exports one default object: OpenCode v2 calls `setup(ctx)`, while
OpenCode v1 calls `server()`. Unit tests exercise v1 and v2 registration,
configuration preservation, disabled connections, and isolated guidance.
configuration preservation, deferred MCP registration, disabled connections, literal
command arguments, attachments, delivery, and isolated guidance. The v2 native smoke
test covers command registration, prompt admission, and the context hook; authenticated
Graphify tool execution requires an account and is a separate check.

[Website](https://graphify.com) · [Documentation](https://docs.graphify.com) ·
[Support](mailto:founders@graphify.com) ·
[OpenCode plugins](https://opencode.ai/docs/plugins/) ·
[OpenCode v2 plugins](https://dev.opencode.ai/v2/docs/build/plugins/)
[OpenCode v2 plugins](https://opencode.ai/v2/docs/build/plugins/)
2 changes: 1 addition & 1 deletion examples/opencode-v2.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["graphify-opencode@1.1.0"]
"plugins": ["graphify-opencode@1.1.1"]
}
2 changes: 1 addition & 1 deletion examples/opencode.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["graphify-opencode@1.1.0"]
"plugin": ["graphify-opencode@1.1.1"]
}
Loading