715 Commits

Author SHA1 Message Date
0xmrpeter
7629308a47 refactor: centralize path constants and use async fs
- Extract OPENACP_DIR, PLUGINS_DATA_DIR, REGISTRY_PATH to config.ts
  instead of duplicating across main.ts, default.ts, onboard.ts
- Use fs/promises.readFile instead of sync readFileSync in importFromDir

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 18:16:44 +07:00
dylan
0e1d6fa34b fix: resolve ESM-only npm plugins by reading package.json exports
createRequire cannot resolve packages that only define ESM exports
(no "require" condition). Instead, read the package's package.json
to find the entry point (exports["."].import > main > index.js)
and import by file URL.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 512775b194fb
2026-03-27 17:53:58 +07:00
dylan
aa7433dab5 fix: resolve npm plugins from plugins dir instead of project root
import(packageName) resolves from the project root, not from the
~/.openacp/plugins/node_modules where npm packages are actually
installed. Use createRequire + pathToFileURL to resolve from the
correct directory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: e3f8576e9f51
2026-03-27 17:53:58 +07:00
dylan
76ce259c61 fix: pass settingsManager and pluginRegistry to setup wizard from CLI commands
cmdDefault and cmdOnboard called runSetup() without the required
settingsManager/pluginRegistry opts, causing "Plugin system not
initialized" error on first-run setup. Now both paths create these
dependencies before invoking the wizard, matching main.ts behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 4cb5e64819c9
2026-03-27 17:53:58 +07:00
dylan
f2de50fe89 merge: sync with upstream redesign/microkernel-plugin-architecture
Resolves conflicts in plugin-sdk exports and core index files.
Upstream extracted Discord to standalone package and refined SDK exports.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 385aad6258f7
2026-03-27 17:53:19 +07:00
0xmrpeter
b5ebcc6038 refactor(sdk): prefer export type for core classes used only as type annotations
OpenACPCore, Session, SessionManager, CommandRegistry are only imported
as types by external plugins — no need for runtime value exports.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
v2026.0327.3
2026-03-27 16:59:39 +07:00
0xmrpeter
a09d8296ba feat(sdk): export all types and values needed by external adapter plugins
Add missing exports: PlanEntry, DisplayVerbosity, Attachment, OpenACPCore,
Session, SessionManager, CommandRegistry, IRenderer, MessagingAdapterConfig,
RenderedMessage, ToolCallMeta, ToolUpdateMeta, ViewerLinks, InstallProgress,
log, createChildLogger, PRODUCT_GUIDE, DoctorEngine, DoctorReport, PendingFix.

Add new SDK sub-path exports:
- @openacp/plugin-sdk/config (DoctorEngine, config registry utils)
- @openacp/plugin-sdk/formatting (STATUS_ICONS, KIND_ICONS, format utils)
- @openacp/plugin-sdk/testing (runAdapterConformanceTests)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 16:58:51 +07:00
0xmrpeter
fea82adeeb chore: bump version to 2026.0327.2
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
v2026.0327.2
2026-03-27 16:24:29 +07:00
0xmrpeter
f1a34c51a9 refactor(plugin-sdk): reduce main barrel surface area
- Change OpenACPCore, Session, SessionManager, CommandRegistry to
  type-only exports (plugins consume, not instantiate)
- Stop re-exporting formatting/config values from main barrel — plugins
  should import from sub-paths (@openacp/plugin-sdk/formatting, /config)
- Keep type re-exports from sub-paths in main barrel for convenience

