feat(ptc): present provider execution guidance in logged program schema
This commit is contained in:
1 parent
c6b959783a
commit
2a08bf6ab9
17 files changed
+36
-15
No files matched your search
@@ -70,6 +70,8 @@ binding-global 与 error-class 名称是语言可移植的:必须匹配 `[A-Za
|
||||
|
||||
只读 `timeout` 描述符为支持逐次覆盖的提供方公开 `{ defaultMs, maxMs }`;`undefined` 表示消费方必须省略该字段。它报告呈现值,验证与截断仍由 `resolve` 负责。
|
||||
|
||||
`executionInstructions` 提供由运行时拥有的使用说明;不需要说明时返回空字符串。消费方可将其纳入程序呈现,无需根据语言或隔离描述符识别提供方;PTC 将它纳入已记录的 `run_code` schema。
|
||||
|
||||
`resolve(request)` 负责支持选项的验证与部署默认值。`run(spec)` 执行完整输入,并在清理后返回程序结果。语言和执行基底描述符指导呈现;`sandboxMode` 表示消费方能否传入已解析文件策略。描述符与程序成功结果都不能代替后端报告的强制能力事实。
|
||||
|
||||
穷尽式语义见[代码运行时子系统参考](../../../docs/subsystems/code-runtime.zh.md);确切签名见 [`src/index.ts`](src/index.ts)。
|
||||
|
||||
Reference in new issue
Block a user