62 Commits

Author SHA1 Message Date
0xmrpeter
29237fb6d0 chore: release v0.6.10
- Refactor setup into modular setup/ directory with reconfigure support
- GitBook documentation: complete rewrite with 8 content sections and cross-references
- Message formatting v2: fix verbosity gaps, restore missing display fields
- README updated with new documentation links
2026-03-25 23:19:30 +07:00
0xmrpeter
6588f91698 fix: improve build-publish with blacklist bundling and dependency verification
- Switch from external whitelist to noExternal blacklist in tsup config
- Add post-build verification to catch missing published dependencies
- Only bundle msedge-tts (pnpm-only), pass through all other deps
2026-03-25 16:04:13 +07:00
0xmrpeter
d4a0f9c3aa fix: only include external deps in published package to avoid pnpm-only install errors 2026-03-25 15:55:56 +07:00
0xmrpeter
906962b187 chore: release v0.6.7
- Message formatting v2: smart tool summaries, noise filtering, /verbosity command
- Shared formatter with Telegram, Discord, and web renderers
- /archive rewrite: fully delete topic and end session
- Session digest: auto-summary on session completion
- Dashboard config setting updates
2026-03-25 15:41:46 +07:00
0xmrpeter
70e95a149c chore: release v0.6.6
- Entire.io integration: /resume command reads checkpoint data to rebuild conversation history
- Supports PR, branch, commit, checkpoint ID, session ID, GitHub and Entire.io URLs
- Adaptive token budgeting (full/balanced/compact modes)
- Context provider abstraction for future extensibility
2026-03-25 11:16:09 +07:00
0xmrpeter
ace2ba0b97 chore: release v0.6.5
- Full Slack adapter: channels, permissions, streaming, voice (STT/TTS), send queue
- Auto session creation, channel rename, allowedUserIds enforcement
- Env var overrides for Slack tokens
- TextBuffer with promise-based flush lock to prevent data loss
- Session store supports Slack channel slugs
2026-03-24 22:54:01 +07:00
EthanMiller0x
eb87e2f37c Merge remote-tracking branch 'upstream/develop' into feat/slack-adapter 2026-03-24 19:36:01 +07:00
0xmrpeter
d1ebb4c4d0 chore: release v0.6.4
- Enhanced onboarding with clack prompts, startup summary, and openacp onboard command
- Telegram notification workflow for commits and PRs
- Fix: timestamps, confirm defaults, test mocks cleanup

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 18:40:15 +07:00
Mr.Peter
40e185926f
Merge pull request #56 from lngdao/feat/enhanced-onboarding-v2
feat(cli): enhanced onboarding — clack prompts, startup summary, onboard command
2026-03-24 18:35:48 +07:00
EthanMiller0x
f1522622e9 Merge remote-tracking branch 'upstream/develop' into feat/slack-adapter 2026-03-24 18:27:53 +07:00
0xmrpeter
f20153f4ca chore: release v0.6.3
- Discord TTS/STT support with interactive settings panel
- CLI gradient banner, post-upgrade dependency check, auto-install jq
- Telegram deep link fix to include threadId for forum topics
- Session control keyboard with voice mode toggle

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 18:15:55 +07:00
lngdao
900abc79a9 fix: address PR #56 review — timestamps, confirm defaults, test mocks, cleanup
1. Fix HH:MM:ss → HH:mm:ss (MM=month, mm=minutes)
2. Add initialValue: false to destructive confirms (cmdReset, cmdDoctor)
3. Update test mocks from @inquirer/prompts → @clack/prompts
4. Remove @inquirer/prompts from package.json
5. Use proper clack.autocompleteMultiselect import (no any cast)
6. Add stop messages to validation spinners
7. Skip "Starting OpenACP..." when skipRunMode=true
8. Simplify doctor fix control flow (remove bare block)
9. Make muteLogger/unmuteLogger reentrant (counter-based)
2026-03-24 18:14:54 +07:00
lngdao
f191a36051 wip: clack migration + banner + onboard (setup.ts + log.ts) 2026-03-24 17:45:08 +07:00
EthanMiller0x
546c0b4df0 merge: sync with upstream/develop
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 15:44:41 +07:00
0xmrpeter
4986036444 chore: release v0.6.2
- Web UI dashboard: sessions, agents, topics, config editor with live SSE events
- Text-to-speech: Edge TTS provider, /text_to_speech toggle, full voice duplex
- Major refactor: extract SecurityGuard, SessionFactory, MessageDispatcher from Core
- EventBus for system-wide real-time event broadcasting
- Security: prototype pollution protection, config scope enforcement
- 274 new tests, type safety improvements across codebase

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:59:55 +07:00
0xmrpeter
53f1fbb05f feat(speech): add edge-tts provider using msedge-tts
- Install msedge-tts dependency (MIT, TypeScript)
- Implement EdgeTTS provider with lazy-loaded dynamic import
- Default voice: en-US-AriaNeural, configurable per-provider or globally
- Add comprehensive tests with mocked msedge-tts
2026-03-24 11:41:13 +07:00
EthanMiller0x
dc016e96a5 merge: upstream/develop into feat/slack-adapter
Conflicts resolved:
- config.ts: keep SlackChannelConfigSchema + add UsageSchema, SpeechSchema from upstream
- core.ts: use upstream's explicit channelId === "telegram" check for topicId casting
- main.ts: keep Slack registration + add Discord registration from upstream
- pnpm-lock.yaml: regenerated with all deps

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 10:23:34 +07:00
Leo Agent
47b7a063d9 merge: resolve conflicts with upstream/develop
Keep both sides: our EventBus/SSEManager/StaticServer/auth/security additions
and upstream's speech module (SpeechService, GroqSTT, SpeechSchema) additions.
- config.ts: add speech schema alongside integrations field
- core.ts: add speech.* hot-reload handler alongside logging.level handler
- index.ts: add SpeechService/GroqSTT exports + speech type exports
- api-server.ts: add intermediate object creation for new config paths (speech)
- test files: add speech config to mock config objects

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 20b626ae9a6b
2026-03-23 22:53:23 +07:00
0xmrpeter
392780712c chore: release v0.6.1
- Speech-to-text: send voice messages, agent receives transcribed text (Groq Whisper)
- Session cost tracking with monthly budget limits and /usage command
- /archive command to recreate session topics with clean slate
- /tunnels scoped to current session in session topics

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 22:39:34 +07:00
Leo Agent
07c6e7e185 merge: resolve conflicts with upstream/develop (usage tracking feature)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 21:42:36 +07:00
Leo Agent
556025bb1b merge upstream/develop: adopt file-based auth, keep UI dashboard features
Resolve conflicts between upstream's file-based API authentication (PR #34)
and our UI dashboard backend features. Key decisions:
- Use upstream's loadOrCreateSecret() + authenticate() with file-based secret
- Drop our checkAuth() + api.token config approach
- Add query param support to authenticate() for SSE EventSource
- Exempt non-/api/ routes (static files) from auth
- Keep SSEManager, StaticServer, permission endpoint, extended list response
- Remove api.token from config schema
- Update tests to use file-based auth pattern

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 17:49:43 +07:00
0xmrpeter
9b81d2cc67 chore: release v0.6.0
- Full Discord adapter: forum channels, streaming, permissions, activity tracking, media support
- Discord interactive setup and doctor health check
- Channel selection in CLI config editor and onboarding
- Security: file-based token auth for API server, XML/systemd injection escaping
- Fix: wait for process exit before removing PID file
- Comprehensive documentation for CLI, daemon, API, and Discord setup

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 17:41:45 +07:00
Mr.Peter
04e9d33da7
Merge pull request #34 from dylan-112/develop
fix: critical security and reliability fixes (issue #21)
2026-03-23 17:38:58 +07:00
Leo Agent
945cecf407 merge: resolve conflict with upstream/develop (tunnel management endpoints)
Entire-Checkpoint: 7f4d7ec163cd
2026-03-23 17:07:10 +07:00
0xmrpeter
0fccd7ce1c chore: release v0.5.3
- Dynamic tunnel registry: multi-port tunnels with per-port cloudflared process
- Telegram /tunnel commands and CLI tunnel add/list/stop subcommands
- Agent tunnel skill for Claude (expose port, share app, preview on phone)
- Fix command handling: strip leading slashes to prevent agent subprocess hangs
- Fix session resumption: allow resuming cancelled sessions
- Prompt queue abort functionality
- Tunnel API backward compat and keyboard refresh fixes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 17:04:16 +07:00
EthanMiller0x
12676727c2 fix(slack): fix session routing after channel rename + improve message formatting
- Fix session lookup failure after auto-rename: update session.threadId and
  platform.topicId in store when Slack channel is renamed, so getSessionByThread()
  keeps working with the new slug
- Fix core.ts: store string threadId as-is in platform.topicId (not coerced to NaN)
  for non-numeric IDs (Slack slugs)
- Fix invalid_blocks error: skip posting empty/whitespace text blocks to Slack API
- Add SlackTextBuffer: buffer streamed text chunks per session, flush as single
  message after 2s idle or on session_end — prevents dozens of tiny messages
- Add markdownToMrkdwn converter: convert AI markdown (headers, bold, lists, links)
  to Slack mrkdwn format before sending
- Add debug logging to SlackEventRouter for easier message routing diagnosis
- Add pino-pretty debug script to package.json

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 14:56:21 +07:00
EthanMiller0x
bd267e2d79 feat(slack): add SlackSendQueue with per-method rate limiting (p-queue) 2026-03-23 14:56:21 +07:00
EthanMiller0x
22763d94f2 feat(slack): add @slack/bolt dependency and SlackChannelConfig schema
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 14:56:01 +07:00
dylan
a5d463c3a9 merge: sync upstream/develop into develop
Resolves conflicts in package.json (keep both discord.js and
fastest-levenshtein) and pnpm-lock.yaml (regenerated).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: d7e8e9299f36
2026-03-23 14:18:29 +07:00
Leo Agent
272bcf041c merge: resolve conflicts with upstream/develop (file-service feature) 2026-03-23 13:46:52 +07:00
0xmrpeter
bae30700c5 chore: release v0.5.2
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 13:37:06 +07:00
0xmrpeter
d595a91cf6 feat: add file, image, and audio support via adapters
- Add FileService for saving/resolving files in ~/.openacp/files/<sessionId>/
- Support OGG→WAV voice conversion using ogg-opus-decoder + node-wav
- Extend ACP prompt to send image/audio as base64 when agent supports it,
  fallback to file path when not
- Handle agent→user image/audio content events via SessionBridge
- Telegram adapter: incoming photo, document, voice, audio, video_note handlers
- Telegram adapter: outgoing attachment sending (photo/voice/document)
- Add Attachment type, extend IncomingMessage/OutgoingMessage/AgentEvent
- Log agent prompt capabilities on init for debugging
- Fix agent-installer test to match version-stripping behavior

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 13:34:58 +07:00
0xmrpeter
cc8cc53c30 chore: release v0.5.1
- Generic bi-directional handoff for all agents (not just Claude)
- CLI typo suggestions with fuzzy matching
- Per-agent setup instructions shown after install
- Fix ACP flag stripping and base args in agents run
- Comprehensive test coverage (+410 test cases across 22 new test files)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 11:20:02 +07:00
Leo Agent
4f4c159347 feat(ui): scaffold React + Vite dashboard with layout, theme, API client, SSE hook, and shared components
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 770afb5e0f45
2026-03-23 11:13:36 +07:00
dylan
1973e52393 feat(discord): add foundation types, config, and discord.js dependency
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 10:43:44 +07:00
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