@runtypelabs/cli 2.11.4 → 2.11.6
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 +64 -13
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11320,13 +11320,69 @@ var require_builtin_tools_registry = __commonJS({
|
|
|
11320
11320
|
}
|
|
11321
11321
|
};
|
|
11322
11322
|
var CORE_BUILTIN_TOOLS_REGISTRY = [
|
|
11323
|
-
// OpenAI
|
|
11323
|
+
// OpenAI GPT Image 2 generation. Legacy `dalle` IDs resolve through aliases.
|
|
11324
|
+
{
|
|
11325
|
+
id: "gpt-image-2",
|
|
11326
|
+
name: "GPT Image 2",
|
|
11327
|
+
description: "Generate images from text descriptions using OpenAI GPT Image 2. Returns generated images that can be viewed or downloaded.",
|
|
11328
|
+
category: exports.BuiltInToolCategory.IMAGE_GENERATION,
|
|
11329
|
+
providers: [exports.BuiltInToolProvider.MULTI],
|
|
11330
|
+
parametersSchema: {
|
|
11331
|
+
type: "object",
|
|
11332
|
+
properties: {
|
|
11333
|
+
prompt: {
|
|
11334
|
+
type: "string",
|
|
11335
|
+
description: "A text description of the desired image(s) to generate",
|
|
11336
|
+
minLength: 1,
|
|
11337
|
+
maxLength: 32e3
|
|
11338
|
+
},
|
|
11339
|
+
size: {
|
|
11340
|
+
type: "string",
|
|
11341
|
+
description: "The size of the generated image. gpt-image-2 supports auto and custom WxH resolutions where both edges are multiples of 16, each edge is at most 3840px, aspect ratio is at most 3:1, and total pixels are between 655,360 and 8,294,400.",
|
|
11342
|
+
pattern: "^(auto|[1-9][0-9]{2,3}x[1-9][0-9]{2,3})$",
|
|
11343
|
+
default: "1024x1024"
|
|
11344
|
+
},
|
|
11345
|
+
quality: {
|
|
11346
|
+
type: "string",
|
|
11347
|
+
description: "The quality of the image. Defaults to low for fast generation (~10s). Use medium or high for complex scenes requiring more detail \u2014 these enable extended generation that can take 1-3+ minutes. Legacy DALL-E values standard and hd are accepted at execution time and mapped to medium/high.",
|
|
11348
|
+
enum: ["auto", "low", "medium", "high"],
|
|
11349
|
+
default: "low"
|
|
11350
|
+
},
|
|
11351
|
+
outputFormat: {
|
|
11352
|
+
type: "string",
|
|
11353
|
+
description: "Output image format for gpt-image-2",
|
|
11354
|
+
enum: ["png", "jpeg", "webp"],
|
|
11355
|
+
default: "png"
|
|
11356
|
+
},
|
|
11357
|
+
background: {
|
|
11358
|
+
type: "string",
|
|
11359
|
+
description: "Background behavior for gpt-image-2. Transparent backgrounds are not supported by gpt-image-2.",
|
|
11360
|
+
enum: ["auto", "opaque"],
|
|
11361
|
+
default: "auto"
|
|
11362
|
+
}
|
|
11363
|
+
},
|
|
11364
|
+
required: ["prompt"]
|
|
11365
|
+
},
|
|
11366
|
+
defaultConfig: {
|
|
11367
|
+
size: "1024x1024",
|
|
11368
|
+
quality: "low",
|
|
11369
|
+
outputFormat: "png",
|
|
11370
|
+
background: "auto"
|
|
11371
|
+
},
|
|
11372
|
+
documentationUrl: "https://platform.openai.com/docs/guides/image-generation",
|
|
11373
|
+
requiresApiKey: true,
|
|
11374
|
+
executionHint: "platform",
|
|
11375
|
+
platformKeySupport: true
|
|
11376
|
+
},
|
|
11377
|
+
// Legacy DALL-E compatibility entry. Hidden from discovery, but existing
|
|
11378
|
+
// saved configs using `builtin:dalle` keep the old tool name and schema while
|
|
11379
|
+
// the API silently routes execution to GPT Image 2.
|
|
11324
11380
|
{
|
|
11325
11381
|
id: "dalle",
|
|
11326
11382
|
name: "DALL-E Image Generation",
|
|
11327
|
-
description: "Generate images from text descriptions
|
|
11383
|
+
description: "Generate images from text descriptions. Returns generated images that can be viewed or downloaded.",
|
|
11328
11384
|
category: exports.BuiltInToolCategory.IMAGE_GENERATION,
|
|
11329
|
-
providers: [exports.BuiltInToolProvider.
|
|
11385
|
+
providers: [exports.BuiltInToolProvider.MULTI],
|
|
11330
11386
|
parametersSchema: {
|
|
11331
11387
|
type: "object",
|
|
11332
11388
|
properties: {
|
|
@@ -11350,7 +11406,7 @@ var require_builtin_tools_registry = __commonJS({
|
|
|
11350
11406
|
},
|
|
11351
11407
|
style: {
|
|
11352
11408
|
type: "string",
|
|
11353
|
-
description: "
|
|
11409
|
+
description: "Legacy DALL-E style setting. Accepted for compatibility and ignored by GPT Image 2.",
|
|
11354
11410
|
enum: ["vivid", "natural"],
|
|
11355
11411
|
default: "vivid"
|
|
11356
11412
|
}
|
|
@@ -11362,17 +11418,12 @@ var require_builtin_tools_registry = __commonJS({
|
|
|
11362
11418
|
quality: "standard",
|
|
11363
11419
|
style: "vivid"
|
|
11364
11420
|
},
|
|
11365
|
-
modelCompatibility: [
|
|
11366
|
-
{
|
|
11367
|
-
provider: exports.BuiltInToolProvider.OPENAI,
|
|
11368
|
-
models: ["gpt-4o", "gpt-4o-mini", "gpt-5", "gpt-5-mini", "gpt-5.4", "gpt-5.4-mini"]
|
|
11369
|
-
// Models that support tool calling
|
|
11370
|
-
}
|
|
11371
|
-
],
|
|
11372
11421
|
documentationUrl: "https://platform.openai.com/docs/guides/image-generation",
|
|
11373
11422
|
requiresApiKey: true,
|
|
11374
|
-
executionHint: "platform"
|
|
11375
|
-
|
|
11423
|
+
executionHint: "platform",
|
|
11424
|
+
platformKeySupport: true,
|
|
11425
|
+
hidden: true,
|
|
11426
|
+
deprecated: true
|
|
11376
11427
|
},
|
|
11377
11428
|
// OpenAI Web Search (native provider tool)
|
|
11378
11429
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.6",
|
|
4
4
|
"description": "Command-line interface for Runtype AI platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"micromatch": "^4.0.8",
|
|
23
23
|
"yaml": "^2.8.3",
|
|
24
24
|
"@runtypelabs/ink-components": "0.3.1",
|
|
25
|
-
"@runtypelabs/sdk": "1.
|
|
25
|
+
"@runtypelabs/sdk": "1.19.0",
|
|
26
26
|
"@runtypelabs/terminal-animations": "0.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|