@litfamily/litclaude 1.0.60 → 1.0.61

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.61 - 2026-11-24
4
+
5
+ - Install, doctor and help open with the synthwave LIT mark, and the HUD, card and status line show
6
+ a gradient LIT pill.
7
+ - A request that ends with the activation word (`fix the login redirect lit`, `… 부탁해 lit`) now asks
8
+ the goal question, using the words before `lit` as the objective. A trailing `lit-loop`, `litwork`
9
+ or `lit-hijack` routes the same as the leading word; before, a trailing `lit-loop` activated nothing.
10
+ A leading `lit-hijack <task>` no longer puts `-hijack` at the start of the goal.
11
+ - A start-work state lock left by a crashed holder (no owner record, a dead contender's takeover claim,
12
+ or a reused pid) is now reclaimed, and no hold lasts longer than 10 minutes. The PreToolUse guard
13
+ reads a state snapshot instead of waiting on the lock, so several sessions on a slow drive no longer
14
+ block every tool call or `lit cancel`. A lock timeout names the lock path and its holder.
15
+
3
16
  ## 1.0.60 - 2026-11-22
4
17
 
5
18
  - The goal question now comes with an answer guide, so a first-time user knows what to type. Under
package/README.md CHANGED
@@ -1,14 +1,14 @@
1
- <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/cover-motion.webp" width="100%" alt="LitFamily motion cover: seven armored robots power on one by one, the LitClaude robot wakes with glowing eyes and a lit frame, then LITFAMILY and KEEP THE WORK LIT. light up." /></picture></p>
1
+ <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/assets/cover-motion.webp" width="100%" alt="LitFamily motion cover: seven armored robots power on one by one, the LitClaude robot wakes with glowing eyes and a lit frame, then LITFAMILY and KEEP THE WORK LIT. light up." /></picture></p>
2
2
 
3
3
  <h1 align="center">LitClaude</h1>
4
4
  <p align="center"><strong>Keep the work lit.</strong></p>
5
5
  <p align="center">LitClaude is an add-on for Claude Code. It makes Claude check its own work before it says "done", and leaves a note so the next session starts where this one stopped.</p>
6
6
  <p align="center">
7
- <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/readme/badge-version.svg" alt="1.0.60" />
8
- <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
7
+ <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/assets/readme/badge-version.svg" alt="1.0.61" />
8
+ <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
9
9
  </p>
10
10
  <p align="center">
11
- <a href="https://github.com/wjgoarxiv/litclaude#readme">Full guide and skills gallery on GitHub</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/README_ko-KR.md">한국어</a>
11
+ <a href="https://github.com/wjgoarxiv/litclaude#readme">Full guide and skills gallery on GitHub</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/README_ko-KR.md">한국어</a>
12
12
  </p>
13
13
 
14
14
  You ask Claude for a feature. It writes the code and says it is finished, and a day later you find the tests
@@ -110,7 +110,7 @@ the `/plugin` menu.
110
110
  ## More
111
111
 
