Commit Graph

116 Commits

Author SHA1 Message Date
Sawyer Hood 51a68a2827 Add helper methods for accessibility tree interaction in TODO.md
Introduces new tasks for implementing methods to retrieve the accessibility tree of the current page and to interact with elements using helpful IDs. This enhancement aims to improve accessibility features in the dev-browser.
2025-12-02 17:03:55 -08:00
Sawyer Hood e752b76ddf Enhance dev-browser client and server functionality with connection management and error handling
Implements a mutex for managing concurrent connections in the client, preventing race conditions during browser connection attempts. Introduces a retry mechanism for fetching the CDP WebSocket endpoint with exponential backoff, improving reliability during server startup. Enhances error handling in page management to log unexpected errors while ignoring known issues. Additionally, consolidates signal handling for process termination, ensuring a clean shutdown of active connections and resources.
2025-12-02 17:01:55 -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
Sawyer Hood 2e243a5307 Add persistent browser profile support and improve page management in dev-browser
Introduces a new `profileDir` option for storing persistent browser profiles, enhancing user experience by retaining session data across executions. Updates the server to create necessary directories at startup and modifies page management to utilize CDP target IDs for more reliable page identification. Enhances logging for better visibility during server operations and updates related types and documentation to reflect these changes.
2025-12-02 16:41:29 -08:00
Sawyer Hood 4ae278082e Enhance dev-browser server startup and cleanup processes
Implements automatic creation of the `tmp/` directory during server startup, improving user experience by eliminating manual setup steps. Adds functionality to check for and terminate existing processes on specified ports before starting the server, ensuring a clean environment. Updates cleanup procedures to handle various exit scenarios gracefully, enhancing stability and reliability during server operations. Modifies SKILL.md to reflect these changes, providing users with accurate instructions on the server's behavior and requirements.
2025-12-02 15:45:12 -08:00
Sawyer Hood 1b538466cc Update dev-browser to use Express for page management and enhance documentation
Refactors the dev-browser package to implement an Express server for managing browser pages, replacing the previous WebSocket-only approach. Updates the client connection method to utilize a REST API for page management, improving usability and clarity. Modifies SKILL.md to reflect these changes, including updated connection instructions and enhanced script examples. Additionally, updates package.json to include new dependencies for Express and related types, ensuring compatibility with the new architecture.
2025-12-02 15:38:08 -08:00
Sawyer Hood ba59ba5f07 Enhance dev-browser functionality and documentation
Refactors the dev-browser package to utilize `tsx` for script execution, improving compatibility with Playwright's WebSocket. Updates the `package.json` files to include `tsx` and `tsup` as devDependencies. Modifies the SKILL.md documentation to reflect changes in script execution commands and directory structure, ensuring users have accurate instructions for running scripts. Additionally, implements cleanup functions in the server to handle process termination gracefully, enhancing stability during browser server operations.
2025-12-02 15:04:29 -08:00
Sawyer Hood ea82da32a1 Refactor dev-browser client and server architecture for improved WebSocket integration
Updates the dev-browser client to connect directly via WebSocket, enhancing the interaction with the Chromium browser server. Modifies the server to launch a browser server and removes the obsolete HTTP API for page management. Updates documentation in SKILL.md to reflect these changes, ensuring users have accurate information on connecting and managing pages. Additionally, cleans up the package structure by removing unused types and streamlining the client connection process.
2025-12-02 14:46:17 -08:00
Sawyer Hood d498e5c56e Add package name specification in SKILL.md for clarity
Updates the SKILL.md documentation to emphasize the use of the package name `dev-browser/client`, ensuring users have clear guidance on the correct import statement for the client connection.
2025-12-02 14:40:19 -08:00
Sawyer Hood ab31a3726b Update dev-browser structure and documentation for clarity and functionality
Refactors the dev-browser plugin by removing obsolete entries from bun.lock and updating the package.json workspaces to include the new directory structure. Enhances the start-server script with a console log for better visibility during execution. Updates the SKILL.md documentation to reflect changes in directory paths and script execution instructions, ensuring users have clear guidance on setting up and using the dev-browser. Additionally, modifies the client connection method to utilize CDP for improved browser interaction.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-12-02 14:34:01 -08:00
Sawyer Hood faca65c8d3 Refactor dev-browser plugin structure and remove obsolete files
Updates the marketplace configuration to reflect the new source path for the dev-browser plugin. Removes outdated package.json, plugin.json, and related scripts to streamline the project structure and eliminate redundancy.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-12-02 14:12:08 -08:00
Sawyer Hood 8e29b24497 Refactor dev-browser skill for improved performance and stability
Enhances the existing browser automation skill by optimizing the Playwright implementation and addressing various stability issues. Updates documentation to reflect recent changes and improvements.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 12:07:27 -08:00
Sawyer Hood 3ee58ec8f8 Add dev-browser skill implementation with persistent page state
Implements a browser automation skill using Playwright with a client/server
architecture that maintains page state across script executions. Includes
full documentation and server/client packages.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 12:07:06 -08:00
Sawyer Hood e9ae3cf08a Add Claude Code plugin and marketplace structure
Set up dev-browser plugin with marketplace configuration and
placeholder skill for browser automation implementation.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 11:27:14 -08:00
Sawyer Hood ad3914e827 Add .gitignore for Node.js/TypeScript project
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 11:20:40 -08:00
Sawyer Hood 36cf89b009 Initial commit
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 11:20:15 -08:00