@corbat-tech/coco 2.25.12 → 2.25.13
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/index.js +13 -2
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -53080,6 +53080,9 @@ function formatGitShort(ctx) {
|
|
|
53080
53080
|
const dirty = ctx.isDirty ? chalk.yellow(" \u25CF") : "";
|
|
53081
53081
|
return chalk.dim("\u{1F33F} ") + branch + dirty;
|
|
53082
53082
|
}
|
|
53083
|
+
|
|
53084
|
+
// src/cli/repl/status-bar.ts
|
|
53085
|
+
init_env();
|
|
53083
53086
|
init_full_access_mode();
|
|
53084
53087
|
function formatContextUsage(percent) {
|
|
53085
53088
|
const label = `ctx ${percent.toFixed(0)}%`;
|
|
@@ -53087,12 +53090,19 @@ function formatContextUsage(percent) {
|
|
|
53087
53090
|
if (percent >= 75) return chalk.yellow(label);
|
|
53088
53091
|
return chalk.dim(label);
|
|
53089
53092
|
}
|
|
53093
|
+
function getDisplayModel(config) {
|
|
53094
|
+
const model = config.provider.model?.trim();
|
|
53095
|
+
if (!model || ["default", "none", "null", "undefined"].includes(model.toLowerCase())) {
|
|
53096
|
+
return getDefaultModel(config.provider.type);
|
|
53097
|
+
}
|
|
53098
|
+
return model;
|
|
53099
|
+
}
|
|
53090
53100
|
function formatStatusBar(projectPath, config, gitCtx, contextUsagePercent) {
|
|
53091
53101
|
const parts = [];
|
|
53092
53102
|
const projectName = path39__default.basename(projectPath);
|
|
53093
53103
|
parts.push(chalk.dim("\u{1F4C1} ") + chalk.magenta(projectName));
|
|
53094
53104
|
const providerName = config.provider.type;
|
|
53095
|
-
const modelName = config
|
|
53105
|
+
const modelName = getDisplayModel(config);
|
|
53096
53106
|
parts.push(chalk.dim(`${providerName}/`) + chalk.cyan(modelName));
|
|
53097
53107
|
if (isQualityLoop()) {
|
|
53098
53108
|
parts.push(chalk.green("\u{1F504} quality loop"));
|
|
@@ -54208,7 +54218,8 @@ async function printWelcome(session, gitCtx, mcpManager) {
|
|
|
54208
54218
|
const parentPath = lastSep > 0 ? displayPath.slice(0, lastSep + 1) : "";
|
|
54209
54219
|
const projectName = lastSep > 0 ? displayPath.slice(lastSep + 1) : displayPath;
|
|
54210
54220
|
const providerName = session.config.provider.type;
|
|
54211
|
-
const
|
|
54221
|
+
const configuredModel = session.config.provider.model?.trim();
|
|
54222
|
+
const modelName = configuredModel && !["default", "none", "null", "undefined"].includes(configuredModel.toLowerCase()) ? configuredModel : getDefaultModel(session.config.provider.type);
|
|
54212
54223
|
const trustText = trustLevel === "full" ? "full" : trustLevel === "write" ? "write" : trustLevel === "read" ? "read" : "";
|
|
54213
54224
|
console.log();
|
|
54214
54225
|
console.log(chalk.dim(` \u{1F4C1} ${parentPath}`) + chalk.magenta.bold(projectName));
|