98 Commits

Author SHA1 Message Date
dylan
7bca214900 fix(review): resolve all remaining Discord coupling in core
- 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
2026-03-27 15:40:25 +07:00
dylan
57ed3a2fd3 fix(review): address round 2 feedback on PR #80
- 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
2026-03-27 15:10:28 +07:00
dylan
a4436bc3cc revert: restore docs/superpowers/ plans and specs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 9195220e9172
2026-03-27 13:56:21 +07:00
dylan
f3be31d4a8 Merge branch 'redesign/microkernel-plugin-architecture' of https://github.com/Open-ACP/OpenACP into redesign/microkernel-plugin-architecture
# Conflicts:
#	docs/superpowers/plans/2026-03-20-assistant-action-detect.md
#	docs/superpowers/specs/2026-03-20-assistant-action-detect-design.md
#	docs/superpowers/specs/2026-03-23-generic-handoff-design.md
2026-03-27 13:52:07 +07:00
dylan
0b4b4d15c4 fix(review): address PR #80 code review feedback
- 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
2026-03-27 13:44:01 +07:00
0xmrpeter
14fb687172 docs: convert remaining docs to English
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 10:58:35 +07:00
0xmrpeter
a0f0050d60 Merge branch 'redesign/microkernel-plugin-architecture' of github.com:Open-ACP/OpenACP into redesign/microkernel-plugin-architecture 2026-03-27 09:59:26 +07:00
dylan
8596315161 docs: address spec review feedback for Discord plugin extraction
- 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
2026-03-27 09:46:22 +07:00
dylan
cc77ed02da docs: add design spec for extracting Discord plugin to standalone package
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 10f437186acf
2026-03-27 09:41:05 +07:00
dylan
532e93e9d3 Merge remote-tracking branch 'upstream/redesign/microkernel-plugin-architecture' into redesign/microkernel-plugin-architecture 2026-03-27 09:25:41 +07:00
0xmrpeter
3b10909ce6 docs: update usage plugin extraction spec after review
- Fix EventBus: add usage:recorded to EventBusEvents interface
- Fix notifications: use getService('notifications').notifyAll() instead of event emit
- Fix UsageRecord schema: include id, agentName, contextSize fields
- Fix budget.check(): make async since storage is async
- Add in-memory cache + debounced flush to UsageStore (avoid perf regression)
- Drop query() API surface (Telegram handleUsage removed, plugin /usage command replaces it)
- Use @openacp/usage-plugin as plugin name
2026-03-27 02:08:14 +07:00
0xmrpeter
81dc30f6f1 docs: add plugin registry design spec
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>
2026-03-27 02:07:03 +07:00
0xmrpeter
ebde61d46b docs: add usage plugin extraction design spec 2026-03-27 01:34:12 +07:00
0xmrpeter
3e06539bd0 docs: fix plugin dev tooling spec — address review issues
C1: document cleanup() fix prerequisite (service/command unregistration)
C2: document ESM cache-busting limitations + future worker thread approach
I1: note workspace package name resolution
I4: scaffold imports from @openacp/plugin-sdk, not @openacp/cli
I5: generated package.json only has SDK as devDep, CLI as peerDep

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 20:26:46 +07:00
0xmrpeter
8e597071a5 docs: add plugin developer tooling design spec
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>
2026-03-26 20:18:22 +07:00
0xmrpeter
3dcc7bb1c8 docs: fix command system spec — address all review blocking issues
B1: handler returns Promise<CommandResponse | void> for backward compat
B2: reply() kept on CommandArgs as escape hatch for mid-execution feedback
B3: two-layer architecture for multi-step commands (core logic + adapter override)
I1: platform orchestration layer documented
I2: callback prefix scope clarified (c/ only for commands, existing prefixes unchanged)
I3: callback data cache for >64 byte payloads
I4: complete migration table with all missing commands + name migration
I5: options field added to CommandArgs for Discord typed options
S4: first-wins namespace rule (less disruptive than both-lose)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 19:03:12 +07:00
0xmrpeter
5724f1948d docs: add command system design spec
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>
2026-03-26 18:36:52 +07:00
0xmrpeter
e77f6c02df docs: add codebase consolidation design spec
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>
2026-03-26 17:11:00 +07:00
dylan
7b4779c9b4 docs: address spec review feedback for session cleanup
- 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
2026-03-26 16:51:06 +07:00
dylan
d9a4f49eab docs: add session cleanup feature design spec
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 8de760ac911e
2026-03-26 16:48:06 +07:00
0xmrpeter
6306798c5f docs: add plugin setup workflow design spec
Per-plugin settings, install/configure/migrate/uninstall lifecycle hooks,
PluginRegistry, SettingsManager, and legacy config migration strategy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 15:40:02 +07:00
0xmrpeter
5d3609108f docs: fix Phase 2b spec review issues (1888 → 1978 lines)
Critical fixes:
- Fix Telegram plugin example: replace invalid private field with closure
- Fix Translation plugin: capture ctx in closure for teardown access
- Add complete config migration field-by-field mapping table
- Add env var override compatibility documentation

Important fixes:
- Add model:beforeChange hook (#19) for model selection restriction
- Add Flow 2b: Agent writes a file (fs:beforeWrite)
- Specify sendMessage routing on PluginContext (through message:outgoing middleware)
- Update task 10g to include model:beforeChange

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:02 +07:00
0xmrpeter
82354b89d5 docs: comprehensive rewrite of Phase 2b plugin system spec (750 → 1888 lines)
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>
2026-03-26 11:30:03 +07:00
0xmrpeter
0e0feeb89c docs: fix Phase 2b spec — add emit(), clarify middleware ordering, break Task 10
Fixes from spec review:
- Add emit() to PluginContext for events:emit permission
- Clarify priority cannot override dependency order in middleware
- Add 5s middleware timeout
- Document next() return semantics
- Break Task 10 into 7 sub-tasks (10a-10g) per hook category
- Add integration test task (Task 13)
- Add error budget recovery semantics
- Add plugin enable/disable CLI commands

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:11:18 +07:00
0xmrpeter
7171408403 docs: add Phase 2b plugin system design spec
Covers: plugin interface, PluginContext, 18 middleware hooks,
service registry, lifecycle management, error isolation,
provider pattern, storage, and 2-plan implementation strategy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:07:03 +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
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
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