13 Commits

Author SHA1 Message Date
0xmrpeter
ba6dced3ca 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:48:19 +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
36470765e0 refactor: remove usage plugin and related functionality
- Deleted the usage plugin and its associated tests, including usage tracking and budget management.
- Removed references to usage-related methods and types from core components.
- Updated session handling to emit usage events via the event bus instead of directly interacting with the usage store.
- Adjusted tests to reflect the removal of usage tracking and ensure proper event emission.
2026-03-27 09:59:16 +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
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
e6de94347e feat: setup dual-package publish for @openacp/cli + @openacp/plugin-sdk
- SDK peerDependencies: @openacp/cli (not workspace name)
- build-publish.ts builds and prepares both packages
- GitHub Actions publishes both on tag push
- SDK version synced with CLI version
- Template string deps excluded from build verification

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 23:03:57 +07:00
0xmrpeter
e136f7359f feat(sdk): add createTestInstallContext + mockServices testing utilities
createTestInstallContext provides auto-answering terminal prompts and
in-memory settings for testing plugin install/configure/uninstall flows.
mockServices provides factory functions for all service interfaces with
sensible defaults and override support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 20:48:49 +07:00
0xmrpeter
0305a45580 feat(sdk): add createTestContext testing utility
Provides an in-memory PluginContext for unit-testing plugins with
tracking of registered services, commands, middleware, and emitted
events. Includes executeCommand() helper for dispatching commands.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 20:47:14 +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
ce42534eca chore: setup monorepo with pnpm workspace for @openacp/plugin-sdk
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 20:44:21 +07:00