openkitt 0.3.10 → 0.3.12
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/cli.js +23 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2694,6 +2694,9 @@ function getStoredLlm(config) {
|
|
|
2694
2694
|
}
|
|
2695
2695
|
return llm;
|
|
2696
2696
|
}
|
|
2697
|
+
function migrateModelId(model) {
|
|
2698
|
+
return MODEL_MIGRATIONS[model] ?? model;
|
|
2699
|
+
}
|
|
2697
2700
|
async function storeLlmCredentials(provider, model, apiKey) {
|
|
2698
2701
|
const validatedAt = new Date().toISOString();
|
|
2699
2702
|
const keychainAvailable = await isKeychainAvailable();
|
|
@@ -2855,9 +2858,13 @@ async function getLlmConfig() {
|
|
|
2855
2858
|
if (!llm) {
|
|
2856
2859
|
return null;
|
|
2857
2860
|
}
|
|
2861
|
+
const migratedModel = migrateModelId(llm.model);
|
|
2862
|
+
if (migratedModel !== llm.model) {
|
|
2863
|
+
writeConfig({ ...config, llm: { ...llm, model: migratedModel } });
|
|
2864
|
+
}
|
|
2858
2865
|
return {
|
|
2859
2866
|
provider: llm.provider,
|
|
2860
|
-
model:
|
|
2867
|
+
model: migratedModel,
|
|
2861
2868
|
validatedAt: llm.validatedAt,
|
|
2862
2869
|
authType: llm.authType ?? "api-key"
|
|
2863
2870
|
};
|
|
@@ -2897,12 +2904,22 @@ async function isLlmConfigured() {
|
|
|
2897
2904
|
const apiKey = await getLlmApiKey();
|
|
2898
2905
|
return apiKey !== null;
|
|
2899
2906
|
}
|
|
2900
|
-
var CONFIG_DIR, CONFIG_FILE, KEYCHAIN_API_KEY = "llm-api-key", DIR_MODE = 448, FILE_MODE = 384, COPILOT_TOKEN_URL = "https://api.github.com/copilot_internal/v2/token";
|
|
2907
|
+
var CONFIG_DIR, CONFIG_FILE, KEYCHAIN_API_KEY = "llm-api-key", DIR_MODE = 448, FILE_MODE = 384, MODEL_MIGRATIONS, COPILOT_TOKEN_URL = "https://api.github.com/copilot_internal/v2/token";
|
|
2901
2908
|
var init_config = __esm(() => {
|
|
2902
2909
|
init_encryption();
|
|
2903
2910
|
init_keychain();
|
|
2904
2911
|
CONFIG_DIR = join3(homedir(), ".kitt");
|
|
2905
2912
|
CONFIG_FILE = join3(CONFIG_DIR, "config.json");
|
|
2913
|
+
MODEL_MIGRATIONS = {
|
|
2914
|
+
"claude-sonnet-4-20250514": "claude-sonnet-4-5",
|
|
2915
|
+
"claude-opus-4-20250514": "claude-opus-4-5",
|
|
2916
|
+
"claude-haiku-4-20250514": "claude-3-5-haiku-20241022",
|
|
2917
|
+
"gpt-4o": "gpt-4.1",
|
|
2918
|
+
"o4-mini": "gpt-4.1",
|
|
2919
|
+
"claude-sonnet-4-5": "claude-sonnet-4.5",
|
|
2920
|
+
"claude-haiku-4-5": "claude-haiku-4.5",
|
|
2921
|
+
"claude-opus-4-5": "claude-opus-4.5"
|
|
2922
|
+
};
|
|
2906
2923
|
});
|
|
2907
2924
|
|
|
2908
2925
|
// node_modules/@anthropic-ai/sdk/internal/tslib.mjs
|
|
@@ -265164,10 +265181,10 @@ var MODEL_OPTIONS = {
|
|
|
265164
265181
|
]
|
|
265165
265182
|
};
|
|
265166
265183
|
var COPILOT_MODEL_OPTIONS = [
|
|
265167
|
-
{ value: "claude-sonnet-4
|
|
265184
|
+
{ value: "claude-sonnet-4.5", label: "claude-sonnet-4.5 (recommended — Claude via Copilot)" },
|
|
265168
265185
|
{ value: "claude-sonnet-4", label: "claude-sonnet-4 (Claude Sonnet 4 via Copilot)" },
|
|
265169
|
-
{ value: "claude-haiku-4
|
|
265170
|
-
{ value: "claude-opus-4
|
|
265186
|
+
{ value: "claude-haiku-4.5", label: "claude-haiku-4.5 (fast & cheap — Claude via Copilot)" },
|
|
265187
|
+
{ value: "claude-opus-4.5", label: "claude-opus-4.5 (most capable — Claude via Copilot)" },
|
|
265171
265188
|
{ value: "gpt-4.1", label: "gpt-4.1 (GPT-4.1 via Copilot)" },
|
|
265172
265189
|
{ value: "gemini-2.5-pro", label: "gemini-2.5-pro (Gemini 2.5 Pro via Copilot)" }
|
|
265173
265190
|
];
|
|
@@ -266080,7 +266097,7 @@ async function helpCommand(_context, _args) {
|
|
|
266080
266097
|
// package.json
|
|
266081
266098
|
var package_default = {
|
|
266082
266099
|
name: "openkitt",
|
|
266083
|
-
version: "0.3.
|
|
266100
|
+
version: "0.3.12",
|
|
266084
266101
|
description: "AI-powered monorepo scaffolding CLI",
|
|
266085
266102
|
keywords: [
|
|
266086
266103
|
"cli",
|