Commit Graph

543 Commits

Author SHA1 Message Date
Wylabb 1e06c05d9b Pull worker image before creating container
Build Claw Telegram / build (push) Successful in 5m24s
Build Claw Telegram / cleanup (push) Successful in 1s
The gateway no longer shares an image with the worker, so the
worker image needs to be pulled explicitly. Previously both used
claw-telegram:latest which was already present from the gateway.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 23:17:55 +02:00
Wylabb 923404fae1 Replace Rust worker with TS worker
Build Claw Telegram / build (push) Successful in 6m2s
Build Claw Telegram / cleanup (push) Successful in 1s
- Remove claw-profile-worker from Dockerfile (no longer built or shipped)
- Remove hardcoded entrypoint/cmd in docker_worker_manager.rs (let
  the worker image's own CMD run)
- Clear entrypoint override in Unraid worker templates
- Point CLAW_GATEWAY_WORKER_IMAGE to claw-ts-worker:latest in both
  XML templates and template manager test fixture

The gateway now launches claw-ts-worker containers instead of
claw-profile-worker. The TS worker uses @anthropic-ai/sdk directly
and speaks the same HTTP/SSE protocol.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 22:29:30 +02:00
Wylabb 5b1225fb5c Revert "Point worker image to claw-ts-worker"
Build Claw Telegram / build (push) Successful in 5m44s
Build Claw Telegram / cleanup (push) Successful in 1s
This reverts commit 93216e260a.
2026-04-07 22:02:57 +02:00
Wylabb 93216e260a Point worker image to claw-ts-worker
Build Claw Telegram / build (push) Successful in 5m26s
Build Claw Telegram / cleanup (push) Successful in 0s
Update Unraid XML templates and template manager to default
CLAW_GATEWAY_WORKER_IMAGE to git.wylab.me/wylab/claw-ts-worker:latest
instead of the old Rust worker image.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 21:49:40 +02:00
Wylabb 9e9d440770 Decouple gateway protocol from Rust runtime types
Build Claw Telegram / build (push) Successful in 5m39s
Build Claw Telegram / cleanup (push) Successful in 8s
Move all worker-facing record types (TaskListRecord, RuntimeTaskRecord,
TeamRecord, MailboxSummary, FeedItemRecord, LibraryAppRecord, etc.)
into protocol-owned mirrors in records.rs. The gateway and worker_client
now use these protocol types instead of importing from the runtime crate.

Add worker-protocol/ with OpenAPI spec and JSON schemas as the
language-neutral contract authority for the gateway-worker boundary.
This is the migration surface for the TS worker replacement.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 20:12:16 +02:00
Wylabb 951e48248b Report missing git prerequisite for app library
Build Claw Telegram / build (push) Successful in 5m6s
Build Claw Telegram / cleanup (push) Successful in 2s
2026-04-06 02:16:20 +02:00
Wylabb e7f03e0645 Make feed and app lookups self-diagnosing
Build Claw Telegram / build (push) Successful in 5m4s
Build Claw Telegram / cleanup (push) Successful in 2s
2026-04-05 23:45:37 +02:00
Wylabb 44f21595db Skip invalid app records when listing library apps
Build Claw Telegram / build (push) Successful in 5m53s
Build Claw Telegram / cleanup (push) Successful in 2s
2026-04-05 23:04:54 +02:00
Wylabb 2b86743d8d Add git-backed app lifecycle tools and Mini App wiring
Build Claw Telegram / build (push) Successful in 5m27s
Build Claw Telegram / cleanup (push) Successful in 3s
2026-04-05 22:27:53 +02:00
Wylabb f636ef7d72 Remove unused Mini App conversations and expand UI
Build Claw Telegram / build (push) Successful in 6m14s
Build Claw Telegram / cleanup (push) Successful in 3s
2026-04-05 21:16:34 +02:00
Wylabb 418877405d Render JSX feed items as interactive previews
Build Claw Telegram / build (push) Successful in 6m3s
Build Claw Telegram / cleanup (push) Successful in 2s
2026-04-05 20:50:59 +02:00
Wylabb 09611aeddb Fix Mini App shell script parsing
Build Claw Telegram / build (push) Successful in 5m47s
Build Claw Telegram / cleanup (push) Successful in 2s
2026-04-05 20:39:19 +02:00
Wylabb 732f227376 Redesign Mini App around feed and app library
Build Claw Telegram / build (push) Successful in 5m54s
Build Claw Telegram / cleanup (push) Successful in 2s
2026-04-05 20:29:33 +02:00
Wylabb 642b1734b6 Test JSX artifact rendering path
Build Claw Telegram / build (push) Successful in 11m51s
Build Claw Telegram / cleanup (push) Successful in 2s
2026-04-05 19:09:22 +02:00
Wylabb a02dd94542 Add Mini App artifact viewer tests
Build Claw Telegram / cleanup (push) Has been cancelled
Build Claw Telegram / build (push) Has been cancelled
2026-04-05 19:07:51 +02:00
Wylabb 0f0d41bd8d Use marked.js for Markdown and add React artifact renderer
Build Claw Telegram / build (push) Successful in 4m30s
Build Claw Telegram / cleanup (push) Successful in 1s
- Markdown: swap regex converter for marked.js (full GFM support)
- JSX/TSX: render in sandboxed iframe with React 18 + Babel standalone

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 13:11:36 +02:00
ClaudeBot 1cf06bfa69 fix(template): change Mini App port to 18081
Build Claw Telegram / build (push) Successful in 5m3s
Build Claw Telegram / cleanup (push) Successful in 1s
Entire 808x range is occupied on the Unraid host.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 12:55:56 +02:00
Wylabb bab7fb7d01 Add artifact routing diagnostics
Build Claw Telegram / cleanup (push) Has been cancelled
Build Claw Telegram / build (push) Has been cancelled
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 12:50:39 +02:00
ClaudeBot 93f74e37c0 fix(template): change Mini App port from 8081 to 8087
Build Claw Telegram / build (push) Successful in 5m0s
Build Claw Telegram / cleanup (push) Successful in 1s
8081 is already in use on the Unraid host.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 12:40:43 +02:00
Wylabb ce74ec34cb Add Mini App config to Unraid gateway template
Build Claw Telegram / build (push) Successful in 5m4s
Build Claw Telegram / cleanup (push) Successful in 2s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 12:10:16 +02:00
Wylabb c04d952b1b Add Mini App artifact delivery for previewable files
Build Claw Telegram / build (push) Successful in 5m44s
Build Claw Telegram / cleanup (push) Successful in 1s
Previewable files (HTML, MD, code, JSON, etc.) now open in
the Telegram Mini App instead of being uploaded as raw files.
Images and binaries still use Telegram upload.

- Add is_previewable() classifier for ~40 text/code extensions
- Add artifact registry with TTL-based expiry
- Add /miniapp/api/artifacts/:turn_id/:file_id proxy endpoint
- Add /miniapp/view/:turn_id/:file_id viewer with auto-auth
- Route previewable artifacts to "View in Mini App" web_app button
- Extract fetch_generated_file() for raw byte + content-type access

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 11:50:52 +02:00
Wylabb e7eaf9ed93 Port teamwork parity slice and add miniapp foundation 2026-04-05 11:50:52 +02:00
Wylabb d164dc5f8e Add session-scoped Telegram approvals
Build Claw Telegram / build (push) Successful in 4m38s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-05 07:40:39 +02:00
Wylabb 04b482fbc8 Persist Unraid gateway template values
Build Claw Telegram / build (push) Successful in 4m34s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-05 07:22:01 +02:00
Wylabb 51b47c93d2 Render Telegram output as HTML
Build Claw Telegram / build (push) Successful in 4m27s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-05 07:11:56 +02:00
Wylabb 83e313ec6d Add Anthropic prompt-cache request shaping
Build Claw Telegram / build (push) Successful in 4m38s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-05 06:59:01 +02:00
Wylabb 721f05892f Log Anthropic rate limit context
Build Claw Telegram / build (push) Successful in 4m8s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-05 05:39:56 +02:00
Wylabb 6546a0fef9 Improve Anthropic rate limit reporting
Build Claw Telegram / build (push) Successful in 4m16s
Build Claw Telegram / cleanup (push) Successful in 2s
2026-04-05 05:29:47 +02:00
Wylabb a46eb730c2 Keep Anthropic beta flags out of JSON body
Build Claw Telegram / build (push) Successful in 4m41s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-05 02:56:03 +02:00
Wylabb 9f4bf2c3ee Support Anthropic subscription OAuth
Build Claw Telegram / build (push) Successful in 4m54s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-05 02:23:55 +02:00
Wylabb 6431bcac50 Require API key in Unraid gateway templates
Build Claw Telegram / build (push) Successful in 4m45s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-04 23:56:53 +02:00
Wylabb 5f0bda134e Make root Unraid template gateway-first 2026-04-04 23:44:14 +02:00
Wylabb 9e4030ccee Set explicit worker container entrypoint
Build Claw Telegram / build (push) Successful in 4m30s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-04 23:27:33 +02:00
Wylabb fb3e632c8c Document Telegram gateway operations 2026-04-04 23:23:39 +02:00
Wylabb 5eba6aedcf Fix Unraid standalone template value persistence 2026-04-04 22:33:45 +02:00
Wylabb 8a117b6def Show nested Telegram transport errors
Build Claw Telegram / build (push) Successful in 4m56s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-04 22:26:01 +02:00
Wylabb 8b7946b356 Auto-create gateway manifest on first boot
Build Claw Telegram / build (push) Successful in 5m12s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-04 22:12:26 +02:00
Wylabb 9b6d24118e Build both bot binaries in published image
Build Claw Telegram / build (push) Successful in 7m6s
Build Claw Telegram / cleanup (push) Successful in 1s
2026-04-04 22:00:34 +02:00
Wylabb a2001e9a93 Fix published image in Unraid template
Build Claw Telegram / cleanup (push) Has been cancelled
Build Claw Telegram / build (push) Has been cancelled
2026-04-04 21:55:35 +02:00
Wylabb 7558cace69 Make Unraid templates self-contained
Build Claw Telegram / cleanup (push) Has been cancelled
Build Claw Telegram / build (push) Has been cancelled
2026-04-04 21:50:35 +02:00
Wylabb 94fccd5356 Harden gateway worker coordination
Build Claw Telegram / build (push) Successful in 5m28s
Build Claw Telegram / cleanup (push) Successful in 0s
2026-04-04 20:52:12 +02:00
Wylabb f29d367888 Pin serde_with for Rust 1.86 builds
Build Claw Telegram / build (push) Successful in 5m25s
Build Claw Telegram / cleanup (push) Successful in 0s
2026-04-04 20:25:19 +02:00
Wylabb 246d4a7e90 Prefer OAuth token inheritance for workers
Build Claw Telegram / build (push) Failing after 1m34s
Build Claw Telegram / cleanup (push) Has been skipped
2026-04-04 20:18:02 +02:00
Wylabb 1c349197c6 Add Unraid Telegram gateway workers
Build Claw Telegram / build (push) Failing after 1m46s
Build Claw Telegram / cleanup (push) Has been skipped
2026-04-04 20:11:08 +02:00
ClaudeBot 3a6d1031ca fix(ci): bump Rust to 1.86 for edition2024 support
Build Claw Telegram / build (push) Successful in 7m51s
Build Claw Telegram / cleanup (push) Successful in 0s
The `home` crate v0.5.12 requires the edition2024 Cargo feature,
which was stabilized in Rust 1.85.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 18:29:59 +02:00
ClaudeBot 3ee9576c8c feat(ci): add Docker build workflow and Unraid template for claw-telegram
Build Claw Telegram / build (push) Failing after 52s
Build Claw Telegram / cleanup (push) Has been skipped
Publishes to git.wylab.me container registry on push to main/codex/**
branches. Includes Unraid DockerMan XML template with bot token, owner
ID, and Anthropic API key configuration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 18:15:57 +02:00
Wylabb cad6b1846b Add native Telegram bot runtime 2026-04-04 17:50:20 +02:00
Yeachan-Heo 8a9ea1679f feat(mcp+lifecycle): MCP degraded-startup reporting, lane event schema, lane completion hardening
Add MCP structured degraded-startup classification (P2.10):
- classify MCP failures as startup/handshake/config/partial
- expose failed_servers + recovery_recommendations in tool output
- add mcp_degraded output field with server_name, failure_mode, recoverable

Canonical lane event schema (P2.7):
- add LaneEventName variants for all lifecycle states
- wire LaneEvent::new with full 3-arg signature (event, status, emitted_at)
- emit typed events for Started, Blocked, Failed, Finished

Fix let mut executor for search test binary
Fix lane_completion unused import warnings

Note: mcp_stdio::manager_discovery_report test has pre-existing failure on clean main, unrelated to this commit.
2026-04-04 14:31:56 +00:00
Yeachan-Heo 639a54275d Stop stale branches from polluting workspace test signals
Workspace-wide verification now preflights the current branch against main so stale or diverged branches surface missing commits before broad cargo tests run. The lane failure taxonomy is also collapsed to the blocker classes the roadmap lane needs so automation can branch on a smaller, stable set of categories.

Constraint: Broad workspace tests should not run when main is ahead and would produce stale-branch noise
Rejected: Run workspace tests unconditionally | makes stale-branch failures indistinguishable from real regressions
Confidence: medium
Scope-risk: moderate
Reversibility: clean
Directive: Keep workspace-test preflight scoped to broad test commands until command classification grows more precise
Tested: cargo test -p runtime stale_branch -- --nocapture; cargo test -p tools lane_failure_taxonomy_normalizes_common_blockers -- --nocapture; cargo test -p tools bash_workspace_tests_are_blocked_when_branch_is_behind_main -- --nocapture; cargo test -p tools bash_targeted_tests_skip_branch_preflight -- --nocapture
Not-tested: clean worktree cargo test --workspace still fails on pre-existing rusty-claude-cli tests default_permission_mode_uses_project_config_when_env_is_unset and single_word_slash_command_names_return_guidance_instead_of_hitting_prompt_mode
2026-04-04 14:01:31 +00:00
Jobdori fc675445e6 feat(tools): add lane_completion module (P1.3)
Implement automatic lane completion detection:
- detect_lane_completion(): checks session-finished + tests-green + pushed
- evaluate_completed_lane(): triggers CloseoutLane + CleanupSession actions
- 6 tests covering all conditions

Bridges the gap where LaneContext::completed was a passive bool
that nothing automatically set. Now completion is auto-detected.

ROADMAP P1.3 marked done.
2026-04-04 22:05:49 +09:00