mirror of
https://github.com/bitbaum/openclaw.git
synced 2026-12-04 06:07:29 +01:00
Extracts serialized plaintext tool-call parsing, scrubbing, stream normalization, and standalone promotion into the private internal @openclaw/tool-call-repair package. Provider wrappers and the embedded runner now share one repair path for standalone serialized tool calls, including adjacent text-block splits, while preserving exact argument bytes when already valid. The public plugin SDK payload module remains as the compatibility facade. Verification: - pnpm test src/plugin-sdk/provider-stream-shared.test.ts src/plugin-sdk/tool-payload.test.ts src/agents/embedded-agent-runner/run/attempt.tool-call-normalization.test.ts -- --reporter=verbose - env -u OPENCLAW_TESTBOX pnpm check:changed - PR CI: all reported checks green/skipped/neutral on ff0b3c0a5c1b4171ce7431a36b6e0d07bf5d43a2 Refs #86924 Co-authored-by: fuller-stack-dev <263060202+fuller-stack-dev@users.noreply.github.com>