From 03be4c2489c8aa8fa133a115101ceecd6a44ffde Mon Sep 17 00:00:00 2001 From: Daev Mithran Date: Sun, 5 Apr 2026 15:49:19 +0700 Subject: [PATCH] fix(plugin-sdk): export missing context-engine types (#61251) * fix(plugin-sdk): export missing context-engine types Signed-off-by: DaevMithran * build(plugin-sdk): refresh api baseline hash * docs(changelog): note context engine sdk exports --------- Signed-off-by: DaevMithran Co-authored-by: Vincent Koc --- CHANGELOG.md | 1 + docs/.generated/plugin-sdk-api-baseline.sha256 | 4 ++-- src/plugin-sdk/index.ts | 7 +++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 793fac7ab1a..6b7bb959e22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -132,6 +132,7 @@ Docs: https://docs.openclaw.ai - Windows/restart: fall back to the installed Startup-entry launcher when the scheduled task was never registered, so `/restart` can relaunch the gateway on Windows setups where `schtasks` install fell back during onboarding. (#58943) Thanks @imechZhangLY. - Exec/heartbeat: use the canonical `exec-event` wake reason for `notifyOnExit` so background exec completions still trigger follow-up turns when `HEARTBEAT.md` is empty or comments-only. (#41479) Thanks @rstar327. - Heartbeat: skip wake delivery when the target session lane is already busy so the pending event is retried instead of getting drained too early. (#40526) Thanks @lucky7323. +- Plugin SDK/context engines: export the missing context-engine result and subagent lifecycle types from `openclaw/plugin-sdk` so context engine plugins can type `ContextEngine` implementations without local workarounds. (#61251) Thanks @DaevMithran. ## 2026.4.2 diff --git a/docs/.generated/plugin-sdk-api-baseline.sha256 b/docs/.generated/plugin-sdk-api-baseline.sha256 index 66891156db1..556d39a8227 100644 --- a/docs/.generated/plugin-sdk-api-baseline.sha256 +++ b/docs/.generated/plugin-sdk-api-baseline.sha256 @@ -1,2 +1,2 @@ -dbd41e5bf7f4f1179d7069fb16a5fe3035064194b12213665312d44f072d3917 plugin-sdk-api-baseline.json -715e95912a2415507d7da07b7f93573e5686246dea0b58ae0d065b51f3241996 plugin-sdk-api-baseline.jsonl +2a53347c0f2e20ccda3c1f927170d40138396e62245d2e094875d373109af86b plugin-sdk-api-baseline.json +b8f7fc3591b80694cd1f36552005116a71bae96f1e89c4bf85aaf841550fe053 plugin-sdk-api-baseline.jsonl diff --git a/src/plugin-sdk/index.ts b/src/plugin-sdk/index.ts index ece2423d82d..110d9aea435 100644 --- a/src/plugin-sdk/index.ts +++ b/src/plugin-sdk/index.ts @@ -88,10 +88,17 @@ export type { WizardPrompter } from "../wizard/prompts.js"; export type { ContextEngineFactory } from "../context-engine/registry.js"; export type { DiagnosticEventPayload } from "../infra/diagnostic-events.js"; export type { + AssembleResult, + BootstrapResult, + CompactResult, ContextEngine, ContextEngineInfo, ContextEngineMaintenanceResult, ContextEngineRuntimeContext, + IngestBatchResult, + IngestResult, + SubagentEndReason, + SubagentSpawnPreparation, TranscriptRewriteReplacement, TranscriptRewriteRequest, TranscriptRewriteResult,