diff --git a/index.ts b/index.ts index 9b0ad51..f59ca50 100644 --- a/index.ts +++ b/index.ts @@ -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) { diff --git a/package.json b/package.json index a29e49a..ed7fb77 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/plugins/matrix-plugin/config-loader.ts b/plugins/matrix-plugin/config-loader.ts new file mode 120000 index 0000000..e6deae6 --- /dev/null +++ b/plugins/matrix-plugin/config-loader.ts @@ -0,0 +1 @@ +../../config-loader.ts \ No newline at end of file diff --git a/plugins/matrix-plugin/index.ts b/plugins/matrix-plugin/index.ts new file mode 120000 index 0000000..e5f2852 --- /dev/null +++ b/plugins/matrix-plugin/index.ts @@ -0,0 +1 @@ +../../index.ts \ No newline at end of file diff --git a/plugins/matrix-plugin/logger.ts b/plugins/matrix-plugin/logger.ts new file mode 120000 index 0000000..bcec84e --- /dev/null +++ b/plugins/matrix-plugin/logger.ts @@ -0,0 +1 @@ +../../logger.ts \ No newline at end of file diff --git a/plugins/matrix-plugin/matrix-client.ts b/plugins/matrix-plugin/matrix-client.ts new file mode 120000 index 0000000..3d9b0bc --- /dev/null +++ b/plugins/matrix-plugin/matrix-client.ts @@ -0,0 +1 @@ +../../matrix-client.ts \ No newline at end of file diff --git a/plugins/matrix-plugin/package.json b/plugins/matrix-plugin/package.json new file mode 120000 index 0000000..138a42c --- /dev/null +++ b/plugins/matrix-plugin/package.json @@ -0,0 +1 @@ +../../package.json \ No newline at end of file diff --git a/plugins/matrix-plugin/session-manager.ts b/plugins/matrix-plugin/session-manager.ts new file mode 120000 index 0000000..2baea82 --- /dev/null +++ b/plugins/matrix-plugin/session-manager.ts @@ -0,0 +1 @@ +../../session-manager.ts \ No newline at end of file diff --git a/plugins/matrix-plugin/tsconfig.json b/plugins/matrix-plugin/tsconfig.json new file mode 120000 index 0000000..fd0e474 --- /dev/null +++ b/plugins/matrix-plugin/tsconfig.json @@ -0,0 +1 @@ +../../tsconfig.json \ No newline at end of file diff --git a/plugins/matrix-plugin/types.ts b/plugins/matrix-plugin/types.ts new file mode 120000 index 0000000..d6bad95 --- /dev/null +++ b/plugins/matrix-plugin/types.ts @@ -0,0 +1 @@ +../../types.ts \ No newline at end of file