neuronlayer 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/README.md CHANGED
@@ -69,7 +69,7 @@ Just restart your AI tool and NeuronLayer is active.
69
69
 
70
70
  ## MCP Tools
71
71
 
72
- NeuronLayer exposes **12 MCP tools** organized into 6 gateway tools and 6 standalone tools.
72
+ NeuronLayer exposes **14 MCP tools** organized into 6 gateway tools and 8 standalone tools.
73
73
 
74
74
  ### Gateway Tools (Smart Routing)
75
75
 
@@ -88,6 +88,8 @@ These are the main tools. Each routes to multiple internal capabilities based on
88
88
 
89
89
  | Tool | Purpose |
90
90
  |------|---------|
91
+ | `memory_refresh` | **NEW** Trigger manual refresh after external changes (git pull) |
92
+ | `get_refresh_status` | **NEW** Check idle tasks, activity status, git state |
91
93
  | `switch_project` | Switch between registered projects |
92
94
  | `switch_feature_context` | Resume work on a previous feature |
93
95
  | `trigger_compaction` | Reduce memory when context is full |
@@ -111,11 +113,40 @@ These are the main tools. Each routes to multiple internal capabilities based on
111
113
  | **Test Indexing** | Working | Index tests, predict failures |
112
114
  | **Git Integration** | Working | Track changes, correlate with decisions |
113
115
  | **Multi-Project** | Working | Switch between projects |
116
+ | **Intelligent Refresh** | **NEW** | Smart sync with cheap pre-checks |
117
+
118
+ ### Intelligent Refresh System (v0.1.4)
119
+
120
+ NeuronLayer now includes a tiered refresh architecture that eliminates wasteful polling:
121
+
122
+ ```
123
+ TIER 1: REAL-TIME
124
+ ├── File changes → Chokidar watcher → immediate invalidation
125
+ ├── User queries → immediate tracking
126
+ └── File access → immediate hot cache update
127
+
128
+ TIER 2: ON-DEMAND WITH CHEAP PRE-CHECK
129
+ ├── Git sync → check HEAD first (5ms), only sync if changed
130
+ ├── Summaries → check lastModified before regenerating
131
+ └── Bug diagnosis → sync git first if HEAD changed
132
+
133
+ TIER 3: IDLE-TIME MAINTENANCE
134
+ ├── When user idle > 30s AND git changed → sync git
135
+ ├── When idle > 5min since last update → update importance scores
136
+ └── One task at a time, non-blocking
137
+
138
+ TIER 4: SESSION-BASED
139
+ ├── Engine init → full git sync
140
+ └── Shutdown → persist state
141
+ ```
142
+
143
+ **Key optimization**: Instead of running expensive `git log` operations (~100ms+), we cache the HEAD commit and only sync when it changes (~5ms check).
114
144
 
115
145
  ### Modules
116
146
 
117
147
  ```
118
148
  src/core/
149
+ ├── refresh/ # NEW: Intelligent refresh system
119
150
  ├── living-docs/ # Architecture & changelog generation
120
151
  ├── context-rot/ # Context health & compaction
121
152
  ├── confidence/ # Source tracking & conflict detection
@@ -263,8 +294,8 @@ npm install
263
294
  # Build
264
295
  npm run build
265
296
 
266
- # Test
267
- npm test
297
+ # Type check
298
+ npm run typecheck
268
299
  ```
269
300
 
270
301
  ---