- Remove DiscordPlatformData from core types (plugin defines its own)
- Remove DiscordPlatformData from SDK re-exports
- Config editor: delegate Discord config to plugin configure() instead
of 100+ lines of inline Discord logic
- Update integrate.ts help text to be adapter-agnostic
- Clean absolute local paths from planning docs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 094cc484aaae
- Rename @openacp/plugin-discord → @openacp/adapter-discord in all refs
(setup-channels, wizard, lifecycle-manager, docs)
- Keep @openacp/plugin-discord as legacy alias in lifecycle-manager
- Remove unrelated session-cleanup-design.md spec from PR
- SDK: deduplicate main barrel by re-exporting from sub-path modules
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 4454289e400f
- Remove core→plugin-discord import in config-editor (architecture violation):
inline Discord token validation using REST API /users/@me instead of
importing from @openacp/plugin-discord/validators
- Mark legacyMap in lifecycle-manager as @deprecated with migration notes
- Remove 98 planning artifacts from docs/superpowers/ (72k+ lines)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: cdeeaa98a4f1
- Fix npm scope to @openacp (not @open-acp) for consistency
- Fix peerDependency version to match date-based versioning
- Move misclassified exports to "Need to add" section
- Add ConfigManager, AgentCatalog, requestRestart to SDK exports list
- Add essential: false, pluginDependencies notes
- Add tsconfig.json template
- Add exports field and .npmignore to package.json
- Add runAdapterConformanceTests to SDK testing exports
- Add legacy migration map update for backward compat
- Add boot order note for pluginDependencies
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: c5db89eae6aa
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>
- Reference existing TopicManager and archiveSession() instead of reimplementing
- Add parseDuration utility for --older-than flag
- Fix API route collision (/api/cleanup/ instead of /api/sessions/cleanable)
- Add CleanupFlowState for Telegram selection state with TTL
- Clarify default filter excludes active/initializing
- Add archiving flag edge case to test plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 98610f1a27c8
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.