Main barrel: ~25 symbols (down from ~50+)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 16:23:21 +07:00
dylan
7567900204 Merge branch 'redesign/microkernel-plugin-architecture' of github.com:dylan-112/OpenACP into redesign/microkernel-plugin-architecture
# Conflicts:
#	src/core/config/config-editor.ts
#	src/core/plugin/plugin-installer.ts
#	src/core/setup/wizard.ts
2026-03-27 16:12:56 +07:00
dylan
3d7fa20426 fix: replace execSync with async installNpmPlugin utility
Extract shared plugin install logic into plugin-installer.ts using
promisify(exec) to avoid blocking the event loop during npm install.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 09c3d8b93ec9
2026-03-27 16:10:38 +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
b32c6c8def 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>
2026-03-27 16:04:08 +07:00
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
e61f5c84ad 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
2026-03-27 15:35:17 +07:00
dylan
fd52db846d 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
2026-03-27 15:25:14 +07:00
dylan
27b9a96251 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
2026-03-27 15:18:52 +07:00
dylan
5e18fa194f Merge branch 'redesign/microkernel-plugin-architecture' of https://github.com/Open-ACP/OpenACP into redesign/microkernel-plugin-architecture
# Conflicts:
#	src/plugins/discord/assistant.ts
2026-03-27 15:11:46 +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-112
2ae5eda944
fix(api): wire --channel flag in CLI and assistant prompts (#84)
* 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

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-27 15:09:08 +07:00
dylan
a62655d711 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
2026-03-27 14:12:45 +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
320772b1e4 Reapply "fix(plugin): resolve 3 bugs preventing dev plugins from loading"
This reverts commit 5707bf1c240f52baab277d21333cd7d92c191fac.

Entire-Checkpoint: bfaaa263a765
2026-03-27 13:54:18 +07:00
dylan
5707bf1c24 Revert "fix(plugin): resolve 3 bugs preventing dev plugins from loading"
This reverts commit 031464640560628dd8c093a4d8d30895c775ef98.

Entire-Checkpoint: 6ed1a02a0cb5
2026-03-27 13:53:48 +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
daa6f087dd docs: add OpenACP description and docs links to plugin template CLAUDE.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 12:32:01 +07:00
dylan
0314646405 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
2026-03-27 11:44:42 +07:00
lngdao
e430af2845
fix(tunnel): allow viewer-store paths in sibling directories (#79)
* fix(tunnel): allow viewer-store paths in sibling directories of workspace

Agent may spawn in a subdirectory but edit files in sibling directories
(e.g., workspace=/a/b/openacp, file=/a/b/OpenACP/src/foo.ts). The old
check only allowed files strictly inside workingDirectory, rejecting
valid sibling paths. Now allows files under the parent directory (1 level
up) with case-insensitive comparison on macOS.

* fix(tunnel): address PR #79 review — use realpathSync, remove scope expansion

- Replace parent-directory expansion with fs.realpathSync for canonical
  path resolution (fixes case-insensitive FS without widening access)
- Restore path.resolve(workingDirectory, filePath) for correct relative
  path handling
- Remove darwin-only platform check — realpathSync works cross-platform
- Add workspace + path.sep boundary check to prevent prefix collisions
- Add tests: sibling rejected, parent rejected, shallow workspace,
  relative paths, relative traversal, storeDiff sibling/relative paths
2026-03-27 11:38:04 +07:00
0xmrpeter
5e94c1a742 docs: update versioning format to YYYY.MDD.patch (no leading zeros)
Semver strips leading zeros, so 2026.0327.1 becomes 2026.327.1
on npm. Adopt this as the canonical format.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 11:04:16 +07:00
0xmrpeter
14d7d7f226 chore: bump version to 2026.0327.1
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
v2026.0327.1
2026-03-27 11:00:53 +07:00
0xmrpeter
034ea9ab1a docs: add English-only rule to CLAUDE.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 10:59:34 +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
d1ca0e36d1 docs: convert all content to English
- CLAUDE.md: fully rewritten in English, updated project layout
- integrate.ts: remove non-English text from trigger examples
- assistant.ts: translate example text to English

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 10:51:43 +07:00
dylan
0f9b2203d0 feat: remove built-in Discord plugin (now available as @openacp/plugin-discord)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-27 10:50:00 +07:00
0xmrpeter
34b9390b83 docs: add plugin template sync rule to CLAUDE.md
When plugin API/architecture changes, plugin template files
(especially claude-md.ts and plugin-guide.ts) must be updated
to reflect current API.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 10:49:04 +07:00
0xmrpeter
463992b180 rename: templates/ → plugin-template/ for clarity
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 10:48:06 +07:00
0xmrpeter
9de2cec7fb refactor(scaffold): extract template generators to src/cli/templates/
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 10:46:52 +07:00
dylan
969c4e6898 fix: restore original version format YYYY.MMDD.patch
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-27 10:42:46 +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
dylan
31bb536859 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>
2026-03-27 10:41:32 +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
dylan
da0674d1e8 fix(plugin): add @openacp/plugin-discord migration alias for backward compat
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Entire-Checkpoint: a9db7beb2975
2026-03-27 10:24:14 +07:00
dylan
68680bcbeb feat(plugin-sdk): export all symbols needed by adapter plugins
Entire-Checkpoint: a1ed33612eb6
2026-03-27 10:23:18 +07:00
dylan
b0701415aa 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
2026-03-27 10:22:03 +07:00
dylan
40732d068d 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
2026-03-27 10:18:39 +07:00
0xmrpeter
2bdccd25a4 revert(ci): remove direct registry push, use PR-based approach instead
Plugin registry updates should go through PR → validate → auto-merge,
same flow as community plugins. Each plugin repo handles its own
registry PR via CI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 10:13:45 +07:00
0xmrpeter
b356772f3a feat(ci): auto-update plugin registry on release
After publishing to npm, CI clones plugin-registry repo,
updates version in all built-in plugin entries, rebuilds
registry.json + README, and pushes. Requires REGISTRY_PAT secret.

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