ispbills-icli 8.7.9 → 8.7.10
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 +2 -2
- package/src/tui/app.js +1 -1
- package/src/tui/components.js +2 -2
- package/src/tui/run.js +2 -2
package/package.json
CHANGED
package/src/commands.js
CHANGED
|
@@ -121,9 +121,9 @@ export const SLASH_COMMANDS = [
|
|
|
121
121
|
{ cmd: '/bug', hint: '', desc: 'Report a bug (alias for /feedback)', group: 'Help', local: true },
|
|
122
122
|
{ cmd: '/update', hint: '', desc: 'Update iCli to the latest version', group: 'Help', local: true },
|
|
123
123
|
{ cmd: '/downgrade', hint: 'VERSION', desc: 'Roll back to a specific CLI version', group: 'Help', local: true },
|
|
124
|
-
{ cmd: '/app', hint: '', desc: 'Show instructions to open the
|
|
124
|
+
{ cmd: '/app', hint: '', desc: 'Show instructions to open the iCopilot web app', group: 'Help', local: true },
|
|
125
125
|
{ cmd: '/user', hint: '', desc: 'Manage GitHub user list', group: 'Help', local: true },
|
|
126
|
-
{ cmd: '/login', hint: '', desc: 'Log in to
|
|
126
|
+
{ cmd: '/login', hint: '', desc: 'Log in to iCopilot', group: 'Help', local: true },
|
|
127
127
|
{ cmd: '/whoami', hint: '', desc: 'Show current user info', group: 'Help', local: true },
|
|
128
128
|
{ cmd: '/clikit', hint: '[component]', desc: 'Preview CLI UI components', group: 'Help', local: true },
|
|
129
129
|
{ cmd: '/extensions', hint: '[manage|mode]', desc: 'Manage CLI extensions', group: 'Help', local: true },
|
package/src/tui/app.js
CHANGED
|
@@ -2139,7 +2139,7 @@ export function App({ cfg, display = {}, onExternal, onExit, initialQuestion, sh
|
|
|
2139
2139
|
const cwdMaxLen = Math.max(12, cols - footerRightEstLen - (branch ? branch.length + 6 : 0) - 4);
|
|
2140
2140
|
const cwd = shortenPath(process.cwd(), cwdMaxLen);
|
|
2141
2141
|
const footerLeft = busy
|
|
2142
|
-
? `${glyphs.
|
|
2142
|
+
? `${glyphs.arrow} Working\u2026`
|
|
2143
2143
|
: hint
|
|
2144
2144
|
? hint
|
|
2145
2145
|
: [cwd, branch ? `${glyphs.gitBranch}${branch}` : null].filter(Boolean).join(midDot());
|
package/src/tui/components.js
CHANGED
|
@@ -380,7 +380,7 @@ export function StatusLines({ lines = [], busy = false, navigable = false }) {
|
|
|
380
380
|
useEffect(() => { setSel(-1); setExpanded(new Set()); }, [lines.length]);
|
|
381
381
|
|
|
382
382
|
useInput((input, key) => {
|
|
383
|
-
if (!navigable) return;
|
|
383
|
+
if (!navigable || !key) return;
|
|
384
384
|
if (key.upArrow || input === 'k') { setSel((i) => Math.max(0, (i < 0 ? lines.length - 1 : i) - 1)); return; }
|
|
385
385
|
if (key.downArrow || input === 'j') { setSel((i) => Math.min(lines.length - 1, (i < 0 ? -1 : i) + 1)); return; }
|
|
386
386
|
if ((key.return || input === ' ') && sel >= 0) {
|
|
@@ -388,7 +388,7 @@ export function StatusLines({ lines = [], busy = false, navigable = false }) {
|
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
if (key.escape) { setSel(-1); return; }
|
|
391
|
-
});
|
|
391
|
+
}, { isActive: navigable });
|
|
392
392
|
|
|
393
393
|
if (!lines.length) return null;
|
|
394
394
|
const lastIdx = lines.length - 1;
|
package/src/tui/run.js
CHANGED
|
@@ -93,7 +93,7 @@ function exitAltScreen() {
|
|
|
93
93
|
altScreenActive = false;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
//
|
|
96
|
+
// iCopilot wordmark in block letters
|
|
97
97
|
const LOGO = [
|
|
98
98
|
' ██╗ ██████╗ ██████╗ ██████╗ ██╗██╗ ██████╗ ████████╗',
|
|
99
99
|
' ██║██╔════╝██╔═══██╗██╔══██╗██║██║ ██╔═══██╗╚══██╔══╝',
|
|
@@ -145,7 +145,7 @@ async function animateSplash(cfg = {}) {
|
|
|
145
145
|
const R = '\x1b[0m';
|
|
146
146
|
|
|
147
147
|
const hr = `${SEP}${'─'.repeat(cols)}${R}`;
|
|
148
|
-
const subtitle = `${ACC}◈
|
|
148
|
+
const subtitle = `${ACC}◈ iCopilot${R} ${DIM}IspBills network engineer in your terminal${R}`;
|
|
149
149
|
const subtitleLen = subtitle.replace(/\x1b\[[0-9;]*m/g, '').length;
|
|
150
150
|
const subPad = ' '.repeat(Math.max(0, Math.floor((cols - subtitleLen) / 2)));
|
|
151
151
|
|