Skip to content

v0.2.0 — Architecture Compliance Refactor

Choose a tag to compare

@dahai80 dahai80 released this 02 Aug 11:58
· 45 commits to main since this release
0f11be0

What Changed

Full architecture refactoring of fusion-plugins-ecosystem based on Claude Code Plugin ecosystem deep-dive.

Phase 0: Foundation rebuild

  • Frozen PluginManifest + PluginParam (immutable, hashable)
  • PluginState state machine (REGISTERED→LOADED→ENABLED→DISABLED/CRASHED/TIMEOUT)
  • schema.py — shared enums (PluginParamType, SandboxMode, MCPAnnotations)
  • config.py validation + observer pattern

Phase 1: MCP protocol stack

  • transport.py — StdioTransport, SSETransport, HTTPTransport
  • jsonrpc.py — MCPHandler with JSON-RPC 2.0
  • server.py — MCPServer + fusion-plugin-server CLI

Phase 2: Plugin sandbox

  • sandbox.py — PluginSandbox with process isolation
  • SandboxMode: INLINE / PROCESS
  • ResourceLimits + SandboxHealth

Phase 3: Claude Code Plugin adapters

  • skill_adapter.py, agent_adapter.py, plugin_bundle.py
  • .claude-plugin/ directory generation

Phase 4: Token metering + config enhancement

  • TokenMeter persistence, EcosystemConfig new fields

Phase 5: Desk Bridge cleanup

  • desk_context.py removed (merged into desk_runtime.py)

Phase 6: Test rebuild

  • 371 tests, all passing (was 222)
  • 12 end-to-end integration flows

Cross-project

  • to_dict() serialization for Swift/TS consumers
  • fusion-desk moved to optional [desk] dependency
  • CI workflow (pytest 3.11/3.12/3.13 + ruff lint + ruff format)
  • 8 upstream/downstream GitHub issues filed

Full Changelog: v0.1.0...v0.2.0