@runtypelabs/cli 2.10.6 → 2.10.8
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.js +8 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -24177,7 +24177,7 @@ var INITIAL_STATE = {
|
|
|
24177
24177
|
};
|
|
24178
24178
|
var MAX_RAW_EVENTS = 15e3;
|
|
24179
24179
|
var TOOL_PREVIEW_FIELD_LIMIT = 2;
|
|
24180
|
-
var TOOL_PREVIEW_VALUE_MAX_CHARS =
|
|
24180
|
+
var TOOL_PREVIEW_VALUE_MAX_CHARS = 96;
|
|
24181
24181
|
var TOOL_PREVIEW_MAX_CHARS = 120;
|
|
24182
24182
|
var HEAVY_PREVIEW_KEYS = /* @__PURE__ */ new Set([
|
|
24183
24183
|
"content",
|
|
@@ -26620,16 +26620,17 @@ function createSandboxInstructions(provider) {
|
|
|
26620
26620
|
"--- Deploy with Preview (Cloudflare Sandbox) ---",
|
|
26621
26621
|
"You also have `deploy_sandbox` to deploy a persistent web server and get a live preview URL.",
|
|
26622
26622
|
"Call shape:",
|
|
26623
|
-
'{ "code": "...", "files": { "public/index.html": "..." }, "packageJson": "{\\"dependencies\\": {\\"hono\\": \\"^4.0.0\\"}}", "language": "typescript", "port":
|
|
26623
|
+
'{ "code": "...", "files": { "public/index.html": "..." }, "packageJson": "{\\"dependencies\\": {\\"hono\\": \\"^4.0.0\\"}}", "language": "typescript", "port": 8080 }',
|
|
26624
26624
|
"Deploy rules:",
|
|
26625
26625
|
"1. Use this when you need to run a web server (Hono, Express, FastAPI, etc.) that the user can visit in their browser.",
|
|
26626
26626
|
"2. The `code` is the main entry point file. The `packageJson` string provides npm dependencies.",
|
|
26627
|
-
|
|
26628
|
-
"4. Bind the server to the specified `port` (default
|
|
26627
|
+
'3. The `files` parameter writes additional files (path \u2192 content). Keys must be plain relative file paths. Parent directories are created automatically, so `{ "public/index.html": "..." }` just works.',
|
|
26628
|
+
"4. Bind the server to the specified `port` (default 8080). Port 3000 is reserved by the sandbox API control plane \u2014 pick 8080, 8000, 5173, or any other non-3000 port.",
|
|
26629
26629
|
"5. Each sandbox is a persistent container with snapshot-backed warm starts.",
|
|
26630
26630
|
"6. The returned `previewUrl` is a REAL live URL the user can open in their browser.",
|
|
26631
26631
|
"7. The sandbox persists for 2 hours after the last activity, then auto-cleans up (state survives via snapshot).",
|
|
26632
|
-
"8. Prefer this over `run_sandbox_code` when building web apps, APIs, or anything with a UI."
|
|
26632
|
+
"8. Prefer this over `run_sandbox_code` when building web apps, APIs, or anything with a UI.",
|
|
26633
|
+
'9. On failure the response includes a `stage` field (e.g. "npm_install", "start_process") and captured stdout/stderr in `output` \u2014 use these to diagnose without re-running.'
|
|
26633
26634
|
].join("\n");
|
|
26634
26635
|
}
|
|
26635
26636
|
return [
|
|
@@ -26885,7 +26886,7 @@ function createDeployCfSandboxLocalTool(client, debugMode) {
|
|
|
26885
26886
|
},
|
|
26886
26887
|
port: {
|
|
26887
26888
|
type: "number",
|
|
26888
|
-
description: "Port the server listens on (default: 3000
|
|
26889
|
+
description: "Port the server listens on (default: 8080). Port 3000 is reserved by the sandbox API control plane and will be rejected \u2014 use 8080, 8000, 5173, or any other non-3000 port."
|
|
26889
26890
|
},
|
|
26890
26891
|
startCommand: {
|
|
26891
26892
|
type: "string",
|
|
@@ -26893,7 +26894,7 @@ function createDeployCfSandboxLocalTool(client, debugMode) {
|
|
|
26893
26894
|
},
|
|
26894
26895
|
files: {
|
|
26895
26896
|
type: "object",
|
|
26896
|
-
description: 'Additional files to write (path \u2192 content), e.g. { "public/index.html": "<html>..." }. Keys must be plain file paths. Use this for multi-file projects.',
|
|
26897
|
+
description: 'Additional files to write (path \u2192 content), e.g. { "public/index.html": "<html>..." }. Keys must be plain relative file paths; parent directories are created automatically. Use this for multi-file projects.',
|
|
26897
26898
|
additionalProperties: { type: "string" }
|
|
26898
26899
|
}
|
|
26899
26900
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.8",
|
|
4
4
|
"description": "Command-line interface for Runtype AI platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"micromatch": "^4.0.8",
|
|
24
24
|
"yaml": "^2.8.3",
|
|
25
25
|
"@runtypelabs/ink-components": "0.3.1",
|
|
26
|
-
"@runtypelabs/sdk": "1.15.
|
|
26
|
+
"@runtypelabs/sdk": "1.15.3",
|
|
27
27
|
"@runtypelabs/terminal-animations": "0.2.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|