184 Commits

Author SHA1 Message Date
0xmrpeter
ddd237274d chore: bump version to 0.5.0 v0.5.0 2026-03-22 21:55:50 +07:00
Mr.Peter
0dd24b8e5a
Merge pull request #30 from Open-ACP/develop
feat: ACP Registry integration for agent discovery and installation
2026-03-22 21:55:29 +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
2300a21dfc fix: remove duplicate handleAgents from menu.ts, cleanup imports
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:53:57 +07:00
0xmrpeter
ccc44194e7 fix(registry): address code review findings
- Fix na: callback to use topic-first pattern (prevent race condition)
- Add zip-slip protection for binary archive extraction
- Remove duplicate escapeHtml, import from formatting.ts
- Consolidate commandExists into single shared function

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 20:07:04 +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
a3f9df358f chore: update README with npm version badge 2026-03-22 17:24:02 +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
b71a74b50c feat(telegram): add system diagnostics command and enhance README
- Introduced a new 'doctor' command in the CLI for running system diagnostics, including a dry-run option.
- Updated the Telegram adapter to integrate the 'doctor' command into the command structure and menu.
- Enhanced the README with a new section for screenshots showcasing the application interface.
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
607317b85a feat(telegram): enhance session management and configuration commands
- Updated the CLI configuration command to support setting values directly via arguments.
- Refactored session management to utilize a unified session creation pipeline, improving code organization and maintainability.
- Introduced new API endpoints for editable configuration fields and improved handling of session state changes.
- Enhanced the Telegram adapter to streamline session creation and management, including better integration with the command structure.
- Added tests for new session creation and configuration updates to ensure reliability.
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
098be57c6c refactor(telegram): split commands.ts into commands/ directory
Extract the 1400-line monolithic commands.ts into 6 domain-specific files:
- commands/admin.ts — restart, update, dangerous mode
- commands/menu.ts — menu keyboard, help, agents, clear, buildSkillMessages
- commands/integrate.ts — integrate flow + callbacks
- commands/session.ts — cancel, status, topics, cleanup
- commands/new-session.ts — new session creation flow + state
- commands/index.ts — setupCommands, setupAllCallbacks, re-exports

Each file registers its own grammY callback handlers with distinct prefixes.
External API preserved via re-exports from index.ts.
2026-03-22 17:04:50 +07:00
0xmrpeter
61dbd1851b refactor(telegram): add CommandsAssistantContext to types 2026-03-22 17:04:19 +07:00
0xmrpeter
90903a5935 feat(telegram): improve message handling and user interaction
- Updated the Telegram adapter to minimize API calls by refining terminal status checks.
- Enhanced user experience with additional "Cancel" options in command prompts.
- Improved message chunking logic to better handle long messages and prevent HTML tag breaks.
- Introduced a mechanism to track message truncation for more accurate message management.
2026-03-22 17:04:19 +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
bd917c20ba feat(telegram): enhance session management with interactive flow and command updates
- Introduced an interactive flow for creating new sessions, allowing users to select agents and workspaces conversationally.
- Updated the assistant system prompt to include product references and improved guidelines for user interactions.
- Added a new command to clear assistant history and improved error handling during session creation.
- Enhanced workspace input handling to support relative paths and ensure user-friendly prompts.
2026-03-22 17:04:19 +07:00
0xmrpeter
38d2490015 feat(new-session): interactive flow with agent and workspace selection 2026-03-22 17:04:19 +07:00
0xmrpeter
316c0887e2 feat(assistant): rewrite system prompt with product context and action playbook 2026-03-22 17:04:19 +07:00
0xmrpeter
de35ea00c3 feat(menu,help): reorganize keyboard layout and rewrite help text by use case 2026-03-22 17:04:19 +07:00
0xmrpeter
7bbbb5301a feat(assistant): add context-aware welcome message builder 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
9b52d981fe feat: enhance Telegram adapter with new cleanup commands and session management improvements
- Added new commands for cleaning up sessions, including a comprehensive cleanup option that excludes notification and assistant topics.
- Updated message formatting for session status display and improved user feedback during cleanup operations.
- Introduced additional parameters for better session management and command handling in the Telegram adapter.
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
bd90bae074 feat: enhance session management and integration capabilities
- Updated session handoff terminology in documentation and code for clarity.
- Introduced new commands for managing sessions and integrations in Telegram.
- Improved session transfer functionality between terminal and Telegram.
- Enhanced message formatting to prevent HTML tag breaks during message splitting.
- Added integration management for agents, allowing installation and uninstallation of session transfer features.

This update improves user experience by streamlining session management and enhancing integration options.
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
593e357a6f feat: implement session handoff and CLI integration for Claude
- Added commands for session handoff between Claude CLI and Telegram, allowing users to transfer sessions seamlessly.
- Introduced `adopt` and `integrate` commands in the CLI for managing agent sessions and integrations.
- Enhanced API server to support session adoption and improved agent capabilities reporting.
- Updated documentation to reflect new features and usage instructions for session handoff.
2026-03-22 17:04:19 +07:00
0xmrpeter
b8d8f7fb56 feat: add session lookup by agentSessionId
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 17:04:19 +07:00
0xmrpeter
37aca93981 feat: add agent registry with resume capabilities 2026-03-22 17:04:19 +07:00
0xmrpeter
6d7262186b feat(api): implement HTTP control API and CLI commands for session and topic management
- Added an HTTP API to the OpenACP daemon for managing sessions and topics.
- Introduced `openacp api` CLI commands for creating, canceling, and querying sessions, as well as managing topics.
- Updated the API server to handle new endpoints for session details, health checks, and configuration management.
- Enhanced topic management with cleanup and deletion capabilities.
- Refactored existing CLI commands to align with the new API structure.

