brainbank 0.8.0 → 0.8.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/bin/brainbank +7 -4
  2. package/package.json +5 -2
package/bin/brainbank CHANGED
@@ -9,7 +9,10 @@ done
9
9
  DIR="$(cd "$(dirname "$SCRIPT")" && pwd)"
10
10
  ROOT="$DIR/.."
11
11
 
12
- # Tell tsx where brainbank's tsconfig is (for @/ path aliases)
13
- export TSX_TSCONFIG_PATH="$ROOT/tsconfig.json"
14
-
15
- exec "$ROOT/node_modules/.bin/tsx" "$ROOT/src/cli/index.ts" "$@"
12
+ # Use compiled dist if available (npm install), fall back to tsx for development
13
+ if [ -f "$ROOT/dist/cli.js" ]; then
14
+ exec node "$ROOT/dist/cli.js" "$@"
15
+ else
16
+ export TSX_TSCONFIG_PATH="$ROOT/tsconfig.json"
17
+ exec "$ROOT/node_modules/.bin/tsx" "$ROOT/src/cli/index.ts" "$@"
18
+ fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brainbank",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Pluggable semantic memory for AI agents — hybrid search (vector + BM25) in a single SQLite file. Built-in code, git, and docs indexers. Bring your own.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "assets/"
25
25
  ],
26
26
  "scripts": {
27
- "postinstall": "rm -rf node_modules/brainbank && ln -s .. node_modules/brainbank",
27
+
28
28
  "start": "bin/brainbank",
29
29
  "build": "rm -rf dist && tsup && npm run build --workspaces --if-present",
30
30
  "build:core": "rm -rf dist && tsup",
@@ -67,6 +67,9 @@
67
67
  "picomatch": "^4.0.4"
68
68
  },
69
69
  "optionalDependencies": {
70
+ "@brainbank/code": "^0.1.1",
71
+ "@brainbank/docs": "^0.1.1",
72
+ "@brainbank/git": "^0.1.1",
70
73
  "@xenova/transformers": "^2.17.2",
71
74
  "node-llama-cpp": "^3.18.1"
72
75
  },