osagent 0.1.15 → 0.1.16
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 +61 -8
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -146108,7 +146108,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
|
|
|
146108
146108
|
};
|
|
146109
146109
|
}
|
|
146110
146110
|
async function createContentGenerator(config, gcConfig, sessionId2, isInitialAuth) {
|
|
146111
|
-
const version2 = "0.1.
|
|
146111
|
+
const version2 = "0.1.16";
|
|
146112
146112
|
const userAgent2 = `OSAgent/${version2} (${process.platform}; ${process.arch})`;
|
|
146113
146113
|
const baseHeaders = {
|
|
146114
146114
|
"User-Agent": userAgent2
|
|
@@ -294327,15 +294327,15 @@ var darkTheme = {
|
|
|
294327
294327
|
Foreground: "#ffffff",
|
|
294328
294328
|
LightBlue: "#00cc66",
|
|
294329
294329
|
AccentBlue: "#00cc66",
|
|
294330
|
-
AccentPurple: "#
|
|
294330
|
+
AccentPurple: "#aaaaaa",
|
|
294331
294331
|
AccentCyan: "#00cc66",
|
|
294332
294332
|
AccentGreen: "#00cc66",
|
|
294333
|
-
AccentYellow: "#
|
|
294333
|
+
AccentYellow: "#ffcc00",
|
|
294334
294334
|
AccentRed: "#ff4444",
|
|
294335
294335
|
DiffAdded: "#00cc66",
|
|
294336
294336
|
DiffRemoved: "#ff4444",
|
|
294337
|
-
Comment: "#
|
|
294338
|
-
Gray: "#
|
|
294337
|
+
Comment: "#888888",
|
|
294338
|
+
Gray: "#999999",
|
|
294339
294339
|
GradientColors: ["#00cc66", "#00aa55", "#008844"]
|
|
294340
294340
|
};
|
|
294341
294341
|
var ansiTheme = {
|
|
@@ -309690,7 +309690,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
309690
309690
|
// packages/cli/src/utils/version.ts
|
|
309691
309691
|
async function getCliVersion() {
|
|
309692
309692
|
const pkgJson = await getPackageJson();
|
|
309693
|
-
return "0.1.
|
|
309693
|
+
return "0.1.16";
|
|
309694
309694
|
}
|
|
309695
309695
|
__name(getCliVersion, "getCliVersion");
|
|
309696
309696
|
|
|
@@ -317113,6 +317113,56 @@ var AVAILABLE_MODELS_OSA = [
|
|
|
317113
317113
|
isVision: true
|
|
317114
317114
|
}
|
|
317115
317115
|
];
|
|
317116
|
+
var AVAILABLE_MODELS_OLLAMA_LOCAL = [
|
|
317117
|
+
{
|
|
317118
|
+
id: "qwen2.5-coder:32b",
|
|
317119
|
+
label: "qwen2.5-coder:32b",
|
|
317120
|
+
get description() {
|
|
317121
|
+
return t2("Qwen2.5-Coder 32B - Best local coding model (requires ~20GB VRAM)");
|
|
317122
|
+
},
|
|
317123
|
+
isLocal: true
|
|
317124
|
+
},
|
|
317125
|
+
{
|
|
317126
|
+
id: "qwen2.5-coder:14b",
|
|
317127
|
+
label: "qwen2.5-coder:14b",
|
|
317128
|
+
get description() {
|
|
317129
|
+
return t2("Qwen2.5-Coder 14B - Great local coding model (requires ~10GB VRAM)");
|
|
317130
|
+
},
|
|
317131
|
+
isLocal: true
|
|
317132
|
+
},
|
|
317133
|
+
{
|
|
317134
|
+
id: "qwen2.5-coder:7b",
|
|
317135
|
+
label: "qwen2.5-coder:7b",
|
|
317136
|
+
get description() {
|
|
317137
|
+
return t2("Qwen2.5-Coder 7B - Good local coding model (requires ~5GB VRAM)");
|
|
317138
|
+
},
|
|
317139
|
+
isLocal: true
|
|
317140
|
+
},
|
|
317141
|
+
{
|
|
317142
|
+
id: "codellama:34b",
|
|
317143
|
+
label: "codellama:34b",
|
|
317144
|
+
get description() {
|
|
317145
|
+
return t2("CodeLlama 34B - Meta coding model (requires ~20GB VRAM)");
|
|
317146
|
+
},
|
|
317147
|
+
isLocal: true
|
|
317148
|
+
},
|
|
317149
|
+
{
|
|
317150
|
+
id: "deepseek-coder-v2:16b",
|
|
317151
|
+
label: "deepseek-coder-v2:16b",
|
|
317152
|
+
get description() {
|
|
317153
|
+
return t2("DeepSeek Coder V2 16B - Efficient MoE coding model");
|
|
317154
|
+
},
|
|
317155
|
+
isLocal: true
|
|
317156
|
+
},
|
|
317157
|
+
{
|
|
317158
|
+
id: "llama3.2:latest",
|
|
317159
|
+
label: "llama3.2:latest",
|
|
317160
|
+
get description() {
|
|
317161
|
+
return t2("Llama 3.2 - General purpose model with coding capabilities");
|
|
317162
|
+
},
|
|
317163
|
+
isLocal: true
|
|
317164
|
+
}
|
|
317165
|
+
];
|
|
317116
317166
|
function getOpenAIAvailableModelFromEnv() {
|
|
317117
317167
|
const id = process.env["OPENAI_MODEL"]?.trim();
|
|
317118
317168
|
return id ? { id, label: id } : null;
|
|
@@ -317121,7 +317171,10 @@ __name(getOpenAIAvailableModelFromEnv, "getOpenAIAvailableModelFromEnv");
|
|
|
317121
317171
|
function getAvailableModelsForAuthType(authType) {
|
|
317122
317172
|
switch (authType) {
|
|
317123
317173
|
case AuthType2.OSA_OAUTH:
|
|
317174
|
+
case AuthType2.OLLAMA_CLOUD:
|
|
317124
317175
|
return AVAILABLE_MODELS_OSA;
|
|
317176
|
+
case AuthType2.OLLAMA_LOCAL:
|
|
317177
|
+
return AVAILABLE_MODELS_OLLAMA_LOCAL;
|
|
317125
317178
|
case AuthType2.USE_OPENAI: {
|
|
317126
317179
|
const openAIModel = getOpenAIAvailableModelFromEnv();
|
|
317127
317180
|
return openAIModel ? [openAIModel] : [];
|
|
@@ -360041,7 +360094,7 @@ async function checkForUpdates() {
|
|
|
360041
360094
|
latestUpdateInfo
|
|
360042
360095
|
);
|
|
360043
360096
|
if (bestUpdate && import_semver3.default.gt(bestUpdate.latest, currentVersion)) {
|
|
360044
|
-
const message2 = `
|
|
360097
|
+
const message2 = `Update available! ${currentVersion} \u2192 ${bestUpdate.latest} | Run /doctor update or: npm i -g osagent@latest`;
|
|
360045
360098
|
return {
|
|
360046
360099
|
message: message2,
|
|
360047
360100
|
update: { ...bestUpdate, current: currentVersion }
|
|
@@ -360050,7 +360103,7 @@ async function checkForUpdates() {
|
|
|
360050
360103
|
} else {
|
|
360051
360104
|
const updateInfo = await createNotifier("latest").fetchInfo();
|
|
360052
360105
|
if (updateInfo && import_semver3.default.gt(updateInfo.latest, currentVersion)) {
|
|
360053
|
-
const message2 = `
|
|
360106
|
+
const message2 = `Update available! ${currentVersion} \u2192 ${updateInfo.latest} | Run /doctor update or: npm i -g osagent@latest`;
|
|
360054
360107
|
return {
|
|
360055
360108
|
message: message2,
|
|
360056
360109
|
update: { ...updateInfo, current: currentVersion }
|