@lazyingart/agintiflow 0.17.4 → 0.17.5
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/auth-onboarding.js +2 -2
package/package.json
CHANGED
package/src/auth-onboarding.js
CHANGED
|
@@ -107,7 +107,7 @@ function boxedLine(content, width) {
|
|
|
107
107
|
function secretInputDisplay({ value, selectedPreview, placeholder }) {
|
|
108
108
|
if (value) return color(`${"•".repeat(Math.min(value.length, 24))} (${value.length} chars)`, ansi.inputBg);
|
|
109
109
|
if (selectedPreview) return `${color(` ${selectedPreview} `, ansi.selected, ansi.bold)} ${color("selected", ansi.yellow)}`;
|
|
110
|
-
return color(placeholder || "
|
|
110
|
+
return color(String(placeholder || "").padEnd(30, " "), ansi.inputBg);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
function renderSecretBox({ title, helpText, statusText, currentPreview, value, selected, actionText }) {
|
|
@@ -119,7 +119,7 @@ function renderSecretBox({ title, helpText, statusText, currentPreview, value, s
|
|
|
119
119
|
boxedLine(color(compactLine(title, inner), ansi.bold, ansi.cyan), width),
|
|
120
120
|
helpText ? boxedLine(`${color("key", ansi.muted)} ${compactLine(helpText, inner - 6)}`, width) : "",
|
|
121
121
|
statusText ? boxedLine(`${color("status", ansi.muted)} ${compactLine(statusText, inner - 8)}`, width) : "",
|
|
122
|
-
boxedLine(`${color("input", ansi.muted)} ${secretInputDisplay({ value, selectedPreview
|
|
122
|
+
boxedLine(`${color("input", ansi.muted)} ${secretInputDisplay({ value, selectedPreview })}`, width),
|
|
123
123
|
boxedLine(color(compactLine(actionText, inner), ansi.dim), width),
|
|
124
124
|
`${color("╰", ansi.border)}${color("─", ansi.border).repeat(width - 2)}${color("╯", ansi.border)}`,
|
|
125
125
|
].filter(Boolean);
|