hebbian 0.1.0 → 0.2.0
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 +11 -9
- package/dist/bin/hebbian.js +1225 -0
- package/dist/bin/hebbian.js.map +1 -0
- package/dist/constants.d.ts +16 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/decay.d.ts +9 -0
- package/dist/decay.d.ts.map +1 -0
- package/dist/dedup.d.ts +9 -0
- package/dist/dedup.d.ts.map +1 -0
- package/dist/emit.d.ts +26 -0
- package/dist/emit.d.ts.map +1 -0
- package/dist/fire.d.ts +10 -0
- package/dist/fire.d.ts.map +1 -0
- package/dist/grow.d.ts +11 -0
- package/dist/grow.d.ts.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +937 -0
- package/dist/index.js.map +1 -0
- package/dist/init.d.ts +5 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/rollback.d.ts +5 -0
- package/dist/rollback.d.ts.map +1 -0
- package/dist/scanner.d.ts +6 -0
- package/dist/scanner.d.ts.map +1 -0
- package/dist/signal.d.ts +6 -0
- package/dist/signal.d.ts.map +1 -0
- package/dist/similarity.d.ts +16 -0
- package/dist/similarity.d.ts.map +1 -0
- package/dist/snapshot.d.ts +5 -0
- package/dist/snapshot.d.ts.map +1 -0
- package/dist/subsumption.d.ts +6 -0
- package/dist/subsumption.d.ts.map +1 -0
- package/dist/types.d.ts +36 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/watch.d.ts +6 -0
- package/dist/watch.d.ts.map +1 -0
- package/package.json +17 -9
- package/bin/hebbian.js +0 -199
- package/lib/constants.js +0 -83
- package/lib/decay.js +0 -100
- package/lib/dedup.js +0 -66
- package/lib/emit.js +0 -376
- package/lib/fire.js +0 -59
- package/lib/grow.js +0 -98
- package/lib/init.js +0 -89
- package/lib/rollback.js +0 -34
- package/lib/scanner.js +0 -227
- package/lib/signal.js +0 -68
- package/lib/similarity.js +0 -62
- package/lib/snapshot.js +0 -46
- package/lib/subsumption.js +0 -77
- package/lib/watch.js +0 -79
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
+
<img src="https://img.shields.io/badge/TypeScript-6.0-3178C6?style=flat-square&logo=typescript" />
|
|
2
3
|
<img src="https://img.shields.io/badge/Node.js-22+-339933?style=flat-square&logo=node.js" />
|
|
3
|
-
<img src="https://img.shields.io/badge/
|
|
4
|
-
<img src="https://img.shields.io/badge/Tests-
|
|
4
|
+
<img src="https://img.shields.io/badge/Runtime_Deps-0-brightgreen?style=flat-square" />
|
|
5
|
+
<img src="https://img.shields.io/badge/Tests-134-blue?style=flat-square" />
|
|
5
6
|
<img src="https://img.shields.io/badge/MIT-green?style=flat-square" />
|
|
6
7
|
</p>
|
|
7
8
|
|
|
@@ -158,22 +159,22 @@ hebbian grow cortex/frontend/禁console_logging --brain ./brain
|
|
|
158
159
|
|
|
159
160
|
---
|
|
160
161
|
|
|
161
|
-
## Zero Dependencies
|
|
162
|
+
## Zero Runtime Dependencies
|
|
162
163
|
|
|
163
|
-
|
|
164
|
+
Written in **TypeScript 6.0**, built with tsup, tested with vitest.
|
|
164
165
|
|
|
165
166
|
- `node:fs` — filesystem operations
|
|
166
167
|
- `node:path` — path handling
|
|
167
168
|
- `node:util` — CLI argument parsing
|
|
168
169
|
- `node:http` — REST API (planned)
|
|
169
170
|
|
|
170
|
-
**Runtime dependencies: 0.**
|
|
171
|
+
**Runtime dependencies: 0.** Dev dependencies (typescript, tsup, vitest) are build-time only. Published package contains only compiled JS + type declarations.
|
|
171
172
|
|
|
172
173
|
---
|
|
173
174
|
|
|
174
175
|
## Governance
|
|
175
176
|
|
|
176
|
-
|
|
177
|
+
134 tests pass in ~2s:
|
|
177
178
|
|
|
178
179
|
- **SCC** (Subsumption Cascade Correctness): 17/17 = **100%**
|
|
179
180
|
- **MLA** (Memory Lifecycle Accuracy): 15/15 = **100%**
|
|
@@ -181,11 +182,12 @@ hebbian uses only Node.js built-in modules:
|
|
|
181
182
|
- Lifecycle: 18 tests
|
|
182
183
|
- Emit: 16 tests
|
|
183
184
|
- Similarity: 12 tests
|
|
184
|
-
- CLI E2E:
|
|
185
|
+
- CLI E2E: 21 tests
|
|
186
|
+
- Dedup: 3 tests
|
|
185
187
|
|
|
186
188
|
```bash
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
npm test # Run all tests
|
|
190
|
+
npx vitest run test/governance.test.ts # Governance only
|
|
189
191
|
```
|
|
190
192
|
|
|
191
193
|
---
|