Skip to content

feat/devtools#7

Merged
HALQME merged 16 commits intomainfrom
feat/devtools
Dec 25, 2025
Merged

feat/devtools#7
HALQME merged 16 commits intomainfrom
feat/devtools

Conversation

@HALQME
Copy link
Owner

@HALQME HALQME commented Dec 25, 2025

  • Replace in-TUI DevTools with browser server
  • Update AGENTS.md with test and Bun notes
  • Move useLog to hooks and lazily load DevTools
  • Add DevTools inspector HTML UI
  • devtools compleate
  • Remove hot-reload state support
  • Restructure Japanese roadmap and expand DevTools
  • Add inspector example and enhance DevTools
  • Check off two layout engine roadmap items
  • Add 3D Z-Index visualization and panning
  • Add profiler streaming to devtools
  • Add reactivity devtools and ref labeling support
  • Tidy up devtools HTML and TypeScript formatting
  • Refactor CLI into command modules
  • Add package-dev script and update package config

Move useLog and its types from src/devtools to a new src/hooks and re-export
hooks from the root index. Make the DevTools controller optional and lazily
imported by the runtime (LoopManager) with a prepare hook. Add CLI flags to
disable DevTools or auto-open the browser and add env var support. Update docs,
examples, and tests to match the new structure and lazy initialization
Embed a new inspector.html frontend and import it into the devtools server (as
text) so the server can serve the DevTools UI and handle logs/snapshots over
WebSocket.
Drop the enableHotReloadState API, its CLI option (--no-preserve-state), related
tests, types export, and example usage.

Add BTUIN_DEVTOOLS_CONTROLLER env var and wiring: the CLI pins a controller file
path into the child env, and the runtime resolves/imports a devtools controller
from that spec. Move/adjust hot-reload module imports to src/cli and update
docs.
Remove legacy examples/devtools.ts and add a new examples/inspector.ts demo
(layout/style/text panels, logs, Japanese and emoji content). Update devtools
inspector HTML/CSS to improve preview/layout panels, selection rings and visual
styles. Revise server snapshot logic to serialize layout and view style info and
compute absolute layout boxes for the browser preview.
Mark Flexbox property inspection and computed box-model color visualization as
completed in docs/roadmap.ja.md
Add a 3D preview mode with a toggle and depth slider. Apply translateZ
transforms, per-depth opacity/shadows and 3D stage styling. Add pointer-based
panning (middle/right drag or modifier), pointer capture handling and key
listeners. Update roadmap to mark feature complete.
Collapse multiline elements/attributes, normalize spacing, and inline short
expressions in inspector.html, server.ts, and reactivity/devtools.ts. No
behavior changes.
Introduce a Command interface and per-command files (commands/command.ts,
commands/dev.ts, commands/build.ts). Remove the old args parser and its tests;
main now enumerates commands, delegates parsing/run, and formats help. Add build
command that bundles output and copies the native layout engine binary.
Add scripts/package-dev.ts to build the FFI and stage a dev package including
native binaries. The script supports --outdir and --current-only. Register the
command in mise.toml, bump package.json to 0.1.0-alpha.2, and normalize the bin
path to "bin/btuin"
@github-actions
Copy link

github-actions bot commented Dec 25, 2025

🚀 Performance Benchmark Result

          Performance Limits Report 5 runs
====================================================
| FPS Target | Avg Nodes |  Min  |  Max  | Std Dev |
|------------|-----------|-------|-------|---------|
| 120 FPS    | 1900      | 1600  | 2100  | ±179    |
|  60 FPS    | 3480      | 3300  | 3600  | ±117    |
|  30 FPS    | 6280      | 6200  | 6400  | ±75     |
|  15 FPS    | 11800     | 11500 | 12000 | ±167    |
====================================================
Run Details Triggered by commit: 4832afc

@HALQME HALQME merged commit a604e5e into main Dec 25, 2025
3 checks passed
@HALQME HALQME deleted the feat/devtools branch December 25, 2025 10:05
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