@oxecli/oxe 1.0.8 → 1.0.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/dist/config.js +0 -2
- package/dist/ui.js +5 -4
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -169,13 +169,11 @@ export async function loadOrPrompt() {
|
|
|
169
169
|
authSpinner.stop();
|
|
170
170
|
if (validation.valid) {
|
|
171
171
|
key_data = validation.key_data || {};
|
|
172
|
-
process.stdout.write("\n");
|
|
173
172
|
process.stdout.write(markupToAnsi(`[green]✓ Oxe API Key verified[/green] [dim](${String(key_data["name"] ?? "Desktop")})[/dim]`) + "\n");
|
|
174
173
|
process.env.OXE_API_KEY = api_key;
|
|
175
174
|
break;
|
|
176
175
|
}
|
|
177
176
|
else {
|
|
178
|
-
process.stdout.write("\n");
|
|
179
177
|
process.stdout.write(`\x1b[31mAuthentication Error:\x1b[0m ${validation.error}\n`);
|
|
180
178
|
process.stdout.write("\n");
|
|
181
179
|
api_key = "";
|
package/dist/ui.js
CHANGED
|
@@ -622,11 +622,12 @@ export function askBottomPrompt(label = "You", prefix = "❯", history = []) {
|
|
|
622
622
|
lastTotalRows = totalRows;
|
|
623
623
|
const frameLines = frame.split("\n");
|
|
624
624
|
if (isFirst) {
|
|
625
|
-
//
|
|
626
|
-
//
|
|
627
|
-
//
|
|
625
|
+
// The caller's content always ends with "\n", so the cursor sits at the
|
|
626
|
+
// start of a fresh (blank) line — that line is the leading blank
|
|
627
|
+
// separator (mirrors the original's Group(Text(""), panel)). Move down
|
|
628
|
+
// one line so the box starts below that blank; do NOT emit a second
|
|
629
|
+
// blank here (it caused a double gap above the box / on cancel).
|
|
628
630
|
process.stdout.write("\n");
|
|
629
|
-
process.stdout.write("\r\x1b[K\n");
|
|
630
631
|
}
|
|
631
632
|
else {
|
|
632
633
|
// Cursor currently sits at cursorRow (inside the box). Move to the top
|