@algolia/wizard 0.77.0 → 0.79.0
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/main.js +173 -175
- package/package.json +1 -2
- package/dist/algolia.png +0 -0
package/dist/main.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { render } from "ink";
|
|
5
5
|
|
|
6
6
|
// src/ui/App.tsx
|
|
7
|
-
import { Box as
|
|
7
|
+
import { Box as Box22, Text as Text23, useApp as useApp2, useInput as useInput9, useWindowSize as useWindowSize8 } from "ink";
|
|
8
8
|
import Spinner3 from "ink-spinner";
|
|
9
9
|
|
|
10
10
|
// src/lib/terminalSize.ts
|
|
@@ -2306,7 +2306,7 @@ async function ensureApplication(resumeAppId) {
|
|
|
2306
2306
|
// package.json
|
|
2307
2307
|
var package_default = {
|
|
2308
2308
|
name: "@algolia/wizard",
|
|
2309
|
-
version: "0.
|
|
2309
|
+
version: "0.79.0",
|
|
2310
2310
|
description: "Magically implement Algolia functionality in your codebase",
|
|
2311
2311
|
type: "module",
|
|
2312
2312
|
engines: {
|
|
@@ -2362,7 +2362,6 @@ var package_default = {
|
|
|
2362
2362
|
dotenv: "^17.4.2",
|
|
2363
2363
|
hono: "^4.13.8",
|
|
2364
2364
|
ink: "^7.0.5",
|
|
2365
|
-
"ink-picture": "^2.1.0",
|
|
2366
2365
|
"ink-spinner": "^5.0.0",
|
|
2367
2366
|
ioredis: "^5.11.1",
|
|
2368
2367
|
nanoid: "^5.1.15",
|
|
@@ -7158,20 +7157,37 @@ function getWorkflow(id) {
|
|
|
7158
7157
|
}
|
|
7159
7158
|
|
|
7160
7159
|
// src/ui/Welcome.tsx
|
|
7161
|
-
import { dirname as dirname6, join as join12 } from "node:path";
|
|
7162
|
-
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
7163
7160
|
import { useState as useState10 } from "react";
|
|
7164
|
-
import { Box as
|
|
7161
|
+
import { Box as Box13, Spacer, Text as Text14, useInput as useInput6, useWindowSize as useWindowSize6 } from "ink";
|
|
7162
|
+
|
|
7163
|
+
// src/ui/Logo.tsx
|
|
7164
|
+
import { Box as Box11, Text as Text12 } from "ink";
|
|
7165
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
7166
|
+
var LOGO = [
|
|
7167
|
+
" \u2597\u2584\u2584\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588",
|
|
7168
|
+
" \u2597\u259F\u2588\u2580\u2580 \u2588\u2588",
|
|
7169
|
+
" \u259F\u2588\u259B \u2597\u2584\u2588\u2588\u2588\u2588\u2584\u2596 \u2588\u2588",
|
|
7170
|
+
"\u2590\u2588\u258C \u259F\u2588\u259B\u2580 \u2580\u259C\u2588\u2599 \u2588\u2588",
|
|
7171
|
+
"\u2588\u2588 \u2590\u2588\u258C \u2590\u2588\u258C \u2588\u2588",
|
|
7172
|
+
"\u2588\u2588 \u2590\u2588\u258C \u259D\u2598 \u2588\u2588",
|
|
7173
|
+
"\u2590\u2588\u258C \u259C\u2588\u2599\u2584 \u2584\u2584\u2588\u2584 \u2588\u2588",
|
|
7174
|
+
" \u259C\u2588\u2599 \u259D\u2580\u2588\u2588\u2588\u2588\u2580\u2580\u259C\u2588\u2584 \u2588\u2588",
|
|
7175
|
+
" \u259D\u259C\u2588\u2584\u2584 \u259D\u259C\u2588\u2588\u2588",
|
|
7176
|
+
" \u259D\u2580\u2580\u2588\u2588\u2588\u2588\u2588\u2588\u2580\u2598 \u259D\u2580\u2588"
|
|
7177
|
+
];
|
|
7178
|
+
function Logo() {
|
|
7179
|
+
return /* @__PURE__ */ jsx10(Box11, { flexDirection: "column", children: LOGO.map((line, i) => /* @__PURE__ */ jsx10(Text12, { color: COLORS.brand, children: line }, i)) });
|
|
7180
|
+
}
|
|
7165
7181
|
|
|
7166
7182
|
// src/ui/ResizeNotice.tsx
|
|
7167
|
-
import { Box as
|
|
7168
|
-
import { jsx as
|
|
7183
|
+
import { Box as Box12, Text as Text13, useWindowSize as useWindowSize5 } from "ink";
|
|
7184
|
+
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
7169
7185
|
function ResizeNotice() {
|
|
7170
7186
|
const { columns, rows } = useWindowSize5();
|
|
7171
7187
|
if (rows >= MIN_ROWS && columns >= MIN_COLUMNS) return null;
|
|
7172
|
-
return /* @__PURE__ */ jsxs11(
|
|
7173
|
-
/* @__PURE__ */
|
|
7174
|
-
/* @__PURE__ */
|
|
7188
|
+
return /* @__PURE__ */ jsxs11(Box12, { flexDirection: "column", children: [
|
|
7189
|
+
/* @__PURE__ */ jsx11(Text13, { color: COLORS.badge, children: `Terminal is ${columns}x${rows}. Recommended size is ${MIN_COLUMNS}x${MIN_ROWS}.` }),
|
|
7190
|
+
/* @__PURE__ */ jsx11(Text13, { color: COLORS.muted, children: "Enlarge the pane for the full layout." })
|
|
7175
7191
|
] });
|
|
7176
7192
|
}
|
|
7177
7193
|
|
|
@@ -7200,26 +7216,19 @@ var sidebarItems = [
|
|
|
7200
7216
|
];
|
|
7201
7217
|
|
|
7202
7218
|
// src/ui/Welcome.tsx
|
|
7203
|
-
import
|
|
7204
|
-
import { jsx as jsx11, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
7205
|
-
var IMAGE_PATH = join12(dirname6(fileURLToPath2(import.meta.url)), "algolia.png");
|
|
7206
|
-
var TERMINAL_INFO = {
|
|
7207
|
-
...defaultTerminalInfo,
|
|
7208
|
-
supportsUnicode: true,
|
|
7209
|
-
supportsColor: true
|
|
7210
|
-
};
|
|
7219
|
+
import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
7211
7220
|
function SidebarItem({
|
|
7212
7221
|
title,
|
|
7213
7222
|
description
|
|
7214
7223
|
}) {
|
|
7215
|
-
return /* @__PURE__ */ jsxs12(
|
|
7216
|
-
/* @__PURE__ */ jsxs12(
|
|
7217
|
-
/* @__PURE__ */
|
|
7218
|
-
/* @__PURE__ */
|
|
7224
|
+
return /* @__PURE__ */ jsxs12(Box13, { flexDirection: "column", children: [
|
|
7225
|
+
/* @__PURE__ */ jsxs12(Box13, { gap: 1, children: [
|
|
7226
|
+
/* @__PURE__ */ jsx12(Text14, { color: COLORS.success, children: "\u2192" }),
|
|
7227
|
+
/* @__PURE__ */ jsx12(Text14, { color: COLORS.strong, bold: true, children: title })
|
|
7219
7228
|
] }),
|
|
7220
|
-
/* @__PURE__ */ jsxs12(
|
|
7221
|
-
/* @__PURE__ */
|
|
7222
|
-
/* @__PURE__ */
|
|
7229
|
+
/* @__PURE__ */ jsxs12(Box13, { flexDirection: "row", gap: 2, children: [
|
|
7230
|
+
/* @__PURE__ */ jsx12(Spacer, {}),
|
|
7231
|
+
/* @__PURE__ */ jsx12(Text14, { color: COLORS.muted, children: description })
|
|
7223
7232
|
] })
|
|
7224
7233
|
] });
|
|
7225
7234
|
}
|
|
@@ -7257,29 +7266,19 @@ function Welcome() {
|
|
|
7257
7266
|
if (rows < MIN_ROWS) {
|
|
7258
7267
|
layout = scales["small"];
|
|
7259
7268
|
}
|
|
7260
|
-
return /* @__PURE__ */ jsxs12(
|
|
7261
|
-
/* @__PURE__ */
|
|
7262
|
-
|
|
7269
|
+
return /* @__PURE__ */ jsxs12(Box13, { flexDirection: "row", justifyContent: "space-between", width: "100%", children: [
|
|
7270
|
+
/* @__PURE__ */ jsx12(
|
|
7271
|
+
Box13,
|
|
7263
7272
|
{
|
|
7264
7273
|
paddingY: layout.main.padding.y,
|
|
7265
7274
|
paddingX: layout.main.padding.x,
|
|
7266
7275
|
flexDirection: "column",
|
|
7267
7276
|
justifyContent: "center",
|
|
7268
|
-
children: /* @__PURE__ */ jsxs12(
|
|
7269
|
-
/* @__PURE__ */
|
|
7270
|
-
showLogo && /* @__PURE__ */
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
src: IMAGE_PATH,
|
|
7274
|
-
objectFit: "contain",
|
|
7275
|
-
alt: "Algolia",
|
|
7276
|
-
width: 20,
|
|
7277
|
-
height: 10,
|
|
7278
|
-
protocol: "halfBlock"
|
|
7279
|
-
}
|
|
7280
|
-
) }),
|
|
7281
|
-
/* @__PURE__ */ jsx11(Text13, { color: COLORS.muted, children: "\u2726 From zero \u2192 working search in ~10 minutes" }),
|
|
7282
|
-
/* @__PURE__ */ jsx11(Box12, { flexDirection: "column", children: actions.map((action, i) => /* @__PURE__ */ jsx11(
|
|
7277
|
+
children: /* @__PURE__ */ jsxs12(Box13, { flexDirection: "column", gap: 2, children: [
|
|
7278
|
+
/* @__PURE__ */ jsx12(ResizeNotice, {}),
|
|
7279
|
+
showLogo && /* @__PURE__ */ jsx12(Logo, {}),
|
|
7280
|
+
/* @__PURE__ */ jsx12(Text14, { color: COLORS.muted, children: "\u2726 From zero \u2192 working search in ~10 minutes" }),
|
|
7281
|
+
/* @__PURE__ */ jsx12(Box13, { flexDirection: "column", children: actions.map((action, i) => /* @__PURE__ */ jsx12(
|
|
7283
7282
|
SelectRow,
|
|
7284
7283
|
{
|
|
7285
7284
|
highlighted: i === index,
|
|
@@ -7288,21 +7287,21 @@ function Welcome() {
|
|
|
7288
7287
|
},
|
|
7289
7288
|
action.label
|
|
7290
7289
|
)) }),
|
|
7291
|
-
/* @__PURE__ */ jsxs12(
|
|
7292
|
-
/* @__PURE__ */ jsxs12(
|
|
7293
|
-
/* @__PURE__ */
|
|
7294
|
-
/* @__PURE__ */
|
|
7290
|
+
/* @__PURE__ */ jsxs12(Box13, { gap: 2, children: [
|
|
7291
|
+
/* @__PURE__ */ jsxs12(Text14, { children: [
|
|
7292
|
+
/* @__PURE__ */ jsx12(Text14, { color: COLORS.primary, children: "[\u2191] [\u2193]" }),
|
|
7293
|
+
/* @__PURE__ */ jsx12(Text14, { color: COLORS.dim, children: " move" })
|
|
7295
7294
|
] }),
|
|
7296
|
-
/* @__PURE__ */ jsxs12(
|
|
7297
|
-
/* @__PURE__ */
|
|
7298
|
-
/* @__PURE__ */
|
|
7295
|
+
/* @__PURE__ */ jsxs12(Text14, { children: [
|
|
7296
|
+
/* @__PURE__ */ jsx12(Text14, { color: COLORS.primary, children: "[enter]" }),
|
|
7297
|
+
/* @__PURE__ */ jsx12(Text14, { color: COLORS.dim, children: " confirm" })
|
|
7299
7298
|
] })
|
|
7300
7299
|
] })
|
|
7301
7300
|
] })
|
|
7302
7301
|
}
|
|
7303
7302
|
),
|
|
7304
7303
|
showSidebar && /* @__PURE__ */ jsxs12(
|
|
7305
|
-
|
|
7304
|
+
Box13,
|
|
7306
7305
|
{
|
|
7307
7306
|
backgroundColor: COLORS.bg.sidebar,
|
|
7308
7307
|
width: 40,
|
|
@@ -7312,8 +7311,8 @@ function Welcome() {
|
|
|
7312
7311
|
flexDirection: "column",
|
|
7313
7312
|
justifyContent: "center",
|
|
7314
7313
|
children: [
|
|
7315
|
-
/* @__PURE__ */
|
|
7316
|
-
sidebarItems.map((i, idx) => /* @__PURE__ */
|
|
7314
|
+
/* @__PURE__ */ jsx12(Text14, { color: COLORS.muted, children: "WHAT THIS WIZARD WILL DO" }),
|
|
7315
|
+
sidebarItems.map((i, idx) => /* @__PURE__ */ jsx12(SidebarItem, { title: i.title, description: i.description }, idx))
|
|
7317
7316
|
]
|
|
7318
7317
|
}
|
|
7319
7318
|
)
|
|
@@ -7321,7 +7320,7 @@ function Welcome() {
|
|
|
7321
7320
|
}
|
|
7322
7321
|
|
|
7323
7322
|
// src/ui/LearnMore.tsx
|
|
7324
|
-
import { Box as
|
|
7323
|
+
import { Box as Box14, Text as Text15, useInput as useInput7, useWindowSize as useWindowSize7 } from "ink";
|
|
7325
7324
|
|
|
7326
7325
|
// src/ui/copy/learn-more.ts
|
|
7327
7326
|
var accessIntro = "Everything runs locally on your machine. Nothing is written or sent without an explicit yes from you.";
|
|
@@ -7363,7 +7362,7 @@ var policyLinks = [
|
|
|
7363
7362
|
];
|
|
7364
7363
|
|
|
7365
7364
|
// src/ui/LearnMore.tsx
|
|
7366
|
-
import { jsx as
|
|
7365
|
+
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
7367
7366
|
var TAG_COLORS = {
|
|
7368
7367
|
READ: COLORS.success,
|
|
7369
7368
|
WRITE: COLORS.badge,
|
|
@@ -7499,7 +7498,7 @@ function LearnMore() {
|
|
|
7499
7498
|
});
|
|
7500
7499
|
const visible = rows.slice(scroll.offset, scroll.offset + scroll.capacity);
|
|
7501
7500
|
return /* @__PURE__ */ jsxs13(
|
|
7502
|
-
|
|
7501
|
+
Box14,
|
|
7503
7502
|
{
|
|
7504
7503
|
flexDirection: "column",
|
|
7505
7504
|
paddingX: PADDING_X,
|
|
@@ -7507,23 +7506,23 @@ function LearnMore() {
|
|
|
7507
7506
|
width: "100%",
|
|
7508
7507
|
flexGrow: 1,
|
|
7509
7508
|
children: [
|
|
7510
|
-
/* @__PURE__ */
|
|
7511
|
-
/* @__PURE__ */
|
|
7512
|
-
scrollable && /* @__PURE__ */ jsxs13(
|
|
7513
|
-
/* @__PURE__ */
|
|
7514
|
-
/* @__PURE__ */
|
|
7509
|
+
/* @__PURE__ */ jsx13(ResizeNotice, {}),
|
|
7510
|
+
/* @__PURE__ */ jsx13(ScrollView, { scroll, children: visible.map((row, i) => /* @__PURE__ */ jsx13(Text15, { wrap: "truncate", children: row.parts.map((part, j) => /* @__PURE__ */ jsx13(Text15, { color: part.color, bold: part.bold, children: part.text }, j)) }, `learn-more-${scroll.offset}-${i}`)) }),
|
|
7511
|
+
scrollable && /* @__PURE__ */ jsxs13(Text15, { children: [
|
|
7512
|
+
/* @__PURE__ */ jsx13(Text15, { color: COLORS.primary, children: "[j] [k]" }),
|
|
7513
|
+
/* @__PURE__ */ jsx13(Text15, { color: COLORS.dim, children: " scroll" })
|
|
7515
7514
|
] }),
|
|
7516
|
-
/* @__PURE__ */ jsxs13(
|
|
7517
|
-
/* @__PURE__ */ jsxs13(
|
|
7518
|
-
/* @__PURE__ */
|
|
7519
|
-
/* @__PURE__ */
|
|
7520
|
-
/* @__PURE__ */
|
|
7515
|
+
/* @__PURE__ */ jsxs13(Box14, { flexDirection: "row", gap: 3, children: [
|
|
7516
|
+
/* @__PURE__ */ jsxs13(Box14, { flexDirection: "row", gap: 1, children: [
|
|
7517
|
+
/* @__PURE__ */ jsx13(Text15, { color: COLORS.muted, children: "[" }),
|
|
7518
|
+
/* @__PURE__ */ jsx13(Text15, { color: COLORS.primary, children: "esc" }),
|
|
7519
|
+
/* @__PURE__ */ jsx13(Text15, { color: COLORS.muted, children: "] back" })
|
|
7521
7520
|
] }),
|
|
7522
|
-
/* @__PURE__ */ jsxs13(
|
|
7523
|
-
/* @__PURE__ */
|
|
7524
|
-
/* @__PURE__ */
|
|
7525
|
-
/* @__PURE__ */
|
|
7526
|
-
/* @__PURE__ */
|
|
7521
|
+
/* @__PURE__ */ jsxs13(Box14, { flexDirection: "row", gap: 1, children: [
|
|
7522
|
+
/* @__PURE__ */ jsx13(Text15, { color: COLORS.muted, children: "[" }),
|
|
7523
|
+
/* @__PURE__ */ jsx13(Text15, { color: COLORS.primary, children: "enter" }),
|
|
7524
|
+
/* @__PURE__ */ jsx13(Text15, { color: COLORS.muted, children: "]" }),
|
|
7525
|
+
/* @__PURE__ */ jsx13(Text15, { color: COLORS.success, bold: true, children: "start wizard" })
|
|
7527
7526
|
] })
|
|
7528
7527
|
] })
|
|
7529
7528
|
]
|
|
@@ -7532,17 +7531,17 @@ function LearnMore() {
|
|
|
7532
7531
|
}
|
|
7533
7532
|
|
|
7534
7533
|
// src/ui/Sidebar.tsx
|
|
7535
|
-
import { Box as
|
|
7534
|
+
import { Box as Box17, Text as Text18 } from "ink";
|
|
7536
7535
|
|
|
7537
7536
|
// src/ui/Steps.tsx
|
|
7538
|
-
import { Box as
|
|
7537
|
+
import { Box as Box15, Text as Text16 } from "ink";
|
|
7539
7538
|
import Spinner2 from "ink-spinner";
|
|
7540
|
-
import { jsx as
|
|
7539
|
+
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
7541
7540
|
function Steps() {
|
|
7542
7541
|
const { steps } = useWizard();
|
|
7543
7542
|
const visibleSteps = steps.filter(isStepVisible);
|
|
7544
|
-
return /* @__PURE__ */
|
|
7545
|
-
s.status === "running" ? /* @__PURE__ */
|
|
7543
|
+
return /* @__PURE__ */ jsx14(Box15, { flexDirection: "column", gap: 1, children: visibleSteps.map((s) => /* @__PURE__ */ jsx14(Box15, { flexDirection: "column", children: /* @__PURE__ */ jsxs14(Text16, { color: COLORS.status[s.status], children: [
|
|
7544
|
+
s.status === "running" ? /* @__PURE__ */ jsx14(Spinner2, { type: "dots" }) : MARKER[s.status],
|
|
7546
7545
|
" ",
|
|
7547
7546
|
s.title
|
|
7548
7547
|
] }) }, s.id)) });
|
|
@@ -7551,27 +7550,27 @@ function CurrentStep() {
|
|
|
7551
7550
|
const { steps } = useWizard();
|
|
7552
7551
|
const currentStep = steps.filter(isStepVisible).find((s) => s.status === "running");
|
|
7553
7552
|
if (!currentStep) return null;
|
|
7554
|
-
return /* @__PURE__ */ jsxs14(
|
|
7555
|
-
/* @__PURE__ */
|
|
7553
|
+
return /* @__PURE__ */ jsxs14(Text16, { color: COLORS.status.running, children: [
|
|
7554
|
+
/* @__PURE__ */ jsx14(Spinner2, { type: "dots" }),
|
|
7556
7555
|
" ",
|
|
7557
7556
|
` ${currentStep.title}`
|
|
7558
7557
|
] });
|
|
7559
7558
|
}
|
|
7560
7559
|
|
|
7561
7560
|
// src/ui/Progress.tsx
|
|
7562
|
-
import { Box as
|
|
7563
|
-
import { jsx as
|
|
7561
|
+
import { Box as Box16, Text as Text17 } from "ink";
|
|
7562
|
+
import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
7564
7563
|
function Progress() {
|
|
7565
7564
|
const { steps, currentStepIndex } = useWizard();
|
|
7566
7565
|
const visibleSteps = steps.filter(isStepVisible);
|
|
7567
7566
|
if (visibleSteps.length === 0) return null;
|
|
7568
7567
|
const visibleCountThroughCurrent = steps.slice(0, currentStepIndex + 1).filter(isStepVisible).length;
|
|
7569
7568
|
const activeStepNumber = Math.max(1, visibleCountThroughCurrent);
|
|
7570
|
-
return /* @__PURE__ */ jsxs15(
|
|
7571
|
-
/* @__PURE__ */
|
|
7572
|
-
/* @__PURE__ */
|
|
7573
|
-
/* @__PURE__ */
|
|
7574
|
-
/* @__PURE__ */
|
|
7569
|
+
return /* @__PURE__ */ jsxs15(Box16, { flexDirection: "row", gap: 1, children: [
|
|
7570
|
+
/* @__PURE__ */ jsx15(Text17, { color: COLORS.muted, children: "STEP" }),
|
|
7571
|
+
/* @__PURE__ */ jsx15(Text17, { color: COLORS.strong, bold: true, children: activeStepNumber }),
|
|
7572
|
+
/* @__PURE__ */ jsx15(Text17, { color: COLORS.strong, bold: true, children: "/" }),
|
|
7573
|
+
/* @__PURE__ */ jsx15(Text17, { color: COLORS.strong, bold: true, children: visibleSteps.length })
|
|
7575
7574
|
] });
|
|
7576
7575
|
}
|
|
7577
7576
|
|
|
@@ -7582,10 +7581,10 @@ var sidebarCommands = [
|
|
|
7582
7581
|
];
|
|
7583
7582
|
|
|
7584
7583
|
// src/ui/Sidebar.tsx
|
|
7585
|
-
import { jsx as
|
|
7584
|
+
import { jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
7586
7585
|
function Sidebar() {
|
|
7587
7586
|
return /* @__PURE__ */ jsxs16(
|
|
7588
|
-
|
|
7587
|
+
Box17,
|
|
7589
7588
|
{
|
|
7590
7589
|
backgroundColor: "#14171E",
|
|
7591
7590
|
width: 30,
|
|
@@ -7594,16 +7593,16 @@ function Sidebar() {
|
|
|
7594
7593
|
flexDirection: "column",
|
|
7595
7594
|
justifyContent: "space-between",
|
|
7596
7595
|
children: [
|
|
7597
|
-
/* @__PURE__ */ jsxs16(
|
|
7598
|
-
/* @__PURE__ */
|
|
7599
|
-
/* @__PURE__ */
|
|
7596
|
+
/* @__PURE__ */ jsxs16(Box17, { flexDirection: "column", gap: 1, children: [
|
|
7597
|
+
/* @__PURE__ */ jsx16(Text18, { color: COLORS.muted, children: "PROGRESS" }),
|
|
7598
|
+
/* @__PURE__ */ jsx16(Steps, {})
|
|
7600
7599
|
] }),
|
|
7601
|
-
/* @__PURE__ */ jsxs16(
|
|
7602
|
-
/* @__PURE__ */
|
|
7603
|
-
/* @__PURE__ */
|
|
7604
|
-
return /* @__PURE__ */ jsxs16(
|
|
7605
|
-
/* @__PURE__ */
|
|
7606
|
-
/* @__PURE__ */
|
|
7600
|
+
/* @__PURE__ */ jsxs16(Box17, { flexDirection: "column", gap: 1, children: [
|
|
7601
|
+
/* @__PURE__ */ jsx16(Progress, {}),
|
|
7602
|
+
/* @__PURE__ */ jsx16(Box17, { flexDirection: "column", children: sidebarCommands.map((c) => {
|
|
7603
|
+
return /* @__PURE__ */ jsxs16(Box17, { flexDirection: "row", gap: 1, children: [
|
|
7604
|
+
/* @__PURE__ */ jsx16(Text18, { color: COLORS.primary, children: `[${c.keyHint}]` }),
|
|
7605
|
+
/* @__PURE__ */ jsx16(Text18, { color: COLORS.muted, children: c.description })
|
|
7607
7606
|
] }, c.keyHint);
|
|
7608
7607
|
}) })
|
|
7609
7608
|
] })
|
|
@@ -7613,12 +7612,12 @@ function Sidebar() {
|
|
|
7613
7612
|
}
|
|
7614
7613
|
|
|
7615
7614
|
// src/ui/Ribbon.tsx
|
|
7616
|
-
import { Box as
|
|
7617
|
-
import { jsx as
|
|
7615
|
+
import { Box as Box18, Text as Text19 } from "ink";
|
|
7616
|
+
import { jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
7618
7617
|
function Ribbon() {
|
|
7619
7618
|
const firstCommand = sidebarCommands[0];
|
|
7620
7619
|
return /* @__PURE__ */ jsxs17(
|
|
7621
|
-
|
|
7620
|
+
Box18,
|
|
7622
7621
|
{
|
|
7623
7622
|
backgroundColor: "#14171E",
|
|
7624
7623
|
flexDirection: "row",
|
|
@@ -7626,11 +7625,11 @@ function Ribbon() {
|
|
|
7626
7625
|
paddingX: 2,
|
|
7627
7626
|
paddingY: 1,
|
|
7628
7627
|
children: [
|
|
7629
|
-
/* @__PURE__ */
|
|
7630
|
-
/* @__PURE__ */
|
|
7631
|
-
/* @__PURE__ */ jsxs17(
|
|
7632
|
-
/* @__PURE__ */
|
|
7633
|
-
/* @__PURE__ */
|
|
7628
|
+
/* @__PURE__ */ jsx17(Progress, {}),
|
|
7629
|
+
/* @__PURE__ */ jsx17(CurrentStep, {}),
|
|
7630
|
+
/* @__PURE__ */ jsxs17(Box18, { flexDirection: "row", gap: 1, children: [
|
|
7631
|
+
/* @__PURE__ */ jsx17(Text19, { color: COLORS.primary, children: `[${firstCommand.keyHint}]` }),
|
|
7632
|
+
/* @__PURE__ */ jsx17(Text19, { color: COLORS.muted, children: firstCommand.description })
|
|
7634
7633
|
] })
|
|
7635
7634
|
]
|
|
7636
7635
|
}
|
|
@@ -7641,8 +7640,8 @@ function Ribbon() {
|
|
|
7641
7640
|
import { useState as useState12 } from "react";
|
|
7642
7641
|
|
|
7643
7642
|
// src/ui/Logs.tsx
|
|
7644
|
-
import { Box as
|
|
7645
|
-
import { jsx as
|
|
7643
|
+
import { Box as Box19, Text as Text20, useInput as useInput8 } from "ink";
|
|
7644
|
+
import { jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
7646
7645
|
var KIND_COLOR = {
|
|
7647
7646
|
tool: COLORS.primary,
|
|
7648
7647
|
prompt: COLORS.badge
|
|
@@ -7678,9 +7677,9 @@ function Logs() {
|
|
|
7678
7677
|
else if (input === "j" || key.downArrow) scroll.scrollBy(1);
|
|
7679
7678
|
});
|
|
7680
7679
|
const visible = logs.slice(scroll.offset, scroll.offset + scroll.capacity);
|
|
7681
|
-
return /* @__PURE__ */ jsxs18(
|
|
7682
|
-
logs.length === 0 && /* @__PURE__ */
|
|
7683
|
-
/* @__PURE__ */
|
|
7680
|
+
return /* @__PURE__ */ jsxs18(Box19, { flexDirection: "column", paddingX: 4, paddingY: 2, flexGrow: 1, children: [
|
|
7681
|
+
logs.length === 0 && /* @__PURE__ */ jsx18(Text20, { color: COLORS.dim, children: "No logs yet." }),
|
|
7682
|
+
/* @__PURE__ */ jsx18(ScrollView, { scroll, children: visible.map((entry) => {
|
|
7684
7683
|
const timestamp = `[${formatTimestamp(entry.startedAt)}]`;
|
|
7685
7684
|
const durationText = entry.kind === "tool" && entry.durationMs !== void 0 ? `${entry.durationMs}ms` : "";
|
|
7686
7685
|
const rawPreview = rawInputText(entry.input);
|
|
@@ -7690,28 +7689,28 @@ function Logs() {
|
|
|
7690
7689
|
const name = truncate3(entry.name, budget);
|
|
7691
7690
|
budget -= name.length;
|
|
7692
7691
|
const preview = rawPreview ? truncate3(rawPreview, budget) : "";
|
|
7693
|
-
return /* @__PURE__ */ jsxs18(
|
|
7694
|
-
/* @__PURE__ */
|
|
7695
|
-
/* @__PURE__ */
|
|
7696
|
-
preview && /* @__PURE__ */
|
|
7697
|
-
durationText && /* @__PURE__ */
|
|
7692
|
+
return /* @__PURE__ */ jsxs18(Box19, { flexDirection: "row", gap: ROW_GAP, children: [
|
|
7693
|
+
/* @__PURE__ */ jsx18(Text20, { color: COLORS.dim, children: timestamp }),
|
|
7694
|
+
/* @__PURE__ */ jsx18(Text20, { color: logNameColor(entry), wrap: "truncate", children: name }),
|
|
7695
|
+
preview && /* @__PURE__ */ jsx18(Text20, { color: COLORS.dim, wrap: "truncate", children: preview }),
|
|
7696
|
+
durationText && /* @__PURE__ */ jsx18(Text20, { color: COLORS.dim, children: durationText })
|
|
7698
7697
|
] }, entry.id);
|
|
7699
7698
|
}) }),
|
|
7700
|
-
/* @__PURE__ */ jsxs18(
|
|
7701
|
-
/* @__PURE__ */
|
|
7702
|
-
/* @__PURE__ */
|
|
7699
|
+
/* @__PURE__ */ jsxs18(Text20, { children: [
|
|
7700
|
+
/* @__PURE__ */ jsx18(Text20, { color: COLORS.primary, children: "[j] [k]" }),
|
|
7701
|
+
/* @__PURE__ */ jsx18(Text20, { color: COLORS.dim, children: " scroll" })
|
|
7703
7702
|
] })
|
|
7704
7703
|
] });
|
|
7705
7704
|
}
|
|
7706
7705
|
|
|
7707
7706
|
// src/ui/Tips.tsx
|
|
7708
7707
|
import { useEffect as useEffect3, useRef as useRef4, useState as useState11 } from "react";
|
|
7709
|
-
import { Box as
|
|
7708
|
+
import { Box as Box21, Text as Text22 } from "ink";
|
|
7710
7709
|
import terminalLink from "terminal-link";
|
|
7711
7710
|
|
|
7712
7711
|
// src/ui/Code.tsx
|
|
7713
|
-
import { Box as
|
|
7714
|
-
import { jsx as
|
|
7712
|
+
import { Box as Box20, Text as Text21 } from "ink";
|
|
7713
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
7715
7714
|
var TOKEN_RE = /("(?:\\.|[^"\\])*"|\btrue\b|\bfalse\b|\bnull\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?|[{}[\]:,])/g;
|
|
7716
7715
|
function highlightJson(json) {
|
|
7717
7716
|
const parts = json.split(TOKEN_RE);
|
|
@@ -7720,22 +7719,22 @@ function highlightJson(json) {
|
|
|
7720
7719
|
if (part[0] === '"') {
|
|
7721
7720
|
const next = parts.slice(i + 1).find((p) => p.trim());
|
|
7722
7721
|
const isKey = next?.trimStart().startsWith(":");
|
|
7723
|
-
return /* @__PURE__ */
|
|
7722
|
+
return /* @__PURE__ */ jsx19(Text21, { color: isKey ? "cyan" : "green", children: part }, i);
|
|
7724
7723
|
}
|
|
7725
7724
|
if (part === "true" || part === "false" || part === "null") {
|
|
7726
|
-
return /* @__PURE__ */
|
|
7725
|
+
return /* @__PURE__ */ jsx19(Text21, { color: "magenta", children: part }, i);
|
|
7727
7726
|
}
|
|
7728
7727
|
if (/^-?\d/.test(part)) {
|
|
7729
|
-
return /* @__PURE__ */
|
|
7728
|
+
return /* @__PURE__ */ jsx19(Text21, { color: "yellow", children: part }, i);
|
|
7730
7729
|
}
|
|
7731
7730
|
if (/^[{}[\]:,]$/.test(part)) {
|
|
7732
|
-
return /* @__PURE__ */
|
|
7731
|
+
return /* @__PURE__ */ jsx19(Text21, { color: COLORS.dim, children: part }, i);
|
|
7733
7732
|
}
|
|
7734
|
-
return /* @__PURE__ */
|
|
7733
|
+
return /* @__PURE__ */ jsx19(Text21, { children: part }, i);
|
|
7735
7734
|
});
|
|
7736
7735
|
}
|
|
7737
7736
|
function Code({ children }) {
|
|
7738
|
-
return /* @__PURE__ */
|
|
7737
|
+
return /* @__PURE__ */ jsx19(Box20, { children: /* @__PURE__ */ jsx19(Text21, { children: highlightJson(children) }) });
|
|
7739
7738
|
}
|
|
7740
7739
|
|
|
7741
7740
|
// src/ui/copy/tips.ts
|
|
@@ -7949,26 +7948,26 @@ function tipsByIds(ids) {
|
|
|
7949
7948
|
}
|
|
7950
7949
|
|
|
7951
7950
|
// src/ui/Tips.tsx
|
|
7952
|
-
import { jsx as
|
|
7951
|
+
import { jsx as jsx20, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
7953
7952
|
var TICK_MS = 16;
|
|
7954
7953
|
var CHUNK_HOLD_MS = 2e3;
|
|
7955
7954
|
var HOLD_MS = 12e3;
|
|
7956
7955
|
function TipTitle({ children }) {
|
|
7957
|
-
return /* @__PURE__ */ jsxs19(
|
|
7958
|
-
/* @__PURE__ */
|
|
7959
|
-
/* @__PURE__ */
|
|
7956
|
+
return /* @__PURE__ */ jsxs19(Box21, { gap: 1, children: [
|
|
7957
|
+
/* @__PURE__ */ jsx20(Text22, { color: "cyan", children: "\u2726" }),
|
|
7958
|
+
/* @__PURE__ */ jsx20(Text22, { color: "white", bold: true, children })
|
|
7960
7959
|
] });
|
|
7961
7960
|
}
|
|
7962
7961
|
function InlineSegment({ segment }) {
|
|
7963
7962
|
switch (segment.type) {
|
|
7964
7963
|
case "highlight":
|
|
7965
|
-
return /* @__PURE__ */
|
|
7964
|
+
return /* @__PURE__ */ jsx20(Text22, { color: COLORS.success, children: segment.value });
|
|
7966
7965
|
case "link":
|
|
7967
|
-
return /* @__PURE__ */
|
|
7966
|
+
return /* @__PURE__ */ jsx20(Text22, { color: "cyan", underline: true, children: segment.href ? terminalLink(segment.value, segment.href) : segment.value });
|
|
7968
7967
|
case "codeword":
|
|
7969
|
-
return /* @__PURE__ */
|
|
7968
|
+
return /* @__PURE__ */ jsx20(Text22, { color: COLORS.highlight.fg, backgroundColor: COLORS.highlight.bg, children: segment.value });
|
|
7970
7969
|
default:
|
|
7971
|
-
return /* @__PURE__ */
|
|
7970
|
+
return /* @__PURE__ */ jsx20(Text22, { color: COLORS.muted, children: segment.value });
|
|
7972
7971
|
}
|
|
7973
7972
|
}
|
|
7974
7973
|
function TipContent({
|
|
@@ -8002,10 +8001,10 @@ function TipContent({
|
|
|
8002
8001
|
blocks.push({ type: "inline", segments: [segment] });
|
|
8003
8002
|
}
|
|
8004
8003
|
}
|
|
8005
|
-
return /* @__PURE__ */
|
|
8006
|
-
(block, i) => block.type === "code" ? /* @__PURE__ */
|
|
8004
|
+
return /* @__PURE__ */ jsx20(Box21, { flexDirection: "column", marginLeft: 2, gap: 1, children: blocks.map(
|
|
8005
|
+
(block, i) => block.type === "code" ? /* @__PURE__ */ jsx20(Code, { children: block.segment.value }, i) : /* @__PURE__ */ jsx20(Text22, { children: block.segments.map((segment, j) => /* @__PURE__ */ jsxs19(Text22, { children: [
|
|
8007
8006
|
j > 0 && " ",
|
|
8008
|
-
/* @__PURE__ */
|
|
8007
|
+
/* @__PURE__ */ jsx20(InlineSegment, { segment })
|
|
8009
8008
|
] }, j)) }, i)
|
|
8010
8009
|
) });
|
|
8011
8010
|
}
|
|
@@ -8082,9 +8081,9 @@ function Tips({
|
|
|
8082
8081
|
if (!tip) return null;
|
|
8083
8082
|
const titleRevealed = tip.title.slice(0, revealed);
|
|
8084
8083
|
const contentRevealed = Math.max(0, revealed - tip.title.length);
|
|
8085
|
-
return /* @__PURE__ */ jsxs19(
|
|
8086
|
-
/* @__PURE__ */
|
|
8087
|
-
/* @__PURE__ */
|
|
8084
|
+
return /* @__PURE__ */ jsxs19(Box21, { flexDirection: "column", marginBottom: 1, gap: 1, children: [
|
|
8085
|
+
/* @__PURE__ */ jsx20(TipTitle, { children: titleRevealed }),
|
|
8086
|
+
/* @__PURE__ */ jsx20(TipContent, { chunks: tip.chunks, revealed: contentRevealed })
|
|
8088
8087
|
] });
|
|
8089
8088
|
}
|
|
8090
8089
|
|
|
@@ -8126,7 +8125,7 @@ function useRepaintOnResize(debounceMs = 100) {
|
|
|
8126
8125
|
}
|
|
8127
8126
|
|
|
8128
8127
|
// src/ui/App.tsx
|
|
8129
|
-
import { jsx as
|
|
8128
|
+
import { jsx as jsx21, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
8130
8129
|
function App() {
|
|
8131
8130
|
const {
|
|
8132
8131
|
phase,
|
|
@@ -8198,7 +8197,7 @@ function App() {
|
|
|
8198
8197
|
the whole screen, and the scrolling throws off its cursor arithmetic.
|
|
8199
8198
|
Flicker and leftover rows. */
|
|
8200
8199
|
/* @__PURE__ */ jsxs20(
|
|
8201
|
-
|
|
8200
|
+
Box22,
|
|
8202
8201
|
{
|
|
8203
8202
|
backgroundColor: COLORS.bg.main,
|
|
8204
8203
|
flexDirection: "row",
|
|
@@ -8207,15 +8206,15 @@ function App() {
|
|
|
8207
8206
|
overflow: "hidden",
|
|
8208
8207
|
children: [
|
|
8209
8208
|
mainWindowVisible && /* @__PURE__ */ jsxs20(
|
|
8210
|
-
|
|
8209
|
+
Box22,
|
|
8211
8210
|
{
|
|
8212
8211
|
flexDirection,
|
|
8213
8212
|
width: "100%",
|
|
8214
8213
|
maxHeight: rows,
|
|
8215
8214
|
justifyContent: "space-between",
|
|
8216
8215
|
children: [
|
|
8217
|
-
showLogs ? /* @__PURE__ */
|
|
8218
|
-
|
|
8216
|
+
showLogs ? /* @__PURE__ */ jsx21(Logs, {}) : /* @__PURE__ */ jsxs20(
|
|
8217
|
+
Box22,
|
|
8219
8218
|
{
|
|
8220
8219
|
flexDirection: "column",
|
|
8221
8220
|
paddingX: 4,
|
|
@@ -8224,35 +8223,35 @@ function App() {
|
|
|
8224
8223
|
flexGrow: 1,
|
|
8225
8224
|
gap: 1,
|
|
8226
8225
|
children: [
|
|
8227
|
-
/* @__PURE__ */ jsxs20(
|
|
8228
|
-
phase === "preflight" && !user && /* @__PURE__ */
|
|
8229
|
-
/* @__PURE__ */
|
|
8226
|
+
/* @__PURE__ */ jsxs20(Box22, { flexGrow: 2, flexDirection: "column", children: [
|
|
8227
|
+
phase === "preflight" && !user && /* @__PURE__ */ jsx21(Box22, { flexDirection: "column", marginBottom: 1, children: /* @__PURE__ */ jsxs20(Text23, { color: COLORS.strong, bold: true, children: [
|
|
8228
|
+
/* @__PURE__ */ jsx21(Spinner3, { type: "dots" }),
|
|
8230
8229
|
" Signing in to Algolia"
|
|
8231
8230
|
] }) }),
|
|
8232
|
-
phase === "preflight" && user && /* @__PURE__ */
|
|
8233
|
-
/* @__PURE__ */
|
|
8231
|
+
phase === "preflight" && user && /* @__PURE__ */ jsx21(Box22, { flexDirection: "column", marginBottom: 1, children: /* @__PURE__ */ jsxs20(Text23, { color: COLORS.strong, bold: true, children: [
|
|
8232
|
+
/* @__PURE__ */ jsx21(Spinner3, { type: "dots" }),
|
|
8234
8233
|
" Getting things ready"
|
|
8235
8234
|
] }) }),
|
|
8236
|
-
phase === "authenticating" && /* @__PURE__ */ jsxs20(
|
|
8237
|
-
/* @__PURE__ */ jsxs20(
|
|
8238
|
-
/* @__PURE__ */
|
|
8235
|
+
phase === "authenticating" && /* @__PURE__ */ jsxs20(Box22, { flexDirection: "column", marginBottom: 1, children: [
|
|
8236
|
+
/* @__PURE__ */ jsxs20(Text23, { color: COLORS.strong, bold: true, children: [
|
|
8237
|
+
/* @__PURE__ */ jsx21(Spinner3, { type: "dots" }),
|
|
8239
8238
|
" Signing in to Algolia"
|
|
8240
8239
|
] }),
|
|
8241
|
-
/* @__PURE__ */
|
|
8240
|
+
/* @__PURE__ */ jsx21(Text23, { color: COLORS.muted, children: "A browser window will open \u2014 complete sign-in there." })
|
|
8242
8241
|
] }),
|
|
8243
|
-
settingUpAppId && /* @__PURE__ */
|
|
8244
|
-
/* @__PURE__ */
|
|
8242
|
+
settingUpAppId && /* @__PURE__ */ jsx21(Box22, { flexDirection: "column", marginBottom: 1, children: /* @__PURE__ */ jsxs20(Text23, { color: COLORS.strong, bold: true, children: [
|
|
8243
|
+
/* @__PURE__ */ jsx21(Spinner3, { type: "dots" }),
|
|
8245
8244
|
" Setting up Wizard using app",
|
|
8246
8245
|
" ",
|
|
8247
8246
|
settingUpAppId
|
|
8248
8247
|
] }) }),
|
|
8249
|
-
phase === "running" && !settingUpAppId && loadingMessage && /* @__PURE__ */
|
|
8250
|
-
/* @__PURE__ */
|
|
8248
|
+
phase === "running" && !settingUpAppId && loadingMessage && /* @__PURE__ */ jsx21(Box22, { flexDirection: "column", marginBottom: 1, children: /* @__PURE__ */ jsxs20(Text23, { color: COLORS.strong, bold: true, children: [
|
|
8249
|
+
/* @__PURE__ */ jsx21(Spinner3, { type: "dots" }),
|
|
8251
8250
|
" ",
|
|
8252
8251
|
loadingMessage
|
|
8253
8252
|
] }) }),
|
|
8254
|
-
/* @__PURE__ */
|
|
8255
|
-
showTips && currentStep && /* @__PURE__ */
|
|
8253
|
+
/* @__PURE__ */ jsx21(CliOutput, {}),
|
|
8254
|
+
showTips && currentStep && /* @__PURE__ */ jsx21(
|
|
8256
8255
|
Tips,
|
|
8257
8256
|
{
|
|
8258
8257
|
stepId: currentStep.id,
|
|
@@ -8260,24 +8259,24 @@ function App() {
|
|
|
8260
8259
|
onRevealStateChange: setTipState
|
|
8261
8260
|
}
|
|
8262
8261
|
),
|
|
8263
|
-
showNoticesInMain && showNotices && /* @__PURE__ */
|
|
8264
|
-
/* @__PURE__ */
|
|
8265
|
-
!showTips && /* @__PURE__ */
|
|
8266
|
-
phase === "error" && error && /* @__PURE__ */
|
|
8262
|
+
showNoticesInMain && showNotices && /* @__PURE__ */ jsx21(Notices, { showAll: true, border: false }),
|
|
8263
|
+
/* @__PURE__ */ jsx21(Review, {}),
|
|
8264
|
+
!showTips && /* @__PURE__ */ jsx21(PromptInput, {}),
|
|
8265
|
+
phase === "error" && error && /* @__PURE__ */ jsx21(Box22, { marginTop: 1, children: /* @__PURE__ */ jsxs20(Text23, { color: COLORS.status.error, children: [
|
|
8267
8266
|
"\u2716 ",
|
|
8268
8267
|
error
|
|
8269
8268
|
] }) })
|
|
8270
8269
|
] }),
|
|
8271
|
-
!showNoticesInMain && showNotices && /* @__PURE__ */
|
|
8272
|
-
showTips && !holdForTip && /* @__PURE__ */
|
|
8270
|
+
!showNoticesInMain && showNotices && /* @__PURE__ */ jsx21(Notices, {}),
|
|
8271
|
+
showTips && !holdForTip && /* @__PURE__ */ jsx21(PromptInput, {})
|
|
8273
8272
|
]
|
|
8274
8273
|
}
|
|
8275
8274
|
),
|
|
8276
|
-
showSidebar ? /* @__PURE__ */
|
|
8275
|
+
showSidebar ? /* @__PURE__ */ jsx21(Sidebar, {}) : /* @__PURE__ */ jsx21(Ribbon, {})
|
|
8277
8276
|
]
|
|
8278
8277
|
}
|
|
8279
8278
|
),
|
|
8280
|
-
phase === "idle" && (homeScreen === "learnMore" ? /* @__PURE__ */
|
|
8279
|
+
phase === "idle" && (homeScreen === "learnMore" ? /* @__PURE__ */ jsx21(LearnMore, {}) : /* @__PURE__ */ jsx21(Welcome, {}))
|
|
8281
8280
|
]
|
|
8282
8281
|
}
|
|
8283
8282
|
)
|
|
@@ -8493,7 +8492,7 @@ async function seedWorkflowState(workflow, value) {
|
|
|
8493
8492
|
|
|
8494
8493
|
// src/lib/resetState.ts
|
|
8495
8494
|
import { readdir as readdir3, rm as rm2 } from "node:fs/promises";
|
|
8496
|
-
import { join as
|
|
8495
|
+
import { join as join12 } from "node:path";
|
|
8497
8496
|
var KEEP = ["wizard.log"];
|
|
8498
8497
|
async function resetProjectState() {
|
|
8499
8498
|
const dir = stateDir();
|
|
@@ -8507,7 +8506,7 @@ async function resetProjectState() {
|
|
|
8507
8506
|
const targets = entries.filter((name) => !KEEP.includes(name));
|
|
8508
8507
|
await Promise.all(
|
|
8509
8508
|
targets.map(
|
|
8510
|
-
(name) => rm2(
|
|
8509
|
+
(name) => rm2(join12(dir, name), { recursive: true, force: true })
|
|
8511
8510
|
)
|
|
8512
8511
|
);
|
|
8513
8512
|
return { dir, removed: targets };
|
|
@@ -8516,7 +8515,7 @@ async function resetProjectState() {
|
|
|
8516
8515
|
// package.json with { type: 'json' }
|
|
8517
8516
|
var package_default2 = {
|
|
8518
8517
|
name: "@algolia/wizard",
|
|
8519
|
-
version: "0.
|
|
8518
|
+
version: "0.79.0",
|
|
8520
8519
|
description: "Magically implement Algolia functionality in your codebase",
|
|
8521
8520
|
type: "module",
|
|
8522
8521
|
engines: {
|
|
@@ -8572,7 +8571,6 @@ var package_default2 = {
|
|
|
8572
8571
|
dotenv: "^17.4.2",
|
|
8573
8572
|
hono: "^4.13.8",
|
|
8574
8573
|
ink: "^7.0.5",
|
|
8575
|
-
"ink-picture": "^2.1.0",
|
|
8576
8574
|
"ink-spinner": "^5.0.0",
|
|
8577
8575
|
ioredis: "^5.11.1",
|
|
8578
8576
|
nanoid: "^5.1.15",
|
|
@@ -8623,7 +8621,7 @@ async function checkVersion() {
|
|
|
8623
8621
|
}
|
|
8624
8622
|
|
|
8625
8623
|
// src/main.tsx
|
|
8626
|
-
import { jsx as
|
|
8624
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
8627
8625
|
var FAILURE_EXIT_CODE = 1;
|
|
8628
8626
|
async function exitProcessWithError(store, instance, message) {
|
|
8629
8627
|
store.setError(message);
|
|
@@ -8686,7 +8684,7 @@ ${formatStepList(workflow)}`);
|
|
|
8686
8684
|
async function run(opts) {
|
|
8687
8685
|
const { workflow, skipResumePrompt } = opts;
|
|
8688
8686
|
const store = useWizard.getState();
|
|
8689
|
-
const instance = render(/* @__PURE__ */
|
|
8687
|
+
const instance = render(/* @__PURE__ */ jsx22(App, {}), { incrementalRendering: true });
|
|
8690
8688
|
await store.waitForStart();
|
|
8691
8689
|
store.syncSteps(
|
|
8692
8690
|
workflow.steps.map((s) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/wizard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.79.0",
|
|
4
4
|
"description": "Magically implement Algolia functionality in your codebase",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"dotenv": "^17.4.2",
|
|
57
57
|
"hono": "^4.13.8",
|
|
58
58
|
"ink": "^7.0.5",
|
|
59
|
-
"ink-picture": "^2.1.0",
|
|
60
59
|
"ink-spinner": "^5.0.0",
|
|
61
60
|
"ioredis": "^5.11.1",
|
|
62
61
|
"nanoid": "^5.1.15",
|
package/dist/algolia.png
DELETED
|
Binary file
|