deepseek-harness/packages/code-runtime
Chinesezjc e14bcfb08a refactor(tools): pin the two language tables to one union, and name python at the seam
`SDK_RENDERERS` and `RUN_CODE_FLAVORS` had to stay in step by review alone:
the `Object.hasOwn` guards catch drift only once a runtime reporting the
half-added language exists, which is the one case that cannot arise. Both
tables are now `satisfies`-checked against a shared `CodeSdkLanguage` union,
so a missing or extra entry fails `typecheck`. The declared `Record<string, …>`
type stays, since `CodeRuntime.language` is an unconstrained `string`.

The code-runtime seam's own README row and `CodeRuntime.language` JSDoc still
named `'typescript'` as the sole well-known value; both now name `'python'`
too and say only `'typescript'` has a published backend.
2026-08-05 23:25:42 +08:00
..
code-runtime refactor(tools): pin the two language tables to one union, and name python at the seam 2026-08-05 23:25:42 +08:00
code-runtime-worker docs: finish hierarchy rescan after rebase 2026-08-05 16:18:58 +08:00
README.i18n.yaml Merge remote-tracking branch 'origin/master' into feat/py-types-code-mode 2026-08-05 16:48:01 +08:00
README.md Merge remote-tracking branch 'origin/master' into feat/py-types-code-mode 2026-08-05 16:48:01 +08:00
README.zh.md Merge remote-tracking branch 'origin/master' into feat/py-types-code-mode 2026-08-05 16:48:01 +08:00

code-runtime/ — code-execution capability family

English | 中文

The code-execution capability seam (see capability seams): an abstract runtime interface for executing one model-written program against host-provided async bindings, capturing what it printed and returned. The consumer is the tool registry's Code Mode (tools: { mode: code } — the run_code tool and the SDK generated in the loaded runtime's language); design in the Code Mode Agent Note. Product packages.

Package Role ctx key
code-runtime/ Code-execution seam and shared vocabulary ctx.codeRuntime
code-runtime-worker/ Worker-thread backend registers ctx.codeRuntime

Backends register the seam without changing its consumer. The child READMEs own language, isolation, and execution-budget details.