@runtypelabs/sdk 1.10.2 → 1.12.0
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/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4211,6 +4211,18 @@ var ToolsEndpoint = class {
|
|
|
4211
4211
|
async cleanupSandbox(sandboxId) {
|
|
4212
4212
|
return this.client.delete(`/tools/sandbox/${sandboxId}`);
|
|
4213
4213
|
}
|
|
4214
|
+
/**
|
|
4215
|
+
* Deploy code to a persistent Cloudflare Shell Dynamic Worker and get a preview URL
|
|
4216
|
+
*/
|
|
4217
|
+
async deployCfShell(data) {
|
|
4218
|
+
return this.client.post("/tools/sandbox/cf-shell/deploy", data);
|
|
4219
|
+
}
|
|
4220
|
+
/**
|
|
4221
|
+
* Cleanup a deployed Cloudflare Shell Dynamic Worker
|
|
4222
|
+
*/
|
|
4223
|
+
async cleanupCfShell(workerId) {
|
|
4224
|
+
return this.client.delete(`/tools/sandbox/cf-shell/${workerId}`);
|
|
4225
|
+
}
|
|
4214
4226
|
};
|
|
4215
4227
|
var EvalEndpoint = class {
|
|
4216
4228
|
constructor(client) {
|
|
@@ -6642,7 +6654,7 @@ Do NOT redo any of the above work.`
|
|
|
6642
6654
|
"Use write_file only if you want to save the final deliverable into the workspace."
|
|
6643
6655
|
] : ["Always use write_file to save your output so the user can run it immediately."]
|
|
6644
6656
|
].join("\n") : "";
|
|
6645
|
-
const builtinToolNames = builtinToolIds?.map((id) => id.replace(/^builtin:/, ""));
|
|
6657
|
+
const builtinToolNames = builtinToolIds?.map((id) => id.replace(/^(builtin|platform):/, ""));
|
|
6646
6658
|
const builtinToolsBlock = builtinToolNames?.length ? [
|
|
6647
6659
|
"",
|
|
6648
6660
|
"--- Built-in Tools ---",
|