@rehydra/opencode 0.6.2 → 0.6.4

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.
Files changed (3) hide show
  1. package/index.d.ts +8 -1
  2. package/index.js +10 -1
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1,2 +1,9 @@
1
- export { createRehydraPlugin, default } from "rehydra/opencode-plugin";
1
+ export { createRehydraPlugin } from "rehydra/opencode-plugin";
2
2
  export type { RehydraPluginOptions } from "rehydra/opencode-plugin";
3
+ export declare const rehydra: (input: {
4
+ client: unknown;
5
+ directory: string;
6
+ worktree: string;
7
+ [key: string]: unknown;
8
+ }) => Promise<Record<string, unknown>>;
9
+ export default rehydra;
package/index.js CHANGED
@@ -1 +1,10 @@
1
- export { createRehydraPlugin, default } from "rehydra/opencode-plugin";
1
+ import { createRehydraPlugin } from "rehydra/opencode-plugin";
2
+
3
+ // Named export: the factory for custom config (.opencode/plugins/rehydra.ts)
4
+ export { createRehydraPlugin };
5
+
6
+ // Named + default export: the plugin function for opencode.json usage.
7
+ // OpenCode calls named exports as plugin functions, so this must be
8
+ // the Plugin itself (takes ctx, returns hooks), not the factory.
9
+ export const rehydra = createRehydraPlugin();
10
+ export default rehydra;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rehydra/opencode",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "Rehydra plugin for OpenCode — anonymizes secrets in LLM context using native plugin hooks",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -29,7 +29,7 @@
29
29
  "directory": "packages/opencode-plugin"
30
30
  },
31
31
  "dependencies": {
32
- "rehydra": "^0.6.2"
32
+ "rehydra": "^0.6.4"
33
33
  },
34
34
  "engines": {
35
35
  "node": ">=18.0.0"