Commit Graph

6 Commits

Author SHA1 Message Date
Sawyer Hood 06a5e7f3e2 chore: dead code cleanup and update CLAUDE.md (#75)
* chore: dead code cleanup and update CLAUDE.md

* fix: restore BrowserEntry export
2026-03-26 14:38:15 -07:00
Sawyer Hood fc5128f5b6 Migrate from Bun to Node.js/npm (#13)
* Migrate from Bun to Node.js/npm

Replace all Bun-specific commands with Node.js/npm equivalents:
- bun install → npm install
- bun run → npm run
- bun x tsx → npx tsx

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Add typescript as devDependency

Required for npx tsc --noEmit to work on fresh installs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Update GitHub Actions to use Node.js/npm

- Replace oven-sh/setup-bun with actions/setup-node@v4
- Use npm ci for deterministic installs
- Add package-lock.json for skills/dev-browser
- Remove @types/bun from root devDependencies

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Add root package-lock.json for CI

Required for npm ci in the format check job.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix CI: use npm install for cross-platform compatibility

npm ci fails with platform-specific optional dependencies (rollup)
when the lockfile was generated on a different platform. Using
npm install resolves the correct platform binaries.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix CI: add rollup Linux binary as optional dependency

npm has a known bug where platform-specific optional dependencies
aren't properly resolved when the lockfile was generated on a
different platform. Adding @rollup/rollup-linux-x64-gnu as an
explicit optional dependency ensures it's available on Linux CI.

See: https://github.com/npm/cli/issues/4828

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 06:31:27 -08:00
Sawyer Hood 6a5225279e Move dev-browser package into skill folder, add @ path alias
- Move all source from packages/dev-browser/src to skills/dev-browser/src
- Remove monorepo workspaces configuration
- Add @/* path alias via package.json imports and tsconfig paths
- Update all imports to use @/client.js and @/index.js
- Update SKILL.md and CLAUDE.md documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 14:27:49 -08:00
Sawyer Hood 16d77681f3 Enhance dev-browser with linting and formatting tools
This commit introduces several development tools to improve code quality and maintainability within the dev-browser package. Key changes include:

- Addition of `husky` for managing Git hooks, ensuring that pre-commit checks are enforced.
- Integration of `lint-staged` to run linters on staged files, promoting consistent code style.
- Implementation of `prettier` for automatic code formatting, enhancing readability and reducing style discrepancies.
- Updates to the `package.json` and `bun.lock` files to include the new dependencies and scripts for formatting and linting.

These enhancements aim to streamline the development process and maintain high code quality standards across the project.
2025-12-03 09:51:35 -08:00
Sawyer Hood a641f8ef6d Implement LLM tree extraction and selector resolution in dev-browser
This commit introduces new functionalities for extracting the LLM-friendly DOM tree and resolving CSS selectors for elements within the dev-browser package. Key changes include:

- Addition of `getLLMTree` and `getSelectorForID` methods in the `DevBrowserClient` interface for fetching the DOM tree and corresponding selectors.
- Implementation of server endpoints to handle requests for LLM tree extraction and selector resolution, enhancing the API's capabilities.
- Updates to the TypeScript types to support the new functionalities, including `GetLLMTreeResponse` and `GetSelectorResponse`.
- Enhancements to the DOM utility functions to facilitate backend node ID resolution for persistent element identification.

These updates improve the interaction with web pages and enhance the overall usability of the dev-browser package.
2025-12-03 09:49:08 -08:00
Sawyer Hood 60ff46cc66 Add page cleanup functionality in dev-browser
Implements a cleanup mechanism that removes entries from the registry when a page is closed, enhancing resource management and preventing memory leaks. This change improves the overall stability and performance of the dev-browser by ensuring that closed pages do not linger in the registry.
2025-12-02 16:46:02 -08:00