Normalize missing sentence spaces in streamed droid deltas for chat and agent logs. - add targeted delta normalization for punctuation-to-sentence-start boundaries - apply normalization to both text and thinking streaming deltas, including cross-block fallback context - add regression tests covering repaired boundaries and non-regression cases (lowercase/property access/existing spaces) Files changed: plugins/fusion-plugin-droid-runtime/src/__tests__/event-bridge.test.ts | 118 +++++++++++++++++++++ plugins/fusion-plugin-droid-runtime/src/event-bridge.ts | 57 +++++++++- 2 files changed, 171 insertions(+), 4 deletions(-) Fusion-Task-Id: FN-5787 Fusion-Task-Lineage: 21a91f46-2269-4406-bce6-b19a57f445e0
Droid Runtime Plugin
First-class Droid runtime/provider plugin (@fusion-plugin-examples/droid-runtime).
Purpose
This package is the canonical home for Droid-specific runtime behavior, including:
- provider id
droid-cli - model discovery + normalization
- CLI subprocess streaming + session resume
- MCP tool bridge + thinking effort mapping
- probe contract via
probeDroidBinary
Runtime + Provider
- Runtime ID:
droid - Display name:
Droid Runtime - Provider surface preserved:
Factory AI — via Droid CLI(droid-cli)
Core implementation files live in src/:
runtime-adapter.tsprovider.tsprocess-manager.tsprobe.ts- prompt/tool/thinking/control helpers
Dashboard UI contribution surfaces
The plugin registers uiSlots for:
settings-provider-cardsettings-integration-cardonboarding-provider-cardonboarding-setup-helppost-onboarding-recommendation
Compatibility with @fusion/droid-cli
packages/droid-cli is now a thin compatibility shim. It keeps the historical pi-extension entrypoint, but delegates runtime/provider behavior to this plugin package.