This update improves user interaction by allowing session and topic management directly from the command line, enhancing the overall functionality of OpenACP.
2026-03-22 17:04:19 +07:00
0xmrpeter
9db5f2c597 feat: enhance assistant with dynamic prompt and topic management commands
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 17:04:19 +07:00
0xmrpeter
7e0b62b021 feat: add TopicManager core module with list, delete, cleanup
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:04:19 +07:00
0xmrpeter
51e4c26231 fix: prevent duplicate skill messages on session resume
Handle Telegram "message is not modified" error gracefully when resuming
sessions, instead of falling through to create a duplicate message.

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
a3cf683e5c refactor: replace skill command buttons with plain text for tap-to-copy
Replace inline keyboard buttons with plain <code> text lines for skill
commands, making them easier to copy on mobile. Remove dynamic bot menu
updates (updateCommandAutocomplete) — only static system commands remain.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:04:18 +07:00
0xmrpeter
0a7ca0c6a7 refactor: rename /new_chat command to /newchat for easier mobile typing
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:04:18 +07:00
0xmrpeter
e57ee6e47a feat: add environment variable to skip update checks
- Introduced the `OPENACP_SKIP_UPDATE_CHECK` environment variable to allow users to bypass update checks during server startup.
- Updated the `startServer` function to set this variable for both daemon and non-daemon child processes.
- Modified the `checkAndPromptUpdate` function to respect the new environment variable, enhancing flexibility in update management.
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
Mr.Peter
a78847bcb0
Merge pull request #25 from Open-ACP/develop
feat(telegram): improve new chat session handling and error management
2026-03-21 12:49:29 +07:00
0xmrpeter
4367e43e22 feat(telegram): improve new chat session handling and error management
- Enhanced `handleNewChat` to resolve agent configuration from existing sessions or records before creating a new session.
- Implemented cleanup of orphaned topics if session creation fails, ensuring better resource management.
- Updated session cancellation logic to maintain active status during cancellation, improving session state integrity.
v0.3.2
2026-03-21 01:52:23 +07:00
Mr.Peter
1475b04f8b
Merge pull request #24 from Open-ACP/develop
Develop
2026-03-21 01:35:17 +07:00
0xmrpeter
835d7cd1f5 feat(telegram): enhance session management with message ID tracking
- Updated `executeNewSession` to return `firstMsgId` alongside `threadId` for improved session link generation.
- Modified `setupActionCallbacks` and `TelegramAdapter` to utilize `firstMsgId` when creating deep links to session topics.
- Added `getMsgId` and `getUsageMsgId` methods in `UsageMessage` and `ActivityTracker` respectively for better access to message IDs.
- Ensured proper handling of message IDs in session cancellation to maintain state integrity.
v0.3.1
2026-03-21 01:25:38 +07:00
0xmrpeter
f532a674da feat(telegram): introduce dangerous mode for session management
- Added commands to enable and disable dangerous mode, allowing auto-approval of permission requests within a session.
- Implemented UI updates to reflect the current state of dangerous mode in session topics.
- Enhanced session handling to suppress notifications and commands for the assistant session.
- Updated session management to handle state persistence and fallback mechanisms for session records.
- Adjusted ThinkingIndicator behavior to accommodate new session timeout configurations.
v0.3.0
2026-03-21 01:10:23 +07:00
0xmrpeter
7dd7bafcdd refactor(telegram): enhance ThinkingIndicator and ActivityTracker behavior
- Updated ThinkingIndicator to prevent API calls when dismissed and added a refresh timer for ongoing messages.
- Modified ActivityTracker to ensure proper dismissal of the ThinkingIndicator without triggering deleteMessage API calls.
- Improved test cases to reflect new behavior and ensure correct state management during show/dismiss/reset cycles.
- Adjusted spawnAssistant to handle assistant initialization in the background, improving startup responsiveness.
2026-03-21 00:14:01 +07:00
0xmrpeter
f7c1a4895f docs: add activity tracker spec and implementation plan
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 23:30:21 +07:00
0xmrpeter
30b1417e58 feat(telegram): wire ActivityTracker into adapter — fix plan bug, add ThinkingIndicator and rolling usage
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 23:30:13 +07:00
0xmrpeter
340365c423 feat(telegram): implement ActivityTracker coordinator
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 23:27:05 +07:00
0xmrpeter
25286ce3d7 feat(telegram): implement PlanCard with debounce and progress bar
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 23:25:04 +07:00
0xmrpeter
33d47e640d feat(telegram): add ThinkingIndicator and UsageMessage classes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 23:22:55 +07:00
0xmrpeter
e67d44c16c feat(telegram): update formatUsage — remove cost, add token progress bar
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 23:20:45 +07:00