jackwener/maka-agent
refactor(runtime): extract computer-use wire codec and contract types from computer-use-tools.ts
Fermée
#1 405 ouverte le 23 juil. 2026
enhancementgood first issue
Métriques du dépôt
- Stars
- (1 étoile)
- Métriques de merge PR
- (Métriques PR en attente)
Description
Part of #1084 (second-pass sink-file and boundary governance). Scope re-verified against current main (computer-use-tools.ts, 1836 lines).
Scope
- Extract the wire-protocol codec into
computer-use-codec.ts, mirroring the existingopenai-computer-codec.tspattern: thecomputerParamszod discriminated union (~L230+),snapshotComputerParams(~L469),adaptToCuAction(~L496), andsummarize(~L590) if its call surface allows. - Move the contract types into
computer-use-types.tsso adapters stop importing the implementation file:CuRunResult,CuDispatchBackend,CuDispatchOutcome,CuDispatchEvidence,CuScreenshot,CuObservation,CuSemanticAction,CuRunContext, and the overlay hooks. buildComputerUseToolsstays incomputer-use-tools.ts.
Invariants
Same as #1084: behavior-neutral; keep @maka/runtime public exports stable via re-exports; no reverse imports from new leaf files; flat PR off main.
Verification
Typecheck/build + existing computer-use tests.