@runtypelabs/cli 2.6.0 → 2.6.2
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 +42 -13
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11797,6 +11797,7 @@ var require_generated_model_routing = __commonJS({
|
|
|
11797
11797
|
"grok-vision-beta": ["xai"],
|
|
11798
11798
|
"intellect-3": ["vercel"],
|
|
11799
11799
|
"kat-coder-pro-v1": ["vercel"],
|
|
11800
|
+
"kat-coder-pro-v2": ["vercel"],
|
|
11800
11801
|
"kimi-k2": ["vercel"],
|
|
11801
11802
|
"kimi-k2-0905": ["vercel"],
|
|
11802
11803
|
"kimi-k2-thinking": ["vercel"],
|
|
@@ -11877,6 +11878,7 @@ var require_generated_model_routing = __commonJS({
|
|
|
11877
11878
|
"morph-v3-large": ["vercel"],
|
|
11878
11879
|
"MythoMax-L2-13b": ["togetherai"],
|
|
11879
11880
|
"nemotron-3-nano-30b-a3b": ["vercel"],
|
|
11881
|
+
"nemotron-3-super-120b-a12b": ["vercel"],
|
|
11880
11882
|
"nemotron-nano-12b-v2-vl": ["vercel"],
|
|
11881
11883
|
"nemotron-nano-9b-v2": ["vercel"],
|
|
11882
11884
|
"NexusRaven-V2-13B": ["togetherai"],
|
|
@@ -12323,6 +12325,7 @@ var require_generated_model_routing = __commonJS({
|
|
|
12323
12325
|
"morph-v3-large": ["vercel"],
|
|
12324
12326
|
"mythomax-l2-13b": ["togetherai"],
|
|
12325
12327
|
"nemotron-3-nano-30b-a3b": ["vercel"],
|
|
12328
|
+
"nemotron-3-super-120b-a12b": ["vercel"],
|
|
12326
12329
|
"nemotron-nano-12b-v2-vl": ["vercel"],
|
|
12327
12330
|
"nemotron-nano-9b": ["vercel"],
|
|
12328
12331
|
"nexusraven-v2-13b": ["togetherai"],
|
|
@@ -13533,11 +13536,14 @@ var require_generated_model_routing = __commonJS({
|
|
|
13533
13536
|
"vercel": "prime-intellect/intellect-3"
|
|
13534
13537
|
},
|
|
13535
13538
|
"kat-coder-pro": {
|
|
13536
|
-
"vercel": "kwaipilot/kat-coder-pro-
|
|
13539
|
+
"vercel": "kwaipilot/kat-coder-pro-v2"
|
|
13537
13540
|
},
|
|
13538
13541
|
"kat-coder-pro-v1": {
|
|
13539
13542
|
"vercel": "kwaipilot/kat-coder-pro-v1"
|
|
13540
13543
|
},
|
|
13544
|
+
"kat-coder-pro-v2": {
|
|
13545
|
+
"vercel": "kwaipilot/kat-coder-pro-v2"
|
|
13546
|
+
},
|
|
13541
13547
|
"kimi-k2": {
|
|
13542
13548
|
"vercel": "moonshotai/kimi-k2-thinking"
|
|
13543
13549
|
},
|
|
@@ -13889,6 +13895,9 @@ var require_generated_model_routing = __commonJS({
|
|
|
13889
13895
|
"nemotron-3-nano-30b-a3b": {
|
|
13890
13896
|
"vercel": "nvidia/nemotron-3-nano-30b-a3b"
|
|
13891
13897
|
},
|
|
13898
|
+
"nemotron-3-super-120b-a12b": {
|
|
13899
|
+
"vercel": "nvidia/nemotron-3-super-120b-a12b"
|
|
13900
|
+
},
|
|
13892
13901
|
"nemotron-nano-12b-v2-vl": {
|
|
13893
13902
|
"vercel": "nvidia/nemotron-nano-12b-v2-vl"
|
|
13894
13903
|
},
|
|
@@ -14746,6 +14755,13 @@ var require_provider_routing = __commonJS({
|
|
|
14746
14755
|
],
|
|
14747
14756
|
fallback: ["google"]
|
|
14748
14757
|
},
|
|
14758
|
+
// Gemini 3.1 Flash-Lite - Vercel AI Gateway (3.1 generation fast text)
|
|
14759
|
+
"gemini-3-1-flash-lite": {
|
|
14760
|
+
providers: [
|
|
14761
|
+
{ provider: "vercel", weight: 100 }
|
|
14762
|
+
],
|
|
14763
|
+
fallback: []
|
|
14764
|
+
},
|
|
14749
14765
|
// Gemini 3 Pro Image - Route through Vercel AI Gateway only
|
|
14750
14766
|
// Note: No Google fallback - this image model is only available via Vercel gateway
|
|
14751
14767
|
"gemini-3-pro-image": {
|
|
@@ -14754,6 +14770,13 @@ var require_provider_routing = __commonJS({
|
|
|
14754
14770
|
],
|
|
14755
14771
|
fallback: []
|
|
14756
14772
|
},
|
|
14773
|
+
// Gemini 3.1 Flash Image - Vercel AI Gateway only
|
|
14774
|
+
"gemini-3-1-flash-image": {
|
|
14775
|
+
providers: [
|
|
14776
|
+
{ provider: "vercel", weight: 100 }
|
|
14777
|
+
],
|
|
14778
|
+
fallback: []
|
|
14779
|
+
},
|
|
14757
14780
|
// Gemini 3 Pro Preview - Deprecated March 9, 2026. Aliased to gemini-3.1-pro in router.
|
|
14758
14781
|
"gemini-3-pro-preview": {
|
|
14759
14782
|
providers: [
|
|
@@ -14887,7 +14910,9 @@ var require_provider_routing = __commonJS({
|
|
|
14887
14910
|
"gemini-2.5-flash": "Gemini 2.5 Flash",
|
|
14888
14911
|
"gemini-2.5-flash-image": "Gemini 2.5 Flash Image",
|
|
14889
14912
|
"gemini-3-flash": "Gemini 3 Flash",
|
|
14913
|
+
"gemini-3-1-flash-lite": "Gemini 3.1 Flash-Lite",
|
|
14890
14914
|
"gemini-3-pro-image": "Gemini 3 Pro Image",
|
|
14915
|
+
"gemini-3-1-flash-image": "Gemini 3.1 Flash Image",
|
|
14891
14916
|
"gemini-3-pro-preview": "Gemini 3 Pro Preview",
|
|
14892
14917
|
"gemini-3.1-pro": "Gemini 3.1 Pro",
|
|
14893
14918
|
"grok-4": "Grok 4",
|
|
@@ -22262,7 +22287,7 @@ var DEFAULT_MODELS = [
|
|
|
22262
22287
|
// Google
|
|
22263
22288
|
{ label: "Gemini 3.1 Pro", value: "gemini-3.1-pro", group: "Google" },
|
|
22264
22289
|
{ label: "Gemini 3 Pro Image", value: "gemini-3-pro-image", group: "Google" },
|
|
22265
|
-
{ label: "Gemini 3 Flash", value: "gemini-3-flash", group: "Google" },
|
|
22290
|
+
{ label: "Gemini 3.1 Flash-Lite", value: "gemini-3-1-flash-lite", group: "Google" },
|
|
22266
22291
|
{ label: "Gemini 2.5 Pro", value: "gemini-2.5-pro", group: "Google" },
|
|
22267
22292
|
{ label: "Gemini 2.5 Flash", value: "gemini-2.5-flash", group: "Google" },
|
|
22268
22293
|
{ label: "Gemini 2.5 Flash Image", value: "gemini-2.5-flash-image", group: "Google" },
|
|
@@ -31687,8 +31712,7 @@ import { Command as Command17 } from "commander";
|
|
|
31687
31712
|
import chalk23 from "chalk";
|
|
31688
31713
|
import readline3 from "readline";
|
|
31689
31714
|
import open5 from "open";
|
|
31690
|
-
import {
|
|
31691
|
-
import { promisify } from "util";
|
|
31715
|
+
import { execFileSync } from "child_process";
|
|
31692
31716
|
|
|
31693
31717
|
// src/lib/persona-init.ts
|
|
31694
31718
|
init_credential_store();
|
|
@@ -31826,7 +31850,11 @@ async function runPersonaInit(options) {
|
|
|
31826
31850
|
const client = new ApiClient(options.apiKey, options.apiUrl);
|
|
31827
31851
|
const agent = await client.post("/agents", {
|
|
31828
31852
|
name: options.agentName,
|
|
31829
|
-
description: options.agentDescription
|
|
31853
|
+
description: options.agentDescription || "A Persona test agent",
|
|
31854
|
+
config: {
|
|
31855
|
+
model: "qwen3.5-35b-a3b",
|
|
31856
|
+
systemPrompt: "You are a helpful assistant."
|
|
31857
|
+
}
|
|
31830
31858
|
});
|
|
31831
31859
|
const tokenBody = {
|
|
31832
31860
|
name: options.tokenName,
|
|
@@ -31867,7 +31895,6 @@ async function runPersonaInit(options) {
|
|
|
31867
31895
|
}
|
|
31868
31896
|
|
|
31869
31897
|
// src/commands/persona.ts
|
|
31870
|
-
var execFile = promisify(execFileCallback);
|
|
31871
31898
|
var FORMAT_CYCLE = [
|
|
31872
31899
|
"script-installer",
|
|
31873
31900
|
"react",
|
|
@@ -31897,19 +31924,19 @@ async function promptConfirm2(rl, message, defaultYes = false) {
|
|
|
31897
31924
|
if (t === "") return defaultYes;
|
|
31898
31925
|
return t === "y" || t === "yes";
|
|
31899
31926
|
}
|
|
31900
|
-
|
|
31927
|
+
function copyToClipboard2(text) {
|
|
31901
31928
|
if (process.platform === "darwin") {
|
|
31902
|
-
|
|
31929
|
+
execFileSync("pbcopy", [], { input: text });
|
|
31903
31930
|
return;
|
|
31904
31931
|
}
|
|
31905
31932
|
if (process.platform === "win32") {
|
|
31906
|
-
|
|
31933
|
+
execFileSync("clip", [], { shell: true, input: text });
|
|
31907
31934
|
return;
|
|
31908
31935
|
}
|
|
31909
31936
|
try {
|
|
31910
|
-
|
|
31937
|
+
execFileSync("xclip", ["-selection", "clipboard"], { input: text });
|
|
31911
31938
|
} catch {
|
|
31912
|
-
|
|
31939
|
+
execFileSync("wl-copy", [], { input: text });
|
|
31913
31940
|
}
|
|
31914
31941
|
}
|
|
31915
31942
|
function isProbablyLocalDev(origins) {
|
|
@@ -31954,9 +31981,11 @@ Dashboard: ${initial.dashboardUrl}`));
|
|
|
31954
31981
|
if (process.stdin.isTTY) {
|
|
31955
31982
|
process.stdin.setRawMode(true);
|
|
31956
31983
|
}
|
|
31984
|
+
process.stdin.resume();
|
|
31957
31985
|
const cleanup = () => {
|
|
31958
31986
|
process.stdin.setRawMode(false);
|
|
31959
31987
|
process.stdin.removeAllListeners("keypress");
|
|
31988
|
+
process.stdin.pause();
|
|
31960
31989
|
};
|
|
31961
31990
|
await new Promise((resolve8) => {
|
|
31962
31991
|
const onKeypress = async (_str, key) => {
|
|
@@ -31974,7 +32003,7 @@ Dashboard: ${initial.dashboardUrl}`));
|
|
|
31974
32003
|
}
|
|
31975
32004
|
if (name === "c") {
|
|
31976
32005
|
try {
|
|
31977
|
-
|
|
32006
|
+
copyToClipboard2(currentCode);
|
|
31978
32007
|
console.log(chalk23.green("Snippet copied to clipboard."));
|
|
31979
32008
|
} catch {
|
|
31980
32009
|
console.log(chalk23.red("Could not copy (install xclip/wl-copy on Linux, or use p)."));
|
|
@@ -32069,7 +32098,7 @@ personaCommand.command("init").description("Create agent + client token and outp
|
|
|
32069
32098
|
}
|
|
32070
32099
|
} else {
|
|
32071
32100
|
if (!agentName) {
|
|
32072
|
-
agentName = await promptLine(rl, "Agent name");
|
|
32101
|
+
agentName = await promptLine(rl, "Agent name", "Persona Test");
|
|
32073
32102
|
if (!agentName) {
|
|
32074
32103
|
console.error(chalk23.red("Agent name is required"));
|
|
32075
32104
|
process.exit(1);
|