You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "testikun (via GitHub)" <gi...@apache.org> on 2026/09/04 07:28:17 UTC
Re: [I] refactor(runtime): decompose ai-sdk-backend.ts (4874 lines, 6 concerns) [maka]
testikun commented on issue #3909:
URL: https://github.com/apache/maka/issues/3909#issuecomment-5537201583
I would like to take the first bounded decomposition slice.
I will start with `tool-schema-builder.ts` only:
- move tool schema binding and provider-specific schema adaptations out of `ai-sdk-backend.ts`;
- preserve the current `BackendFactory` and public import surface;
- pass narrow dependencies into the extracted module so it does not depend back on the backend orchestrator;
- add characterization tests for the current tool-schema behavior, provider-specific lowering, and fail-closed cases;
- run the Runtime build, typecheck, focused backend tests, and cycle checks.
This first PR will be behavior-preserving and will not also move request capture, streaming projection, or image-overflow recovery.
中文摘要:我认领第一个可审查切片,只抽取 tool schema builder,保持行为和公共 API 不变,不一次性搬完整个大文件。
_Claimed with OpenAI Codex assistance on behalf of @testikun._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org