109 Commits

Author SHA1 Message Date
0xmrpeter
bf67de2c35 Merge branch 'develop' of github.com:Open-ACP/OpenACP into develop v0.2.24 2026-03-20 17:22:12 +07:00
0xmrpeter
a9bfc03590 fix: update repository URL in build-publish script 2026-03-20 17:15:02 +07:00
Mr.Peter
0d43630cff
Merge pull request #19 from dylan-112/develop
Feat: Update cli for full handling function
2026-03-20 17:11:39 +07:00
dylan
6bc887f3fd feat(config-editor): add tunnel configuration UI
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
2026-03-20 17:09:03 +07:00
Mr.Peter
0c3a83b9fe
Merge pull request #20 from Zysd836/develop
fix: improve error logging and message formatting in session creation
2026-03-20 17:04:57 +07:00
hoangnv
8a99e551fb fix: improve error logging and message formatting in session creation 2026-03-20 17:00:18 +07:00
Mr.Peter
9a79b1b59a
Merge pull request #17 from rex-qa-bot/develop
feat: assistant action detection with inline confirm buttons
2026-03-20 16:58:14 +07:00
Mr.Peter
a41ef49610
Merge pull request #18 from lngdao/feat/tunnel-service
feat(tunnel): auto-install cloudflared binary if not present
2026-03-20 16:57:47 +07:00
dylan
daa1385206 merge: sync upstream/develop into develop
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 16:57:31 +07:00
dylan
84b7890623 fix(api): wire API sessions to Telegram adapter and fix warmup status
- 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
2026-03-20 16:53:05 +07:00
lngdao
1eb74cf899 feat(setup): pre-download cloudflared during onboarding wizard 2026-03-20 16:42:48 +07:00
lngdao
2832e351d7 feat(tunnel): auto-install cloudflared binary if not present 2026-03-20 16:34:12 +07:00
dylan
4b2bba9205 fix(api): warmup API sessions and include workspace in responses
- 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
2026-03-20 16:23:57 +07:00
0xmrpeter
e490d7b1fe chore: remove outdated grammy patch references from pnpm-lock.yaml v0.2.23 2026-03-20 16:18:22 +07:00
0xmrpeter
7f0c386071 Fix node 24 2026-03-20 16:17:48 +07:00
0xmrpeter
6b5fd7a4b1 Fix node 24 build production 2026-03-20 16:16:53 +07:00
0xmrpeter
7496aadfcc chore: update grammy patch hash in pnpm-lock.yaml v0.2.22 2026-03-20 16:09:53 +07:00
Mr.Peter
4a085055e9
Merge pull request #16 from lngdao/feat/tunnel-service
fix(setup): enable tunnel by default in setup wizard
v0.2.21
2026-03-20 16:04:51 +07:00
Leo Agent
831105bece docs: add assistant action detection spec and implementation plan
Entire-Checkpoint: b76f7ff5852f
2026-03-20 16:04:50 +07:00
0xmrpeter
839c638300 Merge branch 'develop' of github.com-peter:Open-ACP/OpenACP into develop v0.2.20 2026-03-20 16:02:13 +07:00
0xmrpeter
d42de77a11 Fixbug node 24 2026-03-20 16:01:37 +07:00
lngdao
3fae34b90e fix(setup): enable tunnel by default in setup wizard 2026-03-20 15:59:40 +07:00
dylan
2f164e08de feat(exports): add ApiServer export
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 359d05b0260a
2026-03-20 15:59:29 +07:00
dylan
6a51e69cdd feat(config-editor): add API port configuration
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 32f9c8606d30
2026-03-20 15:58:34 +07:00
dylan
ffb9f23691 feat(main): integrate API server into daemon lifecycle
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 9569dae83511
2026-03-20 15:58:15 +07:00
Leo Agent
14cad86629 fix: pass keyboard to finalize() to avoid 429 rate limit
- 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
2026-03-20 15:56:23 +07:00
dylan
a770460e04 feat(cli): add runtime subcommand for session and agent management
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
2026-03-20 15:56:20 +07:00
dylan
b359c35339 feat(api): add HTTP API server with session and agent endpoints
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
2026-03-20 15:50:50 +07:00
dylan
eda322e115 feat(config): add api section with port and host defaults
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 8d075f40d25a
2026-03-20 15:47:58 +07:00
dylan
917f2e2628 docs: add runtime API & CLI implementation plan
7-task plan for HTTP control API + openacp runtime CLI subcommand.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: ee8edb8efaa5
2026-03-20 15:40:31 +07:00
Mr.Peter
50c779783c
Merge pull request #14 from lngdao/feat/readme-refactor
docs: refactor README into landing page + separate guide docs
2026-03-20 15:37:17 +07:00
lngdao
8829baaddb docs: refactor README into landing page + separate guide docs
README.md is now a concise landing page with badges, architecture,
highlights (linked titles), quick start, commands, roadmap, and
star history chart.

