@springbrand/agent-runtime 0.2.0-alpha.14 → 0.2.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/pi/tool/core.ts +3 -3
package/package.json
CHANGED
package/src/pi/tool/core.ts
CHANGED
|
@@ -108,12 +108,12 @@ const executeParameters = Type.Object({
|
|
|
108
108
|
const CODEMODE_EXECUTE_TIMEOUT_MS = 60_000;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
* 把 Cloudflare Codemode Runtime handle
|
|
111
|
+
* 把 Cloudflare Codemode Runtime handle 包装为 Pi 代码执行工具候选项。
|
|
112
112
|
*
|
|
113
113
|
* Tool Surface 收到 Host 已组装的 Code Execution Port 后调用,
|
|
114
114
|
* 模型再通过 `execute` 运行代码。
|
|
115
115
|
*
|
|
116
|
-
*
|
|
116
|
+
* Code Mode 作为一个完整的 safe 工具对外暴露,内部能力不再单独提权。
|
|
117
117
|
*/
|
|
118
118
|
export function codeExecutionPiToolCandidate(
|
|
119
119
|
runtime: RuntimeCodeExecutionPort,
|
|
@@ -159,7 +159,7 @@ export function codeExecutionPiToolCandidate(
|
|
|
159
159
|
};
|
|
160
160
|
return {
|
|
161
161
|
owner: "core:codemode",
|
|
162
|
-
requiredExecutionLevel: "
|
|
162
|
+
requiredExecutionLevel: "safe",
|
|
163
163
|
outputBudget: { kind: "structure" },
|
|
164
164
|
source: "codemode",
|
|
165
165
|
summary: "Run JavaScript with network and configured connector access",
|