@ftrdotdev/pi-tui 0.3.0 → 0.4.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 +1 -1
- package/src/activity.test.ts +281 -0
- package/src/activity.ts +274 -0
- package/src/icons.ts +8 -0
- package/src/index.ts +45 -7
- package/src/state.test.ts +9 -0
- package/src/state.ts +5 -2
- package/src/ui/footer.test.ts +170 -1
- package/src/ui/footer.ts +7 -2
- package/src/ui/header.test.ts +8 -8
- package/src/ui/preview.test.ts +373 -28
- package/src/ui/preview.ts +272 -25
- package/src/ui/render-helpers.ts +57 -8
package/src/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { SessionLifecycle } from "./session-lifecycle.ts";
|
|
|
11
11
|
import { PreviewService, registerPreview } from "./ui/preview.ts";
|
|
12
12
|
import { registerSettingsCommand } from "./ui/settings-command.ts";
|
|
13
13
|
import { formatTurnTelemetry, TurnTelemetryTracker } from "./telemetry.ts";
|
|
14
|
+
import { ActivityTracker, toTrackerEvent, type TrackerEventSource } from "./activity.ts";
|
|
14
15
|
import {
|
|
15
16
|
createInitialState,
|
|
16
17
|
getModelMeta,
|
|
@@ -199,8 +200,8 @@ const main = Effect.fn("tui/main")(function* (pi: ExtensionAPI) {
|
|
|
199
200
|
sessionLifecycle.start();
|
|
200
201
|
lastCtx = ctx;
|
|
201
202
|
state.sessionStartEpoch = Date.now();
|
|
202
|
-
state.workingSince = undefined;
|
|
203
203
|
state.lastDoneIn = undefined;
|
|
204
|
+
state.tracker = new ActivityTracker();
|
|
204
205
|
invalidateUsageCache();
|
|
205
206
|
|
|
206
207
|
config = yield* conf.load.pipe(Effect.mapError((e) => ctx.ui.notify(e.message, "error")));
|
|
@@ -219,6 +220,10 @@ const main = Effect.fn("tui/main")(function* (pi: ExtensionAPI) {
|
|
|
219
220
|
pi.on("session_shutdown", async (_event, ctx) => {
|
|
220
221
|
sessionLifecycle.shutdown();
|
|
221
222
|
stopWorkingTimer();
|
|
223
|
+
// Session handoff resets the timer state machine: the next session
|
|
224
|
+
// starts from a clean tracker (matches the session_start reset).
|
|
225
|
+
state.tracker = new ActivityTracker();
|
|
226
|
+
state.lastDoneIn = undefined;
|
|
222
227
|
if (active) {
|
|
223
228
|
uninstallUi(ctx);
|
|
224
229
|
}
|
|
@@ -228,7 +233,7 @@ const main = Effect.fn("tui/main")(function* (pi: ExtensionAPI) {
|
|
|
228
233
|
pi.on("agent_start", (event, _ctx) => {
|
|
229
234
|
turnTelemetry.handle(event);
|
|
230
235
|
if (!sessionLifecycle.isCurrent()) return;
|
|
231
|
-
state.
|
|
236
|
+
state.tracker.handle({ type: "run_start", now: Date.now() });
|
|
232
237
|
state.lastDoneIn = undefined;
|
|
233
238
|
startWorkingTimer();
|
|
234
239
|
});
|
|
@@ -236,10 +241,29 @@ const main = Effect.fn("tui/main")(function* (pi: ExtensionAPI) {
|
|
|
236
241
|
pi.on("agent_end", (_event, _ctx) => {
|
|
237
242
|
if (!sessionLifecycle.isCurrent()) return;
|
|
238
243
|
stopWorkingTimer();
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
244
|
+
// closeRun folds any span still open at run end (a prompt can outlive
|
|
245
|
+
// the run, like the previous waitingAccum fold), so the frozen
|
|
246
|
+
// breakdown never includes user-decision time. lastDoneIn keeps its
|
|
247
|
+
// active-work semantics: total minus waits.
|
|
248
|
+
const wasOpen = state.tracker.isRunOpen();
|
|
249
|
+
const frozen = state.tracker.closeRun(Date.now());
|
|
250
|
+
if (wasOpen) state.lastDoneIn = frozen.total - frozen.wait;
|
|
251
|
+
requestFooterRender?.();
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
// pi 0.84.4+ ui_prompt_* events: blocking ctx.ui prompts (select/confirm/
|
|
255
|
+
// input/editor/custom) pause the agent, so their wall-clock spans must not
|
|
256
|
+
// count toward the footer's working/done time. Nested spans are coalesced
|
|
257
|
+
// by pi; the tracker ignores a wait_start that is already open defensively.
|
|
258
|
+
pi.on("ui_prompt_start", (_event, _ctx) => {
|
|
259
|
+
if (!sessionLifecycle.isCurrent()) return;
|
|
260
|
+
state.tracker.handle({ type: "wait_start", now: Date.now() });
|
|
261
|
+
if (state.tracker.isRunOpen()) requestFooterRender?.();
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
pi.on("ui_prompt_end", (_event, _ctx) => {
|
|
265
|
+
if (!sessionLifecycle.isCurrent()) return;
|
|
266
|
+
state.tracker.handle({ type: "wait_end", now: Date.now() });
|
|
243
267
|
requestFooterRender?.();
|
|
244
268
|
});
|
|
245
269
|
|
|
@@ -247,8 +271,19 @@ const main = Effect.fn("tui/main")(function* (pi: ExtensionAPI) {
|
|
|
247
271
|
turnTelemetry.handle(event);
|
|
248
272
|
});
|
|
249
273
|
|
|
274
|
+
// Translate pi event fields into tracker descriptors at the boundary and
|
|
275
|
+
// drop the no-op mappings (user/toolResult messages). The tracker never
|
|
276
|
+
// sees pi types; only assistant message spans and tool executions charge
|
|
277
|
+
// buckets. The tracker ignores events while no run is open, so a stray
|
|
278
|
+
// event outside the current session is harmless.
|
|
279
|
+
const track = (source: TrackerEventSource) => {
|
|
280
|
+
const mapped = toTrackerEvent(source);
|
|
281
|
+
if (mapped) state.tracker.handle(mapped);
|
|
282
|
+
};
|
|
283
|
+
|
|
250
284
|
pi.on("message_start", (event) => {
|
|
251
285
|
turnTelemetry.handle(event);
|
|
286
|
+
track({ kind: "message_start", role: event.message.role, now: Date.now() });
|
|
252
287
|
});
|
|
253
288
|
|
|
254
289
|
pi.on("message_update", (event) => {
|
|
@@ -257,6 +292,7 @@ const main = Effect.fn("tui/main")(function* (pi: ExtensionAPI) {
|
|
|
257
292
|
|
|
258
293
|
pi.on("tool_execution_start", (event) => {
|
|
259
294
|
turnTelemetry.handle(event);
|
|
295
|
+
track({ kind: "tool_execution_start", toolCallId: event.toolCallId, now: Date.now() });
|
|
260
296
|
});
|
|
261
297
|
|
|
262
298
|
pi.on("turn_end", (event) => {
|
|
@@ -286,12 +322,14 @@ const main = Effect.fn("tui/main")(function* (pi: ExtensionAPI) {
|
|
|
286
322
|
|
|
287
323
|
pi.on("message_end", (event, ctx) => {
|
|
288
324
|
turnTelemetry.handle(event);
|
|
325
|
+
track({ kind: "message_end", role: event.message.role, now: Date.now() });
|
|
289
326
|
if (!sessionLifecycle.isCurrent()) return;
|
|
290
327
|
invalidateUsageCache();
|
|
291
328
|
refreshInteractiveState(ctx);
|
|
292
329
|
});
|
|
293
330
|
|
|
294
|
-
pi.on("tool_execution_end", (
|
|
331
|
+
pi.on("tool_execution_end", (event, ctx) => {
|
|
332
|
+
track({ kind: "tool_execution_end", toolCallId: event.toolCallId, now: Date.now() });
|
|
295
333
|
refreshInteractiveState(ctx);
|
|
296
334
|
});
|
|
297
335
|
|
package/src/state.test.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { assert, it } from "@effect/vitest";
|
|
2
|
+
import type { FooterState } from "./state.ts";
|
|
2
3
|
import { createInitialState } from "./state.ts";
|
|
3
4
|
import { GitStatus } from "./commands/git-status.ts";
|
|
4
5
|
|
|
5
6
|
it("createInitialState seeds git with an all-zero empty status", () => {
|
|
6
7
|
assert.deepStrictEqual(createInitialState().git, GitStatus.empty());
|
|
7
8
|
});
|
|
9
|
+
|
|
10
|
+
it("createInitialState starts with a fresh tracker and no done figure", () => {
|
|
11
|
+
const s: FooterState = createInitialState();
|
|
12
|
+
assert.strictEqual(s.lastDoneIn, undefined);
|
|
13
|
+
assert.strictEqual(s.tracker.isRunOpen(), false);
|
|
14
|
+
assert.strictEqual(s.tracker.isWaiting(), false);
|
|
15
|
+
assert.deepStrictEqual(s.tracker.breakdown(0), { inference: 0, tool: 0, wait: 0, total: 0 });
|
|
16
|
+
});
|
package/src/state.ts
CHANGED
|
@@ -2,14 +2,17 @@ import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
|
2
2
|
import type { AssistantMessage } from "@earendil-works/pi-ai";
|
|
3
3
|
import { GitStatus } from "./commands/git-status.ts";
|
|
4
4
|
import type { RuntimeInfo } from "./runtime.ts";
|
|
5
|
+
import { ActivityTracker } from "./activity.ts";
|
|
5
6
|
import { formatProviderLabel } from "./utils.ts";
|
|
6
7
|
|
|
7
8
|
export interface FooterState {
|
|
8
9
|
git: GitStatus;
|
|
9
10
|
runtime: RuntimeInfo | null;
|
|
10
11
|
sessionStartEpoch: number;
|
|
11
|
-
|
|
12
|
+
/** Frozen active-work total from the last finished run, as today. */
|
|
12
13
|
lastDoneIn: number | undefined;
|
|
14
|
+
/** Pure scripted-event state machine owning the run's time buckets. */
|
|
15
|
+
tracker: ActivityTracker;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
export interface UsageTotals {
|
|
@@ -70,8 +73,8 @@ export function createInitialState(): FooterState {
|
|
|
70
73
|
git: GitStatus.empty(),
|
|
71
74
|
runtime: null,
|
|
72
75
|
sessionStartEpoch: Date.now(),
|
|
73
|
-
workingSince: undefined,
|
|
74
76
|
lastDoneIn: undefined,
|
|
77
|
+
tracker: new ActivityTracker(),
|
|
75
78
|
};
|
|
76
79
|
}
|
|
77
80
|
|
package/src/ui/footer.test.ts
CHANGED
|
@@ -3,8 +3,11 @@ import { Effect } from "effect";
|
|
|
3
3
|
import type { Theme } from "@earendil-works/pi-coding-agent";
|
|
4
4
|
import { GitStatus } from "../commands/git-status.ts";
|
|
5
5
|
import type { TuiConfig } from "../config.ts";
|
|
6
|
+
import type { IconGlyphs } from "../icons.ts";
|
|
7
|
+
import { ActivityTracker, type ActivityEvent } from "../activity.ts";
|
|
6
8
|
import type { FooterState } from "../state.ts";
|
|
7
9
|
import { FooterRenderService, installFooter, type FooterHooks } from "./footer.ts";
|
|
10
|
+
import { renderTimerSegment } from "./render-helpers.ts";
|
|
8
11
|
|
|
9
12
|
// ---------------------------------------------------------------------------
|
|
10
13
|
// Deterministic fixture — the footer's current pixels are frozen here BEFORE
|
|
@@ -42,8 +45,8 @@ const state: FooterState = {
|
|
|
42
45
|
}),
|
|
43
46
|
runtime: null,
|
|
44
47
|
sessionStartEpoch: 1_700_000_000_000,
|
|
45
|
-
workingSince: undefined,
|
|
46
48
|
lastDoneIn: undefined,
|
|
49
|
+
tracker: new ActivityTracker(),
|
|
47
50
|
};
|
|
48
51
|
|
|
49
52
|
const getState = () => state;
|
|
@@ -348,3 +351,169 @@ it("FooterRenderService.render re-invokes the live getters on every run", () =>
|
|
|
348
351
|
assert.ok(!withoutContext[0]!.includes("%"));
|
|
349
352
|
assert.ok(withoutContext[0]!.includes("feature/refactor"));
|
|
350
353
|
});
|
|
354
|
+
|
|
355
|
+
// ---------------------------------------------------------------------------
|
|
356
|
+
// Wait-aware timer segment (ui_prompt_* refinement, pi 0.84.4+) — the `now`
|
|
357
|
+
// argument keeps these deterministic; the golden fixtures above still freeze
|
|
358
|
+
// the no-timer pixels byte-for-byte.
|
|
359
|
+
// ---------------------------------------------------------------------------
|
|
360
|
+
|
|
361
|
+
const timerTheme = {
|
|
362
|
+
fg: (color: string, text: string) => `${color}:${text}`,
|
|
363
|
+
bg: (_color: string, text: string) => text,
|
|
364
|
+
bold: (text: string) => `*${text}*`,
|
|
365
|
+
} as unknown as Theme;
|
|
366
|
+
|
|
367
|
+
const TIMER_GLYPHS = { working: "o", done: "+", inference: "~", tool: ">" } as IconGlyphs;
|
|
368
|
+
|
|
369
|
+
const timerState = (overrides: Partial<FooterState> = {}): FooterState => ({
|
|
370
|
+
...state,
|
|
371
|
+
...overrides,
|
|
372
|
+
});
|
|
373
|
+
|
|
374
|
+
/** A FooterState whose tracker has consumed a scripted event sequence. */
|
|
375
|
+
const scriptedState = (
|
|
376
|
+
events: ActivityEvent[],
|
|
377
|
+
overrides: Partial<FooterState> = {},
|
|
378
|
+
): FooterState => {
|
|
379
|
+
const tracker = new ActivityTracker();
|
|
380
|
+
for (const event of events) tracker.handle(event);
|
|
381
|
+
return timerState({ tracker, ...overrides });
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
it("renderTimerSegment renders nothing without an active or finished timer", () => {
|
|
385
|
+
assert.strictEqual(renderTimerSegment(timerTheme, timerState(), TIMER_GLYPHS, 5000), undefined);
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
it("renderTimerSegment counts working time excluding completed user waits", () => {
|
|
389
|
+
const s = scriptedState([
|
|
390
|
+
{ type: "run_start", now: 1000 },
|
|
391
|
+
{ type: "wait_start", now: 2000 },
|
|
392
|
+
{ type: "wait_end", now: 4000 },
|
|
393
|
+
]);
|
|
394
|
+
// Elapsed 4s minus a completed 2s wait = 2s of active work; no inference
|
|
395
|
+
// or tool spans in this script, so there is no split.
|
|
396
|
+
const seg = renderTimerSegment(timerTheme, s, TIMER_GLYPHS, 5000);
|
|
397
|
+
assert.strictEqual(seg?.total, "accent:o dim:working accent:2s");
|
|
398
|
+
assert.strictEqual(seg?.split, "");
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
it("renderTimerSegment reports waiting while a user prompt is open", () => {
|
|
402
|
+
const s = scriptedState([
|
|
403
|
+
{ type: "run_start", now: 1000 },
|
|
404
|
+
{ type: "wait_start", now: 2000 },
|
|
405
|
+
{ type: "wait_end", now: 4000 },
|
|
406
|
+
{ type: "wait_start", now: 4000 },
|
|
407
|
+
]);
|
|
408
|
+
// The open wait spans 1s (t=4s..5s); working time stops counting and the
|
|
409
|
+
// label is exactly the previous waiting string.
|
|
410
|
+
const seg = renderTimerSegment(timerTheme, s, TIMER_GLYPHS, 5000);
|
|
411
|
+
assert.strictEqual(seg?.total, "warning:o warning:waiting warning:1s");
|
|
412
|
+
assert.strictEqual(seg?.split, "");
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
it("renderTimerSegment reports the finished run's wait-free duration", () => {
|
|
416
|
+
const s = timerState({ lastDoneIn: 90_000 });
|
|
417
|
+
const seg = renderTimerSegment(timerTheme, s, TIMER_GLYPHS, 5000);
|
|
418
|
+
assert.strictEqual(seg?.total, "success:+ success:done text:1m 30s");
|
|
419
|
+
// A tracker that never ran has no frozen split.
|
|
420
|
+
assert.strictEqual(seg?.split, "");
|
|
421
|
+
});
|
|
422
|
+
|
|
423
|
+
it("renderTimerSegment shows the live total and split while working", () => {
|
|
424
|
+
const s = scriptedState([
|
|
425
|
+
{ type: "run_start", now: 1000 },
|
|
426
|
+
{ type: "message_start", role: "assistant", now: 1000 },
|
|
427
|
+
{ type: "tool_start", callId: "a", now: 2000 },
|
|
428
|
+
{ type: "tool_end", callId: "a", now: 4000 },
|
|
429
|
+
{ type: "message_end", role: "assistant", now: 5000 },
|
|
430
|
+
]);
|
|
431
|
+
// At t=6s: inference 1000..2000 + 4000..5000 = 2s (tool subsumes the
|
|
432
|
+
// open message while it runs); tool 2000..4000 = 2s; total 1000..6000.
|
|
433
|
+
const seg = renderTimerSegment(timerTheme, s, TIMER_GLYPHS, 6000);
|
|
434
|
+
assert.strictEqual(seg?.total, "accent:o dim:working accent:5s");
|
|
435
|
+
assert.strictEqual(seg?.split, "dim:~ accent:2s dim:> accent:2s");
|
|
436
|
+
});
|
|
437
|
+
|
|
438
|
+
it("renderTimerSegment shows the frozen total and split after the run", () => {
|
|
439
|
+
const tracker = new ActivityTracker();
|
|
440
|
+
for (const event of [
|
|
441
|
+
{ type: "run_start", now: 1000 },
|
|
442
|
+
{ type: "message_start", role: "assistant", now: 1000 },
|
|
443
|
+
{ type: "tool_start", callId: "a", now: 2000 },
|
|
444
|
+
{ type: "tool_end", callId: "a", now: 4000 },
|
|
445
|
+
{ type: "message_end", role: "assistant", now: 5000 },
|
|
446
|
+
] as ActivityEvent[]) {
|
|
447
|
+
tracker.handle(event);
|
|
448
|
+
}
|
|
449
|
+
// The wiring stores lastDoneIn = frozen total - frozen wait.
|
|
450
|
+
const frozen = tracker.closeRun(6000);
|
|
451
|
+
const s = timerState({ tracker, lastDoneIn: frozen.total - frozen.wait });
|
|
452
|
+
|
|
453
|
+
// Frozen: the same pixels at any later instant — no live ticking.
|
|
454
|
+
const at = (now: number) => renderTimerSegment(timerTheme, s, TIMER_GLYPHS, now);
|
|
455
|
+
for (const now of [7000, 60_000]) {
|
|
456
|
+
const seg = at(now);
|
|
457
|
+
assert.strictEqual(seg?.total, "success:+ success:done text:5s");
|
|
458
|
+
assert.strictEqual(seg?.split, "dim:~ accent:2s dim:> accent:2s");
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
|
|
462
|
+
it("the split yields before the total on narrow widths", () => {
|
|
463
|
+
// A live run whose buckets are non-zero: a complete 10s run ending in the
|
|
464
|
+
// past, so the real-clock render (Date.now(), few ms later) always sees
|
|
465
|
+
// total >= buckets. Assertions are glyph-presence based, never duration.
|
|
466
|
+
const base = Date.now();
|
|
467
|
+
const tracker = new ActivityTracker();
|
|
468
|
+
for (const event of [
|
|
469
|
+
{ type: "run_start", now: base - 10_000 },
|
|
470
|
+
{ type: "message_start", role: "assistant", now: base - 10_000 },
|
|
471
|
+
{ type: "tool_start", callId: "a", now: base - 9000 },
|
|
472
|
+
{ type: "tool_end", callId: "a", now: base - 7000 },
|
|
473
|
+
{ type: "message_end", role: "assistant", now: base - 6000 },
|
|
474
|
+
] as ActivityEvent[]) {
|
|
475
|
+
tracker.handle(event);
|
|
476
|
+
}
|
|
477
|
+
const liveState = timerState({ tracker });
|
|
478
|
+
|
|
479
|
+
// Line 1 carries only the timer: every other segment is disabled.
|
|
480
|
+
const bareConfig: TuiConfig = {
|
|
481
|
+
...config,
|
|
482
|
+
footerSegments: {
|
|
483
|
+
...config.footerSegments,
|
|
484
|
+
cwd: false,
|
|
485
|
+
gitBranch: false,
|
|
486
|
+
gitStatus: false,
|
|
487
|
+
gitCommit: false,
|
|
488
|
+
runtime: false,
|
|
489
|
+
context: false,
|
|
490
|
+
},
|
|
491
|
+
};
|
|
492
|
+
const packSvc = Effect.runSync(
|
|
493
|
+
Effect.gen(function* () {
|
|
494
|
+
return yield* FooterRenderService;
|
|
495
|
+
}).pipe(
|
|
496
|
+
Effect.provide(
|
|
497
|
+
FooterRenderService.make(
|
|
498
|
+
svcCtx as never,
|
|
499
|
+
() => liveState,
|
|
500
|
+
() => bareConfig,
|
|
501
|
+
getModelMeta,
|
|
502
|
+
footerData(),
|
|
503
|
+
),
|
|
504
|
+
),
|
|
505
|
+
),
|
|
506
|
+
);
|
|
507
|
+
|
|
508
|
+
const narrow = Effect.runSync(packSvc.render(14))[0]!;
|
|
509
|
+
const wide = Effect.runSync(packSvc.render(30))[0]!;
|
|
510
|
+
|
|
511
|
+
// Narrow: the split (priority 1) drops, the total (priority 2) survives.
|
|
512
|
+
assert.ok(narrow.includes("working"));
|
|
513
|
+
assert.ok(!narrow.includes("~"));
|
|
514
|
+
assert.ok(!narrow.includes(">"));
|
|
515
|
+
// Wide: both parts render.
|
|
516
|
+
assert.ok(wide.includes("working"));
|
|
517
|
+
assert.ok(wide.includes("~"));
|
|
518
|
+
assert.ok(wide.includes(">"));
|
|
519
|
+
});
|
package/src/ui/footer.ts
CHANGED
|
@@ -83,8 +83,13 @@ export class FooterRenderService extends Context.Service<
|
|
|
83
83
|
const runtimeSeg = renderRuntimeSegment(theme, state.runtime, config.icons.mode);
|
|
84
84
|
if (runtimeSeg) leftParts.push({ text: runtimeSeg, priority: 1 });
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
if (
|
|
86
|
+
const timerParts = renderTimerSegment(theme, state, glyphs);
|
|
87
|
+
if (timerParts) {
|
|
88
|
+
leftParts.push({ text: timerParts.total, priority: 2 });
|
|
89
|
+
// The split yields before the total on narrow widths: it packs
|
|
90
|
+
// at priority 1, below the total's priority 2.
|
|
91
|
+
if (timerParts.split) leftParts.push({ text: timerParts.split, priority: 1 });
|
|
92
|
+
}
|
|
88
93
|
|
|
89
94
|
let rightBlock = "";
|
|
90
95
|
if (segments.context) {
|
package/src/ui/header.test.ts
CHANGED
|
@@ -33,9 +33,9 @@ const ctx = {
|
|
|
33
33
|
const TIPS_SEED = "pixel-parity";
|
|
34
34
|
|
|
35
35
|
const EXPECTED: Record<string, string[]> = {
|
|
36
|
-
20: ["Pi v0.84.
|
|
36
|
+
20: ["Pi v0.84.4"],
|
|
37
37
|
24: [
|
|
38
|
-
"\u256d\u2500\u2500\u2500 Pi v0.84.
|
|
38
|
+
"\u256d\u2500\u2500\u2500 Pi v0.84.4 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e",
|
|
39
39
|
"\u2502 \u2502",
|
|
40
40
|
"\u2502 \u2502",
|
|
41
41
|
"\u2502 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2502",
|
|
@@ -49,7 +49,7 @@ const EXPECTED: Record<string, string[]> = {
|
|
|
49
49
|
"\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f",
|
|
50
50
|
],
|
|
51
51
|
30: [
|
|
52
|
-
"\u256d\u2500\u2500\u2500 Pi v0.84.
|
|
52
|
+
"\u256d\u2500\u2500\u2500 Pi v0.84.4 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e",
|
|
53
53
|
"\u2502 \u2502",
|
|
54
54
|
"\u2502 \u2502",
|
|
55
55
|
"\u2502 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2502",
|
|
@@ -63,7 +63,7 @@ const EXPECTED: Record<string, string[]> = {
|
|
|
63
63
|
"\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f",
|
|
64
64
|
],
|
|
65
65
|
40: [
|
|
66
|
-
"\u256d\u2500\u2500\u2500 Pi v0.84.
|
|
66
|
+
"\u256d\u2500\u2500\u2500 Pi v0.84.4 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e",
|
|
67
67
|
"\u2502 \u2502",
|
|
68
68
|
"\u2502 \u2502",
|
|
69
69
|
"\u2502 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2502",
|
|
@@ -77,7 +77,7 @@ const EXPECTED: Record<string, string[]> = {
|
|
|
77
77
|
"\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f",
|
|
78
78
|
],
|
|
79
79
|
60: [
|
|
80
|
-
"\u256d\u2500\u2500\u2500 Pi v0.84.
|
|
80
|
+
"\u256d\u2500\u2500\u2500 Pi v0.84.4 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e",
|
|
81
81
|
"\u2502 \u2502 \u2502",
|
|
82
82
|
"\u2502 \u2502 *Welcome* \u2502",
|
|
83
83
|
"\u2502 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2502 Ask Pi anything \u2502",
|
|
@@ -91,7 +91,7 @@ const EXPECTED: Record<string, string[]> = {
|
|
|
91
91
|
"\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f",
|
|
92
92
|
],
|
|
93
93
|
80: [
|
|
94
|
-
"\u256d\u2500\u2500\u2500 Pi v0.84.
|
|
94
|
+
"\u256d\u2500\u2500\u2500 Pi v0.84.4 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e",
|
|
95
95
|
"\u2502 \u2502 \u2502",
|
|
96
96
|
"\u2502 \u2502 *Welcome* \u2502",
|
|
97
97
|
"\u2502 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2502 Ask Pi anything \u2502",
|
|
@@ -105,7 +105,7 @@ const EXPECTED: Record<string, string[]> = {
|
|
|
105
105
|
"\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f",
|
|
106
106
|
],
|
|
107
107
|
100: [
|
|
108
|
-
"\u256d\u2500\u2500\u2500 Pi v0.84.
|
|
108
|
+
"\u256d\u2500\u2500\u2500 Pi v0.84.4 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e",
|
|
109
109
|
"\u2502 \u2502 \u2502",
|
|
110
110
|
"\u2502 \u2502 *Welcome* \u2502",
|
|
111
111
|
"\u2502 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2502 Ask Pi anything \u2502",
|
|
@@ -119,7 +119,7 @@ const EXPECTED: Record<string, string[]> = {
|
|
|
119
119
|
"\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f",
|
|
120
120
|
],
|
|
121
121
|
120: [
|
|
122
|
-
"\u256d\u2500\u2500\u2500 Pi v0.84.
|
|
122
|
+
"\u256d\u2500\u2500\u2500 Pi v0.84.4 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e",
|
|
123
123
|
"\u2502 \u2502 \u2502",
|
|
124
124
|
"\u2502 \u2502 *Welcome* \u2502",
|
|
125
125
|
"\u2502 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2502 Ask Pi anything \u2502",
|