Skip to content

Comments

SQLite trace writer#366

Merged
bterlson merged 7 commits intoalloy-framework:mainfrom
bterlson:feat/trace-writer-sqlite
Feb 17, 2026
Merged

SQLite trace writer#366
bterlson merged 7 commits intoalloy-framework:mainfrom
bterlson:feat/trace-writer-sqlite

Conversation

@bterlson
Copy link
Contributor

This PR substantially improves the dev tools interface, allows creating a trace database via ALLOY_DEBUG_TRACE, and makes the dev tools consume this trace database.

@bterlson bterlson force-pushed the feat/trace-writer-sqlite branch from b17714c to 7bd0549 Compare February 13, 2026 20:47
@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

All changed packages have been documented.

  • @alloy-js/core
  • @alloy-js/typescript
Show changes

@alloy-js/core - feature ✏️

Add SQLite-based trace storage for debug and devtools infrastructure, enabling structured recording of render trees, effects, reactive edges, scopes, symbols, and diagnostics during development builds.

@alloy-js/typescript - internal ✏️

Add debug naming to effects in Interface and TsConfigJson components for improved devtools tracing.

@bterlson bterlson force-pushed the feat/trace-writer-sqlite branch 4 times, most recently from 8dcd739 to cd4cf2f Compare February 13, 2026 21:08
@bterlson bterlson force-pushed the feat/trace-writer-sqlite branch from cd4cf2f to 6cceb3d Compare February 13, 2026 21:14
…sts, UI improvements

- Add comprehensive devtools protocol documentation comment
- Fix ESM source map resolution (process.getBuiltinModule instead of require)
- Add babel transform tests for inline condition memo pattern
- Update fixture output to match current transform behavior
- Rename isFrameworkEffect/Ref to isExternalEffect/Ref (source-location based)
- Fix double-ID display in ref labels
- Add subtle approx location indicator
- Include ref ID in tab titles
- Effect debug naming improvements in binder, For, List, Switch, render
… test name

- Remove unused countMemo function from no-double-memo tests
- Remove unused location param from track/trigger and EffectEdgeDebugInfo
- Remove unused lastTriggeredAt from EffectDebugInfo
- Remove redundant comment in buildEffectTargetInfo
- Fix is_approx_location: send 0 instead of undefined for false
- Add try-catch around trace DB initialization
- Fix misleading test name (was claiming reactive updates but only tested initial render)
- Store node kind/name in nodeKinds WeakMap for both recordNodeAdded and
  recordSubtreeAdded so recordCachedSubtreeChildrenRecursively preserves
  component/customContext/memo kinds instead of defaulting to fragment.
- Remove useDeferredValue from RenderTreeServicesProvider to prevent stale
  text node collection when file contents update reactively.
@bterlson bterlson merged commit 3d5348a into alloy-framework:main Feb 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant