Apply the accepted pre-release package, service, type, directory, and role renames as one repository-wide change.
15 lines
1.2 KiB
Markdown
15 lines
1.2 KiB
Markdown
# code-runtime/ — 代码执行能力家族
|
||
|
||
[English](README.md) | 中文
|
||
|
||
代码执行能力 seam(参见[能力 seam](../../.agents/notes/implemented/architecture/2026-06-13-capability-seams.md)):运行时 Service Definition,用于对宿主提供的异步绑定执行模型编写的程序,并捕获它打印和返回的内容;可替换的提供方;以及工具注册表的 [Code Mode](../core/tools/README.md) Consumer(`tools: { mode: code }`,即 `run_code` 工具和按所加载运行时 `language` 生成的 SDK)。设计见 [Code Mode Agent Note](../../.agents/notes/implemented/feature/2026-06-15-code-mode.md)。这些全是**产品**包。
|
||
|
||
| 包 | 职责 | ctx key |
|
||
|---|---|---|
|
||
| [`code-runtime/`](code-runtime/README.md) | Service Definition 与共享词汇 | `ctx.codeRuntime` |
|
||
| [`code-runtime-worker/`](code-runtime-worker-thread/README.md) | Worker 线程后端 | 注册 `ctx.codeRuntime` |
|
||
|
||
提供方在不改变Consumer的情况下注册该服务。子 README 负责语言、隔离和执行预算细节。
|
||
|
||
子系统参考——运行请求/结果、绑定命名空间、失败分类体系——见 [docs/subsystems/code-runtime.md](../../docs/subsystems/code-runtime.md)。
|