94 Commits

Author SHA1 Message Date
0xmrpeter
6957b524a6 fix: address code review issues (route prefixes, auth, missing endpoints, teardown)
- SSE routes prefix corrected from /sse to /api/v1/sse
- POST /tokens now requires secret token auth instead of admin role
- Added GET /agents/:name endpoint
- Added GET /config/schema endpoint (zod-to-json-schema)
- Added PATCH /sessions/:id for agent switch, voice mode, dangerous mode
- Added --instance flag to remote command for multi-instance support
- Fixed app link to use host= and port= params instead of server=
- SSE adapter teardown now calls adapter.stop() and connectionManager.cleanup()

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 19:32:27 +07:00
0xmrpeter
f29c310d01 chore: add qrcode-terminal for remote access QR code generation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 19:23:00 +07:00
0xmrpeter
c60fde8777 feat(auth): implement JWT sign/verify/refresh with HMAC-SHA256
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 19:07:34 +07:00
0xmrpeter
8289b55ff2 chore: add Fastify dependencies for API server refactor 2026-03-31 18:37:09 +07:00
0xmrpeter
8557407130 chore: bump version to 2026.331.5
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 18:15:56 +07:00
0xmrpeter
71220d9ebd chore: bump version to 2026.331.4
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 17:35:44 +07:00
0xmrpeter
f378f297c4 chore: bump version to 2026.331.3
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 16:28:02 +07:00
0xmrpeter
8c2da0af50 feat: add openacp restart command, fix bundle chunk crash on upgrade
- Add restart CLI command (stop + start in one step)
- Disable tsup code splitting to prevent ERR_MODULE_NOT_FOUND when
  daemon is running during a global npm upgrade (hash-named chunks
  get replaced, breaking dynamic imports in the old process)
