GitHub-based community plugin registry with auto-merge PRs,
daily version sync from npm, CLI search + smart install,
and verified badge system.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9 tasks in 3 phases: fix cleanup() prerequisite, SDK package with
types + testing utilities, scaffold generator, dev mode with hot-reload.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Four features: openacp dev (hot-reload), openacp plugin create (scaffold),
@openacp/plugin-sdk (types + testing), and version-synced publishing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- reply() accepts OutgoingMessage for backward compat
- coreAccess typed as CoreAccess, not unknown
- toCallbackData uses cache for >64 byte payloads
- core.serviceRegistry → core.lifecycleManager.serviceRegistry
- system:commands-ready emission updated in Task 5
- Middleware ordering clarified for Task 6
- Handler types use unknown instead of any
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Centralized CommandRegistry, structured CommandResponse types,
auto-generated help, namespace conflict resolution, and full
migration plan from hardcoded adapter commands.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Consolidate adapter/speech/tunnel code into plugins, decouple core
from plugin imports via ServiceRegistry, simplify main.ts boot flow.
Two implementation plans: mechanical moves first, then logic changes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Added: typed middleware payloads for all 18 hooks, modifiable vs read-only
matrix, edge cases for every section, service contracts for all built-in
services, 8 detailed flow diagrams, full config format, plugin discovery
and checksum verification, transition state documentation, 4 concrete
plugin examples, CLI command spec.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Full redesign of adapter architecture with layered interface,
shared composable primitives, and separate base classes for
messaging platforms vs stream transports (WebSocket/API).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: add Session Digest design spec and implementation plan
- Auto-generate session summaries when sessions complete (using autoName pattern)
- DigestStore with JSON persistence, query with filters, retention cleanup
- Rich notifications replacing generic "Session completed" message
- /digest command with limit and agent filter
- GET /api/digests endpoint for UI dashboard
- 7 TDD tasks covering store, generation, bridge wiring, command, API
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: rewrite session digest → on-demand /summary per review feedback
Major design changes:
- Remove auto-digest on session end (context pollution, cost, edge cases)
- Replace with user-initiated /summary command in session topics
- Remove DigestStore/persistence (summary is just a message, no store needed)
- Remove GET /api/digests (replaced with POST /sessions/:id/summary)
- Remove config changes (no DigestSchema needed)
- Add [📋 Summary] inline button in completion notifications
- Add promptCount to Session for stats in notifications
- Works mid-session (progress check) not just at end
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: implement on-demand /summary command for session topics
- Add Session.generateSummary() with pause/capture/resume pattern + 15s timeout
- Add Session.promptCount tracking (incremented in processPrompt, skips warmup)
- Add OpenACPCore.summarizeSession() with validation
- Add /summary command in Telegram session topics
- Add [📋 Summary] inline button in session completion notifications
- Add sm: callback prefix for summary button handler
- Add POST /api/sessions/:id/summary endpoint
- Add formatSummary() helper in formatting.ts
- Enhance session_end notification with duration + prompt count stats
- 13 tests covering generateSummary, command, callback, formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(archive): allow archiving initializing sessions + better error handling
Bug fixes reported by tester:
1. Allow /archive for sessions that haven't been chatted in yet
(status=initializing) — only reject finished/cancelled/error
2. Add topicId validation — return null if threadId is NaN/0
3. Add try/catch around deleteForumTopic with clear error message
about bot admin permissions
4. Update core.archiveSession to match — allow initializing + active
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address code review feedback on /summary implementation
1. Fix timer leak in generateSummary() — clearTimeout in finally block
2. Remove unnecessary block scope in session-bridge session_end handler
3. Fix promptCount: single if/else instead of duplicated condition
4. Fix handleSummaryCallback: answer callback once (with message for
ended sessions, plain ack for active)
5. Improve ended session message: "Use /summary while session is active"
6. Revert archive initializing change — belongs in separate PR
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: support /summary for ended sessions via agent respawn
1. Implement respawn for ended sessions: resume agent with conversation
history via agentSessionId, generate summary, destroy temp agent
2. Remove status !== "active" guard from handleSummary — let core decide
3. Update handleSummaryCallback to find threadId from stored record
4. Update spec to document respawn architecture
5. Fix promptCount: already correct (after warmup guard)
6. No archive changes in this PR (reverted to match upstream)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address round 4 review — static import, session cleanup, type safety, docs
1. Replace dynamic import("./agent-registry.js") with static import
(already imported at top of file)
2. Fix tempSession cleanup: destroy Session (not just AgentInstance)
in finally block to prevent listener leaks
3. Remove unsafe type assertion on record.platform — use (as any)?.topicId
4. Update plan/spec docs to document respawn architecture for ended sessions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: peter <peter@lab3.asia>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add /resume command that reads Entire checkpoint data from git to rebuild
previous conversation history and inject it into new agent sessions.
Supports PR, branch, commit, checkpoint ID, session ID, GitHub URLs,
and Entire.io URLs as entry points. Includes workspace picker, adaptive
token budgeting (full/balanced/compact modes), and context provider
abstraction for future extensibility.
Concurrent flush() calls now await the ongoing flush instead of returning
immediately, preventing data loss when session_end triggers flush() while
a timer-triggered flush is already in progress.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Wire Slack adapter to handle audio file attachments (incoming voice clips
via file_share events) and outgoing TTS audio uploads. Add stripTtsBlock()
to clean up [TTS] markers from posted messages after audio is uploaded.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add 8 issues from @0xmrpeter's second review (PR #42) to spec and
implementation plan as Task 13 fix subtasks.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replaced dangerous mode keyboard with a session control keyboard that incorporates voice mode status.
- Adjusted the keyboard layout to accommodate the new voice mode functionality.
- Enhanced error handling during keyboard updates.
* feat(cli): gradient banner, post-upgrade dep check, auto-install jq
Banner:
- ANSI Shadow text with purple→cyan gradient via gradient-string
- Shows version + tagline, respects NO_COLOR and non-TTY
Post-upgrade dependency check (blocking, runs every start):
- Centralized in post-upgrade.ts — single source of truth for deps
- Auto-install cloudflared from GitHub releases (tunnel cloudflare)
- Auto-install jq from GitHub releases (handoff integration)
- Warn for missing ngrok/bore/tailscale, unzip, uvx
- Suggest "openacp integrate claude" if not installed
Module responsibility split:
- post-upgrade.ts: downloads/installs binaries
- cloudflare.ts: findBinary() only, no download
- Hook scripts: resolve jq from ~/.openacp/bin/ fallback
Deps: +gradient-string, -@clack/prompts (unused)
* fix: address PR #49 review — shared binary installer, PATH priority, zero deps banner
Review fixes:
1. Shared installBinary() utility — both cloudflared and jq use it, no duplication
2. Use commandExists() instead of which — Windows compatible
3. findBinary() checks PATH first, ~/.openacp/bin/ second
4. Safety net: ensureCloudflared() fallback if findBinary() returns null
5. Single import of getIntegration in post-upgrade.ts
6. Fixed comment numbering
7. Removed gradient-string — inline ANSI 256 gradient, zero new deps
8. Proper file.close(callback) in downloadFile for async safety
Additional:
- Banner shown on every foreground start (not just setup)
- Version reads correctly via getCurrentVersion()
- Respects daemon mode, NO_COLOR, non-TTY
Private channels are inaccessible to users until explicitly invited — bot creates
the channel and is auto-member, but users see a locked link they cannot open.
Fix conversations.join → bot is auto-member of private channels it creates (no
self-join needed, conversations.join only works for public channels).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>