29 Commits

Author SHA1 Message Date
0xmrpeter
498c4530f7 feat(session): implement session name persistence and skillMsgId handling
- Added `getSessionRecord` method to `SessionManager` for retrieving session data.
- Introduced `skillMsgId` field in `TelegramPlatformData` to persist message IDs across sessions.
- Updated `TelegramAdapter` to restore and persist `skillMsgId` during command handling and cleanup.
- Enhanced session name persistence to ensure it is retained after bot restarts.
- Included verification steps for manual testing of new functionality.
2026-03-20 21:48:08 +07:00
0xmrpeter
f1b02dc22a feat(telegram): update grammY to v1.41.1 and remove outdated Telegram streaming redesign documents
- Upgraded grammY dependency from v1.30.0 to v1.41.1 in package.json and pnpm-lock.yaml.
- Deleted obsolete Telegram streaming redesign implementation and specification documents as they are no longer relevant.
2026-03-20 20:36:55 +07:00
0xmrpeter
41289a83ca Merge branch 'develop' of github.com-peter:Open-ACP/OpenACP into develop 2026-03-20 17:40:34 +07:00
0xmrpeter
8a3ad9b970 docs: add telegram streaming redesign spec and plan
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 17:18:45 +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
0xmrpeter
c4da1f0cea Merge branch 'develop' of github.com-peter:Open-ACP/OpenACP into develop 2026-03-20 17:00:42 +07:00
0xmrpeter
37a08b821f Telegram streaming 2026-03-20 16:58:54 +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
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
Leo Agent
831105bece docs: add assistant action detection spec and implementation plan
Entire-Checkpoint: b76f7ff5852f
2026-03-20 16:04:50 +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
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
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
dylan
5b6e959387 docs: fix spec issues from review - PID race, launchd paths, Windows, etc
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 4b54241544ca
2026-03-20 14:04:45 +07:00
dylan
8c4005cfb2 docs: add design spec for config editor and daemon mode
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 7ef44dc0cf2c
2026-03-20 14:02:13 +07:00
Leo Agent
638c425f29 merge upstream/develop: integrate tunnel/viewer features with session persistence 2026-03-20 13:16:43 +07:00
0xmrpeter
82f62ef434 Update ACP documentation to English and improve clarity
- Enhanced clarity in explanations regarding the Agent Client Protocol (ACP) and its architecture.
- Updated section headings and content to reflect the new language and improve readability.
2026-03-20 13:09:24 +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
29130a8ae7 feat(telegram): implement dynamic skill command handling and autocomplete
- Added support for dynamic skill commands in the Telegram adapter, allowing for real-time command updates based on user interactions.
- Implemented methods to send and clean up skill commands, enhancing user experience with pinned messages and command autocomplete.
- Updated command handling to include skill-specific callbacks and keyboard generation for better interaction.
- Refactored existing command setup to accommodate new skill command features.
2026-03-19 23:46:21 +07:00
0xmrpeter
c82e2b98ed refactor: enhance logging and project structure for improved clarity and maintainability
- Updated logging system to use Pino for structured logging, including session-specific loggers.
- Refactored project structure in CLAUDE.md for better organization and clarity.
- Added new build scripts and commands in README.md for easier usage.
- Improved error handling and logging in core components and Telegram adapter.
- Introduced session log retention and cleanup functionality.
- Updated package.json and pnpm-lock.yaml to include new logging dependencies.
2026-03-19 21:32:18 +07:00
dylan
37794db457 feat: interactive CLI onboarding setup wizard
- Auto-detect agents from PATH and node_modules/.bin (prefer claude-agent-acp)
- Validate Telegram bot token and chat ID against API
- Streamlined 3-step setup: Telegram, Agents, Workspace
- Auto-save config and auto-start after setup
- Fix bin entry to use cli.js for proper command routing
- Update setup-guide.md and README.md to match new flow
- Security defaults applied automatically (editable in config)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 605d217b3192
2026-03-19 18:26:29 +07:00
dylan
029266d77f Fix spec review issues in CLI onboarding design
- Use Zod-inferred types instead of non-existent type names
- Add writeNew() and getConfigPath() methods to ConfigManager
- Set enabled: true and note topic IDs are auto-created
- Use command -v instead of which for portability
- Match agent detection to actual binary names (claude-agent-acp)
- Clarify allowedUserIds parsing to string[]

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 6af3b249cdc2
2026-03-19 18:26:28 +07:00
dylan
23fb598a87 Add CLI onboarding setup design spec
Interactive first-run wizard that guides users through Telegram, agent,
workspace, and security configuration when no config file exists.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 9eb56d895bc1
2026-03-19 18:26:28 +07:00
0xmrpeter
d19032d779 Enhance OpenACP setup by adding support for plugin adapters and improving configuration management. Update .gitignore to exclude dist-publish, modify package.json to include versioning and new build scripts, and expand README with installation and plugin instructions. Refactor config schema to support dynamic channel configurations and improve main execution flow for better adapter registration. 2026-03-19 17:29:37 +07:00
0xmrpeter
f81d96892e Initialize OpenACP project with core structure, including package.json, pnpm workspace, and essential configurations. Add .gitignore, README, and TypeScript settings. Implement initial ACP documentation and roadmap. 2026-03-19 15:55:33 +07:00