Detailed documentation moved to docs/guide/:
- getting-started.md: install, setup wizard, agent detection
- telegram-setup.md: bot setup, streaming, skill commands, topics
- usage.md: commands, sessions, workspaces, lazy resume
- configuration.md: full config reference, env vars, logging
- tunnel.md: providers, file/diff viewer, security, endpoints
- plugins.md: install/create channel adapters
- development.md: build, architecture, design decisions, paths
2026-03-20 15:35:59 +07:00
dylan
153519d433 docs: add runtime API & CLI design spec
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
2026-03-20 15:31:35 +07:00
Mr.Peter
2f0a866a4f
Merge pull request #13 from lngdao/feat/tunnel-service
feat(tunnel): add ngrok, bore, tailscale providers + config auto-migration
v0.2.19
2026-03-20 15:06:04 +07:00
dylan
52f32a77c2 fix(cli): auto-start daemon after onboarding when user chooses daemon mode
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
2026-03-20 14:56:54 +07:00
dylan
f5f4afc7fb fix: add missing config load in editor, remove dead setTimeout in stopDaemon
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 27b0c1a1d6f4
2026-03-20 14:47:46 +07:00
dylan
94b2552545 feat(main): clean up PID file on daemon shutdown
Also export daemon, autostart, config-editor from public API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 4751282668d2
2026-03-20 14:44:16 +07:00
dylan
642ab6aad2 feat(setup): add run mode step to onboarding wizard
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
2026-03-20 14:43:09 +07:00
lngdao
82d271c513 feat(tunnel): add ngrok, bore, tailscale providers + config auto-migration
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
2026-03-20 14:39:41 +07:00
dylan
00f62cb898 feat(cli): add start/stop/status/logs/config commands and daemon mode
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: c042c0ab4609
2026-03-20 14:38:38 +07:00
dylan
acf564b1ce feat(config-editor): add menu-based interactive config editor
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 653daf9aea4d
2026-03-20 14:34:53 +07:00
Leo Agent
f7e356beb3 feat(action-detect): add callback handler for action confirm/dismiss buttons 2026-03-20 14:31:33 +07:00
dylan
85a9722b5c feat(autostart): add launchd and systemd auto-start support
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 256402728875
2026-03-20 14:31:19 +07:00
Leo Agent
e36d659f02 feat(adapter): add post-finalize action detection for assistant messages
Entire-Checkpoint: ac5e3ce7c1fd
2026-03-20 14:30:39 +07:00
dylan
24e2bbe601 feat(daemon): add PID management and daemon spawn/stop
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: de899dd62459
2026-03-20 14:29:05 +07:00
Leo Agent
0df61a9ac0 refactor(commands): extract executeNewSession and executeCancelSession 2026-03-20 14:28:52 +07:00
Leo Agent
64b7b1676e refactor(commands): extract executeNewSession and executeCancelSession
Entire-Checkpoint: 5abec487f97e
2026-03-20 14:28:27 +07:00
dylan
f66c53b6b6 feat(config): add runMode and autoStart fields to schema
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 383f30e6dd44
2026-03-20 14:26:50 +07:00
dylan
cb30c0d6ef docs: add implementation plan for config editor and daemon mode
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 1f78b07f974a
2026-03-20 14:20:35 +07:00
dylan
028ac6e3cd docs: fix step numbering, add stale PID handling, clarify log filename
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 5028667bf980
2026-03-20 14:06:19 +07:00