codeep 1.2.79 → 1.2.80
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/renderer/App.js +23 -14
- package/package.json +1 -1
package/dist/renderer/App.js
CHANGED
|
@@ -1500,7 +1500,7 @@ export class App {
|
|
|
1500
1500
|
const placeholder = this.isMultilineMode
|
|
1501
1501
|
? 'Multi-line mode Enter=newline · Esc=send'
|
|
1502
1502
|
: 'Message or /command';
|
|
1503
|
-
this.screen.write(promptSymbol.length, y, placeholder, fg.gray
|
|
1503
|
+
this.screen.write(promptSymbol.length, y, placeholder, fg.gray);
|
|
1504
1504
|
if (!hideCursor) {
|
|
1505
1505
|
this.screen.setCursor(promptSymbol.length, y);
|
|
1506
1506
|
this.screen.showCursor(true);
|
|
@@ -2067,25 +2067,34 @@ export class App {
|
|
|
2067
2067
|
}
|
|
2068
2068
|
const status = this.options.getStatus();
|
|
2069
2069
|
const stats = status.tokenStats;
|
|
2070
|
-
// Left
|
|
2070
|
+
// Left: model (gradient) · msg count · token count
|
|
2071
|
+
const modelName = status.model || '';
|
|
2071
2072
|
const msgCount = `${this.messages.length} msg`;
|
|
2072
2073
|
const tokenStr = stats && stats.totalTokens > 0
|
|
2073
2074
|
? `${stats.totalTokens < 1000 ? stats.totalTokens : (stats.totalTokens / 1000).toFixed(1) + 'K'} tok`
|
|
2074
2075
|
: '';
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2076
|
+
let leftX = 1;
|
|
2077
|
+
if (modelName) {
|
|
2078
|
+
this.screen.write(leftX, y, gradientText(modelName, GRADIENT_STOPS));
|
|
2079
|
+
leftX += modelName.length + 2;
|
|
2080
|
+
this.screen.write(leftX - 1, y, '·', fg.gray);
|
|
2081
|
+
leftX += 1;
|
|
2082
|
+
}
|
|
2083
|
+
this.screen.write(leftX, y, msgCount, fg.gray);
|
|
2084
|
+
leftX += msgCount.length;
|
|
2085
|
+
if (tokenStr) {
|
|
2086
|
+
this.screen.write(leftX, y, ' · ', fg.gray);
|
|
2087
|
+
this.screen.write(leftX + 3, y, tokenStr, fg.gray);
|
|
2088
|
+
}
|
|
2089
|
+
// Right: context-sensitive hints
|
|
2090
|
+
let rightText;
|
|
2085
2091
|
if (this.isStreaming || this.isLoading) {
|
|
2086
|
-
|
|
2087
|
-
|
|
2092
|
+
rightText = 'Esc to stop ';
|
|
2093
|
+
}
|
|
2094
|
+
else {
|
|
2095
|
+
rightText = '/help · ↑↓ history ';
|
|
2088
2096
|
}
|
|
2097
|
+
this.screen.write(width - rightText.length, y, rightText, fg.gray);
|
|
2089
2098
|
}
|
|
2090
2099
|
/**
|
|
2091
2100
|
* Get visible messages (including streaming)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.80",
|
|
4
4
|
"description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|