@runtypelabs/cli 2.7.0 → 2.7.1
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 +181 -2
- package/package.json +3 -3
- package/dist/index.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -10906,7 +10906,8 @@ var require_builtin_tools_registry = __commonJS({
|
|
|
10906
10906
|
TEXT_TO_SPEECH: "text_to_speech",
|
|
10907
10907
|
VOICE_PROCESSING: "voice_processing",
|
|
10908
10908
|
THIRD_PARTY_API: "third_party_api",
|
|
10909
|
-
ARTIFACT: "artifact"
|
|
10909
|
+
ARTIFACT: "artifact",
|
|
10910
|
+
DATA_MANAGEMENT: "data_management"
|
|
10910
10911
|
};
|
|
10911
10912
|
exports.BuiltInToolIdPrefix = {
|
|
10912
10913
|
BUILTIN: "builtin",
|
|
@@ -11439,6 +11440,170 @@ var require_builtin_tools_registry = __commonJS({
|
|
|
11439
11440
|
},
|
|
11440
11441
|
executionHint: "platform",
|
|
11441
11442
|
hidden: true
|
|
11443
|
+
},
|
|
11444
|
+
// Record Management Tools — CRUD operations on Runtype records
|
|
11445
|
+
{
|
|
11446
|
+
id: "runtype_record_upsert",
|
|
11447
|
+
name: "Upsert Record",
|
|
11448
|
+
description: "Create or update a Runtype record with structured metadata. Records are identified by type and name. If a record with the same type and name already exists, it will be updated based on the merge strategy.",
|
|
11449
|
+
category: exports.BuiltInToolCategory.DATA_MANAGEMENT,
|
|
11450
|
+
providers: [exports.BuiltInToolProvider.MULTI],
|
|
11451
|
+
parametersSchema: {
|
|
11452
|
+
type: "object",
|
|
11453
|
+
properties: {
|
|
11454
|
+
type: {
|
|
11455
|
+
type: "string",
|
|
11456
|
+
description: 'Record type category (e.g., "customer", "order", "note", "task")'
|
|
11457
|
+
},
|
|
11458
|
+
name: {
|
|
11459
|
+
type: "string",
|
|
11460
|
+
description: "Unique name for this record within its type"
|
|
11461
|
+
},
|
|
11462
|
+
metadata: {
|
|
11463
|
+
type: "object",
|
|
11464
|
+
description: "JSON object containing the record data"
|
|
11465
|
+
},
|
|
11466
|
+
mergeStrategy: {
|
|
11467
|
+
type: "string",
|
|
11468
|
+
description: 'How to handle existing data when updating: "merge" (shallow merge, new keys override) or "replace" (completely replace metadata)',
|
|
11469
|
+
enum: ["merge", "replace"],
|
|
11470
|
+
default: "merge"
|
|
11471
|
+
}
|
|
11472
|
+
},
|
|
11473
|
+
required: ["type", "name", "metadata"]
|
|
11474
|
+
},
|
|
11475
|
+
executionHint: "platform",
|
|
11476
|
+
requiresApiKey: false,
|
|
11477
|
+
platformKeySupport: false
|
|
11478
|
+
},
|
|
11479
|
+
{
|
|
11480
|
+
id: "runtype_record_batch_upsert",
|
|
11481
|
+
name: "Batch Upsert Records",
|
|
11482
|
+
description: "Create or update multiple Runtype records at once in a single transaction. Each record is identified by type and name. Maximum 100 records per call.",
|
|
11483
|
+
category: exports.BuiltInToolCategory.DATA_MANAGEMENT,
|
|
11484
|
+
providers: [exports.BuiltInToolProvider.MULTI],
|
|
11485
|
+
parametersSchema: {
|
|
11486
|
+
type: "object",
|
|
11487
|
+
properties: {
|
|
11488
|
+
records: {
|
|
11489
|
+
type: "array",
|
|
11490
|
+
description: "Array of records to upsert (max 100)",
|
|
11491
|
+
items: {
|
|
11492
|
+
type: "object",
|
|
11493
|
+
properties: {
|
|
11494
|
+
type: {
|
|
11495
|
+
type: "string",
|
|
11496
|
+
description: "Record type category"
|
|
11497
|
+
},
|
|
11498
|
+
name: {
|
|
11499
|
+
type: "string",
|
|
11500
|
+
description: "Unique name within this type"
|
|
11501
|
+
},
|
|
11502
|
+
metadata: {
|
|
11503
|
+
type: "object",
|
|
11504
|
+
description: "JSON object containing the record data"
|
|
11505
|
+
}
|
|
11506
|
+
},
|
|
11507
|
+
required: ["type", "name", "metadata"]
|
|
11508
|
+
}
|
|
11509
|
+
},
|
|
11510
|
+
mergeStrategy: {
|
|
11511
|
+
type: "string",
|
|
11512
|
+
description: 'How to handle existing data: "merge" or "replace". Applies to all records.',
|
|
11513
|
+
enum: ["merge", "replace"],
|
|
11514
|
+
default: "merge"
|
|
11515
|
+
}
|
|
11516
|
+
},
|
|
11517
|
+
required: ["records"]
|
|
11518
|
+
},
|
|
11519
|
+
executionHint: "platform",
|
|
11520
|
+
requiresApiKey: false,
|
|
11521
|
+
platformKeySupport: false
|
|
11522
|
+
},
|
|
11523
|
+
{
|
|
11524
|
+
id: "runtype_record_get",
|
|
11525
|
+
name: "Get Record",
|
|
11526
|
+
description: "Retrieve a single Runtype record by its type and name. Returns the full record including metadata, or null if not found.",
|
|
11527
|
+
category: exports.BuiltInToolCategory.DATA_MANAGEMENT,
|
|
11528
|
+
providers: [exports.BuiltInToolProvider.MULTI],
|
|
11529
|
+
parametersSchema: {
|
|
11530
|
+
type: "object",
|
|
11531
|
+
properties: {
|
|
11532
|
+
type: {
|
|
11533
|
+
type: "string",
|
|
11534
|
+
description: "Record type to look up"
|
|
11535
|
+
},
|
|
11536
|
+
name: {
|
|
11537
|
+
type: "string",
|
|
11538
|
+
description: "Record name to look up"
|
|
11539
|
+
}
|
|
11540
|
+
},
|
|
11541
|
+
required: ["type", "name"]
|
|
11542
|
+
},
|
|
11543
|
+
executionHint: "platform",
|
|
11544
|
+
requiresApiKey: false,
|
|
11545
|
+
platformKeySupport: false
|
|
11546
|
+
},
|
|
11547
|
+
{
|
|
11548
|
+
id: "runtype_record_list",
|
|
11549
|
+
name: "List Records",
|
|
11550
|
+
description: "List and search Runtype records with optional filtering by type and text search. Returns paginated results.",
|
|
11551
|
+
category: exports.BuiltInToolCategory.DATA_MANAGEMENT,
|
|
11552
|
+
providers: [exports.BuiltInToolProvider.MULTI],
|
|
11553
|
+
parametersSchema: {
|
|
11554
|
+
type: "object",
|
|
11555
|
+
properties: {
|
|
11556
|
+
type: {
|
|
11557
|
+
type: "string",
|
|
11558
|
+
description: "Filter by record type (optional)"
|
|
11559
|
+
},
|
|
11560
|
+
search: {
|
|
11561
|
+
type: "string",
|
|
11562
|
+
description: "Text search across record names (optional, case-insensitive)"
|
|
11563
|
+
},
|
|
11564
|
+
limit: {
|
|
11565
|
+
type: "number",
|
|
11566
|
+
description: "Maximum number of records to return (1-50, default 20)",
|
|
11567
|
+
minimum: 1,
|
|
11568
|
+
maximum: 50,
|
|
11569
|
+
default: 20
|
|
11570
|
+
},
|
|
11571
|
+
offset: {
|
|
11572
|
+
type: "number",
|
|
11573
|
+
description: "Number of records to skip for pagination (default 0)",
|
|
11574
|
+
minimum: 0,
|
|
11575
|
+
default: 0
|
|
11576
|
+
}
|
|
11577
|
+
},
|
|
11578
|
+
required: []
|
|
11579
|
+
},
|
|
11580
|
+
executionHint: "platform",
|
|
11581
|
+
requiresApiKey: false,
|
|
11582
|
+
platformKeySupport: false
|
|
11583
|
+
},
|
|
11584
|
+
{
|
|
11585
|
+
id: "runtype_record_delete",
|
|
11586
|
+
name: "Delete Record",
|
|
11587
|
+
description: "Delete a Runtype record by its type and name. Returns whether the record was found and deleted.",
|
|
11588
|
+
category: exports.BuiltInToolCategory.DATA_MANAGEMENT,
|
|
11589
|
+
providers: [exports.BuiltInToolProvider.MULTI],
|
|
11590
|
+
parametersSchema: {
|
|
11591
|
+
type: "object",
|
|
11592
|
+
properties: {
|
|
11593
|
+
type: {
|
|
11594
|
+
type: "string",
|
|
11595
|
+
description: "Record type of the record to delete"
|
|
11596
|
+
},
|
|
11597
|
+
name: {
|
|
11598
|
+
type: "string",
|
|
11599
|
+
description: "Name of the record to delete"
|
|
11600
|
+
}
|
|
11601
|
+
},
|
|
11602
|
+
required: ["type", "name"]
|
|
11603
|
+
},
|
|
11604
|
+
executionHint: "platform",
|
|
11605
|
+
requiresApiKey: false,
|
|
11606
|
+
platformKeySupport: false
|
|
11442
11607
|
}
|
|
11443
11608
|
];
|
|
11444
11609
|
exports.BUILTIN_TOOLS_REGISTRY = [
|
|
@@ -11655,6 +11820,7 @@ var require_generated_model_routing = __commonJS({
|
|
|
11655
11820
|
"glm-4.7-flashx": ["vercel"],
|
|
11656
11821
|
"glm-5": ["vercel"],
|
|
11657
11822
|
"glm-5-turbo": ["vercel"],
|
|
11823
|
+
"glm-5v-turbo": ["vercel"],
|
|
11658
11824
|
"gpt-3-5-turbo": ["vercel"],
|
|
11659
11825
|
"gpt-3-5-turbo-instruct": ["vercel"],
|
|
11660
11826
|
"gpt-3.5-turbo": ["openai", "vercel"],
|
|
@@ -12117,6 +12283,7 @@ var require_generated_model_routing = __commonJS({
|
|
|
12117
12283
|
"glm-4-7-flashx": ["vercel"],
|
|
12118
12284
|
"glm-5": ["vercel"],
|
|
12119
12285
|
"glm-5-turbo": ["vercel"],
|
|
12286
|
+
"glm-5v-turbo": ["vercel"],
|
|
12120
12287
|
"gpt-3-5-turbo": ["openai", "vercel"],
|
|
12121
12288
|
"gpt-3-5-turbo-0125": ["openai"],
|
|
12122
12289
|
"gpt-3-5-turbo-0125-batch": ["openai"],
|
|
@@ -12917,6 +13084,9 @@ var require_generated_model_routing = __commonJS({
|
|
|
12917
13084
|
"glm-5-turbo": {
|
|
12918
13085
|
"vercel": "zai/glm-5-turbo"
|
|
12919
13086
|
},
|
|
13087
|
+
"glm-5v-turbo": {
|
|
13088
|
+
"vercel": "zai/glm-5v-turbo"
|
|
13089
|
+
},
|
|
12920
13090
|
"gpt-3-5-turbo": {
|
|
12921
13091
|
"openai": "gpt-3.5-turbo",
|
|
12922
13092
|
"vercel": "openai/gpt-3-5-turbo"
|
|
@@ -16433,6 +16603,16 @@ authCommand.command("status").description("Show authentication status").option("
|
|
|
16433
16603
|
const { waitUntilExit } = render(React.createElement(App));
|
|
16434
16604
|
await waitUntilExit();
|
|
16435
16605
|
});
|
|
16606
|
+
authCommand.command("export-key").description("Print the stored API key to stdout (for use in scripts and .env files)").action(async () => {
|
|
16607
|
+
const store = new CredentialStore();
|
|
16608
|
+
const apiKey = await store.getApiKey();
|
|
16609
|
+
if (!apiKey) {
|
|
16610
|
+
console.error("Not authenticated. Run `runtype auth login` first.");
|
|
16611
|
+
process.exit(1);
|
|
16612
|
+
return;
|
|
16613
|
+
}
|
|
16614
|
+
process.stdout.write(apiKey);
|
|
16615
|
+
});
|
|
16436
16616
|
authCommand.command("logout").description("Remove stored credentials").option("--tty", "Force TTY mode").option("--no-tty", "Force non-TTY mode").action(async (options) => {
|
|
16437
16617
|
const store = new CredentialStore();
|
|
16438
16618
|
if (!isTTY(options)) {
|
|
@@ -33315,4 +33495,3 @@ async function handleNoCommand() {
|
|
|
33315
33495
|
}
|
|
33316
33496
|
}
|
|
33317
33497
|
}
|
|
33318
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "Command-line interface for Runtype AI platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"uuid": "^9.0.1",
|
|
23
23
|
"micromatch": "^4.0.8",
|
|
24
24
|
"yaml": "^2.8.3",
|
|
25
|
-
"@runtypelabs/
|
|
26
|
-
"@runtypelabs/
|
|
25
|
+
"@runtypelabs/sdk": "1.13.1",
|
|
26
|
+
"@runtypelabs/ink-components": "0.3.1",
|
|
27
27
|
"@runtypelabs/terminal-animations": "0.2.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|