@andespindola/brainlink 0.1.0-beta.93 → 0.1.0-beta.94

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
@@ -602,7 +602,7 @@ The graph UI shows:
602
602
  - WebGL node and edge acceleration when supported, falling back to Canvas 2D without changing graph behavior
603
603
  - compact macro-to-micro density progression so reset keeps the graph mass oriented and zoom-in separates local neighborhoods progressively
604
604
  - graph camera treats hub-centered navigation as structural only when the hub is dominant; diffuse stress graphs reset and zoom around the full graph mass
605
- - graph LOD progression: graphs up to 1000 notes render directly; larger graphs use a compact memory-hub-centered mesh of alpha-particle 1000-note points, zoom-in keeps focused child clusters latent at the parent position before fading them in and only then separating them through 500-note, 250-note, 125-note and 60-note subgraphs with aggregated real links plus local sibling mesh links, keeps parent points during expansion to avoid visual jumps, then progressively raises the focused node budget so local areas keep nearby notes and links visible
605
+ - graph LOD progression: graphs up to 1000 notes render directly; larger graphs use a compact memory-hub-centered mesh of alpha-particle 1000-note points, zoom-in keeps focused child clusters latent at the parent position before fading them in and only then separating them through 500-note, 250-note, 125-note and 60-note subgraphs with aggregated real links plus local sibling mesh links, and in massive graphs keeps this subgraph mode active much longer with finer wheel steps so deep zoom does not abruptly switch to a broad sampled node cloud
606
606
 
607
607
  The server indexes before starting by default. Use `--no-index` to skip that step:
608
608
 
@@ -28,6 +28,7 @@ const ecosystemClusterEdgeLimit = 520
28
28
  const ecosystemHubEdgeLimit = 120
29
29
  const ecosystemSiblingEdgeLimit = 180
30
30
  const ecosystemClusterScaleThreshold = 0.78
31
+ const massiveEcosystemClusterScaleThreshold = 2.4
31
32
  const ecosystemSubgraphScaleThreshold = 0.18
32
33
  const ecosystemMicroScaleThreshold = 0.08
33
34
  const ecosystemFocusedParentLimit = 2
@@ -2701,9 +2702,12 @@ const computeRenderVisibility = () => {
2701
2702
  return
2702
2703
  }
2703
2704
 
2705
+ const ecosystemScaleThreshold = state.visibleNodes.length > massiveGraphNodeThreshold
2706
+ ? massiveEcosystemClusterScaleThreshold
2707
+ : ecosystemClusterScaleThreshold
2704
2708
  if (
2705
2709
  state.visibleNodes.length > ecosystemActivationNodeThreshold &&
2706
- state.transform.scale <= ecosystemClusterScaleThreshold &&
2710
+ state.transform.scale <= ecosystemScaleThreshold &&
2707
2711
  state.ecosystemClusters.length > 0
2708
2712
  ) {
2709
2713
  const clusters = selectHierarchicalEcosystemClusters(viewport)
@@ -3157,10 +3161,16 @@ const wheelZoomFactor = event => {
3157
3161
  return 1
3158
3162
  }
3159
3163
 
3160
- const sensitivity = wheelZoomExponent * (isModifierZoom ? wheelZoomModifierBoost : 1)
3164
+ const isMassiveEcosystemZoom =
3165
+ state.visibleNodes.length > massiveGraphNodeThreshold &&
3166
+ state.transform.scale <= massiveEcosystemClusterScaleThreshold
3167
+ const sensitivityMultiplier = isMassiveEcosystemZoom ? 0.62 : 1
3168
+ const capMultiplier = isMassiveEcosystemZoom ? 0.48 : 1
3169
+ const sensitivity = wheelZoomExponent * (isModifierZoom ? wheelZoomModifierBoost : 1) * sensitivityMultiplier
3170
+ const exponentCap = wheelZoomExponentCap * capMultiplier
3161
3171
  const exponent = Math.max(
3162
- -wheelZoomExponentCap,
3163
- Math.min(wheelZoomExponentCap, -normalizedDelta * sensitivity)
3172
+ -exponentCap,
3173
+ Math.min(exponentCap, -normalizedDelta * sensitivity)
3164
3174
  )
3165
3175
  return Math.exp(exponent)
3166
3176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andespindola/brainlink",
3
- "version": "0.1.0-beta.93",
3
+ "version": "0.1.0-beta.94",
4
4
  "description": "Local-first knowledge memory for agents with Markdown, backlinks, indexing and context retrieval.",
5
5
  "type": "module",
6
6
  "license": "MIT",