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
340b7bdc34
feat(scaffold): add CLAUDE.md and PLUGIN_GUIDE.md to plugin template
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 10:41:56 +07:00
0xmrpeter
e7f925b055
feat(cli): support community npm install, @version syntax, and compatibility check
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 10:37:29 +07:00
0xmrpeter
0898fe6e37
docs: add plugin registry submission guide to GitBook
...
- contributing.md: full step-by-step guide for publishing to registry
- getting-started-plugin.md: brief mention with link after npm publish step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 10:03:27 +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
0xmrpeter
5061676cc4
docs: add usage plugin extraction implementation plan
2026-03-27 02:26:11 +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
63bee61daa
fix: update outdated docs + add system command tests
...
- Fix adapter-reference.md and building-adapters.md (AdapterFactory → plugin pattern)
- Fix contributing.md (src/adapters/ → src/plugins/)
- Fix for-contributors.md (plugin-manager → PluginRegistry)
- Update configuration.md for per-plugin settings
- Update environment-variables.md for plugin-level env vars
- Add system command handler tests
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 22:14:52 +07:00
0xmrpeter
4121840b84
docs: add plugin dev tooling guides (getting started, SDK reference, dev mode)
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 21:07:56 +07:00
0xmrpeter
98b3127509
docs: fix plugin dev tooling plan — address review issues
...
- Add Step 0 to export adapter primitives from main package (Critical #1 )
- Add missing types: IChannelAdapter, PermissionOption, AgentCommand (Critical #2-3)
- Add Task 1b: unloadPlugin() method for LifecycleManager (Important #4-5)
- Replace globalThis with startServer({ devPlugin }) options (Suggestion #10 )
- Fix testing.ts barrel to only export available files (Suggestion #9 )
- Fix CLI routing note to read actual router file (Important #7 )
- Fix chokidar/fs.watch confusion (Suggestion #12 )
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 20:37:14 +07:00
0xmrpeter
ce8ee13f0d
docs: add plugin dev tooling implementation plan
...
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>
2026-03-26 20:31:11 +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
301d1c0b3c
docs: add architecture documentation for microkernel plugin system
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 19:52:41 +07:00
0xmrpeter
27dc3276ee
docs: fix command system plan — address review issues
...
- 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>
2026-03-26 19:13:44 +07:00
0xmrpeter
bdf9f7483f
docs: add command system implementation plan
...
8 tasks: types, CommandRegistry, system commands, plugin commands,
boot flow wiring, Telegram dispatch + renderers, Discord dispatch,
integration verification.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 19:08: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
9c37b82798
docs: add Plan B for codebase consolidation (decouple core + simplify main.ts)
...
7 tasks: convert plugin imports to import type, decouple
message-transformer, move speech hot-reload to plugin, lazy-load
validators, simplify main.ts, clean up re-exports.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 17:35:47 +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
0xmrpeter
4987004376
docs: add plugin setup workflow implementation plan
...
10 tasks covering SettingsManager, PluginRegistry, TerminalIO,
InstallContext, LifecycleManager migration support, CLI commands,
and integration tests. TDD approach throughout.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 15:48:55 +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
6a056ad7e7
docs: add Phase 2b Part 3 source move plan — move code into src/plugins/
...
9 tasks: move security, notifications, file-service, context, speech,
tunnel, usage source code into their plugin directories. Each plugin
becomes self-contained.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 13:42:42 +07:00
0xmrpeter
5c456cf6b2
docs: add Phase 2b Part 2 built-in extraction plan (759 lines, 14 tasks)
...
Fixed all 5 blockers from review:
1. Task 0: fix pluginConfig resolution + expose core on PluginContext
2. Adapter plugins use ctx.core for OpenACPCore access
3. Notifications plugin uses ctx.core.adapters for live Map
4. Security plugin registers SecurityGuard directly (no wrapper mismatch)
5. Added Task 11 for plugin wrapper tests + boot integration test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 13:06:27 +07:00
0xmrpeter
d96b5578e2
docs: fix Phase 2b plan review issues (6 fixes)
...
1. Add config migration task (Task 12) with field-by-field mapping tests
2. Add checksum verification tests to PluginLoader (Task 6)
3. Expand PluginContext tests to cover all 9 permission types (Task 7)
4. Add function-level specificity to all Task 11 sub-tasks
5. Add session-manager.ts to Files to modify list
6. Clarify Task 13 relationship with existing plugins.ts
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 12:00:47 +07:00
0xmrpeter
ea228810de
docs: add Phase 2b Part 1 plugin infrastructure implementation plan
...
13 tasks: types, ServiceRegistry, MiddlewareChain, PluginStorage,
ErrorTracker, PluginLoader, PluginContext, LifecycleManager,
EventBus expansion, core wiring, 19 middleware hooks, CLI, integration test.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:55:48 +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
1835baab51
docs: microkernel lifecycle architecture proposal
...
Unified proposal merging Plugin API v2 (PR #63 ) with microkernel
architecture. Covers kernel extraction, built-in/community plugins,
service registry, dependency resolution, security model, and
implementation roadmap.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 10:00:53 +07:00
0xmrpeter
46942d0bc7
refactor(shared): remove deprecated message-dispatcher.ts
...
Replaced by MessagingAdapter.dispatchMessage() in Phase 1.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 09:10:58 +07:00
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
861d99f6cc
docs: update getting-started overview links to quick-start
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 23:59:13 +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
004a8ff1b1
docs: merge for-users and for-developers into single quick-start guide
...
OpenACP is self-hosted so the user and developer are the same person.
Consolidated into one unified quickstart page with a natural flow:
Install → Setup wizard → Start → Chat.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 23:54:05 +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
2fe63fbe81
docs: remove old scattered documentation (replaced by gitbook)
...
Deleted: setup-guide.md, slack-setup.md, refactoring-spec.md,
guide/ (10 files), specs/ (4 root files + phase1/ + features/)
Preserved: acp-guide.md, images/, superpowers/
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 18:04:18 +07:00
0xmrpeter
362459aa74
docs(gitbook): add cross-references and internal links across all pages
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 18:03:42 +07:00
0xmrpeter
7007ed3cec
docs(gitbook): write all 8 content sections — complete documentation
...
Sections written:
- Getting Started (what-is-openacp, for-users, for-developers, for-contributors)
- Platform Setup (Telegram, Discord, Slack)
- Using OpenACP (commands, sessions, agents, permissions, voice, files)
- Self-Hosting (installation, configuration, daemon, security, logging, updating)
- Features (tunnel, context-resume, usage, persistence, handoff, doctor, assistant)
- Extending (plugin-system, building-adapters, adapter-reference, contributing)
- API Reference (CLI commands, REST API, config schema, env vars)
- Troubleshooting (Telegram, Discord, Slack, agent issues, FAQ)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 18:00:11 +07:00
0xmrpeter
b834749a5e
docs(gitbook): scaffold directory structure, SUMMARY.md, and landing page
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 17:53:29 +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