@objctp/opencode-shell-routines 1.2.0 → 1.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objctp/opencode-shell-routines",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Shell script development toolkit — automated scaffolding, best practices, and quality enforcement for OpenCode and Claude Code",
5
5
  "author": {
6
6
  "name": "objct",
@@ -21,6 +21,11 @@
21
21
  "code-quality",
22
22
  "bash-scripting"
23
23
  ],
24
+ "exports": {
25
+ "./server": {
26
+ "import": "./plugins/shell-hooks.ts"
27
+ }
28
+ },
24
29
  "files": [
25
30
  "agents/",
26
31
  "commands/",
@@ -148,3 +148,11 @@ export const ShellHooksPlugin: Plugin = async (
148
148
  },
149
149
  };
150
150
  };
151
+
152
+ // OpenCode resolves the `exports["./server"]` entry in dist/package.json and
153
+ // expects a V1 plugin module that default-exports `{ id, server }`. The named
154
+ // export above is kept for direct imports and tests.
155
+ export default {
156
+ id: "shell-routines",
157
+ server: ShellHooksPlugin,
158
+ };