ispbills-icli 8.6.4 → 8.6.6
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/package.json +1 -1
- package/src/commands.js +1 -0
- package/src/tui/app.js +2 -2
- package/src/tui/components.js +15 -15
- package/src/tui/composer.js +2 -2
package/package.json
CHANGED
package/src/commands.js
CHANGED
|
@@ -118,6 +118,7 @@ export const SLASH_COMMANDS = [
|
|
|
118
118
|
// ── Help & Feedback ──
|
|
119
119
|
{ cmd: '/changelog', hint: '', desc: 'Show recent npm package releases', group: 'Help', local: true },
|
|
120
120
|
{ cmd: '/feedback', hint: '', desc: 'Show the feedback / bug-report URL', group: 'Help', local: true },
|
|
121
|
+
{ cmd: '/bug', hint: '', desc: 'Report a bug (alias for /feedback)', group: 'Help', local: true },
|
|
121
122
|
{ cmd: '/update', hint: '', desc: 'Update iCli to the latest version', group: 'Help', local: true },
|
|
122
123
|
{ cmd: '/downgrade', hint: 'VERSION', desc: 'Roll back to a specific CLI version', group: 'Help', local: true },
|
|
123
124
|
{ cmd: '/app', hint: '', desc: 'Launch the GitHub Copilot desktop app', group: 'Help', local: true },
|
package/src/tui/app.js
CHANGED
|
@@ -67,7 +67,7 @@ function approxTokens(messages) {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
const TOKEN_LIMIT = 100000;
|
|
70
|
-
const SESSION_SORTS = ['relevance', '
|
|
70
|
+
const SESSION_SORTS = ['relevance', 'created', 'name', 'last used'];
|
|
71
71
|
|
|
72
72
|
function sessionAutoName(messages = []) {
|
|
73
73
|
const firstUser = messages.find((m) => m?.role === 'user' && String(m.content || '').trim());
|
|
@@ -1822,7 +1822,7 @@ export function App({ cfg, display = {}, onExternal, onExit, initialQuestion, sh
|
|
|
1822
1822
|
<${Box} flexDirection="column" width=${cols}>
|
|
1823
1823
|
<${Static} key=${clearEpoch} items=${staticItems}>
|
|
1824
1824
|
${(it) => it.type === 'banner'
|
|
1825
|
-
? html`<${Box} key=${it.id} flexDirection="column" alignItems="center">
|
|
1825
|
+
? html`<${Box} key=${it.id} flexDirection="column" alignItems="center" width=${cols}>
|
|
1826
1826
|
<${Banner} cfg=${cfg} model=${model} width=${cols} compact=${compact} streamerMode=${streamerMode} />
|
|
1827
1827
|
<//>`
|
|
1828
1828
|
: renderItem(it)}
|
package/src/tui/components.js
CHANGED
|
@@ -70,20 +70,20 @@ function formatTs(ts) {
|
|
|
70
70
|
} catch {
|
|
71
71
|
return '';
|
|
72
72
|
}
|
|
73
|
+
}
|
|
73
74
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
75
|
+
function formatDate(ts) {
|
|
76
|
+
if (!ts) return '';
|
|
77
|
+
try {
|
|
78
|
+
return new Date(ts).toLocaleString([], {
|
|
79
|
+
year: 'numeric',
|
|
80
|
+
month: 'short',
|
|
81
|
+
day: '2-digit',
|
|
82
|
+
hour: '2-digit',
|
|
83
|
+
minute: '2-digit',
|
|
84
|
+
});
|
|
85
|
+
} catch {
|
|
86
|
+
return '';
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -187,9 +187,9 @@ export function Banner({ cfg = {}, model, width = 80, compact = false, streamerM
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
return html`
|
|
190
|
-
<${Box} flexDirection="column" marginBottom=${1} alignItems="center">
|
|
190
|
+
<${Box} flexDirection="column" marginBottom=${1} alignItems="center" width=${width}>
|
|
191
191
|
${wide
|
|
192
|
-
? html`<${Box} flexDirection="column" alignItems="center">
|
|
192
|
+
? html`<${Box} flexDirection="column" alignItems="center" width=${width}>
|
|
193
193
|
${LOGO.map((l, i) => html`<${Text} key=${'l' + i} color=${C.accent} bold>${l}<//>`)}
|
|
194
194
|
<${Text} color=${C.muted}>iCopilot ${dash()} IspBills network engineer in your terminal<//>
|
|
195
195
|
<//>`
|
package/src/tui/composer.js
CHANGED
|
@@ -463,7 +463,7 @@ export function Composer({
|
|
|
463
463
|
const empty = value.length === 0;
|
|
464
464
|
const sugTok = menuOpen && matches[sel] ? (slashMode ? matches[sel].cmd : matches[sel].tag) : '';
|
|
465
465
|
const ghost = sugTok && sugTok.startsWith(token) && cursor >= value.length ? sugTok.slice(token.length) : '';
|
|
466
|
-
const promptGlyph =
|
|
466
|
+
const promptGlyph = glyphs.prompt;
|
|
467
467
|
const promptColor = busy ? C.warning : C.success;
|
|
468
468
|
const ghostHint = busy ? 'Working…' : 'Enter @ to mention files or / for commands…';
|
|
469
469
|
const modePrefix = mode === 'plan'
|
|
@@ -514,7 +514,7 @@ export function Composer({
|
|
|
514
514
|
${empty
|
|
515
515
|
? html`<${Box} flexGrow=${1}>
|
|
516
516
|
<${Text} color="white" inverse> <//>
|
|
517
|
-
<${Text} color=${C.muted}> ${ghostHint}<//>
|
|
517
|
+
<${Text} color=${C.muted} italic> ${ghostHint}<//>
|
|
518
518
|
<//>`
|
|
519
519
|
: html`<${Box} flexGrow=${1}>
|
|
520
520
|
<${Text}>${before}<//><${Text} inverse>${at}<//><${Text}>${after}<//><${Text} color=${C.muted}>${ghost}<//>
|