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:
parent
5fdb2510b4
commit
6199f75c4e
2
index.ts
2
index.ts
|
|
@ -458,7 +458,7 @@ async function v2Setup(ctx: any) {
|
||||||
// OpenCode 1.18.x calls server(PluginInput, options) where PluginInput contains SDK client.
|
// OpenCode 1.18.x calls server(PluginInput, options) where PluginInput contains SDK client.
|
||||||
// V2 reads id + setup() and ignores server().
|
// V2 reads id + setup() and ignores server().
|
||||||
export default {
|
export default {
|
||||||
id: "opencode-matrix",
|
id: "matrix-plugin",
|
||||||
async setup(ctx: any) {
|
async setup(ctx: any) {
|
||||||
const isV2 = isV2Context(ctx)
|
const isV2 = isV2Context(ctx)
|
||||||
if (isV2) {
|
if (isV2) {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "opencode-matrix-plugin",
|
"name": "matrix-plugin",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "OpenCode V2 plugin for Matrix messaging integration",
|
"description": "OpenCode V2 plugin for Matrix messaging integration",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../../config-loader.ts
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../../index.ts
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../../logger.ts
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../../matrix-client.ts
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../../package.json
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../../session-manager.ts
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../../tsconfig.json
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../../types.ts
|
||||||
Loading…
Reference in New Issue