@runtypelabs/cli 2.10.5 → 2.10.7

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.
Files changed (2) hide show
  1. package/dist/index.js +51 -10
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -11062,7 +11062,7 @@ var require_builtin_tools_registry = __commonJS({
11062
11062
  modelCompatibility: [
11063
11063
  {
11064
11064
  provider: exports.BuiltInToolProvider.OPENAI,
11065
- models: ["gpt-4o", "gpt-4o-mini", "gpt-4-turbo", "gpt-5", "gpt-5-mini"]
11065
+ models: ["gpt-4o", "gpt-4o-mini", "gpt-5", "gpt-5-mini", "gpt-5.4", "gpt-5.4-mini"]
11066
11066
  // Models that support tool calling
11067
11067
  }
11068
11068
  ],
@@ -11111,7 +11111,7 @@ var require_builtin_tools_registry = __commonJS({
11111
11111
  modelCompatibility: [
11112
11112
  {
11113
11113
  provider: exports.BuiltInToolProvider.OPENAI,
11114
- models: ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini", "gpt-4-turbo", "gpt-5", "gpt-5-mini"]
11114
+ models: ["gpt-4o", "gpt-4o-mini", "gpt-5", "gpt-5-mini", "gpt-5.4", "gpt-5.4-mini"]
11115
11115
  }
11116
11116
  ],
11117
11117
  documentationUrl: "https://sdk.vercel.ai/providers/ai-sdk-providers/openai#web-search",
@@ -11145,7 +11145,7 @@ var require_builtin_tools_registry = __commonJS({
11145
11145
  modelCompatibility: [
11146
11146
  {
11147
11147
  provider: exports.BuiltInToolProvider.ANTHROPIC,
11148
- models: ["claude-opus-4", "claude-sonnet-4", "claude-3-5-sonnet", "claude-3-opus", "claude-opus-4-5", "claude-sonnet-4-5"]
11148
+ models: ["claude-opus-4", "claude-sonnet-4", "claude-opus-4-5", "claude-sonnet-4-5", "claude-opus-4-6", "claude-sonnet-4-6", "claude-haiku-4-5"]
11149
11149
  }
11150
11150
  ],
11151
11151
  documentationUrl: "https://sdk.vercel.ai/providers/ai-sdk-providers/anthropic#web-search",
@@ -11179,7 +11179,7 @@ var require_builtin_tools_registry = __commonJS({
11179
11179
  modelCompatibility: [
11180
11180
  {
11181
11181
  provider: exports.BuiltInToolProvider.ANTHROPIC,
11182
- models: ["claude-sonnet-4", "claude-3-5-sonnet", "claude-sonnet-4-5"]
11182
+ models: ["claude-sonnet-4", "claude-sonnet-4-5", "claude-sonnet-4-6"]
11183
11183
  }
11184
11184
  ],
11185
11185
  documentationUrl: "https://sdk.vercel.ai/providers/ai-sdk-providers/anthropic#web-fetch",
@@ -11283,7 +11283,7 @@ var require_builtin_tools_registry = __commonJS({
11283
11283
  modelCompatibility: [
11284
11284
  {
11285
11285
  provider: exports.BuiltInToolProvider.XAI,
11286
- models: ["grok-3", "grok-3-mini", "grok-4", "grok-4-fast"]
11286
+ models: ["grok-4", "grok-4-fast", "grok-4.1-fast"]
11287
11287
  }
11288
11288
  ],
11289
11289
  documentationUrl: "https://docs.x.ai/docs/guides/live-search",
@@ -11750,11 +11750,11 @@ var require_builtin_tools_registry = __commonJS({
11750
11750
  executionHint: "platform",
11751
11751
  hidden: true
11752
11752
  },
11753
- // Asset Storage — download and permanently host files
11753
+ // Asset Storage — mirror files onto Runtype's CDN from a URL or inline bytes
11754
11754
  {
11755
11755
  id: "store_asset",
11756
11756
  name: "Store Asset",
11757
- description: "Download a file from a URL and store it on Runtype's CDN. Returns a permanent URL (public or time-limited signed private). Use this when you need to pass an image or file URL to another service and the original URL might expire.",
11757
+ description: "Store a file on Runtype's CDN and get back a permanent URL (public) or time-limited signed URL (private). Two modes: (1) pass `url` to download from an HTTP(S) URL, or (2) pass base64-encoded `content` plus `contentType` to upload inline bytes directly \u2014 useful when running inside a sandboxed code-execution environment with restricted outbound network. Exactly one of `url` or `content` must be provided. Files are served as attachments (the URL downloads rather than rendering). To publish an HTML page that renders in the browser, use `publish_page` instead. 25 MB max.",
11758
11758
  category: exports.BuiltInToolCategory.FILE_OPERATIONS,
11759
11759
  providers: [exports.BuiltInToolProvider.MULTI],
11760
11760
  parametersSchema: {
@@ -11762,7 +11762,15 @@ var require_builtin_tools_registry = __commonJS({
11762
11762
  properties: {
11763
11763
  url: {
11764
11764
  type: "string",
11765
- description: "The URL of the file to download and store"
11765
+ description: "HTTP(S) URL of the file to download and store. Provide this OR `content`, not both."
11766
+ },
11767
+ content: {
11768
+ type: "string",
11769
+ description: 'Base64-encoded file bytes to store directly, without downloading. Provide this OR `url`, not both. Requires `contentType`. A leading data: URI prefix (e.g. "data:text/html;base64,") is stripped automatically if present.'
11770
+ },
11771
+ contentType: {
11772
+ type: "string",
11773
+ description: 'MIME type for inline content (required when `content` is supplied). Example: "text/html", "image/png", "application/pdf". Ignored when `url` is used.'
11766
11774
  },
11767
11775
  filename: {
11768
11776
  type: "string",
@@ -11774,7 +11782,40 @@ var require_builtin_tools_registry = __commonJS({
11774
11782
  description: 'Access control. "public" = anyone with the URL can access. "private" = returns a signed URL that expires (default 1 hour). Default: "public".'
11775
11783
  }
11776
11784
  },
11777
- required: ["url"]
11785
+ required: []
11786
+ },
11787
+ executionHint: "platform",
11788
+ platformKeySupport: true,
11789
+ requiresApiKey: false
11790
+ },
11791
+ // Publish Page — render HTML inline in the browser at a shareable URL
11792
+ {
11793
+ id: "publish_page",
11794
+ name: "Publish Page",
11795
+ description: "Publish an HTML page on Runtype's CDN and get back a shareable URL that renders the page inline in the browser. Two source modes: (1) pass `url` to download an HTML file from an HTTP(S) URL, or (2) pass base64-encoded `content` (defaults to `contentType: text/html`) to upload inline HTML directly \u2014 useful when running inside a sandboxed code-execution environment with restricted outbound network. Exactly one of `url` or `content` must be provided. Served inline from a `/preview/` path under a locked-down CSP that blocks scripts, network requests, and form submissions. Page URLs are public and expire after 7 days. Accepts only HTML content. 25 MB max. To host a non-HTML file, or HTML as a permanent downloadable file, use `store_asset` instead.",
11796
+ category: exports.BuiltInToolCategory.FILE_OPERATIONS,
11797
+ providers: [exports.BuiltInToolProvider.MULTI],
11798
+ parametersSchema: {
11799
+ type: "object",
11800
+ properties: {
11801
+ url: {
11802
+ type: "string",
11803
+ description: "HTTP(S) URL of an HTML file to download and publish. Provide this OR `content`, not both."
11804
+ },
11805
+ content: {
11806
+ type: "string",
11807
+ description: 'Base64-encoded HTML bytes to publish directly. Provide this OR `url`, not both. A leading data: URI prefix (e.g. "data:text/html;base64,") is stripped automatically if present.'
11808
+ },
11809
+ contentType: {
11810
+ type: "string",
11811
+ description: 'MIME type for inline content. Defaults to "text/html". Must be an HTML type \u2014 anything else is rejected. Ignored when `url` is used.'
11812
+ },
11813
+ filename: {
11814
+ type: "string",
11815
+ description: "Optional filename for the stored page"
11816
+ }
11817
+ },
11818
+ required: []
11778
11819
  },
11779
11820
  executionHint: "platform",
11780
11821
  platformKeySupport: true,
@@ -24136,7 +24177,7 @@ var INITIAL_STATE = {
24136
24177
  };
24137
24178
  var MAX_RAW_EVENTS = 15e3;
24138
24179
  var TOOL_PREVIEW_FIELD_LIMIT = 2;
24139
- var TOOL_PREVIEW_VALUE_MAX_CHARS = 48;
24180
+ var TOOL_PREVIEW_VALUE_MAX_CHARS = 96;
24140
24181
  var TOOL_PREVIEW_MAX_CHARS = 120;
24141
24182
  var HEAVY_PREVIEW_KEYS = /* @__PURE__ */ new Set([
24142
24183
  "content",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/cli",
3
- "version": "2.10.5",
3
+ "version": "2.10.7",
4
4
  "description": "Command-line interface for Runtype AI platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "yaml": "^2.8.3",
25
25
  "@runtypelabs/ink-components": "0.3.1",
26
26
  "@runtypelabs/terminal-animations": "0.2.0",
27
- "@runtypelabs/sdk": "1.15.1"
27
+ "@runtypelabs/sdk": "1.15.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/micromatch": "^4.0.9",