63 Commits

Author SHA1 Message Date
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
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
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
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
Mr.Peter
3dff0e3e65
Merge pull request #11 from rex-qa-bot/develop
feat: session persistence with lazy resume
v0.2.18
2026-03-20 13:18:17 +07:00
Leo Agent
638c425f29 merge upstream/develop: integrate tunnel/viewer features with session persistence 2026-03-20 13:16:43 +07:00
0xmrpeter
5cc81d8b2f chore: add husky for Git hooks and update package dependencies
- Added husky as a development dependency to manage Git hooks.
- Updated package.json to include a prepare script for husky.
- Updated pnpm-lock.yaml to reflect the addition of husky.
2026-03-20 13:11:10 +07:00
0xmrpeter
06bd0d01d7 Merge branch 'develop' of github.com:Open-ACP/OpenACP into develop v0.2.17 2026-03-20 13:09:28 +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
Mr.Peter
d05195778d
Merge pull request #10 from lngdao/feat/tunnel-service
feat: add tunnel service with file/code viewer
2026-03-20 13:05:18 +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
lngdao
24edd9c269 feat: add tunnel service with file/code viewer
Tunnel Service:
- Pluggable TunnelProvider interface with Cloudflare built-in
- Local HTTP server (Hono) on configurable port (default 3100)
- In-memory ViewerStore with TTL, path validation, 1MB limit
- Optional auth (Bearer token)
- Opt-in via config: tunnel.enabled (default: false)
- Env overrides: OPENACP_TUNNEL_ENABLED, OPENACP_TUNNEL_PORT,
  OPENACP_TUNNEL_PROVIDER

