ispbills-icli 8.5.8 → 8.5.9
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/tui/app.js +1 -1
- package/src/tui/components.js +5 -4
package/package.json
CHANGED
package/src/tui/app.js
CHANGED
|
@@ -706,7 +706,7 @@ export function App({ cfg, display = {}, onExternal, onExit, initialQuestion, sh
|
|
|
706
706
|
setChoice({
|
|
707
707
|
title: '⚙ Tool request',
|
|
708
708
|
note: toolDesc,
|
|
709
|
-
sel: 0, text: '', focusText: false, allowText:
|
|
709
|
+
sel: 0, text: '', focusText: false, allowText: true,
|
|
710
710
|
isToolApproval: true,
|
|
711
711
|
options: [
|
|
712
712
|
{ label: '1. Yes', value: 'yes, proceed with this tool call' },
|
package/src/tui/components.js
CHANGED
|
@@ -90,7 +90,7 @@ function formatTs(ts) {
|
|
|
90
90
|
function SpeakerLine({ label, color, cols = 80, ts, rightLabel = '' }) {
|
|
91
91
|
const stamp = ts ? `[${formatTs(ts)}]` : '';
|
|
92
92
|
return html`
|
|
93
|
-
<${Box} paddingX=${
|
|
93
|
+
<${Box} paddingX=${1} marginTop=${1} width=${cols}>
|
|
94
94
|
<${Text} color=${color} bold>${label}<//>
|
|
95
95
|
<${Box} flexGrow=${1} />
|
|
96
96
|
${rightLabel ? html`<${Text} color=${C.muted}>${rightLabel}<//>` : null}
|
|
@@ -118,7 +118,7 @@ export function TabBar({ active = 'session', cols = 80, mode = 'ask' }) {
|
|
|
118
118
|
const on = t.id === active;
|
|
119
119
|
return html`
|
|
120
120
|
<${Box} key=${t.id}>
|
|
121
|
-
${i > 0 ? html`<${Text}
|
|
121
|
+
${i > 0 ? html`<${Text} backgroundColor="blue"> <//>` : null}
|
|
122
122
|
${on
|
|
123
123
|
? html`<${Text} color="white" bold backgroundColor="blue">[${t.label}]<//>`
|
|
124
124
|
: html`<${Text} color="white" dimColor backgroundColor="blue">${t.label}<//>`}
|
|
@@ -221,7 +221,7 @@ export function UserMessage({ text, cols = 80, ts }) {
|
|
|
221
221
|
<${Box} flexDirection="column" marginTop=${1}>
|
|
222
222
|
<${Sep} cols=${cols} />
|
|
223
223
|
<${SpeakerLine} label="You" color=${C.brand} cols=${cols} ts=${ts} />
|
|
224
|
-
<${Box} paddingX=${
|
|
224
|
+
<${Box} paddingX=${1}>
|
|
225
225
|
<${Text}>${withMentions(text)}<//>
|
|
226
226
|
<//>
|
|
227
227
|
<//>`;
|
|
@@ -257,7 +257,7 @@ export function AssistantMessage({ text, cols = 80, ts, label = `${glyphs.copilo
|
|
|
257
257
|
<${Box} flexDirection="column" marginTop=${1}>
|
|
258
258
|
<${Sep} cols=${cols} />
|
|
259
259
|
<${SpeakerLine} label=${label} color=${C.accent} cols=${cols} ts=${ts} />
|
|
260
|
-
<${Box} paddingX=${
|
|
260
|
+
<${Box} paddingX=${1} flexDirection="column" width=${bodyWidth}>
|
|
261
261
|
${streaming ? html`<${StreamingText} text=${text} />` : html`<${Markdown} content=${text} />`}
|
|
262
262
|
<//>
|
|
263
263
|
<//>`;
|
|
@@ -518,6 +518,7 @@ export function Choice({ title, note, options = [], sel = 0, allowText = false,
|
|
|
518
518
|
<${Box} paddingX=${2} marginTop=${1}>
|
|
519
519
|
<${Text} color=${C.accent} bold>⚙ Tool request<//>
|
|
520
520
|
<//>
|
|
521
|
+
<${Sep} cols=${80} />
|
|
521
522
|
${note ? html`<${Box} paddingX=${2} marginTop=${1}><${Text} color=${C.muted}>${note}<//><//>` : null}
|
|
522
523
|
<${Box} flexDirection="column" marginTop=${1} paddingX=${2}>
|
|
523
524
|
${options.map((o, i) => {
|