2117 Commits

Author SHA1 Message Date
Wylabb c183c68f12 Parse port from CLAW_WORKER_BIND_ADDR
Build TS Worker / build (push) Successful in 1m9s
CI / Typecheck & Lint (push) Failing after 1m44s
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>
2026-04-07 23:25:40 +02:00
Wylabb a2d8e804db Use @anthropic-ai/sdk directly instead of QueryEngine
Build TS Worker / build (push) Successful in 3m58s
CI / Typecheck & Lint (push) Failing after 1m46s
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>
2026-04-07 22:29:44 +02:00
Wylabb 1c2666db31 Add CI workflow to build and push TS worker image
Build TS Worker / build (push) Successful in 1m37s
CI / Typecheck & Lint (push) Failing after 1m48s
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>
2026-04-07 21:59:09 +02:00
Wylabb 388c7dbf6c Add TS worker implementing gateway-worker protocol
CI / Typecheck & Lint (push) Failing after 2m14s
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>
2026-04-07 20:13:22 +02:00
nirholas 3a854557e0 feat: implement API key authentication and user session management 2026-03-31 12:43:05 +00:00
nirholas da6c5e1ed7 📝 2026-03-31 12:36:42 +00:00
nirholas 38648ae5f4 ♻️ feat: implement session management for PTY sessions in the server
- 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.
2026-03-31 12:35:31 +00:00
nirholas d31c2bec03 feat: add new message types and update package dependencies
- 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.
2026-03-31 11:46:59 +00:00
nirholas cf482195ff Fix import.meta.dir fallback handling in build scripts 2026-03-31 11:18:17 +00:00
nirholas ed9c151933 Add TypeScript configuration and local type declarations for build scripts 2026-03-31 11:13:22 +00:00
nirholas 78dd88afd1 Add qrcode dependency to package.json 2026-03-31 11:13:13 +00:00
nirholas 1fc26c8125 Enhance build scripts and add new feature flags for KAIROS and workflow management 2026-03-31 11:09:10 +00:00
nirholas 754fea0e82 Enhance build scripts and add new feature flags in bun-bundle 2026-03-31 11:06:49 +00:00
nirholas d35ea47ba7 📝 feat: update TypeScript configuration and add API support
- 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.
2026-03-31 10:59:36 +00:00
nirholas c0b205208d Add Dockerfile and Vercel integration for MCP server
 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
2026-03-31 10:45:43 +00:00
nirholas cf9b405372 milady 2026-03-31 10:38:23 +00:00
nirholas 8ba939ba68 📝 2026-03-31 10:26:23 +00:00
nirholas d55e4a852e ⚙️ 🔴 tsconfig.json 2026-03-31 10:24:35 +00:00
nirholas 39d988ec1a 🟠 voiceModeEnabled.ts 2026-03-31 10:24:35 +00:00
nirholas dacdbf6a47 🟡 types.ts 2026-03-31 10:24:35 +00:00
nirholas 4b9ee2bdf2 🟢 transitions.ts 2026-03-31 10:24:35 +00:00
nirholas 3c1a2a2e81 🔵 textObjects.ts 2026-03-31 10:24:35 +00:00
nirholas 6e3cafab5a 🟣 operators.ts 2026-03-31 10:24:35 +00:00
nirholas 3327fe7c1f motions.ts 2026-03-31 10:24:35 +00:00
nirholas a69c6d10e6 🔘 zodToJsonSchema.ts 2026-03-31 10:24:35 +00:00
nirholas 542272121f 💠 yaml.ts 2026-03-31 10:24:35 +00:00
nirholas 4a754359a7 🔻 xml.ts 2026-03-31 10:24:35 +00:00
nirholas 51989179ee 🔺 xdg.ts 2026-03-31 10:24:35 +00:00
nirholas 682320ab2a 🔸 worktreeModeEnabled.ts 2026-03-31 10:24:35 +00:00
nirholas 443df0ebd0 🔹 worktree.ts 2026-03-31 10:24:34 +00:00
nirholas 4fef7e0c66 🔶 workloadContext.ts 2026-03-31 10:24:34 +00:00
nirholas e56332a261 🔷 words.ts 2026-03-31 10:24:34 +00:00
nirholas 7cc6544a3d 💎 withResolvers.ts 2026-03-31 10:24:34 +00:00
nirholas 3a24f7c6c7 ⚗️ windowsPaths.ts 2026-03-31 10:24:34 +00:00
nirholas 3ead3d3c65 🧬 which.ts 2026-03-31 10:24:34 +00:00
nirholas 34595a754f 🧪 warningHandler.ts 2026-03-31 10:24:34 +00:00
nirholas bb9132de2a 🔬 uuid.ts 2026-03-31 10:24:34 +00:00
nirholas c49179c7ce 🔭 userPromptKeywords.ts 2026-03-31 10:24:34 +00:00
nirholas 3df9c49087 📡 userAgent.ts 2026-03-31 10:24:34 +00:00
nirholas cc81d553bb 📱 user.ts 2026-03-31 10:24:34 +00:00
nirholas 7528ea3ecf 🧮 undercover.ts 2026-03-31 10:24:34 +00:00
nirholas bb6e6b4955 📀 unaryLogging.ts 2026-03-31 10:24:34 +00:00
nirholas fbcd00abc2 💿 keyword.ts 2026-03-31 10:24:34 +00:00
nirholas e2eda401b6 💾 ccrSession.ts 2026-03-31 10:24:34 +00:00
nirholas 00a6eecd7b 🖱️ truncate.ts 2026-03-31 10:24:34 +00:00
nirholas 8936ac8ba5 ⌨️ treeify.ts 2026-03-31 10:24:34 +00:00
nirholas 22cffda175 🖥️ transcriptSearch.ts 2026-03-31 10:24:34 +00:00
nirholas 855b1c5dbf 💻 toolSearch.ts 2026-03-31 10:24:34 +00:00
nirholas e60ee8dfa0 🔋 toolSchemaCache.ts 2026-03-31 10:24:33 +00:00
nirholas 1372f31acc 💡 toolResultStorage.ts 2026-03-31 10:24:33 +00:00