@boundless.network/setup 0.1.0 → 0.1.1
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/app.js +5 -2
- package/dist/ui/logo.js +25 -0
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text, useApp, useInput } from "ink";
|
|
2
|
+
import { Box, Text, useApp, useInput, useWindowSize } from "ink";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
// Async screens run their task exactly once, on mount; the wizard object is mutable and shared.
|
|
5
5
|
import { HARNESSES } from "./harnesses/index.js";
|
|
@@ -18,6 +18,7 @@ import { Facts } from "./ui/facts.js";
|
|
|
18
18
|
import { Frame, Muted, Para, Title } from "./ui/frame.js";
|
|
19
19
|
import { MultiSelect, Select } from "./ui/menu.js";
|
|
20
20
|
import { Spinner } from "./ui/spinner.js";
|
|
21
|
+
import { LOGO, LOGO_COLUMNS, LOGO_ROWS } from "./ui/logo.js";
|
|
21
22
|
import { ModelTable } from "./ui/table.js";
|
|
22
23
|
import { TextInput } from "./ui/text-input.js";
|
|
23
24
|
import { BAD, BRAND, MUTED, OK, WARN } from "./ui/theme.js";
|
|
@@ -232,7 +233,9 @@ function Welcome({ onSelect, wizard }) {
|
|
|
232
233
|
if (env.remote) {
|
|
233
234
|
facts.splice(2, 0, { label: "Remote", state: "warn", value: env.remote });
|
|
234
235
|
}
|
|
235
|
-
|
|
236
|
+
const { columns, rows } = useWindowSize();
|
|
237
|
+
const logo = rows >= LOGO_ROWS + 22 && columns >= LOGO_COLUMNS + 4;
|
|
238
|
+
return (_jsxs(Frame, { hints: NAV, children: [logo ? (_jsx(Box, { justifyContent: "center", marginBottom: 1, children: _jsx(Text, { color: BRAND, children: LOGO }) })) : null, _jsx(Title, { children: "Boundless Setup" }), _jsxs(Muted, { center: true, children: ["Signs you in through your browser, creates an inference key on your account,", "\n", "configures your coding harnesses, and sends one small test request.", "\n", "The key is never printed. Nothing is purchased."] }), _jsx(Facts, { facts: facts }), _jsx(Box, { justifyContent: "center", children: _jsx(Select, { onSelect: onSelect, options: [
|
|
236
239
|
{ label: "Continue", value: "continue" },
|
|
237
240
|
{ label: "What this does", value: "what" },
|
|
238
241
|
{ label: "Privacy & data", value: "privacy" },
|
package/dist/ui/logo.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const LOGO = ` ~Ja@@@@@@@@@@bY}
|
|
2
|
+
\\8@@@@@@@@@@@@@@@@@@@@q1
|
|
3
|
+
[@@@@@@@@%%@@@@@@@@@&tvW@@@@b+
|
|
4
|
+
/@@@Q: iX&@@@BY uW@@@#~
|
|
5
|
+
@@- \`Q@@@@u t@@@@Z
|
|
6
|
+
"m Ia@@@@@@@@@@@0I "b@@@&: b@@@M.
|
|
7
|
+
-B@@@@@@@@@aQXzCOh8q O@@@@~ Z@@@W
|
|
8
|
+
u@@@@x u@@k .| b@@@B p@@@w
|
|
9
|
+
W@@% @@@- %@@@c .8@@B>
|
|
10
|
+
&@@p 8@@Z u@@@b 0@@@0
|
|
11
|
+
*@@% "@@@Y 1@@@@ r@@@J
|
|
12
|
+
I@@@a Y@@@( !@@@p t@@@U
|
|
13
|
+
[@@@Z J@@@k U@@@^ q@@%.
|
|
14
|
+
}@@@* /@@@# @@@r u@@@[
|
|
15
|
+
M@@%! W@@@j d@@j Z@@@+
|
|
16
|
+
x@@@o n@@@%i {- 1@@W h@@@&
|
|
17
|
+
b@@@d q@@@Wl 'd%kLzucZ&@@@vYM@@@@m
|
|
18
|
+
h@@@*' 0@@@8} /M@@@@@@@@@@@@w u}
|
|
19
|
+
J@@@@r )B@@@Z' I-tnt_" W@
|
|
20
|
+
!a@@@&n JB@@@h} ]W@@f
|
|
21
|
+
~d@@@@*){W@@@@@@%0znnzZB@@@@B?
|
|
22
|
+
th@@@@@@@@@@@@@@@@@@@@&t
|
|
23
|
+
\`jm#@@@@@@@@@@WZ[`;
|
|
24
|
+
export const LOGO_ROWS = 23;
|
|
25
|
+
export const LOGO_COLUMNS = 58;
|
package/package.json
CHANGED