88 Commits

Author SHA1 Message Date
0xmrpeter
abf96bdf47 docs: add remaining fixes plan for Phase 2a
8 tasks: conformance tests, TelegramRenderer, agentCapabilities,
FileService line/limit, remove deprecated dispatcher, reduce as-any
casts, integration tests, final verification.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 09:01:35 +07:00
0xmrpeter
eecba2be84 docs: add Phase 2a Part 2 ACP core implementation plan
5 tasks: Session ACP state, MessageTransformer, SessionBridge wiring,
adapter handlers, and export verification. TDD throughout.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 08:11:12 +07:00
0xmrpeter
1fbe59beb6 docs: add Phase 2a folder restructure implementation plan
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 01:52:17 +07:00
0xmrpeter
b675163f5a docs: add Phase 2a design spec — folder restructure + full ACP core
Covers: folder restructure (44 flat core files → grouped subdirs),
full ACP protocol compliance (modes, config, terminal, auth, model,
fork, close, MCP passthrough), and CLI commands split.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 01:44:10 +07:00
0xmrpeter
2c1f0812cd docs: add adapter layer refactor implementation plan (Phase 1)
11-task TDD plan: shared primitives, base classes, renderer interface,
TelegramAdapter migration. Reviewed and approved.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 23:54:52 +07:00
0xmrpeter
0664c3ffe6 docs: add adapter layer refactor design spec (Phase 1)
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>
2026-03-25 23:54:05 +07:00
0xmrpeter
c9aa33c5a0 docs: update plan with setup refactor — modular setup/, runReconfigure()
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 17:45:42 +07:00
0xmrpeter
44e9a8c504 docs: add gitbook documentation rewrite implementation plan
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 17:42:57 +07:00
0xmrpeter
4d9e8db5c6 docs: fix spec review issues — file counts, context-resume, landing page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 17:42:57 +07:00
0xmrpeter
f1ad42a287 docs: add gitbook documentation rewrite design spec
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 17:42:57 +07:00
Peter Parker
a7ee3994b4
feat: session digest — auto-summary on session completion (#52)
* 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>
2026-03-25 15:26:25 +07:00
0xmrpeter
3c87525bc3 feat: integrate Entire.io checkpoints for conversation history resume
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.
2026-03-25 10:37:26 +07:00
EthanMiller0x
eb87e2f37c Merge remote-tracking branch 'upstream/develop' into feat/slack-adapter 2026-03-24 19:36:01 +07:00
EthanMiller0x
29aad2abd6 fix(slack): replace boolean flushing flag with promise-based lock in TextBuffer
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>
2026-03-24 19:13:13 +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
EthanMiller0x
5415211ba1 feat(slack): add voice/speech support — STT for audio clips, TTS audio replies
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>
2026-03-24 18:01:34 +07:00
lngdao
f191a36051 wip: clack migration + banner + onboard (setup.ts + log.ts) 2026-03-24 17:45:08 +07:00
EthanMiller0x
5ed70e9a60 docs(slack): add Review Round 2 issues to spec and plan
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>
2026-03-24 16:20:29 +07:00
0xmrpeter
e753bae6af refactor(telegram): update session control keyboard to include voice mode toggle
- 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.
2026-03-24 16:20:20 +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
lngdao
471e811903
feat(cli): gradient banner, post-upgrade dep check, auto-install jq (#49)
* 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
2026-03-24 14:57:56 +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
EthanMiller0x
7fac9a2970 fix(slack): invite allowedUserIds on channel creation, fix private channel access
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>
2026-03-24 10:16:11 +07:00
EthanMiller0x
104ff21012 docs(slack): update spec and plan with post-implementation review issues and fixes 2026-03-24 09:37:15 +07:00
0xmrpeter
c29dd3af48 docs: add codebase refactor spec and implementation plan 2026-03-24 00:42:33 +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
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
0xmrpeter
de9893f4c9 Merge branch 'develop' of github.com:Open-ACP/OpenACP into feat/speech-module 2026-03-23 21:41:35 +07:00
Peter Parker
8639966e1d
Feature/cost tracking budget planning (#29)
* docs: add cost tracking & budget limits design spec

New feature spec for session-level usage tracking with JSON file
persistence, configurable monthly budget warnings, and Telegram
/usage command for on-demand reporting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: add cost tracking & budget limits implementation plan

8-task TDD plan covering UsageStore, UsageBudget, config schema,
core wiring, formatting helpers, and /usage Telegram command.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat(core): implement session cost tracking & budget limits

- Add UsageStore with JSON persistence, calendar-month queries, and retention cleanup
- Add UsageBudget with threshold checking, de-duplication, and injectable date provider
- Add UsageSchema to config (derived UsageConfig type as single source of truth)
- Wire usage event tracking and budget warnings into OpenACPCore
- Add /usage Telegram command with formatUsageReport helper
- Add 25 tests covering store, budget, and formatting
- Update implementation plan per review feedback (#1-6)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: address review feedback on cost tracking implementation

🔴 Must fix:
- destroy() now calls flushSync() before cleanup to prevent data loss

🟡 Should fix:
- usageStore/usageBudget marked readonly to prevent accidental reassignment
- Replace inline import type with top-level import in formatting.ts

ℹ️ Nits:
- Rename usage-command.test.ts → usage-formatting.test.ts (tests formatUsageReport, not command)

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>
2026-03-23 18:12:12 +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
Peter Parker
0ca7f35d0f
feat(telegram): /archive command for session topics (#44)
* docs: add /clear session topic design spec and implementation plan

- Design spec covers topic recreation approach, confirmation flow, error handling
- Implementation plan with 6 TDD tasks: store update, topic helpers, adapter method, command expansion, tests, verification
- Extends existing /clear (assistant-only) to work in session topics

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: update /archive spec and plan per review feedback

- Rename /clear → /archive (user-friendly, aligns with Gmail/Slack patterns)
- Separate from existing /clear (assistant-only stays untouched)
- Add core archiveSession() + API endpoint (POST /sessions/:id/archive)
- Add assistant guidance when /archive used in wrong topic
- Use patchRecord() instead of new updatePlatformData method
- Fix: setupMenuCallbacks alias, chatId access, missing vi import in tests
- Fix: handleArchiveConfirm tests for success/cancel/error paths

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: address review feedback on /archive spec and plan

1. Fix API response type: use newThreadId (string) consistently
2. Add try/catch for orphan recovery between topic delete and create
3. Spread existing platform data in patchRecord to preserve skillMsgId
4. Add session.archiving flag to buffer events during transition
5. Rewrite core tests with full mock flow (adapter delegation, error paths)
6. Add explicit escapeHtml import line in session.ts
7. Strip existing 🔄 prefix to prevent emoji stacking on repeated archives

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: implement /archive command for session topics

- Add archiveSession() to OpenACPCore with validation and error handling
- Add archiveSessionTopic() to ChannelAdapter base (no-op default)
- Implement Telegram adapter: topic delete → create → rewire with orphan recovery
- Add /archive command with confirmation flow (ar: callback prefix)
- Add POST /api/sessions/:id/archive endpoint
- Strip 🔄 prefix on repeated archives to prevent emoji stacking
- Spread existing platform data in patchRecord to preserve skillMsgId
- 13 tests covering command, confirm, cancel, error, and core integration

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(test): fix setup-integration timeout by mocking cloudflared download

- Mock ensureCloudflared to avoid real network download during test
- Increase test timeout to 15s for setup wizard flow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: address 4 review findings on /archive implementation

1. Add session.archiving flag to Session class, set during topic
   recreation, guard sendMessage to drop events during transition
2. Fix skillMsgId cleanup: use delete instead of undefined assignment
3. Add /archive to handleHelp text in menu.ts
4. Guard non-active sessions (finished/cancelled/error) in handleArchive
   with early return instead of showing doomed confirmation dialog

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>
2026-03-23 17:48:20 +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
5a3c32ce41 feat(speech): implement speech module with STT/TTS capabilities
- Added a new speech module to OpenACP, featuring a pluggable architecture for Speech-to-Text (STT) and Text-to-Speech (TTS) functionalities.
- Created interfaces for STT and TTS providers, along with a SpeechService orchestrator to manage provider interactions.
- Integrated Groq Whisper as the default STT provider, allowing for automatic transcription of voice messages.
- Updated configuration schemas to support speech settings and added environment variable overrides.
- Enhanced session processing to utilize the new speech capabilities, ensuring seamless integration with existing message flows.
- Included comprehensive tests for the SpeechService and its providers to ensure reliability and functionality.
2026-03-23 17:02:13 +07:00
Mr.Peter
b6c7c17882
Merge pull request #43 from lngdao/feat/tunnel-port-registry
feat(tunnel): dynamic port registry with CLI, Telegram commands, and agent skill
2026-03-23 17:01:10 +07:00
EthanMiller0x
55fbb147b0 docs(slack): add Slack adapter spec and implementation plan
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 14:56:21 +07:00
lngdao
144ae497bc feat(tunnel): dynamic port registry with CLI, Telegram commands, and agent skill
Tunnel Registry:
- Multi-port registry: each port gets its own cloudflared process + URL
- Two entry types: system (file viewer, hidden) and user (managed)
- Persistence to ~/.openacp/tunnels.json with debounced writes
- Restore tunnels on restart (re-spawn with new URLs)
- Max concurrent user tunnels (default: 5, configurable)
- Race condition handling for stop during spawn
- Provider-per-entry from TunnelProvider abstraction

Telegram:
- /tunnel <port> [label] — create tunnel
- /tunnels — list with inline Stop buttons
- /tunnel stop <port> — stop tunnel
- Session destroy auto-stops user tunnels with notification

CLI:
- openacp tunnel add/list/stop/stop-all subcommands
- Calls daemon API endpoints

Daemon API:
- POST /api/tunnel — create tunnel
- GET /api/tunnel — list user tunnels
- DELETE /api/tunnel/:port — stop tunnel
- DELETE /api/tunnel — stop all user tunnels

Agent Integration:
- Tunnel skill installed via openacp integrate claude
- ~/.claude/skills/openacp-tunnel/SKILL.md
- Broad trigger: "expose port", "share app", "preview on phone", etc.
- Product guide updated with tunnel CLI docs

Config:
- Added tunnel.maxUserTunnels (default: 5)
2026-03-23 14:47:37 +07:00
dylan
adc2057d30 docs: add Discord media support implementation plan
4-task plan: media helpers + tests, incoming media handling,
outgoing attachment support, full verification.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: dcddb00f7cd9
2026-03-23 14:45:32 +07:00
dylan
bf41b47859 docs: add Discord media support design spec
Spec for adding file, image, and audio support to Discord adapter,
matching Telegram adapter's v0.5.2 capabilities.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: aa9a2339bc1a
2026-03-23 14:40:03 +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
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
Leo Agent
f19eaa99cb docs: add implementation plans for UI dashboard backend and scaffold
Entire-Checkpoint: 1f8a6b980840
2026-03-23 12:28:53 +07:00
dylan
9fc5b0ae36 docs: add Discord adapter implementation plan
16 tasks covering full feature parity with Telegram adapter.
Fixed critical API mismatches found during review:
- sessionManager.listSessions() not getAllSessions()
- agentManager.getAvailableAgents() not getInstalledAgents()
- core.handleNewSession() positional args not object
- configManager.save() nested objects not dot-paths
- Channel-aware platform storage for Discord snowflakes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: f43825efdb0d
2026-03-23 10:37:23 +07:00
dylan
3b0c9f5f27 Merge branch 'worktree-fix-critical-issues-21' into develop 2026-03-23 10:27:58 +07:00
dylan
38fa354888 docs: update Discord adapter spec with review fixes
Address all critical and important issues from spec review:
- Document MessageContent as privileged intent
- Add stop() and deleteSessionThread() methods
- Fix main.ts integration (registerAdapter call)
- Detail setup.ts multi-channel flow
- Address TopicManager Telegram coupling
- Add /handoff command, assistantInitializing suppression
- Specify deep link format, DiscordPlatformData location
- Add sendSkillCommands behavior, doctor check
- Wire env overrides into applyEnvOverrides()
- Detail DiscordSendQueue.onRateLimited()
- Handle DMs, thread auto-archive, slash command propagation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 3d69b7d07f79
2026-03-23 10:12:25 +07:00
dylan
05f1e9138a docs: add implementation plan for critical fixes (issue #21)
5 tasks: unused import, injection escaping, PID race condition,
API authentication, final verification.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 10:10:30 +07:00
dylan
72c7f7c4bb docs: add Discord adapter design spec
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: b1f4b3c7d650
2026-03-23 10:08:39 +07:00
Leo Agent
8027e06e4b docs: add UI dashboard design specification
Spec for embedded React + Vite dashboard served from OpenACP API server.
Covers architecture, SSE real-time updates, 5 pages (dashboard, sessions,
agents, config, topics), auth, EventBus design, and error handling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 10:06:03 +07:00