@remembrance-ai/opencode-plugin 0.1.45 → 0.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/opencode.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "command": [
7
7
  "npx",
8
8
  "-y",
9
- "@remembrance-ai/mcp-server@0.1.45"
9
+ "@remembrance-ai/mcp-server@0.1.46"
10
10
  ],
11
11
  "enabled": true,
12
12
  "environment": {
@@ -15,6 +15,6 @@
15
15
  }
16
16
  },
17
17
  "plugin": [
18
- "@remembrance-ai/opencode-plugin@0.1.45"
18
+ "@remembrance-ai/opencode-plugin@0.1.46"
19
19
  ]
20
20
  }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@remembrance-ai/opencode-plugin",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "license": "Apache-2.0",
5
5
  "description": "opencode plugin for Remembrance session hooks, tool observation, and contribution nudges.",
6
6
  "type": "module",
7
7
  "main": "src/index.mjs",
8
8
  "exports": {
9
- ".": "./src/index.mjs"
9
+ ".": "./src/index.mjs",
10
+ "./server": "./src/index.mjs"
10
11
  },
11
12
  "bin": {
12
13
  "remembrance-opencode-setup": "bin/setup.mjs"
@@ -9180,7 +9180,7 @@ function isRecord(value) {
9180
9180
  // src/server.ts
9181
9181
  var apiConfiguration = resolveApiConfiguration();
9182
9182
  var apiBase = apiConfiguration.baseUrl;
9183
- var SERVER_VERSION = true ? "0.1.45" : "0.0.0-dev";
9183
+ var SERVER_VERSION = true ? "0.1.46" : "0.0.0-dev";
9184
9184
  var tools = toolDefinitions;
9185
9185
  var inputBuffer = Buffer.alloc(0);
9186
9186
  var clientFraming = "ndjson";
package/src/index.mjs CHANGED
@@ -1,7 +1,8 @@
1
1
  // Remembrance opencode plugin entrypoint.
2
2
  //
3
- // opencode plugins are IN-PROCESS JS/TS modules, not stdin/stdout scripts: the
4
- // module exports a plugin function that receives
3
+ // opencode plugins are IN-PROCESS JS/TS modules, not stdin/stdout scripts. The
4
+ // default export is the current versioned plugin-module object; its `server`
5
+ // function receives
5
6
  // `{ project, client, $, directory, worktree }` and returns an object whose
6
7
  // `event` callback receives the host's discriminated lifecycle-event union.
7
8
  // Specialized mutable hooks such as tool.execute.after remain direct keys.
@@ -548,4 +549,7 @@ function toolArgumentsFromEvent(input) {
548
549
  return value && typeof value === "object" ? value : {};
549
550
  }
550
551
 
551
- export default Remembrance;
552
+ export default Object.freeze({
553
+ id: "@remembrance-ai/opencode-plugin",
554
+ server: Remembrance,
555
+ });