Wrap tool_call, tool_update, plan, usage, session_end, error,
notification, sendSkillCommands, and sendPermissionRequest through
TelegramSendQueue. Pass streamThrottleMs and sendQueue to MessageDraft.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Support configuring tunnel provider (cloudflare, ngrok, bore, tailscale),
port, auth, and provider-specific options via openacp config.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: ab23c769533a
- API sessions now create Telegram topics and wire events (like /new command)
- Fix warmup() not setting status to 'active' after completion
- Auto-approve permissions for headless sessions (no adapter fallback)
- Support positional workspace arg: openacp runtime new [agent] [workspace]
- Add auto-update check, bot admin validation, and improved autostart
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 7c2ecfa24084
- Call session.warmup() after API session creation so sessions progress
from 'initializing' to 'active'
- Include workspace path in session creation and list responses
- Show workspace in CLI runtime new output
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 2500863c4b70
- MessageDraft.finalize() accepts optional InlineKeyboard param
- Keyboard attached to last chunk in single API call
- finalizeDraft() detects action before finalize, passes keyboard directly
- Add finalizeDraft() call before usage event
Entire-Checkpoint: 989dc8ff346a
Adds api-client module with readApiPort/removeStalePortFile/apiCall utilities,
and a runtime CLI subcommand to interact with a running daemon via HTTP API.
Also fixes setup.ts to include the api config field required by the schema.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 94b35b0575cf
Implements ApiServer class with 4 REST endpoints (POST/GET/DELETE /api/sessions, GET /api/agents), port file management at ~/.openacp/api.port, EADDRINUSE graceful degradation, and max concurrent session enforcement.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: b01e13e8cb74
7-task plan for HTTP control API + openacp runtime CLI subcommand.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: ee8edb8efaa5
Spec for HTTP control API embedded in daemon + openacp runtime CLI subcommand.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: d19f152cf90a
Previously, setup always started the server in foreground regardless of
the run mode chosen during onboarding. Now the CLI runs setup first,
then falls through to the normal runMode check to spawn daemon or
start foreground accordingly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 7391299a39f7
Adds [3/3] Run Mode step to the setup flow, letting users choose between
foreground and daemon mode with optional auto-start on boot. Renumbers
Group Chat (formerly step 2) into the Telegram Bot step, and Workspace
moves to step 2. Fixes integration test to mock getUpdates for chat
auto-detection and the new select call for run mode.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 2e15bb94b299
Providers:
- ngrok: supports authtoken, domain, region options
- bore: supports server, port, secret options (default: bore.pub)
- tailscale: Funnel provider, resolves hostname via tailscale status
Config backward compatibility:
- Auto-migrate: existing configs without tunnel section get it added
to the file with enabled=true and cloudflare as default provider
- Zod default remains enabled=false for safety
- DEFAULT_CONFIG includes tunnel section for new installations
Resilience:
- EADDRINUSE on tunnel HTTP server warns instead of crashing
- Unknown provider falls back to cloudflare with warning
Docs:
- Tunnel service design spec
- Implementation plan