@andespindola/brainlink 0.1.0-beta.41 → 0.1.0-beta.43
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/AGENTS.md +2 -0
- package/CHANGELOG.md +6 -0
- package/README.md +26 -0
- package/dist/application/frontend/client-js.js +484 -47
- package/dist/application/frontend/client-worker-js.js +66 -0
- package/dist/application/index-vault.js +110 -4
- package/dist/application/server/routes.js +36 -1
- package/dist/application/start-server.js +75 -4
- package/dist/application/watch-vault.js +23 -2
- package/dist/cli/commands/write-commands.js +140 -13
- package/dist/infrastructure/search-packs.js +16 -1
- package/docs/AGENT_USAGE.md +18 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -33,6 +33,12 @@
|
|
|
33
33
|
- Fixed graph modal content loading by correcting agent query parameter composition for `/api/graph-node` and `/api/graph-filter` requests.
|
|
34
34
|
- Improved 50k+ graph rendering performance with viewport-aware spatial node culling, cached render visibility, and node-adjacent edge selection to avoid full graph scans every frame.
|
|
35
35
|
- Added incremental vault indexing with file snapshots to reuse unchanged documents/chunks/embeddings, plus adaptive search-pack rebuild thresholds to avoid full re-compression on small edits.
|
|
36
|
+
- Reduced large-graph HTTP payload size with compact `/api/graph-layout` encoding for high-node vaults and capped transmitted edges to improve UI load responsiveness.
|
|
37
|
+
- Added aggressive graph LOD clustering when zoomed out, dynamic per-zoom edge render budgets, and a dedicated frontend worker for off-main-thread graph filter matching.
|
|
38
|
+
- Improved Linux browser fallback launch stability by auto-applying Chromium compatibility flags (`--ozone-platform=x11`, `--disable-gpu`, `--disable-features=Vulkan,VaapiVideoDecoder`, `--disable-background-networking`) for app-window/browser modes.
|
|
39
|
+
- Improved massive-graph UI responsiveness with stricter render budgets, adaptive heavy-graph frame throttling, reduced interaction hit-test frequency, and URL-first agent selection on initial graph load.
|
|
40
|
+
- Improved 50k+ graph LOD behavior so zoomed-out views render lightweight cluster overviews and progressively reveal nodes/edges only as zoom increases.
|
|
41
|
+
- Added `blink bench` with realtime index phase telemetry and per-run compressed-pack analysis (input/output bytes, ratio, saved space, rebuild reason and duration), including continuous watch mode.
|
|
36
42
|
|
|
37
43
|
## 0.1.0-beta.3
|
|
38
44
|
|
package/README.md
CHANGED
|
@@ -81,6 +81,10 @@ Legacy `.jsonl.gz` packs are upgraded to `.blpk` automatically on first search/c
|
|
|
81
81
|
- Local HTTP API.
|
|
82
82
|
- Realtime graph UI with agent selector and colored knowledge groups.
|
|
83
83
|
- Graph renderer optimized for large datasets with viewport-driven node culling and edge lookup by visible nodes.
|
|
84
|
+
- Large graph layout API automatically uses compact payload encoding and edge-cap transmission to reduce initial client load on very large vaults.
|
|
85
|
+
- Zoomed-out graph LOD now clusters dense regions and progressively expands nodes as zoom increases.
|
|
86
|
+
- Graph filtering runs in a dedicated browser worker to keep the UI thread responsive during heavy datasets.
|
|
87
|
+
- Edge rendering budgets adapt to zoom level to prevent frame spikes on large graph panoramas.
|
|
84
88
|
|
|
85
89
|
## Install
|
|
86
90
|
|
|
@@ -566,6 +570,7 @@ By default, `blink server` tries to open the graph in a native desktop GUI windo
|
|
|
566
570
|
|
|
567
571
|
On Linux, native GUI is disabled by default for better startup performance. Enable it with `BRAINLINK_LINUX_NATIVE_GUI=1`.
|
|
568
572
|
If native GUI launch is unavailable on your system, it falls back to dedicated app-window mode and then to the default browser.
|
|
573
|
+
For Chromium-family browsers on Linux (`chromium`, `chromium-browser`, `google-chrome`, `microsoft-edge`, `brave-browser`), Brainlink now auto-applies compatibility flags during launch (`--ozone-platform=x11`, `--disable-gpu`, `--disable-features=Vulkan,VaapiVideoDecoder`, `--disable-background-networking`) to avoid common Wayland/Vulkan/VAAPI startup issues.
|
|
569
574
|
Use `--no-open` to keep it headless.
|
|
570
575
|
When native GUI is used, the GUI window automatically closes when the `blink server` process stops.
|
|
571
576
|
|
|
@@ -585,6 +590,7 @@ The graph UI shows:
|
|
|
585
590
|
- double-click on canvas zooms in at cursor position
|
|
586
591
|
- floating graph totals (notes, links, tags) below the Brainlink title
|
|
587
592
|
- large-graph rendering safeguards (edge draw caps, lower redraw rate, zoom-aware interaction)
|
|
593
|
+
- massive-graph LOD progression: zoomed-out views prefer lightweight clusters, then progressively reveal nodes and edges as zoom increases
|
|
588
594
|
|
|
589
595
|
The server indexes before starting by default. Use `--no-index` to skip that step:
|
|
590
596
|
|
|
@@ -754,6 +760,25 @@ blink index --vault ./vault
|
|
|
754
760
|
|
|
755
761
|
Rebuilds the local index from Markdown files.
|
|
756
762
|
|
|
763
|
+
### `bench`
|
|
764
|
+
|
|
765
|
+
```bash
|
|
766
|
+
blink bench --vault ./vault
|
|
767
|
+
blink bench --vault ./vault --watch
|
|
768
|
+
blink bench --vault ./vault --watch --debounce 500
|
|
769
|
+
blink bench --vault ./vault --json
|
|
770
|
+
```
|
|
771
|
+
|
|
772
|
+
Runs indexing with realtime phase telemetry (`start`, `scan`, `parse`, `embed`, `persist`, `packs`, `complete`) and prints a benchmark summary at the end of each run.
|
|
773
|
+
|
|
774
|
+
Summary includes compression behavior for `.blpk` packs when rebuild happens:
|
|
775
|
+
- pack rebuild reason
|
|
776
|
+
- pack count and pack build duration
|
|
777
|
+
- uncompressed input bytes vs compressed output bytes
|
|
778
|
+
- saved percentage
|
|
779
|
+
|
|
780
|
+
Use `--watch` to keep benchmarking incremental reindex runs after Markdown changes (local filesystem vaults only).
|
|
781
|
+
|
|
757
782
|
### `agents`
|
|
758
783
|
|
|
759
784
|
```bash
|
|
@@ -884,6 +909,7 @@ Starts the local read-only graph UI and HTTP API.
|
|
|
884
909
|
By default, it tries to open a native desktop GUI window for the graph URL.
|
|
885
910
|
On Linux, native GUI is disabled by default; enable it with `BRAINLINK_LINUX_NATIVE_GUI=1`.
|
|
886
911
|
If native GUI launch is unavailable, it falls back to dedicated app-window mode and then browser open.
|
|
912
|
+
When fallback opens Chromium-family browsers on Linux, Brainlink automatically uses compatibility launch flags for stable rendering on Ubuntu/Wayland setups.
|
|
887
913
|
Use `--no-open` to skip that behavior.
|
|
888
914
|
|
|
889
915
|
The HTTP server only binds to loopback hosts such as `127.0.0.1`, `localhost` or `::1`.
|