- Update help, docs, and README

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 15:52:48 +07:00
0xmrpeter
ad143b8549 Merge branch 'feat/api-server-redesign' of github.com:Open-ACP/OpenACP into feat/api-server-redesign 2026-03-31 15:39:58 +07:00
0xmrpeter
9549cacdb1 chore: update package reference for Claude Agent
- Changed package name from @zed-industries/claude-agent-acp to @agentclientprotocol/claude-agent-acp
- Updated version from 0.22.2 to 0.24.2 in package.json and pnpm-lock.yaml
- Adjusted related test files and setup configurations to reflect the new package name and version
2026-03-31 15:39:45 +07:00
0xmrpeter
410a0af2c8 chore: bump version to 2026.331.1
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 14:40:14 +07:00
0xmrpeter
654a3deb80 chore: bump version to 2026.330.3 2026-03-30 16:30:28 +07:00
0xmrpeter
ca21d6a98b chore: bump version to 2026.330.2 2026-03-30 15:09:11 +07:00
0xmrpeter
4c16731851 chore: bump version to 2026.330.1 2026-03-30 15:02:53 +07:00
0xmrpeter
a56120d114 chore: bump version to 2026.328.2 2026-03-28 07:48:55 +07:00
0xmrpeter
cafd8947f4 chore: bump version to 2026.328.1 2026-03-28 07:44:10 +07:00
0xmrpeter
c49d7ec397 chore: bump version to 2026.0327.6 2026-03-27 21:32:08 +07:00
Mr.Peter
a42ea1f069
Merge pull request #97 from EthanMiller0x/feat/extract-slack-plugin
feat: extract Slack adapter to standalone plugin
2026-03-27 21:26:23 +07:00
0xmrpeter
c3691909b8 refactor(speech): remove Edge TTS integration and related tests; update TTS provider handling
- Removed the Edge TTS provider implementation and its associated tests.
- Updated the SpeechService to support dynamic registration and unregistration of TTS providers.
- Enhanced the speech plugin to install the Edge TTS plugin dynamically if not already available.
- Adjusted configuration to exclude specific test directories and removed unnecessary dependencies from package.json.
2026-03-27 21:24:39 +07:00
EthanMiller0x
dc4bafbfc3 feat: remove Slack built-in plugin (extracted to @openacp/adapter-slack)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 19:14:09 +07:00
0xmrpeter
a9e3e8d516 fix(sdk): remove duplicate type exports causing build failure 2026-03-27 18:44:02 +07:00
0xmrpeter
ba096e4102 chore: bump version to 2026.0327.4 2026-03-27 18:34:45 +07:00
0xmrpeter
fea82adeeb chore: bump version to 2026.0327.2
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 16:24:29 +07:00
dylan-112
1cb9b38388
feat: extract Discord plugin to standalone package
* fix(api): respect channel param in POST /api/sessions (#76)

Session creation always used the first registered adapter. Add optional
`channel` field so callers can target a specific platform (e.g. discord).
Falls back to first-adapter behavior when omitted for backward compat.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(api): wire --channel flag in CLI and assistant prompts (#76)

The API endpoint accepted `channel` but the CLI `openacp api new` didn't
pass it through. Add --channel flag to CLI and update Discord/Telegram
assistant prompts to include --channel so sessions are created on the
correct platform.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 27c1f141d0c1

* docs: add session cleanup feature design spec

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 8de760ac911e

* 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

* docs: add design spec for extracting Discord plugin to standalone package

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 10f437186acf

* 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

* docs: add implementation plan for extracting Discord plugin

9 tasks: extend CLI exports, extend SDK, migration map, scaffold
project, copy+refactor source, verify build, remove from OpenACP,
update README, push repos.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: a54a5510736a

* feat(core): export format-utils, message-formatter, CommandRegistry, Doctor, PRODUCT_GUIDE for plugin SDK

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 27b04551e9a7

* feat(plugin-sdk): export all symbols needed by adapter plugins

Entire-Checkpoint: a1ed33612eb6

* fix(plugin): add @openacp/plugin-discord migration alias for backward compat

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: a9db7beb2975

* fix(sdk): add missing adapter-primitive exports and testing entry point

- Add MessagingAdapterConfig, IRenderer, RenderedMessage type exports to src/core/index.ts
- Add DisplayVerbosity, ToolCallMeta, ToolUpdateMeta, ViewerLinks type exports
- Add STATUS_ICONS, KIND_ICONS, progressBar, formatTokens, truncateContent, stripCodeFences, splitMessage exports
- Add extractContentText, formatToolSummary, formatToolTitle, resolveToolIcon exports
- Create src/testing.ts as a separate entry point exporting runAdapterConformanceTests
- Add ./testing export map to @openacp/cli package.json
- Fix @openacp/plugin-sdk/testing.ts to import from @openacp/cli/testing
- Fix version strings to use valid semver (2026.326.4 not 2026.0326.4)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: restore original version format YYYY.MMDD.patch

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: remove built-in Discord plugin (now available as @openacp/plugin-discord)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(plugin): resolve 3 bugs preventing dev plugins from loading

- lifecycle-manager: include already-loaded plugins in dependency resolution
  so late-booted dev plugins aren't cascade-skipped
- dev-loader: use URL query string for ESM cache busting instead of copying
  to temp dir, which broke relative imports (e.g., './adapter.js')
- adapter-primitives: remove runAdapterConformanceTests from main barrel
  to prevent vitest from leaking into runtime bundle

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 64f604573bb7

* 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

* Revert "fix(plugin): resolve 3 bugs preventing dev plugins from loading"

This reverts commit 031464640560628dd8c093a4d8d30895c775ef98.

Entire-Checkpoint: 6ed1a02a0cb5

* Reapply "fix(plugin): resolve 3 bugs preventing dev plugins from loading"

This reverts commit 5707bf1c240f52baab277d21333cd7d92c191fac.

Entire-Checkpoint: bfaaa263a765

* revert: restore docs/superpowers/ plans and specs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 9195220e9172

* fix(review): revert unrelated changes and organize SDK sub-paths

- Revert --channel flag, assistant prompt changes, and session route
  changes that don't belong in Discord extraction PR (#82)
- Add SDK sub-path exports: @openacp/plugin-sdk/formatting,
  @openacp/plugin-sdk/config (alongside existing /testing) (#83)
- Mark SDK exports as @stable vs @experimental
- Fix plugin count test (10 → 9 after Discord removal)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 9bd5c44d98c4

* 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

* fix(review): remove remaining Discord references from core

- Remove Discord doctor check from core (plugin registers its own)
- Dynamic adapter discovery via ServiceRegistry instead of hardcoded list
- Remove @openacp/discord from auto-register built-in plugins list

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: c15c5fbf08c8

* fix(config): auto-install Discord plugin when enabling via config editor

When user enables or configures Discord through `openacp config` (not
onboarding), check if @openacp/adapter-discord is installed. If not,
prompt to install it automatically via npm.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: dd218c585ae3

* fix(review): round 3 cleanup — extensible ChannelId, update CLAUDE.md

- Change ChannelId from fixed union to string for extensibility
- Remove discord/ from CLAUDE.md project layout (now external plugin)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 66d8d185cda7

* 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

* fix: replace execSync npm install with async utility

Extract installNpmPlugin() into a shared utility that uses async exec
instead of execSync, preventing event loop blocking. Used by both
config-editor.ts and wizard.ts instead of inline execSync calls.

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

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: 0xmrpeter <0xmrpeter@gmail.com>
2026-03-27 16:05:50 +07:00
0xmrpeter
14d7d7f226 chore: bump version to 2026.0327.1
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 11:00:53 +07:00
0xmrpeter
c62185c328 chore: bump version to 2026.0326.4
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 23:52:11 +07:00
0xmrpeter
26edf2fd5f chore: bump version to 2026.0326.3
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 23:40:58 +07:00
0xmrpeter
289858d385 chore: bump version to 2026.0326.2
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 23:30:41 +07:00
0xmrpeter
e6237eaa51 chore: bump version to 2026.0326.0 2026-03-26 23:23:00 +07:00
0xmrpeter
4d79ee1e01 feat: add build:dev script for local development
- Introduced a new script `build:dev` in package.json to streamline local development by building the project and linking it with npm.
2026-03-26 23:20:51 +07:00
0xmrpeter
75d776f373 fix: rename root package to @openacp/cli, fix SDK imports
- Root package.json name: openacp → @openacp/cli (private, not published directly)
- SDK imports: 'openacp' → '@openacp/cli' (matches published name)
- SDK devDependencies: workspace:* resolves to @openacp/cli
- Consumers install @openacp/cli → SDK re-exports work correctly

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 23:08:25 +07:00
0xmrpeter
2129ad9528 feat(sdk): add type and base class re-exports
Add adapter-primitives and plugin type exports to the main package,
and create SDK index.ts that re-exports all plugin-facing types and
base classes from openacp.

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