File/Code Viewer:
- Monaco Editor (VS Code engine) loaded from CDN
- Syntax highlighting for all languages
- Line numbers, minimap, word wrap, dark/light theme
- Line range highlighting via URL hash (#L42-L55)
- Copy button, file path breadcrumb

Diff Viewer:
- Monaco diff editor with side-by-side + inline toggle
- +/- change stats
- Dark/light theme

Integration:
- Core enriches tool_call/tool_update with viewerLinks metadata
- Telegram adapter renders clickable View file/View diff links
- ViewerLinks persist across tool updates (carried forward)
- File info extraction handles ACP diff content format
2026-03-20 12:26:25 +07:00
Leo Agent
9e59331158 test: add integration tests for session persistence and lazy resume 2026-03-20 12:20:18 +07:00
Leo Agent
4207509961 feat(telegram): persist topicId in session store for lazy resume
Entire-Checkpoint: 98f62d373a43
2026-03-20 12:19:38 +07:00
Leo Agent
1b8c6ba034 feat(core): add lazy resume with store status updates on session_end/error
Entire-Checkpoint: 50e741d4722f
2026-03-20 12:18:35 +07:00
Leo Agent
6e04d7f4bf feat(agent-instance): add resume() method with fallback to newSession
Entire-Checkpoint: 26699f7d6aad
2026-03-20 12:16:15 +07:00
Leo Agent
d8a995a72d feat(session-manager): integrate SessionStore for persistence
Entire-Checkpoint: 97a35cc408f1
2026-03-20 12:15:44 +07:00
Leo Agent
057774e284 feat(session-store): add JsonFileSessionStore with auto-cleanup
Entire-Checkpoint: af64d46e784e
2026-03-20 12:13:22 +07:00
Leo Agent
145b85e5fc feat(session): add agentSessionId field for resume support
Entire-Checkpoint: 9af6bd13426c
2026-03-20 12:10:00 +07:00
Leo Agent
ffc3cd1e1c feat(config): add sessionStore.ttlDays option (default 30)
Entire-Checkpoint: 59b2745cb184
2026-03-20 12:09:57 +07:00
Leo Agent
7116af864d feat(types): add SessionRecord and TelegramPlatformData types
Entire-Checkpoint: 36c1062c2553
2026-03-20 12:09:35 +07:00
Mr.Peter
054263784a
Merge pull request #9 from dylan-112/develop
Update quick and easy onboarding
v0.2.16
2026-03-20 11:14:36 +07:00
dylan
69b4e74bd1 Update setup 2026-03-20 11:04:40 +07:00
dylan
70c9e618c3 feat(setup): improve onboarding UI with colors, auto-detect group chat, and supergroup guide
- Add ANSI colored output for success/warning/error messages
- Auto-detect group chat ID via getUpdates polling (press 'm' for manual entry)
- Add inline guide for creating a Telegram supergroup
- Strip quotes from workspace path input
- Clean up verbose output, show only essential info

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 2d9b6b0b7549
2026-03-20 10:55:34 +07:00
dylan
0e815c042d fix: update test imports for new project structure
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 832c6f31e5db
2026-03-20 10:27:02 +07:00
0xmrpeter
374f8138d5 feat(dependencies): add @zed-industries/claude-agent-acp package
- Included the @zed-industries/claude-agent-acp package version 0.22.2 in package.json and pnpm-lock.yaml to enhance functionality.
- Updated pnpm-lock.yaml to reflect the new dependency and its resolution details.
2026-03-20 10:12:43 +07:00
0xmrpeter
4cb124174f fix(telegram): update command autocomplete to include agent name
- Modified the updateCommandAutocomplete method to accept the agent name as a parameter, ensuring that command descriptions are prefixed with the agent's name for better context.
- Removed the static command reset in cleanupSkillCommands to maintain existing command context during cleanup.
v0.2.14 v0.2.15
2026-03-20 09:59:43 +07:00
0xmrpeter
5812e9cc82 feat(logging): enhance root logger with pino-pretty transport and proxy for child loggers
- Updated the root logger to use pino-pretty for improved log formatting with colorization and time translation.
- Implemented a Proxy for child loggers to ensure they inherit the initialized logger configuration, allowing for consistent logging behavior across modules.
2026-03-20 09:52:29 +07:00
Mr.Peter
144e17638c
Merge pull request #8 from lngdao/fix/pr2-review-issues
fix: address PR #2 review feedback
v0.2.13
2026-03-20 09:44:07 +07:00
0xmrpeter
44f07cb03f fix(telegram): comment out debug log for message sending
- Commented out the debug log statement in the Telegram adapter's message sending method to reduce verbosity in logs.
v0.2.12
2026-03-20 09:42:43 +07:00
lngdao
f5f27d242f fix: address PR #2 review feedback
- Replace `as any` with `as never` + proper type annotations (convention)
- Add comment explaining why allowed_updates transformer is needed alongside bot.start()
- Fix bot.catch to extract root cause from grammY BotError via err.error
- Add depth limit (max 5) to extractContentText to prevent stack overflow
- Use required `status: string` type for tool_update metadata
2026-03-20 08:53:04 +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
b59303c202 feat(telegram): add typing indicators and session warm-up notifications
- Implemented typing indicators for assistant and core message handling to improve user experience.
- Added user notifications during session setup to inform them of potential delays.
- Introduced a warm-up function for the session to prime the model cache while the user types their first message.
2026-03-19 22:12:10 +07:00
0xmrpeter
95bf9f9b81 feat: enhance ACP stream logging with raw NDJSON support
- Introduced Transform streams for logging raw NDJSON data sent to and received from the agent.
- Updated the creation of ACP streams to include logging functionality for better debugging and monitoring.
2026-03-19 21:58:13 +07:00
Mr.Peter
2405393f6d
Merge pull request #7 from rex-qa-bot/develop
feat(telegram): restore welcome message and menu callbacks
2026-03-19 21:32:30 +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
Leo Agent
f5d5d6e207 feat(telegram): restore welcome message and menu callbacks
Re-add welcome message with dynamic agents/workspace info and
inline menu keyboard that was lost during upstream sync.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: c9102c7c128f
2026-03-19 21:14:57 +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.
v0.2.11
2026-03-19 19:03:47 +07:00
0xmrpeter
c26657b4d8 feat: enhance TypeScript configuration and main.ts for Telegram adapter integration
- Updated tsconfig.publish.json to exclude build artifacts and test files.
- Modified tsup.config.ts to include the Telegram adapter as a separate entry point and removed unnecessary noExternal configuration.
- Refactored main.ts to load the Telegram adapter using a dedicated function for improved modularity and clarity.
v0.2.10 v0.2.6 v0.2.7 v0.2.8 v0.2.9
2026-03-19 18:46:46 +07:00
0xmrpeter
3302bb4612 chore: update tsup.config.ts to include @inquirer/prompts in external dependencies v0.2.5 2026-03-19 18:38:31 +07:00
Mr.Peter
b43b59760f
Merge pull request #5 from dylan-112/develop
Create quick onboarding feature
v0.2.4
2026-03-19 18:32:15 +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
3feaf9a92d test: add integration test for full setup flow with mocked prompts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 7e8b554cd9a9
2026-03-19 18:26:29 +07:00
dylan
b03bed24cf feat: integrate interactive setup into main.ts for first-run detection
Entire-Checkpoint: ccd84bff2fb9
2026-03-19 18:26:29 +07:00
dylan
b170820471 feat: add interactive setup steps and runSetup() orchestrator
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: fe76785f3d6b
2026-03-19 18:26:29 +07:00
dylan
4004cc77eb feat: add Telegram and agent validation helpers for setup
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 0483b929fe16
2026-03-19 18:26:29 +07:00
dylan
298e96c786 chore: add @inquirer/prompts dependency to core
Entire-Checkpoint: 555e99a5a7b3
2026-03-19 18:26:29 +07:00
dylan
9af14523dc feat: add exists(), getConfigPath(), writeNew() to ConfigManager
Entire-Checkpoint: 1879a5c8bbe7
2026-03-19 18:26:29 +07:00