@hybridlabor-api/bdb-synapse 1.0.3 → 1.0.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/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # <img src="assets/logo.svg" alt="" width="30" /> BDB Synapse
2
2
 
3
+
4
+ [![CI](https://github.com/hybridlabor-api/bdb-synapse/actions/workflows/ci.yml/badge.svg)](https://github.com/hybridlabor-api/bdb-synapse/actions)
5
+ [![NPM Version](https://img.shields.io/npm/v/@hybridlabor-api/bdb-synapse.svg)](https://www.npmjs.com/package/@hybridlabor-api/bdb-synapse)
6
+
3
7
  A visualization tool that replays coding-agent sessions on a 3D map of your codebase.
4
8
 
5
9
  **BDB Synapse** is an extended fork of the excellent [cosmtrek/mindwalk](https://github.com/cosmtrek/mindwalk) (MIT License), created to support the BDB ecosystem of agents. It adds support for the Antigravity (agy) CLI alongside the existing supported agents.
package/bin/synapse.js ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawnSync } = require('child_process');
4
+ const path = require('path');
5
+ const fs = require('fs');
6
+
7
+ const projectRoot = path.resolve(__dirname, '..');
8
+
9
+ // Überprüfen, ob Go installiert ist
10
+ const goCheck = spawnSync('go', ['version'], { encoding: 'utf-8' });
11
+ if (goCheck.error || goCheck.status !== 0) {
12
+ console.error("\x1b[31m%s\x1b[0m", "Fehler: Go (Golang) ist auf diesem System nicht installiert oder nicht im PATH!");
13
+ console.error("Da dies eine 'npx' on-the-fly Ausführung ist, wird Go benötigt, um den Quellcode zu kompilieren.");
14
+ console.error("Installiere BDB Synapse idealerweise als pre-compiled Binary über:");
15
+ console.error("\x1b[36m%s\x1b[0m", " npx @hybridlabor-api/bdb-dev-optimized-agent-skills@latest");
16
+ process.exit(1);
17
+ }
18
+
19
+ // go run ausführen
20
+ const args = process.argv.slice(2);
21
+ const result = spawnSync('go', ['run', 'cmd/synapse/main.go', ...args], {
22
+ cwd: projectRoot,
23
+ stdio: 'inherit'
24
+ });
25
+
26
+ process.exit(result.status !== null ? result.status : 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybridlabor-api/bdb-synapse",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "BDB Synapse — 3D Codebase Visualizer & Agent Session Replay Engine",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,5 +31,8 @@
31
31
  ],
32
32
  "publishConfig": {
33
33
  "access": "public"
34
+ },
35
+ "bin": {
36
+ "synapse": "bin/synapse.js"
34
37
  }
35
- }
38
+ }