opencode-mem 1.0.0 → 1.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":";AAgBA,QAAA,MAAQ,iBAAiB,sCAA+B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":";AAOA,QAAA,MAAQ,iBAAiB,sCAA+B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,eAAe,iBAAiB,CAAC"}
package/dist/plugin.js CHANGED
@@ -1,15 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { existsSync } from "node:fs";
3
- import { join, dirname } from "node:path";
4
2
  import { fileURLToPath } from "node:url";
3
+ import { dirname } from "node:path";
5
4
  const __filename = fileURLToPath(import.meta.url);
6
5
  const __dirname = dirname(__filename);
7
- const projectRoot = join(__dirname, "..");
8
- if (!existsSync(join(projectRoot, "node_modules"))) {
9
- console.error("Error: node_modules not found. Run 'bun install' first.");
10
- process.exit(1);
11
- }
12
- process.chdir(projectRoot);
13
6
  const { OpenCodeMemPlugin } = await import("./index.js");
14
7
  export { OpenCodeMemPlugin };
15
8
  export default OpenCodeMemPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-mem",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "OpenCode plugin that gives coding agents persistent memory using local vector database",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.js",