@kud/jira-cli 0.4.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/jira-cli",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "description": "Jira on the command line — read issues, comments and attachments as plain text",
6
6
  "keywords": [
@@ -37,11 +37,11 @@
37
37
  "prepublishOnly": "npm run build"
38
38
  },
39
39
  "dependencies": {
40
- "@kud/ink-markdown": "0.1.1",
41
- "@kud/ink-ui": "0.14.1",
42
- "@kud/jira": "0.2.1",
40
+ "@kud/ink-ui": "0.25.0",
41
+ "@kud/jira": "0.3.0",
42
+ "@kud/jira-ink": "0.2.1",
43
43
  "commander": "14.0.1",
44
- "ink": "7.0.1",
44
+ "ink": "7.1.1",
45
45
  "react": "19.2.5"
46
46
  },
47
47
  "devDependencies": {
@@ -1,603 +0,0 @@
1
- import {
2
- context,
3
- truncate
4
- } from "./chunk-5MFNIQDW.js";
5
-
6
- // src/tui/index.tsx
7
- import { render } from "ink";
8
-
9
- // src/tui/app.tsx
10
- import { execFile } from "child_process";
11
- import { Alert, ConfirmInput, Select, Spinner, TextInput } from "@kud/ink-ui";
12
- import { Box as Box3, Text as Text3, useApp, useInput as useInput3, useStdout } from "ink";
13
- import { useCallback, useEffect, useState as useState2 } from "react";
14
-
15
- // src/tui/detail.tsx
16
- import { MarkdownViewport } from "@kud/ink-markdown";
17
- import {
18
- Badge,
19
- FooterHints,
20
- KeyValue,
21
- Tabs,
22
- useTabs
23
- } from "@kud/ink-ui";
24
- import { Box, Text, useInput } from "ink";
25
- import { useState } from "react";
26
- import { jsx, jsxs } from "react/jsx-runtime";
27
- var originOf = (a) => a.origins.map(
28
- (o) => o.kind === "comment" ? `comment by ${o.author ?? "unknown"}` : o.kind === "description" ? "description" : "issue"
29
- ).join(", ");
30
- var humanSize = (bytes) => {
31
- const units = ["B", "KB", "MB", "GB"];
32
- const e = Math.min(
33
- units.length - 1,
34
- Math.floor(Math.log(Math.max(bytes, 1)) / Math.log(1024))
35
- );
36
- const value = bytes / 1024 ** e;
37
- return `${e === 0 ? value : value.toFixed(1)}${units[e]}`;
38
- };
39
- var commentsAsMarkdown = (issue) => issue.comments.length === 0 ? "_No comments._" : issue.comments.map((c) => `**${c.author}** \xB7 ${c.created}
40
-
41
- ${c.body}`).join("\n\n---\n\n");
42
- var attachmentsAsMarkdown = (issue) => issue.attachments.length === 0 ? "_No attachments._" : issue.attachments.map(
43
- (a) => `- \`${a.filename}\` \u2014 ${a.mimeType}, ${humanSize(a.size)}
44
- from ${originOf(a)}
45
- \`jira attachment read ${issue.key} ${a.filename}\``
46
- ).join("\n");
47
- var IssueDetailView = ({
48
- issue,
49
- height,
50
- width,
51
- onBack,
52
- onTransition,
53
- onComment,
54
- onAssign,
55
- onOpenBrowser
56
- }) => {
57
- const tabs = [
58
- { value: "description", label: "Description" },
59
- { value: "comments", label: "Comments", count: issue.comments.length },
60
- {
61
- value: "attachments",
62
- label: "Attachments",
63
- count: issue.attachments.length
64
- }
65
- ];
66
- const { active } = useTabs(tabs, { initial: "description" });
67
- const [scroll, setScroll] = useState(0);
68
- useInput((input, key) => {
69
- if (key.escape || key.leftArrow) return onBack();
70
- if (input === "t") return onTransition();
71
- if (input === "c") return onComment();
72
- if (input === "a") return onAssign();
73
- if (input === "o") return onOpenBrowser();
74
- if (key.downArrow || input === "j") setScroll((s) => s + 1);
75
- if (key.upArrow || input === "k") setScroll((s) => Math.max(0, s - 1));
76
- });
77
- const source = active === "comments" ? commentsAsMarkdown(issue) : active === "attachments" ? attachmentsAsMarkdown(issue) : issue.description || "_No description._";
78
- const bodyHeight = Math.max(3, height - 12);
79
- return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
80
- /* @__PURE__ */ jsxs(Text, { bold: true, children: [
81
- issue.key,
82
- " ",
83
- issue.summary
84
- ] }),
85
- /* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
86
- issue.parent && /* @__PURE__ */ jsx(
87
- KeyValue,
88
- {
89
- label: "parent",
90
- value: `${issue.parent.key} ${truncate(issue.parent.summary, 60)}`
91
- }
92
- ),
93
- /* @__PURE__ */ jsx(KeyValue, { label: "status", value: /* @__PURE__ */ jsx(Badge, { children: issue.status }) }),
94
- /* @__PURE__ */ jsx(KeyValue, { label: "type", value: issue.type }),
95
- /* @__PURE__ */ jsx(KeyValue, { label: "assignee", value: issue.assignee }),
96
- /* @__PURE__ */ jsx(KeyValue, { label: "reporter", value: issue.reporter }),
97
- issue.labels.length > 0 && /* @__PURE__ */ jsx(KeyValue, { label: "labels", value: issue.labels.join(", ") })
98
- ] }),
99
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Tabs, { items: tabs, active: active ?? "description" }) }),
100
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(
101
- MarkdownViewport,
102
- {
103
- source,
104
- width: Math.max(20, width - 2),
105
- height: bodyHeight,
106
- scrollOffset: scroll
107
- }
108
- ) }),
109
- /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(
110
- FooterHints,
111
- {
112
- hints: [
113
- ["\u2190\u2192", "section"],
114
- ["\u2191\u2193", "scroll"],
115
- ["t", "transition"],
116
- ["c", "comment"],
117
- ["a", "assign to me"],
118
- ["o", "browser"],
119
- ["esc", "back"]
120
- ]
121
- }
122
- ) })
123
- ] });
124
- };
125
-
126
- // src/tui/list.tsx
127
- import { FooterHints as FooterHints2, SelectableRow, useListCursor } from "@kud/ink-ui";
128
- import { Box as Box2, Text as Text2, useInput as useInput2 } from "ink";
129
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
130
- var pad = (s, width) => s.length > width ? `${s.slice(0, width - 1)}\u2026` : s.padEnd(width);
131
- var windowFor = (cursor, total, size) => {
132
- const start = Math.max(
133
- 0,
134
- Math.min(cursor - Math.floor(size / 2), total - size)
135
- );
136
- return { start: Math.max(0, start), end: Math.max(0, start) + size };
137
- };
138
- var IssueList = ({
139
- rows,
140
- showingAll,
141
- onOpen,
142
- onToggleAll,
143
- onRefresh,
144
- height
145
- }) => {
146
- const { cursor } = useListCursor(rows.length, { vimKeys: true });
147
- useInput2((input, key) => {
148
- if (key.return && rows[cursor]) onOpen(rows[cursor].key);
149
- if (input === "a") onToggleAll();
150
- if (input === "r") onRefresh();
151
- });
152
- const hints = [
153
- ["\u2191\u2193", "move"],
154
- ["enter", "open"],
155
- ["a", showingAll ? "open only" : "show all"],
156
- ["r", "refresh"],
157
- ["q", "quit"]
158
- ];
159
- if (rows.length === 0) {
160
- return /* @__PURE__ */ jsxs2(Box2, { flexDirection: "column", gap: 1, children: [
161
- /* @__PURE__ */ jsx2(Text2, { dimColor: true, children: showingAll ? "Nothing is assigned to you." : "No open issues assigned to you \u2014 press a to include closed ones." }),
162
- /* @__PURE__ */ jsx2(FooterHints2, { hints })
163
- ] });
164
- }
165
- const size = Math.max(3, height - 5);
166
- const { start, end } = windowFor(cursor, rows.length, size);
167
- const visible = rows.slice(start, end);
168
- return /* @__PURE__ */ jsxs2(Box2, { flexDirection: "column", children: [
169
- /* @__PURE__ */ jsx2(Box2, { paddingLeft: 4, children: /* @__PURE__ */ jsxs2(Text2, { dimColor: true, children: [
170
- pad("KEY", 11),
171
- pad("STATUS", 17),
172
- pad("SUMMARY", 60),
173
- "ASSIGNEE"
174
- ] }) }),
175
- visible.map((row, i) => /* @__PURE__ */ jsx2(SelectableRow, { active: start + i === cursor, children: /* @__PURE__ */ jsxs2(Text2, { children: [
176
- pad(row.key, 11),
177
- pad(row.status, 17),
178
- pad(row.summary, 60),
179
- /* @__PURE__ */ jsx2(Text2, { dimColor: true, children: row.assignee })
180
- ] }) }, row.key)),
181
- /* @__PURE__ */ jsxs2(Box2, { marginTop: 1, flexDirection: "column", children: [
182
- /* @__PURE__ */ jsxs2(Text2, { dimColor: true, children: [
183
- cursor + 1,
184
- "/",
185
- rows.length,
186
- showingAll ? " \xB7 all" : " \xB7 open only"
187
- ] }),
188
- /* @__PURE__ */ jsx2(FooterHints2, { hints })
189
- ] })
190
- ] });
191
- };
192
-
193
- // src/tui/app.tsx
194
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
195
- var MIN_WIDTH = 60;
196
- var MIN_HEIGHT = 12;
197
- var App = ({ data, initialScreen, initialKey }) => {
198
- const { exit } = useApp();
199
- const { stdout } = useStdout();
200
- const width = stdout?.columns ?? 80;
201
- const height = stdout?.rows ?? 24;
202
- const [screen, setScreen] = useState2(initialScreen);
203
- const [rows, setRows] = useState2(null);
204
- const [issue, setIssue] = useState2(null);
205
- const [overlay, setOverlay] = useState2({ kind: "none" });
206
- const [showingAll, setShowingAll] = useState2(false);
207
- const [error, setError] = useState2(null);
208
- const [busy, setBusy] = useState2(null);
209
- const loadList = useCallback(
210
- async (all) => {
211
- setError(null);
212
- setRows(null);
213
- try {
214
- setRows(await data.listIssues(all));
215
- } catch (e) {
216
- setError(e instanceof Error ? e.message : String(e));
217
- }
218
- },
219
- [data]
220
- );
221
- const loadIssue = useCallback(
222
- async (key) => {
223
- setError(null);
224
- setIssue(null);
225
- setScreen("detail");
226
- try {
227
- setIssue(await data.getIssue(key));
228
- } catch (e) {
229
- setError(e instanceof Error ? e.message : String(e));
230
- }
231
- },
232
- [data]
233
- );
234
- useEffect(() => {
235
- if (initialScreen === "detail" && initialKey) void loadIssue(initialKey);
236
- else void loadList(false);
237
- }, [initialScreen, initialKey, loadIssue, loadList]);
238
- useInput3((input, key) => {
239
- if (overlay.kind !== "none") return;
240
- if (input === "q" || key.ctrl && input === "c") exit();
241
- if (error && input === "r") {
242
- if (screen === "issues") void loadList(showingAll);
243
- else if (issue) void loadIssue(issue.key);
244
- }
245
- });
246
- if (width < MIN_WIDTH || height < MIN_HEIGHT) {
247
- return /* @__PURE__ */ jsxs3(Text3, { children: [
248
- "Terminal too small \u2014 needs at least ",
249
- MIN_WIDTH,
250
- "\xD7",
251
- MIN_HEIGHT,
252
- ", this is",
253
- " ",
254
- width,
255
- "\xD7",
256
- height,
257
- "."
258
- ] });
259
- }
260
- if (error) {
261
- return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", gap: 1, children: [
262
- /* @__PURE__ */ jsx3(Alert, { variant: "error", children: error }),
263
- /* @__PURE__ */ jsx3(Text3, { dimColor: true, children: "r retry \xB7 q quit" })
264
- ] });
265
- }
266
- if (busy) return /* @__PURE__ */ jsx3(Spinner, { label: busy });
267
- if (overlay.kind === "transition") {
268
- return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", gap: 1, children: [
269
- /* @__PURE__ */ jsxs3(Text3, { bold: true, children: [
270
- "Move ",
271
- issue?.key,
272
- " to\u2026"
273
- ] }),
274
- /* @__PURE__ */ jsx3(
275
- Select,
276
- {
277
- options: overlay.options.map((t) => ({
278
- label: `${t.name} \u2192 ${t.to}`,
279
- value: t.id
280
- })),
281
- onSubmit: (id) => {
282
- setOverlay({ kind: "none" });
283
- void (async () => {
284
- setBusy("Transitioning\u2026");
285
- try {
286
- await data.transition(issue.key, id);
287
- await loadIssue(issue.key);
288
- } catch (e) {
289
- setError(e instanceof Error ? e.message : String(e));
290
- } finally {
291
- setBusy(null);
292
- }
293
- })();
294
- }
295
- }
296
- ),
297
- /* @__PURE__ */ jsx3(Text3, { dimColor: true, children: "esc cancel" })
298
- ] });
299
- }
300
- if (overlay.kind === "comment") {
301
- return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", gap: 1, children: [
302
- /* @__PURE__ */ jsxs3(Text3, { bold: true, children: [
303
- "Comment on ",
304
- issue?.key
305
- ] }),
306
- /* @__PURE__ */ jsx3(
307
- TextInput,
308
- {
309
- placeholder: "Markdown is supported\u2026",
310
- onSubmit: (body) => {
311
- setOverlay({ kind: "none" });
312
- if (!body.trim()) return;
313
- void (async () => {
314
- setBusy("Posting\u2026");
315
- try {
316
- await data.comment(issue.key, body);
317
- await loadIssue(issue.key);
318
- } catch (e) {
319
- setError(e instanceof Error ? e.message : String(e));
320
- } finally {
321
- setBusy(null);
322
- }
323
- })();
324
- }
325
- }
326
- )
327
- ] });
328
- }
329
- if (overlay.kind === "assign") {
330
- return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", gap: 1, children: [
331
- /* @__PURE__ */ jsxs3(Text3, { children: [
332
- "Assign ",
333
- issue?.key,
334
- " to yourself?"
335
- ] }),
336
- /* @__PURE__ */ jsx3(
337
- ConfirmInput,
338
- {
339
- onCancel: () => setOverlay({ kind: "none" }),
340
- onConfirm: () => {
341
- setOverlay({ kind: "none" });
342
- void (async () => {
343
- setBusy("Assigning\u2026");
344
- try {
345
- await data.assignToMe(issue.key);
346
- await loadIssue(issue.key);
347
- } catch (e) {
348
- setError(e instanceof Error ? e.message : String(e));
349
- } finally {
350
- setBusy(null);
351
- }
352
- })();
353
- }
354
- }
355
- )
356
- ] });
357
- }
358
- if (screen === "detail") {
359
- if (!issue) return /* @__PURE__ */ jsx3(Spinner, { label: "Loading issue\u2026" });
360
- return /* @__PURE__ */ jsx3(
361
- IssueDetailView,
362
- {
363
- issue,
364
- width,
365
- height,
366
- onBack: () => setScreen("issues"),
367
- onOpenBrowser: () => execFile(opener(), [issue.url]),
368
- onAssign: () => setOverlay({ kind: "assign" }),
369
- onComment: () => setOverlay({ kind: "comment" }),
370
- onTransition: () => {
371
- void (async () => {
372
- setBusy("Loading transitions\u2026");
373
- try {
374
- const options = await data.getTransitions(issue.key);
375
- setOverlay({ kind: "transition", options });
376
- } catch (e) {
377
- setError(e instanceof Error ? e.message : String(e));
378
- } finally {
379
- setBusy(null);
380
- }
381
- })();
382
- }
383
- }
384
- );
385
- }
386
- if (!rows) return /* @__PURE__ */ jsx3(Spinner, { label: "Loading issues\u2026" });
387
- return /* @__PURE__ */ jsx3(
388
- IssueList,
389
- {
390
- rows,
391
- height,
392
- showingAll,
393
- onOpen: (key) => void loadIssue(key),
394
- onRefresh: () => void loadList(showingAll),
395
- onToggleAll: () => {
396
- const next = !showingAll;
397
- setShowingAll(next);
398
- void loadList(next);
399
- }
400
- }
401
- );
402
- };
403
- var opener = () => process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
404
-
405
- // src/tui/data.ts
406
- import { adfToMarkdown, locateAttachments } from "@kud/jira";
407
- var OPEN_ONLY = "statusCategory != Done";
408
- var toRow = (issue) => ({
409
- key: issue.key,
410
- status: issue.fields.status?.name ?? "\u2014",
411
- summary: issue.fields.summary ?? "",
412
- assignee: issue.fields.assignee?.displayName ?? "unassigned",
413
- updated: issue.fields.updated?.slice(0, 10) ?? ""
414
- });
415
- var liveData = (ctx = context()) => ({
416
- baseUrl: ctx.config.baseUrl,
417
- listIssues: async (all) => {
418
- const jql = `assignee = currentUser()${all ? "" : ` AND ${OPEN_ONLY}`} ORDER BY updated DESC`;
419
- return (await ctx.client.searchIssues(jql, { limit: 200 })).map(toRow);
420
- },
421
- getIssue: async (key) => {
422
- const issue = await ctx.client.getIssue(key);
423
- const attachments = locateAttachments(issue);
424
- const filenameOf = (id) => attachments.find((a) => a.id === id)?.filename;
425
- const f = issue.fields;
426
- return {
427
- key: issue.key,
428
- summary: f.summary ?? "",
429
- status: f.status?.name ?? "\u2014",
430
- type: f.issuetype?.name ?? "\u2014",
431
- assignee: f.assignee?.displayName ?? "unassigned",
432
- reporter: f.reporter?.displayName ?? "\u2014",
433
- labels: f.labels ?? [],
434
- parent: f.parent ? { key: f.parent.key, summary: f.parent.fields?.summary ?? "" } : void 0,
435
- url: `${ctx.config.baseUrl}/browse/${issue.key}`,
436
- description: adfToMarkdown(f.description, filenameOf),
437
- comments: (f.comment?.comments ?? []).map((c) => ({
438
- id: c.id,
439
- author: c.author?.displayName ?? "unknown",
440
- created: c.created?.slice(0, 10) ?? "",
441
- body: adfToMarkdown(c.body, filenameOf)
442
- })),
443
- attachments
444
- };
445
- },
446
- getTransitions: async (key) => (await ctx.client.getTransitions(key)).transitions.map((t) => ({
447
- id: t.id,
448
- name: t.name,
449
- to: t.to?.name ?? t.name
450
- })),
451
- transition: (key, transitionId) => ctx.client.transitionIssue(key, transitionId),
452
- comment: async (key, body) => {
453
- const { markdownToAdf } = await import("@kud/jira");
454
- await ctx.client.addComment(key, markdownToAdf(body));
455
- },
456
- assignToMe: async (key) => {
457
- const me = await ctx.client.getMe();
458
- await ctx.client.assignIssue(key, me.accountId);
459
- }
460
- });
461
-
462
- // src/tui/mock.ts
463
- var ROWS = [
464
- {
465
- key: "SHOP-412",
466
- status: "In Progress",
467
- summary: "Checkout total ignores the discount on the last item",
468
- assignee: "Ada Okafor",
469
- updated: "2026-08-14"
470
- },
471
- {
472
- key: "SHOP-408",
473
- status: "In Review",
474
- summary: "Add a dark theme to the storefront",
475
- assignee: "Ada Okafor",
476
- updated: "2026-08-13"
477
- },
478
- {
479
- key: "SHOP-397",
480
- status: "To Do",
481
- summary: "Search returns stale results after a filter change",
482
- assignee: "Ada Okafor",
483
- updated: "2026-08-11"
484
- },
485
- {
486
- key: "PLAT-88",
487
- status: "Blocked",
488
- summary: "Rotate the staging database credentials",
489
- assignee: "Ada Okafor",
490
- updated: "2026-08-09"
491
- }
492
- ];
493
- var DETAIL = {
494
- "SHOP-412": {
495
- key: "SHOP-412",
496
- summary: "Checkout total ignores the discount on the last item",
497
- status: "In Progress",
498
- type: "Bug",
499
- assignee: "Ada Okafor",
500
- reporter: "Bram Nilsen",
501
- labels: ["checkout", "regression"],
502
- parent: { key: "SHOP-300", summary: "Basket and checkout correctness" },
503
- url: "https://example.atlassian.net/browse/SHOP-412",
504
- description: [
505
- "## What happens",
506
- "",
507
- "The basket total is correct until the **last** line item, whose discount is",
508
- "dropped from the sum.",
509
- "",
510
- "```js",
511
- "const total = items.slice(0, -1).reduce(withDiscount, 0)",
512
- "```",
513
- "",
514
- "1. Add three items",
515
- "2. Apply `SUMMER20`",
516
- "3. Compare the total against the line items",
517
- "",
518
- "[attachment: basket.png]"
519
- ].join("\n"),
520
- comments: [
521
- {
522
- id: "c1",
523
- author: "Bram Nilsen",
524
- created: "2026-08-13",
525
- body: "Reproduced on staging. Screenshot attached.\n\n[attachment: basket.png]"
526
- },
527
- {
528
- id: "c2",
529
- author: "Ada Okafor",
530
- created: "2026-08-14",
531
- body: "Off-by-one in `slice(0, -1)`. Fix and a regression test on the way."
532
- }
533
- ],
534
- attachments: [
535
- {
536
- id: "9001",
537
- filename: "basket.png",
538
- mimeType: "image/png",
539
- size: 48213,
540
- origins: [{ kind: "comment", commentId: "c1", author: "Bram Nilsen" }]
541
- },
542
- {
543
- id: "9002",
544
- filename: "checkout.log",
545
- mimeType: "text/plain",
546
- size: 2044,
547
- origins: [{ kind: "issue" }]
548
- }
549
- ]
550
- }
551
- };
552
- var fallbackDetail = (key) => {
553
- const row = ROWS.find((r) => r.key === key) ?? ROWS[0];
554
- return {
555
- key: row.key,
556
- summary: row.summary,
557
- status: row.status,
558
- type: "Task",
559
- assignee: row.assignee,
560
- reporter: "Bram Nilsen",
561
- labels: [],
562
- url: `https://example.atlassian.net/browse/${row.key}`,
563
- description: "_No description._",
564
- comments: [],
565
- attachments: []
566
- };
567
- };
568
- var mockData = () => ({
569
- baseUrl: "https://example.atlassian.net",
570
- listIssues: async (all) => all ? ROWS : ROWS.filter((r) => r.status !== "Done"),
571
- getIssue: async (key) => DETAIL[key] ?? fallbackDetail(key),
572
- getTransitions: async () => [
573
- { id: "11", name: "Start progress", to: "In Progress" },
574
- { id: "21", name: "Ready for review", to: "In Review" },
575
- { id: "31", name: "Done", to: "Done" }
576
- ],
577
- transition: async () => {
578
- },
579
- comment: async () => {
580
- },
581
- assignToMe: async () => {
582
- }
583
- });
584
-
585
- // src/tui/index.tsx
586
- import { jsx as jsx4 } from "react/jsx-runtime";
587
- var SCREENS = ["issues", "detail"];
588
- var runTui = async ({
589
- screen,
590
- mock,
591
- issueKey
592
- }) => {
593
- const data = mock ? mockData() : liveData();
594
- const key = issueKey ?? (mock ? "SHOP-412" : void 0);
595
- const { waitUntilExit } = render(
596
- /* @__PURE__ */ jsx4(App, { data, initialScreen: screen, initialKey: key })
597
- );
598
- await waitUntilExit();
599
- };
600
- export {
601
- SCREENS,
602
- runTui
603
- };