The gateway passes CLAW_WORKER_BIND_ADDR as "host:port" (e.g.
"0.0.0.0:8080"). Parse both from it instead of using a separate
CLAW_WORKER_PORT env var. Default to port 8080 to match the
gateway's DEFAULT_GATEWAY_WORKER_BIND_PORT.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the QueryEngine-based engine with direct Anthropic SDK calls.
QueryEngine requires bun:bundle feature flags that only exist in
bundled builds, making it unusable in the Docker image. The SDK
works directly from source.
Also fix the Dockerfile: install curl and git for healthcheck and
app library, copy only src/worker/ instead of the entire tree.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Builds src/worker/Dockerfile and pushes to
git.wylab.me/wylab/claw-ts-worker:latest on every push to main.
Same pattern as claw-code-parity's build-telegram.yml.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Bun HTTP server that replaces the Rust worker surface with a
TypeScript implementation backed by Anthropic's QueryEngine.
Components:
- server.ts: full HTTP/SSE server matching worker-protocol/openapi.yaml
- engine/TelegramWorkerEngine.ts: QueryEngine wrapper for headless mode
- permissions/ApprovalBroker.ts: tool approval with session-scoped rules
- events/WorkerEventTranslator.ts: SDKMessage → WorkerTurnEvent mapping
- state/: TaskStore, TeamStore, FeedStore, AppLibraryStore (git-backed)
- protocol.ts + state/records.ts: wire types mirroring the Rust records
- Dockerfile + docker-compose for containerized deployment
The worker runs in stub mode when QueryEngine deps aren't available
(unbundled source) and switches to real engine mode after bun build.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add SessionManager class to handle PTY sessions with WebSocket connections.
- Implement methods for creating, retrieving, and destroying sessions.
- Handle PTY output and WebSocket messages for terminal interaction.
- Ensure graceful session destruction and cleanup.
feat: initialize web application with Next.js and Tailwind CSS
- Create initial Next.js application structure with TypeScript support.
- Set up Tailwind CSS for styling with custom theme configurations.
- Add ESLint configuration for code quality and consistency.
feat: implement chat API and UI components
- Create chat API route to handle chat requests and responses.
- Develop chat layout with sidebar, header, chat window, and input components.
- Integrate Zustand for state management of conversations and messages.
- Add utility functions for formatting dates and managing class names.
chore: add environment variables and configuration files
- Create .env.example for environment variable setup.
- Add configuration files for PostCSS, Tailwind CSS, and TypeScript.
- Set up package.json with necessary dependencies and scripts for development.
- Added `message.ts` with comprehensive type definitions for various message types including AssistantMessage, UserMessage, and SystemMessage.
- Introduced new dependencies: `react-reconciler` and `auto-bind` in `package.json`.
- Fixed JSON syntax in `server.json` to ensure valid structure.
- Changed root directory in tsconfig.json to include all source files.
- Updated server.json to include npm package configuration for claude-code-explorer-mcp.
- Enhanced x402 command to support non-interactive mode.
- Refactored x402 command call function to simplify argument handling.
- Introduced .mcp.json for MCP server configuration.
- Added bunfig.toml for Bun development mode configuration.
- Created bridge.md documentation for IDE integration and architecture overview.
- Added .npmignore to exclude unnecessary files from npm package.
- Implemented build-bundle script for production and development builds.
- Developed bun-plugin-shims for Bun preload plugin.
- Created ci-build.sh for CI/CD build pipeline.
- Added dev.ts for development launcher using Bun's TS runtime.
- Implemented package-npm.ts to generate a publishable npm package.
- Created test-auth.ts to verify API key configuration.
- Developed test-mcp.ts for MCP client/server roundtrip testing.
- Implemented test-services.ts to ensure all services initialize correctly.
- Added stub.ts for bridge functionality when BRIDGE_MODE is disabled.
✨ Implement x402 payment handling in WebFetchTool
📝 Refactor count increment logic in X402 payment tracker
✨ Introduce feature flag management in Bun build
✨ Create macro for package versioning and issue reporting
✨ Add preload script for Bun bundler features