112
112
  - [Full guide and skills gallery on GitHub](https://github.com/wjgoarxiv/litclaude#readme)
113
- - [Privacy and network behavior](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/privacy.md)
114
- - [Migration and ownership conflicts](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/migration.md)
115
- - [Release history](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/CHANGELOG.md)
116
- - [MIT license](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE)
113
+ - [Privacy and network behavior](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/privacy.md)
114
+ - [Migration and ownership conflicts](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/migration.md)
115
+ - [Release history](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/CHANGELOG.md)
116
+ - [MIT license](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/LICENSE)
package/README_ko-KR.md CHANGED
@@ -1,14 +1,14 @@
1
- <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/cover-motion.webp" width="100%" alt="LitFamily 모션 커버: 일곱 로봇 패널이 차례로 켜지고, LitClaude 로봇의 눈과 테두리가 빛난 뒤 LITFAMILY와 KEEP THE WORK LIT. 문구가 밝아지는 영상" /></picture></p>
1
+ <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/assets/cover-motion.webp" width="100%" alt="LitFamily 모션 커버: 일곱 로봇 패널이 차례로 켜지고, LitClaude 로봇의 눈과 테두리가 빛난 뒤 LITFAMILY와 KEEP THE WORK LIT. 문구가 밝아지는 영상" /></picture></p>
2
2
 
3
3
  <h1 align="center">LitClaude</h1>
4
4
  <p align="center"><strong>Keep the work lit.</strong></p>
5
5
  <p align="center">LitClaude는 Claude Code에 붙이는 추가 기능입니다. Claude가 "다 됐어요"라고 말하기 전에 자기 작업을 직접 확인하게 하고, 다음 세션이 이어서 시작할 수 있도록 기록을 남기게 합니다.</p>
6
6
  <p align="center">
7
- <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/readme/badge-version.svg" alt="1.0.60" />
8
- <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
7
+ <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/assets/readme/badge-version.svg" alt="1.0.61" />
8
+ <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
9
9
  </p>
10
10
  <p align="center">
11
- <a href="https://github.com/wjgoarxiv/litclaude/blob/main/README_ko-KR.md">전체 안내와 스킬 갤러리는 GitHub에서</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/README.md">English</a>
11
+ <a href="https://github.com/wjgoarxiv/litclaude/blob/main/README_ko-KR.md">전체 안내와 스킬 갤러리는 GitHub에서</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/README.md">English</a>
12
12
  </p>
13
13
 
14
14
  Claude에게 기능을 하나 부탁하면 코드를 쓰고 끝났다고 말합니다. 그런데 다음 날 보니 테스트는 한 번도 돌지 않았습니다. 새 세션을 열면 프로젝트 설명을 처음부터 다시 해야 합니다.
@@ -103,7 +103,7 @@ npx @litfamily/litclaude@latest uninstall
103
103
  ## 더 보기
104
104
 
105
105
  - [전체 안내와 스킬 갤러리 (GitHub)](https://github.com/wjgoarxiv/litclaude/blob/main/README_ko-KR.md)
106
- - [개인정보와 네트워크 동작](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/privacy.md)
107
- - [이전과 소유권 충돌](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/migration.md)
108
- - [변경 이력](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/CHANGELOG.md)
109
- - [MIT 라이선스](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE)
106
+ - [개인정보와 네트워크 동작](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/privacy.md)
107
+ - [이전과 소유권 충돌](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/docs/migration.md)
108
+ - [변경 이력](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/CHANGELOG.md)
109
+ - [MIT 라이선스](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.61/LICENSE)
@@ -73,7 +73,8 @@ import { DISCUSSIONS_URL, inviteMessage, recordInvite, shareLine } from "../plug
73
73
  import { resolveProjectStateRoot } from "../plugins/litclaude/lib/project-state-root.mjs";
74
74
  import { runUpdateNotifier } from "./update-notifier.mjs";
75
75
  import { assertInstallPath, assertOwnedTree, assertOwnedPluginTree, assertCurrentPointer, assertOwnedRegistrations, migrateLegacyVendorPaths, planModifiedLegacySkill, preserveModifiedLegacySkill, registeredPluginInstallation, writeOwnershipReceipt, removeEmptyDirectory, clearOwnedTree } from "./install-ownership.mjs";
76
- import { banner, lockup, colorMode, supportsBlocks, terminalRows } from "./litfamily-banner.mjs";
76
+ import { colorMode, supportsBlocks } from "./litfamily-banner.mjs";
77
+ import { SIZES, pickSize, synthwaveRows } from "../plugins/litclaude/lib/synthwave-mark.mjs";
77
78
  import {
78
79
  ICON_FONT,
79
80
  ICON_FONT_QUESTION,
@@ -393,7 +394,7 @@ const formatInstallStep = (label) => {
393
394
  };
394
395
 
395
396
  // Shared LitFamily banner frame (plans/references/installer-choice-contract.md):
396
- // the canonical Ignition B mark plus the existing install plan frame.
397
+ // the Synthwave mark plus the existing install plan frame.
397
398
  const FAMILY_RULE = ` ${"━".repeat(46)}`;
398
399
  // The banner keeps its short tagline; package.json carries the longer npm search description.
399
400
  const BANNER_TAGLINE = "Claude Code-native workflow distribution.";
@@ -413,11 +414,16 @@ const INSTALL_STAGES = [
413
414
  ["04", "Cache", "refresh the compatibility pointer"],
414
415
  ["05", "Verify", "confirm every installed surface"],
415
416
  ];
417
+ // Human-facing Synthwave mark: the size follows the terminal width; no colour gives the glyph-only scene.
418
+ // A pipe (agents, CI logs) gets the one plain line, so tool output never carries rows of art.
419
+ const terminalColumns = () => process.stdout.columns || Number.parseInt(process.env.COLUMNS ?? "", 10) || 80;
416
420
  const renderLitClaudeWordmark = ({ color = shouldColorInstall() } = {}) => {
417
- if (!supportsBlocks()) return ["LIT", `litclaude v${version}`];
418
- return terminalRows(lockup(`claude v${version}`, banner).map((row) => row.trimEnd()), {
419
- mode: color ? colorMode() : "none",
420
- });
421
+ if (!supportsBlocks() || !process.stdout.isTTY) return synthwaveRows({ mode: "plain" }).concat(`litclaude v${version}`);
422
+ const cols = terminalColumns();
423
+ const rows = synthwaveRows({ cols, mode: color ? colorMode() : "mono" });
424
+ const versionLine = `litclaude v${version}`;
425
+ const markWidth = SIZES.find((size) => size.name === pickSize(cols))?.minCols ?? versionLine.length;
426
+ return rows.concat(`${" ".repeat(Math.max(0, Math.floor((markWidth - versionLine.length) / 2)))}${versionLine}`);
421
427
  };
422
428
 
423
429
  const familyBanner = ({ color = shouldColorInstall() } = {}) => [
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="146" height="20" role="img" aria-label="release: 1.0.60"><title>release: 1.0.60</title><g shape-rendering="crispEdges"><rect width="49" height="20" fill="#080d14"/><rect x="49" width="97" height="20" fill="#ff6337"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="255" y="140" textLength="390" transform="scale(.1)">release</text><text x="965" y="140" textLength="870" transform="scale(.1)" fill="#080D14">1.0.60</text></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="146" height="20" role="img" aria-label="release: 1.0.61"><title>release: 1.0.61</title><g shape-rendering="crispEdges"><rect width="49" height="20" fill="#080d14"/><rect x="49" width="97" height="20" fill="#ff6337"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="255" y="140" textLength="390" transform="scale(.1)">release</text><text x="965" y="140" textLength="870" transform="scale(.1)" fill="#080D14">1.0.61</text></g></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litfamily/litclaude",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "Claude Code plugin: add lit to a prompt and Claude plans, tests, checks and reviews the work, then leaves a handoff for the next session.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "litclaude",
3
3
  "description": "Claude Code-native workflow plugin with a bounded-authority start-work lifecycle.",
4
- "version": "1.0.60",
4
+ "version": "1.0.61",
5
5
  "author": {
6
6
  "name": "LitClaude contributors"
7
7
  },
@@ -576,9 +576,11 @@ const objectiveTail = (prompt) => {
576
576
  const raw = withoutCode(prompt);
577
577
  const match = /\blit(?:work)?\b\s*(.*)$/isu.exec(raw);
578
578
  const tail = (match?.[1] ?? raw).replace(
579
- /^\s*(?:-loop|-plan|loop|goal|plan|workflow|dynamic\s+workflow|work)\b\s*/iu,
579
+ /^\s*(?:-loop|-plan|-hijack|loop|goal|plan|workflow|dynamic\s+workflow|work)\b\s*/iu,
580
580
  "",
581
581
  );
582
+ // A request that ends with the word (`fix the redirect lit`) carries its objective before it.
583
+ if (match && !tail.trim()) return normalizeGoalObjective(raw.slice(0, match.index));
582
584
  return normalizeGoalObjective(tail);
583
585
  };
584
586
 
@@ -9,7 +9,7 @@ import {
9
9
  } from "../lib/wikify-knowledge.mjs";
10
10
 
11
11
  const protocolVersion = "2024-11-05";
12
- const serverVersion = "1.0.60";
12
+ const serverVersion = "1.0.61";
13
13
 
14
14
  const publicSourceReadTool = {
15
15
  name: "public_source_read",
@@ -12,7 +12,7 @@ export const canonicalSkillResourceManifest = Object.freeze(
12
12
  ["lib/mark.mjs", "8f3d1c3ff2c471d264e8d73fca97595c93cf4b43d7935c285d72ee1ddfa8c67c"],
13
13
  ["lib/npm-invocation.mjs", "8d7b98e65836f5400b33163083cfa842fcbbf0659923290b0c680395737d3716"],
14
14
  ["lib/output_mark.py", "f6f9a06361f8cf515a19053f59156a1807ddd686632b2f3cccb1e9a0b046d9ae"],
15
- ["lib/owner-lock.mjs", "d70c57b603987f0865add60dad442489acb42541a8dedeb3fe254429f4bfa7b6"],
15
+ ["lib/owner-lock.mjs", "05908fae381c5a04b9f2abc3b9364b14c7840168966f771908479d9b1f84a501"],
16
16
  ["lib/plan-task-rows.mjs", "ca45412631cdfa805102a42dbb3cfc9a43f6f1ecbcdabe1cc5059d2dcb5e58df"],
17
17
  ["lib/rename-aliases.mjs", "3ee93aec10d0dbe785c554ab3040173ee94fde27da1b440a54b0513e5d11a508"],
18
18
  ["lib/rewind/board.mjs", "26e504014d18d77bd7533278a10543d76516cac3300578fe31e6f3b93c4a4f3e"],
@@ -63,6 +63,8 @@ export const ansi16CodeForAccent = (value) => ({
63
63
  const NEON_BRAND = "LIT";
64
64
  export const NEON_START = Object.freeze([255, 45, 149]); // #ff2d95 hot pink
65
65
  export const NEON_END = Object.freeze([0, 229, 255]); // #00e5ff electric cyan
66
+ const PILL_START = Object.freeze([139, 233, 253]); // #8be9fd, Synthwave chrome stop 1
67
+ const PILL_END = Object.freeze([255, 154, 213]); // #ff9ad5, Synthwave chrome stop 4
66
68
 
67
69
  export const supportsTruecolor = (env = process.env) => {
68
70
  // The portable signal: terminals that export COLORTERM=truecolor|24bit.
@@ -101,15 +103,14 @@ export const litBrandPrefix = (version, { noColor = false, truecolor = false, de
101
103
  // 256-color neon fallback: bright magenta, bold.
102
104
  return `\x1b[0m\x1b[1m\x1b[38;5;201m${label}\x1b[0m`;
103
105
  }
104
- const n = NEON_BRAND.length;
105
- let out = `\x1b[0m\x1b[1m[🔥`;
106
+ // Synthwave badge: the label sits on a cyan-to-rose pill (LitClaude chrome stops) in dark ink.
107
+ const pill = [...` 🔥${NEON_BRAND} v${version} `];
108
+ const n = pill.length;
109
+ let out = "\x1b[0m\x1b[1m\x1b[38;2;11;14;20m";
106
110
  for (let i = 0; i < n; i += 1) {
107
111
  const t = n === 1 ? 0 : i / (n - 1);
108
- const r = Math.round(NEON_START[0] + (NEON_END[0] - NEON_START[0]) * t);
109
- const g = Math.round(NEON_START[1] + (NEON_END[1] - NEON_START[1]) * t);
110
- const b = Math.round(NEON_START[2] + (NEON_END[2] - NEON_START[2]) * t);
111
- out += `\x1b[38;2;${r};${g};${b}m${NEON_BRAND[i]}`;
112
+ const [r, g, b] = PILL_START.map((v, k) => Math.round(v + (PILL_END[k] - v) * t));
113
+ out += `\x1b[48;2;${r};${g};${b}m${pill[i]}`;
112
114
  }
113
- out += `\x1b[38;2;${NEON_END[0]};${NEON_END[1]};${NEON_END[2]}m v${version}]\x1b[0m`;
114
- return out;
115
+ return `${out}\x1b[0m`;
115
116
  };
@@ -22,6 +22,12 @@ import {
22
22
  } from "./secure-path-read.mjs";
23
23
 
24
24
  const MAX_OWNER_BYTES = 4096;
25
+ // No caller holds this lock for more than a moment, so an owner older than this crashed even when its
26
+ // recorded pid now names another live process (pids are reused, often on WSL).
27
+ const OWNER_LOCK_MAX_HOLD_MS = 10 * 60 * 1000;
28
+ // A holder writes its owner record right after it creates the folder, so a folder with no record is
29
+ // only judged once it is this old, whatever stale window the caller passed.
30
+ const OWNERLESS_GRACE_MS = 5_000;
25
31
  const sleepSync = (milliseconds) => Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, milliseconds);
26
32
  const monotonicNowMs = () => Number(process.hrtime.bigint()) / 1_000_000;
27
33
 
@@ -213,7 +219,13 @@ const takeoverWinner = (lockDir, incumbent, ownClaim, staleAfter, expectedLockDi
213
219
  for (const name of names) {
214
220
  assertLockDirectory(lockDir, expectedLockDirectory);
215
221
  const claimRecord = readTakeoverClaim(lockDir, name, incumbent.nonce);
216
- if (claimRecord === null) return null;
222
+ if (claimRecord === null) {
223
+ // A claim a contender died while writing can never be read, and would block every takeover.
224
+ const claimStats = lstatSync(join(lockDir, name), { throwIfNoEntry: false });
225
+ if (!claimStats?.isFile() || Date.now() - claimStats.mtimeMs < staleAfter) return null;
226
+ rmSync(join(lockDir, name), { force: true });
227
+ continue;
228
+ }
217
229
  const { claim, identity, text } = claimRecord;
218
230
  const alive = processIsAlive(claim.pid);
219
231
  const oldEnough = Date.now() - claim.acquired_at_ms >= staleAfter;
@@ -249,6 +261,7 @@ export const acquireOwnerLock = (lockDir, { timeoutMs = 500, staleMs = 30_000 }
249
261
  const timeout = Number.isFinite(timeoutMs) ? Math.max(0, timeoutMs) : 500;
250
262
  const staleAfter = Number.isFinite(staleMs) ? Math.max(0, staleMs) : 30_000;
251
263
  const startedAt = monotonicNowMs();
264
+ const arrivedAtMs = Date.now();
252
265
  let takeoverClaim = null;
253
266
 
254
267
  while (true) {
@@ -275,9 +288,21 @@ export const acquireOwnerLock = (lockDir, { timeoutMs = 500, staleMs = 30_000 }
275
288
 
276
289
  lockDirectory = assertLockDirectory(lockDir);
277
290
  const incumbent = readOwnerLock(lockDir);
291
+ if (!incumbent && lockDirectory) {
292
+ // A holder that died between creating the folder and writing its owner record left a lock
293
+ // nobody can judge. One already old when this caller arrived is moved aside and the acquisition
294
+ // retried; one that only aged while we waited is left for the next caller.
295
+ const folder = lstatSync(lockDir, { throwIfNoEntry: false });
296
+ if (folder && arrivedAtMs - folder.mtimeMs >= Math.max(staleAfter, OWNERLESS_GRACE_MS)) {
297
+ const aside = `${lockDir}.stale.ownerless.${randomUUID()}`;
298
+ try {
299
+ if (removeVerifiedPath(lockDir, lockDirectory, undefined, aside, (quarantine) => !readOwnerLock(quarantine))) continue;
300
+ } catch { /* A lock that changed under us is judged again on the next pass. */ }
301
+ }
302
+ }
303
+ const age = incumbent ? Date.now() - incumbent.acquired_at_ms : 0;
278
304
  const stale = incumbent
279
- && Date.now() - incumbent.acquired_at_ms >= staleAfter
280
- && !processIsAlive(incumbent.pid);
305
+ && (age >= OWNER_LOCK_MAX_HOLD_MS || (age >= staleAfter && !processIsAlive(incumbent.pid)));
281
306
  if (stale) {
282
307
  if (takeoverClaim?.owner_nonce !== incumbent.nonce) {
283
308
  takeoverClaim = {
@@ -320,7 +345,10 @@ export const acquireOwnerLock = (lockDir, { timeoutMs = 500, staleMs = 30_000 }
320
345
  }
321
346
  }
322
347
 
323
- if (monotonicNowMs() - startedAt >= timeout) throw new OwnerLockError("state lock timed out");
348
+ if (monotonicNowMs() - startedAt >= timeout) {
349
+ const holder = incumbent ? `held by pid ${incumbent.pid} for ${Math.round(age / 1000)} s` : "with no owner record";
350
+ throw new OwnerLockError(`state lock timed out (${holder}; lock ${lockDir})`);
351
+ }
324
352
  sleepSync(Math.min(20, Math.max(1, timeout)));
325
353
  }
326
354
  }
@@ -254,6 +254,14 @@ const findLeadingBareCommandTrigger = (raw) => {
254
254
  return { ...triggerByToken[match[1]], source: "bare-command" };
255
255
  };
256
256
 
257
+ // The trailing-token table: a run word that ends a request ("fix the login button lit-loop") routes
258
+ // like the same word at the start. A closing question mark keeps "how do I use lit-loop?" unrouted.
259
+ const trailingRunTokenPattern = /(?:^|\s)(lit-loop|litwork|lit-hijack)[\s.!]*$/u;
260
+ const findTrailingRunTokenTrigger = (raw) => {
261
+ const match = trailingRunTokenPattern.exec(raw);
262
+ return match ? { ...triggerByToken[match[1]], source: "bare-command" } : undefined;
263
+ };
264
+
257
265
  // A bare `lit` carries no task. `lit continue` asks to carry on what exists. `lit new` and
258
266
  // `lit restart` ask for a fresh start, so the session's earlier activation does not count.
259
267
  const bareLitPattern = /^\s*lit(?:work)?[\s.!?]*$/u;
@@ -594,6 +602,8 @@ const findWorkflowTrigger = (prompt) => {
594
602
  if (adhdPhraseTrigger) return adhdPhraseTrigger;
595
603
  const bareCommandTrigger = findLeadingBareCommandTrigger(raw);
596
604
  if (bareCommandTrigger) return bareCommandTrigger;
605
+ const trailingRunTrigger = findTrailingRunTokenTrigger(raw);
606
+ if (trailingRunTrigger) return trailingRunTrigger;
597
607
  for (const token of ["lit-crucible", "lit-init", "lit-burnoff", "lit-burnoff-file"]) {
598
608
  if (containsCompoundBoundedWord(raw, token)) return { ...triggerByToken[token], source: "bare-command" };
599
609
  const oldId = Object.keys(renameAliases).find((id) => renameAliases[id] === token);
@@ -639,6 +649,7 @@ const ROUTE_RULES = [
639
649
  { id: "phrase:lit-comprehend", match: ({ raw }) => findComprehendPhraseTrigger(raw) },
640
650
  { id: "phrase:lit-adhd", match: ({ raw }) => findAdhdPhraseTrigger(raw) },
641
651
  { id: (trigger) => namedRuleId("bare-command", trigger), match: ({ raw }) => findLeadingBareCommandTrigger(raw) },
652
+ { id: (trigger) => namedRuleId("trailing-command", trigger), match: ({ raw }) => findTrailingRunTokenTrigger(raw) },
642
653
  {
643
654
  id: (trigger) => namedRuleId("token", trigger),
644
655
  match: ({ raw }) => {
@@ -108,6 +108,34 @@ const readLockOwner = (root) => {
108
108
  }
109
109
  };
110
110
 
111
+ // No state update holds this lock for more than a moment, so a lock older than this belongs to a
112
+ // crashed holder even when its recorded pid now names another live process (pids are reused, often on WSL).
113
+ const START_WORK_LOCK_MAX_HOLD_MS = 10 * 60 * 1000;
114
+
115
+ // An ownerless lock is a holder that died between creating the folder and writing its owner record.
116
+ // A live holder writes that record at once, so the folder is only judged after this grace, whatever
117
+ // stale window the caller passed; otherwise a contender could move it aside mid-acquisition.
118
+ const OWNERLESS_GRACE_MS = 5_000;
119
+ const lockAgeMs = (lockDir, owner) => {
120
+ if (owner) return Date.now() - owner.acquired_at_ms;
121
+ const stats = lstatSync(lockDir, { throwIfNoEntry: false });
122
+ return stats ? Date.now() - stats.mtimeMs : 0;
123
+ };
124
+
125
+ // A takeover claim whose writer died before finishing the takeover would refuse every later
126
+ // contender (`wx` fails on it), so a claim from a dead or long-gone writer is cleared first.
127
+ const clearDeadTakeoverClaim = (claim, staleMs) => {
128
+ try {
129
+ const stats = lstatSync(claim, { throwIfNoEntry: false });
130
+ if (!stats?.isFile()) return;
131
+ const pid = Number.parseInt(readFileSync(claim, "utf8"), 10);
132
+ if (processIsAlive(pid) && Date.now() - stats.mtimeMs < staleMs) return;
133
+ rmSync(claim, { force: true });
134
+ } catch {
135
+ // A claim that cannot be read or removed leaves the takeover to time out and report it.
136
+ }
137
+ };
138
+
111
139
  export const acquireStartWorkLock = (root, options = {}) => {
112
140
  const lockDir = startWorkLockDir(root);
113
141
  requireStateDir(dirname(lockDir));
@@ -131,15 +159,18 @@ export const acquireStartWorkLock = (root, options = {}) => {
131
159
  } catch (error) {
132
160
  if (error?.code !== "EEXIST") throw new StartWorkLifecycleError("start-work state lock failed");
133
161
  const incumbent = readLockOwner(root);
162
+ const age = lockAgeMs(lockDir, incumbent);
134
163
  const stale = incumbent
135
- && Date.now() - incumbent.acquired_at_ms >= staleMs
136
- && !processIsAlive(incumbent.pid);
164
+ ? age >= START_WORK_LOCK_MAX_HOLD_MS || (age >= staleMs && !processIsAlive(incumbent.pid))
165
+ : age >= Math.max(staleMs, OWNERLESS_GRACE_MS);
137
166
  if (stale) {
138
- const claim = join(lockDir, `.takeover-${incumbent.nonce}`);
139
- const displaced = `${lockDir}.stale.${incumbent.nonce}.${randomUUID()}`;
167
+ const tag = incumbent?.nonce ?? "ownerless";
168
+ const claim = join(lockDir, `.takeover-${tag}`);
169
+ const displaced = `${lockDir}.stale.${tag}.${randomUUID()}`;
140
170
  try {
171
+ clearDeadTakeoverClaim(claim, staleMs);
141
172
  writeFileSync(claim, `${process.pid}\n`, { mode: 0o600, flag: "wx" });
142
- if (readLockOwner(root)?.nonce !== incumbent.nonce) continue;
173
+ if (readLockOwner(root)?.nonce !== incumbent?.nonce) continue;
143
174
  renameSync(lockDir, displaced);
144
175
  rmSync(displaced, { recursive: true, force: true });
145
176
  continue;
@@ -149,7 +180,12 @@ export const acquireStartWorkLock = (root, options = {}) => {
149
180
  }
150
181
  }
151
182
  }
152
- if (Date.now() - started >= timeout) throw new StartWorkLifecycleError("start-work state lock timed out", 75);
183
+ if (Date.now() - started >= timeout) {
184
+ const holder = incumbent
185
+ ? `held by pid ${incumbent.pid} for ${Math.round(age / 1000)} s`
186
+ : "with no owner record";
187
+ throw new StartWorkLifecycleError(`start-work state lock timed out (${holder}; lock ${lockDir})`, 75);
188
+ }
153
189
  sleepSync(Math.min(20, Math.max(1, timeout)));
154
190
  }
155
191
  }
@@ -1630,13 +1666,28 @@ const idleMs = (work, now) => Math.max(0, now - (lastActivityMs(work) || now));
1630
1666
  // A heartbeat for the owner and its lanes (they share its session id): at most one state write a
1631
1667
  // minute, with no ledger event, so a busy run never looks idle to another session.
1632
1668
  const ACTIVITY_WRITE_MS = 60_000;
1633
- const recordToolActivity = (root, state, work, now) => {
1669
+ // It takes the lock only briefly and skips when another writer holds it: a heartbeat is never worth
1670
+ // delaying a tool call, and the next call a minute on writes it instead.
1671
+ const HEARTBEAT_LOCK_WAIT_MS = 200;
1672
+ const recordToolActivity = (root, work, now) => {
1634
1673
  if (now - lastActivityMs(work) < ACTIVITY_WRITE_MS) return;
1635
- work.last_tool_at = new Date(now).toISOString();
1674
+ let owner;
1636
1675
  try {
1676
+ owner = acquireStartWorkLock(root, { timeoutMs: HEARTBEAT_LOCK_WAIT_MS });
1677
+ } catch {
1678
+ return;
1679
+ }
1680
+ try {
1681
+ const state = readState(root);
1682
+ const current = state.works[work.work_id];
1683
+ if (!current || current.root_session_id !== work.root_session_id || !["active", "paused"].includes(current.status)) return;
1684
+ if (now - lastActivityMs(current) < ACTIVITY_WRITE_MS) return;
1685
+ current.last_tool_at = new Date(now).toISOString();
1637
1686
  saveState(root, state);
1638
1687
  } catch {
1639
1688
  // A failed heartbeat must not refuse a call the guard allowed.
1689
+ } finally {
1690
+ releaseStartWorkLock(root, owner);
1640
1691
  }
1641
1692
  };
1642
1693
  const isStale = (work, now) => Boolean(work.root_session_ended_at) || idleMs(work, now) >= START_WORK_STALE_MS;
@@ -1990,25 +2041,32 @@ const cancelNoticeDecision = (root, state, input) => {
1990
2041
  export const handleStartWorkPreToolUse = (root, input, { now = Date.now() } = {}) => {
1991
2042
  const canonicalRoot = canonicalDirectory(root, "cwd root");
1992
2043
  if (!existsSync(startWorkStatePath(canonicalRoot))) return { decision: "allow-normal" };
1993
- return withLock(canonicalRoot, () => {
1994
- const state = readState(canonicalRoot);
1995
- const work = state.active_work_id ? state.works[state.active_work_id] : null;
1996
- const running = Boolean(work && ["active", "paused"].includes(work.status));
1997
- if (!running || work.root_session_id !== input?.session_id) {
1998
- const notice = cancelNoticeDecision(canonicalRoot, state, input);
1999
- if (notice) return notice;
2000
- }
2001
- if (!running) return { decision: "allow-normal" };
2002
- if (typeof input?.session_id !== "string" || input.session_id !== work.root_session_id) {
2003
- return otherSessionDecision(canonicalRoot, work, input, now);
2004
- }
2005
- const decided = ownerToolDecision(canonicalRoot, state, work, input);
2006
- if (decided.decision === "allow-normal") recordToolActivity(canonicalRoot, state, work, now);
2007
- return decided;
2008
- });
2044
+ // The verdict only reads the state, which every writer replaces whole by rename, so it is taken
2045
+ // from a snapshot without the lock. Waiting on the lock here let other sessions' writes of a large
2046
+ // state on a slow drive refuse every tool call. A snapshot that cannot be read is retried under
2047
+ // the lock, which fails closed as before.
2048
+ let state;
2049
+ try {
2050
+ state = readState(canonicalRoot);
2051
+ } catch {
2052
+ state = withLock(canonicalRoot, () => readState(canonicalRoot));
2053
+ }
2054
+ const work = state.active_work_id ? state.works[state.active_work_id] : null;
2055
+ const running = Boolean(work && ["active", "paused"].includes(work.status));
2056
+ if (!running || work.root_session_id !== input?.session_id) {
2057
+ const notice = cancelNoticeDecision(canonicalRoot, state, input);
2058
+ if (notice) return notice;
2059
+ }
2060
+ if (!running) return { decision: "allow-normal" };
2061
+ if (typeof input?.session_id !== "string" || input.session_id !== work.root_session_id) {
2062
+ return otherSessionDecision(canonicalRoot, work, input, now);
2063
+ }
2064
+ const decided = ownerToolDecision(canonicalRoot, state, work, input);
2065
+ if (decided.decision === "allow-normal") recordToolActivity(canonicalRoot, work, now);
2066
+ return decided;
2009
2067
  };
2010
2068
 
2011
- // The owner session's verdict for one tool call, under the lock the caller holds.
2069
+ // The owner session's verdict for one tool call, from the caller's state snapshot.
2012
2070
  const ownerToolDecision = (canonicalRoot, state, work, input) => {
2013
2071
  const executionRoot = canonicalDirectory(typeof input.cwd === "string" ? input.cwd : canonicalRoot, "tool cwd");
2014
2072
  const classified = classifyToolAuthority(executionRoot, input);
@@ -0,0 +1,91 @@
1
+ // Synthwave mark for human-facing CLI output (install, doctor, help). Never for model-visible text.
2
+ import { MONO_ROWS, PIXEL_ROWS, SHARED_COLOURS } from "./synthwave-rows.mjs";
3
+
4
+ export const HOST_LABEL = "claude code";
5
+ // LitClaude chrome: ice blue at the top of each letter, rose at the base.
6
+ export const CHROME_STOPS = Object.freeze(["#e0fbff", "#8be9fd", "#3a6df0", "#ffffff", "#ff9ad5", "#c2185b"]);
7
+ const TAGLINE_STOPS = Object.freeze(["#8be9fd", "#ff2d95", "#ffd23f"]);
8
+ const EDGE = "#ffffff";
9
+ export const SIZES = Object.freeze([
10
+ Object.freeze({ name: "B-L", minCols: 76 }),
11
+ Object.freeze({ name: "B-M", minCols: 44 }),
12
+ Object.freeze({ name: "B-S", minCols: 24 }),
13
+ ]);
14
+
15
+ const rgb = (hex) => [1, 3, 5].map((i) => Number.parseInt(hex.slice(i, i + 2), 16));
16
+ const toHex = (c) => `#${c.map((v) => Math.round(v).toString(16).padStart(2, "0")).join("")}`;
17
+ const sample = (stops, t) => {
18
+ const n = stops.length - 1;
19
+ const i = Math.min(n - 1, Math.floor(t * n));
20
+ const f = t * n - i;
21
+ const a = rgb(stops[i]);
22
+ const b = rgb(stops[i + 1]);
23
+ return toHex(a.map((v, k) => v + (b[k] - v) * f));
24
+ };
25
+ const isChrome = (sym) => sym >= "a" && sym <= "l";
26
+
27
+ function pixelColour(sym) {
28
+ if (sym === " ") return null;
29
+ if (isChrome(sym)) return sample(CHROME_STOPS, (sym.charCodeAt(0) - 97) / 11);
30
+ if (sym === "m") return EDGE;
31
+ return SHARED_COLOURS[sym] ?? null;
32
+ }
33
+
34
+ // xterm 256-colour cube index for a #rrggbb colour.
35
+ const cube = (hex) => {
36
+ const [r, g, b] = rgb(hex).map((v) => Math.round((v / 255) * 5));
37
+ return 16 + 36 * r + 6 * g + b;
38
+ };
39
+ const sgr = (hex, layer, mode) => {
40
+ if (mode === "truecolor") return `${layer === "fg" ? 38 : 48};2;${rgb(hex).join(";")}`;
41
+ return `${layer === "fg" ? 38 : 48};5;${cube(hex)}`;
42
+ };
43
+ const paint = (ch, fg, bg, mode) => {
44
+ const codes = [fg && sgr(fg, "fg", mode), bg && sgr(bg, "bg", mode)].filter(Boolean);
45
+ return codes.length === 0 ? ch : `\x1b[${codes.join(";")}m${ch}\x1b[0m`;
46
+ };
47
+
48
+ /** Largest size that fits `cols` terminal cells, or null when even B-S does not fit. */
49
+ export function pickSize(cols) {
50
+ const width = Number.isFinite(cols) && cols > 0 ? cols : 80;
51
+ return SIZES.find((size) => width >= size.minCols)?.name ?? null;
52
+ }
53
+
54
+ function cellRows(size, mode) {
55
+ const rows = PIXEL_ROWS[size];
56
+ const out = [];
57
+ for (let y = 0; y < rows.length; y += 2) {
58
+ let line = "";
59
+ for (let x = 0; x < rows[y].length; x += 1) {
60
+ const upper = rows[y][x];
61
+ const lower = rows[y + 1][x];
62
+ const top = pixelColour(upper);
63
+ const bottom = pixelColour(lower);
64
+ if (top === bottom) line += top ? paint(" ", null, top, mode) : " ";
65
+ else if (top === null) line += paint("▄", bottom, null, mode);
66
+ else line += paint("▀", top, bottom, mode);
67
+ }
68
+ out.push(line);
69
+ }
70
+ return out;
71
+ }
72
+
73
+ function taglineRow(width, mode) {
74
+ const label = `LIT · ${HOST_LABEL}`;
75
+ const pad = " ".repeat(Math.max(0, Math.floor((width - label.length) / 2)));
76
+ if (mode === "mono") return `${pad}${label}`;
77
+ const glyphs = [...label];
78
+ return pad + glyphs.map((ch, i) => (ch === " " ? ch : paint(ch, sample(TAGLINE_STOPS, i / (glyphs.length - 1)), null, mode))).join("");
79
+ }
80
+
81
+ /**
82
+ * Rows for the mark at the given width.
83
+ * mode: "truecolor" | "256" (coloured), "mono" (no colour, the scene in glyphs), "plain" (one text line).
84
+ */
85
+ export function synthwaveRows({ cols, mode = "mono" } = {}) {
86
+ const size = pickSize(cols);
87
+ if (mode === "plain" || size === null) return [`LIT · ${HOST_LABEL}`];
88
+ const resolved = mode === "truecolor" || mode === "256" ? mode : "mono";
89
+ const art = resolved === "mono" ? [...MONO_ROWS[size]] : cellRows(size, resolved);
90
+ return [...art, taglineRow(PIXEL_ROWS[size][0].length, resolved)];
91
+ }
@@ -0,0 +1,187 @@
1
+ // Synthwave mark data. PIXEL_ROWS: two pixels per terminal cell, one symbol per pixel; ' ' is the
2
+ // terminal background, 'a'..'l' are chrome levels 0..11, 'm' is the white chrome edge, and every other
3
+ // symbol is a colour in SHARED_COLOURS. MONO_ROWS: the same scene for terminals without colour, printed
4
+ // as-is. SPEC_DIGEST pins all of it to the LitFamily visual spec; test/synthwave-mark.test.mjs recomputes it.
5
+ export const SPEC_DIGEST ="f063a0cefb969db40c0fc436742240912d895d43c3013d35782320befc0a2b86";
6
+
7
+ export const SHARED_COLOURS = Object.freeze({
8
+ "0": "#331144",
9
+ "1": "#ff5555",
10
+ "2": "#ff5566",
11
+ "3": "#ff4477",
12
+ "4": "#ff3388",
13
+ "5": "#ffbbee",
14
+ "6": "#ff3399",
15
+ "7": "#110022",
16
+ "8": "#ff4499",
17
+ "9": "#220022",
18
+ "!": "#111122",
19
+ "#": "#88eeff",
20
+ "$": "#111111",
21
+ "%": "#ffffff",
22
+ "&": "#111133",
23
+ "(": "#ffcc44",
24
+ ")": "#221133",
25
+ "*": "#ffbb44",
26
+ "+": "#ffaa33",
27
+ ",": "#ff9933",
28
+ "-": "#ff8833",
29
+ ".": "#ff7733",
30
+ "/": "#ff6633",
31
+ ":": "#ff44aa",
32
+ ";": "#220033",
33
+ "<": "#ff55aa",
34
+ "=": "#ff66bb",
35
+ ">": "#ff6644",
36
+ "?": "#ff4466",
37
+ "@": "#ff77cc",
38
+ "A": "#ffaa44",
39
+ });
40
+
41
+ export const PIXEL_ROWS = Object.freeze({
42
+ "B-L": Object.freeze([
43
+ "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#!!!!!!",
44
+ "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
45
+ "!!!!!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!!!!#!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!!!!!",
46
+ "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
47
+ "!!!!#!!!!!!!!mmmmmm!!!!!!!!!!!!mmmmmmmmmm!!!!mmmmmmmmmmmmmmmmmm!!!!!!!!!!!!!",
48
+ "!!!!!!!!!!!!!mbbbbb$!!!!!!!!%!!mbbbbbbbbb$!!!mbbbbbbbbbbbbbbbbb$!!!!!!!!!!!!",
49
+ "!!!!!!!!!!!!!mbbbbb$!#!!!!!!!!!mbbbbbbbbb$!!!mbbbbbbbbbbbbbbbbb$!!!!!!!%!!!!",
50
+ "!!!!!!!!!!!!!mccccc$!!!!!!!!!!!mccccccccc$!!!mccccccccccccccccc$!!!!!!!!!!!!",
51
+ "&&&&&&&&&&&&&mccccc$&&&&&&&&&&&&$mccccc$$$&&&mccccccccccccccccc$&&&&&&&&&&&&",
52
+ "&&&&&&&&&&&&&mddddd$&&&&&%&&&&&&&mddddd$&&&&&mddddddddddddddddd$&&&&&&&&&&&&",
53
+ "&&&&&&&&&&&&&mddddd$&&&&&&&&&&&&&mddddd$&&&&&&$$$$$mddddd$$$$$$$&%&&&&&&&&&&",
54
+ "&&&&&&&&&&&&&meeeee$&&&&&&%&&&&&&meeeee$&%&&&&&&&&&meeeee$&&&&&&&&&&&&%&&&&&",
55
+ "&&&&&&&&&&&&&meeeee$&&&&&%&&&&&&&meeeee$((((&&&&&&&meeeee$&&&&&&&&&&&&&&&&&&",
56
+ ")))))))))))))mfffff$)))))))))))**mfffff$******)))))mfffff$))))))))))))))))))",
57
+ ")))))))))))))mfffff$)))))))))++++mfffff$++++++++)))mfffff$))))))))))))))))))",
58
+ "#))))))))))))mggggg$)))))))),,,,,mggggg$,,,,,,,,,))mggggg$))))))))))))))))))",
59
+ ")))))))))))))mggggg$)))))))------mggggg$----------)mggggg$))))))))))))))))))",
60
+ ")))))))))))))mhhhhh$))))))-------mhhhhh$-----------mhhhhh$))))))))))))))))))",
61
+ ")))))))))))))mhhhhh$)))))).......mhhhhh$...........mhhhhh$))))))))))))))))))",
62
+ ")))))))))))))miiiii$)))))////////miiiii$///////////miiiii$))))))))))))))))))",
63
+ ")))))))))))))miiiiimmmmmmmm))))))miiiii$)))))))))))miiiii$))))))))))))))))))",
64
+ "0000000000000mjjjjjjjjjjjjj$11111mjjjjj$11111111111mjjjjj$000000000000000000",
65
+ "0000000000000mjjjjjjjjjjjjj$222mmjjjjjjmm2222222222mjjjjj$000000000000000000",
66
+ "0000000000000mkkkkkkkkkkkkk$000mkkkkkkkkk$000000000mkkkkk$000000000000000000",
67
+ "0000000000000mkkkkkkkkkkkkk$333mkkkkkkkkk$333333333mkkkkk$000000000000000000",
68
+ "0000000000000mlllllllllllll$444mlllllllll$444444444mlllll$000000000000000000",
69
+ "00000000000000$$$$$$$$$$$$$$0000$$$$$$$$$$0000000000$$$$$$000000000000000000",
70
+ "5555555555555555555555555555555555555555555555555555555555555555555555555555",
71
+ "6666666666666666666666666666666666666666666666666666666666666666666666666666",
72
+ "7777777777777777677676776767677676776767677676776767677676776777777777777777",
73
+ "8888888888886886886886886886868868868868868868868688688688688688688888888888",
74
+ "7777777767767776776776777677677677767767767776776776777677677677767767777777",
75
+ "9999699969996996999699969996996999699969996999699699969996999699699969996999",
76
+ "6:::6:::6::::6:::6:::6:::6::::6:::6:::6:::6:::6::::6:::6:::6:::6::::6:::6:::",
77
+ "6999969999699969999699996999969996999969999699969999699996999969996999969999",
78
+ ";;6;;;;6;;;;6;;;;6;;;;6;;;;;6;;;;6;;;;6;;;;6;;;;6;;;;;6;;;;6;;;;6;;;;6;;;;6;",
79
+ ";;;;6;;;;;6;;;;6;;;;;6;;;;;6;;;;6;;;;;6;;;;;6;;;;6;;;;;6;;;;;6;;;;6;;;;;6;;;",
80
+ "<6<<<<<<6<<<<<6<<<<<6<<<<<6<<<<<6<<<<<6<<<<<6<<<<<6<<<<<6<<<<<6<<<<<6<<<<<<6",
81
+ ";;;;;6;;;;;;6;;;;;6;;;;;;6;;;;;6;;;;;;6;;;;;;6;;;;;6;;;;;;6;;;;;6;;;;;;6;;;;",
82
+ ";;;6;;;;;;6;;;;;;6;;;;;;6;;;;;;6;;;;;;6;;;;;;6;;;;;;6;;;;;;6;;;;;;6;;;;;;6;;",
83
+ ";6;;;;;;6;;;;;;;6;;;;;;6;;;;;;;6;;;;;;6;;;;;;6;;;;;;;6;;;;;;6;;;;;;;6;;;;;;6",
84
+ ";;;;;;6;;;;;;;6;;;;;;;6;;;;;;;6;;;;;;;6;;;;;;;6;;;;;;;6;;;;;;;6;;;;;;;6;;;;;",
85
+ "====6========6=======6========6=======6=======6========6=======6========6===",
86
+ ";;;6;;;;;;;6;;;;;;;;6;;;;;;;;6;;;;;;;;6;;;;;;;;6;;;;;;;;6;;;;;;;;6;;;;;;;6;;",
87
+ ";6;;;;;;;;6;;;;;;;;6;;;;;;;;;6;;;;;;;;6;;;;;;;;6;;;;;;;;;6;;;;;;;;6;;;;;;;;6",
88
+ ";;;;;;;;;6;;;;;;;;6;;;;;;;;;6;;;;;;;;;6;;;;;;;;;6;;;;;;;;;6;;;;;;;;6;;;;;;;;",
89
+ ]),
90
+ "B-M": Object.freeze([
91
+ "#!!!!!!!!!!!!!!!!!!!!%!!!!%#!!!!!!!!!!%!!!!!",
92
+ "!!!#!!!!!!!!!!%!!!!!!!!!!!!!!!!!%!!!!!!!!!!!",
93
+ "#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
94
+ "!!!#!!!!mmm!!!!!#!mmmmm!!!mmmmmmmmm!!!%#!!!!",
95
+ "!!!!!!!!mbb$!!!!!!mbbbb$!!mbbbbbbbb$!!!!!!!!",
96
+ "&&&&&&&&mcc$&&&&&&&mcc$$&&mcccccccc$&&&&&&&&",
97
+ "&&&&&&&&mdd$&&&&&&*mdd$****$$mdd$$$$&&&&&&&&",
98
+ "))))))))mee$)))))++mee$+++++)mee$)))))))))))",
99
+ "))))))))mgg$))))---mgg$------mgg$)))))))))))",
100
+ "))))))))mhh$)))....mhh$......mhh$)))))))))))",
101
+ "))))))))mii$))>>>>>mii$>>>>>>mii$)))))))))))",
102
+ "))))))))mjjmmmm))))mjj$))))))mjj$)))))))))))",
103
+ "00000000mkkkkkk$??mkkkm??????mkk$00000000000",
104
+ "00000000mllllll$44mllll$44444mll$00000000000",
105
+ "000000000$$$$$$$000$$$$$000000$$$00000000000",
106
+ "55555555555555555555555555555555555555555555",
107
+ "66666666666666666666666666666666666666666666",
108
+ "77776767676767676767676767676767676767676777",
109
+ "6::6:6:6::6:6::6:6::6:6:6::6:6::6:6::6:6:6::",
110
+ "99699699696996996996996996996996996969969969",
111
+ ";;6;;6;;;6;;6;;6;;;6;;6;;6;;;6;;6;;6;;;6;;6;",
112
+ "===6===6===6==6===6===6===6===6==6===6===6==",
113
+ ";6;;;6;;;6;;;6;;;;6;;;6;;;6;;;;6;;;6;;;6;;;6",
114
+ ";;;6;;;;6;;;;6;;;6;;;;6;;;;6;;;6;;;;6;;;;6;;",
115
+ ";6;;;;6;;;;;6;;;;6;;;;6;;;;6;;;;6;;;;;6;;;;6",
116
+ "@@@@@6@@@@@6@@@@6@@@@@6@@@@@6@@@@6@@@@@6@@@@",
117
+ ]),
118
+ "B-S": Object.freeze([
119
+ "!!!!!!!%!!!!#!!!!!!!!!!!",
120
+ "!%!!!!!!!!!!!!!!!!!!!!#!",
121
+ "!!!!mm!!!mmmm!mmmmmm!!!!",
122
+ "&&&&mc$&&&mc$$mccccc$&&&",
123
+ "&&&&me$&&Ame$AA$me$$$&&&",
124
+ "))#)mg$)--mg$---mg$)))))",
125
+ "))))mh$)))mh$)))mh$)))%)",
126
+ "))))mjmm11mj$111mj$)))))",
127
+ "0000mlll$mllm333ml$00000",
128
+ "00000$$$$0$$$$000$$00000",
129
+ "555555555555555555555555",
130
+ "6<66<6<6<66<6<66<6<6<66<",
131
+ "6;6;;6;6;;6;6;6;;6;6;;6;",
132
+ "6@@6@@6@@6@@6@@6@@6@@6@@",
133
+ ]),
134
+ });
135
+
136
+ export const MONO_ROWS = Object.freeze({
137
+ "B-L": Object.freeze([
138
+ " ·",
139
+ " · · ·",
140
+ " · ██████ · ██████████ ██████████████████",
141
+ " ██████ · ██████████ ██████████████████ ·",
142
+ " ██████ · ██████ ██████████████████",
143
+ " ██████ · ██████ · ██████ · ·",
144
+ " ██████ · ░░██████░░░░░░░ ██████",
145
+ "· ██████ ░░░░░██████░░░░░░░░░░ ██████",
146
+ " ██████ ░░░░░░░██████░░░░░░░░░░░░██████",
147
+ " ██████ ░░░░░░░░██████░░░░░░░░░░░░██████",
148
+ " ██████████████░░░░░░██████░░░░░░░░░░░░██████",
149
+ " ██████████████░░░░██████████░░░░░░░░░░██████",
150
+ " ██████████████░░░░██████████░░░░░░░░░░██████",
151
+ "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━",
152
+ " ╱ ╱ ╱ ╱ ╱ │╲ ╲ ╲ ╲ ╲",
153
+ "────────────────────────┼──┼──┼─┼──┼──┼─┼──┼─┼──┼──┼────────────────────────",
154
+ " ╱ ╱ ╱ ╱ ╱ │ ╲ ╲ ╲ ╲ ╲",
155
+ "──────────────────┼───┼───┼───┼───┼───┼──┼───┼───┼───┼───┼──────────────────",
156
+ " ╱ ╱ ╱ ╱ ╱ │ ╲ ╲ ╲ ╲ ╲",
157
+ "────────────┼────┼────┼────┼────┼─────┼────┼────┼────┼────┼────┼────────────",
158
+ " ╱ ╱ ╱ ╱ ╱ │ ╲ ╲ ╲ ╲ ╲",
159
+ "──────┼─────┼──────┼─────┼─────┼──────┼─────┼─────┼─────┼──────┼─────┼──────",
160
+ "───┼──────┼──────┼──────┼──────┼──────┼─────┼──────┼──────┼──────┼──────┼───",
161
+ ]),
162
+ "B-M": Object.freeze([
163
+ "· · · · ·· · ·",
164
+ "· · ▄▄▄ · ▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄ ··",
165
+ " ███ ▀███▀ █████████",
166
+ " ███ ░░███░░░░░░░███",
167
+ " ███ ░░░░███░░░░░░░███",
168
+ " ███▄▄▄▄░░░░███░░░░░░░███",
169
+ " ███████░░░█████░░░░░░███",
170
+ "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━",
171
+ " ╱ ╱╱ ╱╱ │╲╲ ╲╲ ╲",
172
+ "───────────┼─┼─┼─┼─┼──┼─┼─┼─┼─┼─┼───────────",
173
+ " ╱ ╱ ╱ ╱ ╱ │ ╲ ╲ ╲ ╲ ╲",
174
+ "─────┼──┼──┼───┼──┼───┼──┼──┼───┼──┼──┼─────",
175
+ "──┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼─",
176
+ ]),
177
+ "B-S": Object.freeze([
178
+ " · · · ·",
179
+ " ██ ▀██▀ ██████",
180
+ " · ██░ ░░██░░░░██░",
181
+ " ██▄▄░░██░░░░██░ ·",
182
+ " ▀▀▀▀ ▀▀▀▀░░░▀▀░",
183
+ "━━━━━━━━━━━━━━━━━━━━━━━━",
184
+ " ╱╱ ╱╱╱ │╲╲╲ ╲╲",
185
+ "─┼─┼─┼─┼─┼──┼─┼─┼─┼─┼─┼─",
186
+ ]),
187
+ });