27 Commits

Author SHA1 Message Date
0xmrpeter
a3c5f5c647 feat(cli): add typo suggestions with fuzzy matching across all CLI commands
Add "Did you mean: X?" suggestions when users mistype commands, agent
names, config keys, or flags. Uses fastest-levenshtein with prefix and
substring matching for comprehensive typo detection across 7 integration
points: top-level commands, api subcommands, agents subcommands, agent
name lookups, integrate command, config set keys, and doctor flags.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 01:19:06 +07:00
0xmrpeter
ddd237274d chore: bump version to 0.5.0 2026-03-22 21:55:50 +07:00
0xmrpeter
aae01af109 feat(registry): improve agent UX with pagination, descriptions, and deduplication
- Add pagination to /agents in Telegram (6 per page, prev/next buttons)
- Show agent descriptions from ACP Registry in both CLI and Telegram
- Deduplicate agent picker logic (handleNew + startInteractiveNewSession)
- Improve CLI install progress with visual progress bar
- Add supported agents table and ACP Registry attribution to README
- Add social links and keywords to package.json and publish script
2026-03-22 21:53:18 +07:00
0xmrpeter
34a8ce36f9 feat(registry): integrate ACP Registry for agent discovery and installation
Add AgentCatalog service layer that fetches agents from the official ACP
Registry CDN, supports 3 distribution types (npx, uvx, binary), and
manages installed agents in ~/.openacp/agents.json.

- New core modules: agent-catalog, agent-store, agent-installer, agent-dependencies
- Bundle registry snapshot for offline fallback
- Auto-migrate existing config.agents to new agent store on startup
- CLI: openacp agents list/install/uninstall/refresh/info
- Telegram: /agents browser, /install command, per-session agent picker
- Setup flow rewritten to use registry with multi-select
- 28 agents available from registry (Claude, Gemini, Cursor, Copilot, etc.)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 19:52:05 +07:00
0xmrpeter
9ec6cb59ad chore: bump version to 0.4.11
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:04:50 +07:00
0xmrpeter
c19b9a183d chore: add MIT license and update package metadata
- Introduced a new LICENSE file with the MIT License.
- Updated package.json to specify the license as MIT.
- Modified README.md to reflect the change in license from AGPL-3.0 to MIT.
2026-03-22 17:04:50 +07:00
0xmrpeter
eefe48a818 chore: bump version to 0.4.10
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:04:50 +07:00
0xmrpeter
d976e37516 chore: bump version to 0.4.9
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:04:19 +07:00
0xmrpeter
02bacdbe72 chore: bump version to 0.4.8
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:04:19 +07:00
0xmrpeter
5309eb3eec chore: bump version to 0.4.7
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:04:19 +07:00
0xmrpeter
7f349ac5f2 fix: resolve --version showing 0.0.0-dev when installed globally
Use getCurrentVersion() which walks up directories to find package.json
instead of hardcoded relative path that fails in global installs.

Bump version to 0.4.6.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:04:19 +07:00
0xmrpeter
f90904424b fix: persist dangerous mode state across server restarts
Toggle dangerous mode now falls back to session store when the session
is not in memory (e.g. after restart), so the setting survives reboots.
Also restores dangerousMode from store during lazy session resume.

Bump version to 0.4.4.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:04:18 +07:00
0xmrpeter
6a52194c13 feat: add restart and update commands to Telegram adapter
- Introduced `/restart` and `/update` commands for managing the OpenACP application directly from Telegram.
- Implemented logic to check for updates, notify users, and handle application restarts seamlessly.
- Enhanced menu options to include new commands, improving user interaction and accessibility.
- Updated session management to ensure proper handling of permission requests and session states during updates and restarts.
2026-03-22 17:04:18 +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
6b5fd7a4b1 Fix node 24 build production 2026-03-20 16:16:53 +07:00
0xmrpeter
d42de77a11 Fixbug node 24 2026-03-20 16:01:37 +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
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
057774e284 feat(session-store): add JsonFileSessionStore with auto-cleanup
Entire-Checkpoint: af64d46e784e
2026-03-20 12:13:22 +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
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
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
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
0xmrpeter
31f3d5dd56 Update package.json to specify pnpm version 10.5.0 as the package manager. 2026-03-19 17:39:40 +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