opencode-rehydar 0.14.0 → 0.14.2

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 (2) hide show
  1. package/index.js +12 -13
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,13 +1,12 @@
1
- // Load the built V2 SDK directly from the sibling dist/ directory so this
2
- // package can be dropped into OpenCode's plugin config without requiring an
3
- // npm install of the `rehydra` package. The relative path resolves to the
4
- // repository's compiled output (`../../dist/opencode-plugin/index.js`).
5
- const sdk = await import("../../dist/opencode-plugin/index.js");
6
- const sdkDefault = sdk.default;
7
- const sdkPlugin = sdk.plugin;
8
- const sdkCreate = sdk.createRehydraPlugin;
9
- export { sdkDefault as default, sdkPlugin as plugin, sdkCreate as createRehydraPlugin };
10
- // Backwards-compatible named export for consumers that still use the V1-style
11
- // entry: `import rehydra from "@rehydra/opencode"`. V2 reads the default
12
- // export, but keep `rehydra` available for code that imports it explicitly.
13
- export const rehydra = sdkDefault;
1
+ // Loads the published V2 SDK. Resolves to `opencode-rehydra-core`'s
2
+ // `opencode-plugin` entry via its `exports` map, so the plugin works from an
3
+ // npm install (no in-repo `dist/` required at runtime).
4
+ const sdk = await import("opencode-rehydra-core/opencode-plugin");
5
+ const sdkDefault = sdk.default;
6
+ const sdkPlugin = sdk.plugin;
7
+ const sdkCreate = sdk.createRehydraPlugin;
8
+ export { sdkDefault as default, sdkPlugin as plugin, sdkCreate as createRehydraPlugin };
9
+ // Backwards-compatible named export for consumers that still use the V1-style
10
+ // entry: `import rehydra from "@rehydra/opencode"`. V2 reads the default
11
+ // export, but keep `rehydra` available for code that imports it explicitly.
12
+ export const rehydra = sdkDefault;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-rehydar",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "Rehydra OpenCode plugin — anonymizes secrets in LLM context using native plugin hooks",
5
5
  "type": "module",
6
6
  "main": "index.js",