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.
Files changed (53) hide show
  1. package/README.md +11 -9
  2. package/dist/bin/hebbian.js +1225 -0
  3. package/dist/bin/hebbian.js.map +1 -0
  4. package/dist/constants.d.ts +16 -0
  5. package/dist/constants.d.ts.map +1 -0
  6. package/dist/decay.d.ts +9 -0
  7. package/dist/decay.d.ts.map +1 -0
  8. package/dist/dedup.d.ts +9 -0
  9. package/dist/dedup.d.ts.map +1 -0
  10. package/dist/emit.d.ts +26 -0
  11. package/dist/emit.d.ts.map +1 -0
  12. package/dist/fire.d.ts +10 -0
  13. package/dist/fire.d.ts.map +1 -0
  14. package/dist/grow.d.ts +11 -0
  15. package/dist/grow.d.ts.map +1 -0
  16. package/dist/index.d.ts +19 -0
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/index.js +937 -0
  19. package/dist/index.js.map +1 -0
  20. package/dist/init.d.ts +5 -0
  21. package/dist/init.d.ts.map +1 -0
  22. package/dist/rollback.d.ts +5 -0
  23. package/dist/rollback.d.ts.map +1 -0
  24. package/dist/scanner.d.ts +6 -0
  25. package/dist/scanner.d.ts.map +1 -0
  26. package/dist/signal.d.ts +6 -0
  27. package/dist/signal.d.ts.map +1 -0
  28. package/dist/similarity.d.ts +16 -0
  29. package/dist/similarity.d.ts.map +1 -0
  30. package/dist/snapshot.d.ts +5 -0
  31. package/dist/snapshot.d.ts.map +1 -0
  32. package/dist/subsumption.d.ts +6 -0
  33. package/dist/subsumption.d.ts.map +1 -0
  34. package/dist/types.d.ts +36 -0
  35. package/dist/types.d.ts.map +1 -0
  36. package/dist/watch.d.ts +6 -0
  37. package/dist/watch.d.ts.map +1 -0
  38. package/package.json +17 -9
  39. package/bin/hebbian.js +0 -199
  40. package/lib/constants.js +0 -83
  41. package/lib/decay.js +0 -100
  42. package/lib/dedup.js +0 -66
  43. package/lib/emit.js +0 -376
  44. package/lib/fire.js +0 -59
  45. package/lib/grow.js +0 -98
  46. package/lib/init.js +0 -89
  47. package/lib/rollback.js +0 -34
  48. package/lib/scanner.js +0 -227
  49. package/lib/signal.js +0 -68
  50. package/lib/similarity.js +0 -62
  51. package/lib/snapshot.js +0 -46
  52. package/lib/subsumption.js +0 -77
  53. 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/Dependencies-0-brightgreen?style=flat-square" />
4
- <img src="https://img.shields.io/badge/Tests-120-blue?style=flat-square" />
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
- hebbian uses only Node.js built-in modules:
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.** Matches the Go version's zero-dep philosophy, but with `npx` instant execution.
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
- 120 tests pass in ~850ms:
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: 9 tests
185
+ - CLI E2E: 21 tests
186
+ - Dedup: 3 tests
185
187
 
186
188
  ```bash
187
- node --test # Run all tests
188
- node --test test/governance.test.js # Governance only
189
+ npm test # Run all tests
190
+ npx vitest run test/governance.test.ts # Governance only
189
191
  ```
190
192
 
191
193
  ---