xiaoju
7e23d911a4
feat: implement render engine with resolution decay ( #39 )
...
Implement Phase 3: render core engine with resolution-based decay and
default YAML rendering.
Core Features:
- Resolution decay model: child nodes receive resolution = parent × decay
- Epsilon threshold: nodes with resolution ≤ epsilon render as cas:<hash>
- Default YAML output format with 2-space indentation
- Cycle detection via visited set
- Floating-point tolerance for epsilon comparisons
Implementation:
- packages/json-cas/src/render.ts: Core render function
- packages/json-cas/src/render.test.ts: 38 comprehensive tests
- packages/cli-json-cas: ucas render command with --resolution, --decay, --epsilon flags
- CLI integration tests for render command
Tests: All 276 tests pass (38 new render tests, 3 CLI tests)
Build: Clean compilation with tsc
Lint: Passes biome check
Fixes #39
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-05-31 04:50:55 +00:00
xiaomo
b7aa90d8e6
chore: add *.tsbuildinfo to .gitignore, remove duplicate dist/ entry
2026-05-25 04:14:14 +00:00
xiaoju
52cb7a30ba
fix: publish compiled .js + .d.ts instead of raw .ts sources
...
- Add tsc --build pipeline for json-cas, json-cas-fs, json-cas-workflow
- Update package.json exports to point to dist/ (types + import)
- Fix Store type error: use BootstrapCapableStore for stores with bootstrap
- Export BootstrapCapableStore type from json-cas
- Fix meta-schema: nodeSchema now uses real JSON Schema (draft 2020-12)
- Exclude test files from tsc compilation
Breaking: bootstrap hash changes due to meta-schema payload update.
小橘 🍊 (NEKO Team)
2026-05-19 10:18:31 +00:00
xiaoju
9aac38238a
feat: Phase 1 — core primitives (hash + CBOR + memory store)
...
- CBOR deterministic encoding (cborg, RFC 8949 §4.2)
- XXH64 → 13-char Crockford Base32 hashing
- createMemoryStore() with idempotent put
- verify() integrity check
- bootstrap() self-referencing meta-schema seed
- 23 tests passing, biome clean
Closes #3
小橘 <xiaoju@shazhou.work >
2026-05-17 09:23:05 +00:00