opencode-branch-memory-manager 0.1.3 → 0.1.5

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": "opencode-branch-memory-manager",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Automatically manages branch-specific context for OpenCode with auto-save, auto-load, and git workflow integration",
5
5
  "author": "Davidcreador",
6
6
  "license": "MIT",
@@ -22,13 +22,15 @@
22
22
  "scripts": {
23
23
  "build": "npm run build:local",
24
24
  "build:npm": "cd src && bun install --no-lockfile && bun build index.ts --outdir ../dist --target node",
25
- "build:local": "bun build .opencode/tool/branch-memory.ts --outdir .opencode/dist --target node",
25
+ "build:plugin": "bun build .opencode/plugin/branch-memory-plugin.ts --outdir .opencode/dist --target node --format esm",
26
+ "build:tools": "bun build .opencode/tool/branch-memory.ts --outdir .opencode/dist --target node --format esm",
27
+ "build:local": "npm run build:plugin && npm run build:tools",
26
28
  "typecheck": "tsc --noEmit --project tsconfig.typecheck.json --skipLibCheck",
27
29
  "test": "bun test",
28
30
  "test:coverage": "bun test --coverage",
29
31
  "lint": "eslint src tests --ext .ts",
30
32
  "lint:fix": "eslint src tests --ext .ts --fix",
31
- "clean": "rm -rf dist node_modules src/node_modules",
33
+ "clean": "rm -rf dist node_modules src/node_modules .opencode/dist",
32
34
  "prepublishOnly": "npm run clean && npm run build"
33
35
  },
34
36
  "keywords": [
@@ -40,6 +42,17 @@
40
42
  "auto-save",
41
43
  "workspace"
42
44
  ],
45
+ "opencode": {
46
+ "type": "plugin",
47
+ "entrypoint": ".opencode/dist/branch-memory-plugin.js",
48
+ "tools": [
49
+ "@branch-memory_save",
50
+ "@branch-memory_load",
51
+ "@branch-memory_status",
52
+ "@branch-memory_list",
53
+ "@branch-memory_deleteContext"
54
+ ]
55
+ },
43
56
  "dependencies": {
44
57
  "chokidar": "^4.0.0",
45
58
  "zod": "^3.22.0"