fix: restore plugins/matrix-plugin/ path structure for OpenCode V2 plugin loading

- Add plugins/matrix-plugin/ directory with symlinks to root files
  (OpenCode V2 resolver appends path suffix after symlink resolution)
- Rename plugin id from 'opencode-matrix' to 'matrix-plugin'
This commit is contained in:
Бородин Роман 2026-09-25 23:15:29 +03:00
parent 5fdb2510b4
commit 6199f75c4e
10 changed files with 10 additions and 2 deletions

View File

@ -458,7 +458,7 @@ async function v2Setup(ctx: any) {
// OpenCode 1.18.x calls server(PluginInput, options) where PluginInput contains SDK client.
// V2 reads id + setup() and ignores server().
export default {
id: "opencode-matrix",
id: "matrix-plugin",
async setup(ctx: any) {
const isV2 = isV2Context(ctx)
if (isV2) {

View File

@ -1,5 +1,5 @@
{
"name": "opencode-matrix-plugin",
"name": "matrix-plugin",
"version": "1.0.0",
"type": "module",
"description": "OpenCode V2 plugin for Matrix messaging integration",

View File

@ -0,0 +1 @@
../../config-loader.ts

View File

@ -0,0 +1 @@
../../index.ts

View File

@ -0,0 +1 @@
../../logger.ts

View File

@ -0,0 +1 @@
../../matrix-client.ts

View File

@ -0,0 +1 @@
../../package.json

View File

@ -0,0 +1 @@
../../session-manager.ts

View File

@ -0,0 +1 @@
../../tsconfig.json

View File

@ -0,0 +1 @@
../../types.ts