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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencode-supermemory",
"version": "2.0.16",
"version": "2.0.17",
"description": "OpenCode plugin that gives coding agents persistent memory using Supermemory",
"type": "module",
"main": "dist/index.js",
Expand Down
12 changes: 8 additions & 4 deletions src/server.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
/**
* OpenCode 2 server plugin entry, resolved as `opencode-supermemory/server`.
* The root export stays the OpenCode V1 plugin so both generations can load
* the same package.
* Server plugin entry, resolved as `opencode-supermemory/server` by both
* OpenCode generations. OpenCode 2 reads `id` and `setup()`. OpenCode V1
* (1.16 and later) also resolves this export and calls `server()`, so the
* default export carries both implementations.
*/
import type { Plugin as V1Plugin } from "@opencode-ai/plugin";
import type { Plugin } from "@opencode/plugin";

import { SupermemoryPlugin } from "./index.js";
import { setupV2 } from "./v2/runtime.js";

const plugin: Plugin.Plugin = {
const plugin: Plugin.Plugin & { server: V1Plugin } = {
id: "supermemory",
setup: (context) => setupV2(context),
server: (input, options) => SupermemoryPlugin(input, options),
};

export default plugin;
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// AUTO-GENERATED by scripts/sync-version.mjs — do not edit by hand.
// Sourced from package.json "version" so the two cannot drift.
export const PLUGIN_VERSION = "2.0.16";
export const PLUGIN_VERSION = "2.0.17";
Loading