8 Commits

Author SHA1 Message Date
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
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
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
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
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
Leo Agent
038f3bae46 refactor: code review fixes and add design docs
- Extract shared spawn logic into spawnSubprocess() helper
- Remove signal handler leak in JsonFileSessionStore.destroy()
- Replace sessionStore! assertion with local variable capture
- Restore debug log for resolved agent command
- Fix IPv4-only networking (setDefaultAutoSelectFamily)
- Fix native fetch for grammY (client: { fetch })
- Add session persistence spec and implementation plan

Entire-Checkpoint: d3283b6c39ce
2026-03-20 12:54:26 +07:00
0xmrpeter
40777e75e2 chore: update package.json and pnpm-lock.yaml for dependency management and build configuration
- Added new dependencies: @agentclientprotocol/sdk, @inquirer/prompts, grammy, nanoid, and zod.
- Updated build scripts to use TypeScript compiler directly and modified entry points for the CLI.
- Removed outdated pnpm workspace and TypeScript configuration files.
- Adjusted tsup configuration for improved output structure and TypeScript declaration generation.
2026-03-19 19:03:47 +07:00