@mrciphersmith/keryx 0.4.8 → 0.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.js CHANGED
@@ -1105,6 +1105,11 @@ var init_catalog = __esm(() => {
1105
1105
  "Measure the worst real case: the longest translation, the narrowest supported host, the state where the sibling is absent.",
1106
1106
  "An unmeasured layout claim is info, marked unverified \u2014 never promoted on confidence."
1107
1107
  ]),
1108
+ skill("review-ui-ux", "review", ["recommended", "full"], "Review UI/UX quality and AI-slop: usability heuristics, system states, forms, hierarchy, WCAG 2.2 AA floor, and a slop score.", [
1109
+ "Run deterministic checks first (focus, contrast, targets, reduced motion, forms, tell catalog), then heuristics, then hierarchy.",
1110
+ "Measure contrast, target size and fonts on the render when one is available; an unmeasured visual claim is info.",
1111
+ "Score AI-slop as a stack of tells by tier; honor DESIGN.md exemptions; list every check not run."
1112
+ ]),
1108
1113
  skill("review-style", "review", ["recommended", "full"], "Review naming, readability, duplication, dead code, and maintainability.", [
1109
1114
  "Focus on clarity and local consistency.",
1110
1115
  "Separate style findings from correctness findings.",
@@ -1221,6 +1226,11 @@ var init_catalog = __esm(() => {
1221
1226
  "Map scenarios to the existing test stack.",
1222
1227
  "Prefer tests that fail for the missing behavior before implementation."
1223
1228
  ]),
1229
+ skill("ui-craft", "quality", ["recommended", "full"], "Build or restyle UI from DESIGN.md: tokens first, every state, purposeful motion, WCAG 2.2 AA, verified in a browser.", [
1230
+ "Define semantic tokens before components; never introduce a second styling system.",
1231
+ "Implement hover, focus-visible, active, disabled, loading, empty, error, sparse and dense states.",
1232
+ "Verify renders at 1440, 768 and 390 px, fix the top three problems, at most three rounds; state checks not run."
1233
+ ]),
1224
1234
  skill("dependency-update", "quality", ["full"], "Plan and verify dependency upgrades.", [
1225
1235
  "Classify updates by risk.",
1226
1236
  "Apply small compatible groups first.",
@@ -1281,6 +1291,11 @@ var init_catalog = __esm(() => {
1281
1291
  "Ask clarifying questions when needed.",
1282
1292
  "Write testable requirements and acceptance criteria."
1283
1293
  ]),
1294
+ skill("ui-direction", "planning", ["recommended", "full"], "Choose a distinctive visual concept before UI code and persist it as DESIGN.md.", [
1295
+ "Mine 8-12 facts about the subject and deal three directions before choosing one.",
1296
+ "Test the idea sentence against the nearest competitor and the logo-swap test.",
1297
+ "Plan palette with computed contrast, type, ASCII layout, motion, and exactly one signature element."
1298
+ ]),
1284
1299
  skill("project-discovery", "planning", ["full"], "Collect initial project facts, modules, constraints, stakeholders, and source references.", [
1285
1300
  "Inventory available docs, code modules, and entrypoints.",
1286
1301
  "Identify project purpose, users, constraints, and unknowns.",
@@ -10264,6 +10279,7 @@ var init_skill_length_ceilings = __esm(() => {
10264
10279
  "planning/patterns-researcher": 254,
10265
10280
  "planning/planner": 208,
10266
10281
  "planning/prd-creator": 210,
10282
+ "planning/ui-direction": 177,
10267
10283
  "planning/problem-definer": 170,
10268
10284
  "planning/project-discovery": 183,
10269
10285
  "planning/spec-writer": 248,
@@ -10289,6 +10305,7 @@ var init_skill_length_ceilings = __esm(() => {
10289
10305
  "quality/security-audit": 129,
10290
10306
  "quality/test-gen": 101,
10291
10307
  "quality/tests-creator": 360,
10308
+ "quality/ui-craft": 173,
10292
10309
  "review/code-ai-review": 238,
10293
10310
  "review/code-learned-review": 283,
10294
10311
  "review/code-mobx-store-review": 301,
@@ -10319,6 +10336,7 @@ var init_skill_length_ceilings = __esm(() => {
10319
10336
  "review/review-security-code": 359,
10320
10337
  "review/review-style": 353,
10321
10338
  "review/review-testing-practices": 293,
10339
+ "review/review-ui-ux": 268,
10322
10340
  "review/review-verifier": 299
10323
10341
  };
10324
10342
  SKILL_LENGTH_CEILINGS = new Map(Object.entries(CEILINGS_BY_KEY));
@@ -17483,7 +17501,7 @@ var init_types2 = __esm(() => {
17483
17501
  });
17484
17502
 
17485
17503
  // src/memory/store.ts
17486
- import { lstat as lstat8, readdir as readdir13, readFile as readFile28 } from "fs/promises";
17504
+ import { lstat as lstat9, readdir as readdir13, readFile as readFile28 } from "fs/promises";
17487
17505
  import path60 from "path";
17488
17506
  function decodeStrictUtf8(bytes) {
17489
17507
  return STRICT_UTF8_DECODER.decode(bytes);
@@ -17501,7 +17519,7 @@ async function collectEntries(cwd) {
17501
17519
  const dir = path60.join(root, folder);
17502
17520
  let dirStats;
17503
17521
  try {
17504
- dirStats = await lstat8(dir);
17522
+ dirStats = await lstat9(dir);
17505
17523
  } catch {
17506
17524
  continue;
17507
17525
  }
@@ -17515,7 +17533,7 @@ async function collectEntries(cwd) {
17515
17533
  const abs = path60.join(dir, name);
17516
17534
  let stats;
17517
17535
  try {
17518
- stats = await lstat8(abs);
17536
+ stats = await lstat9(abs);
17519
17537
  } catch {
17520
17538
  continue;
17521
17539
  }
@@ -17533,7 +17551,7 @@ async function collectEntriesStrict(root) {
17533
17551
  const problems = [];
17534
17552
  let rootStats;
17535
17553
  try {
17536
- rootStats = await lstat8(root);
17554
+ rootStats = await lstat9(root);
17537
17555
  } catch (error) {
17538
17556
  if (isNotFound(error)) {
17539
17557
  return { status: "complete", entries: [], problems: [] };
@@ -17550,7 +17568,7 @@ async function collectEntriesStrict(root) {
17550
17568
  const dir = path60.join(root, folder);
17551
17569
  let dirStats;
17552
17570
  try {
17553
- dirStats = await lstat8(dir);
17571
+ dirStats = await lstat9(dir);
17554
17572
  } catch (error) {
17555
17573
  if (isNotFound(error)) {
17556
17574
  continue;
@@ -17574,7 +17592,7 @@ async function collectEntriesStrict(root) {
17574
17592
  const abs = path60.join(dir, name);
17575
17593
  let entryStats;
17576
17594
  try {
17577
- entryStats = await lstat8(abs);
17595
+ entryStats = await lstat9(abs);
17578
17596
  } catch {
17579
17597
  problems.push({ path: relativePath, reason: "unreadable-file" });
17580
17598
  continue;
@@ -17667,7 +17685,7 @@ async function collectUnexpectedMarkdown(dir, relativeDir, problems) {
17667
17685
  const relativePath = `${relativeDir}/${name}`;
17668
17686
  let stats;
17669
17687
  try {
17670
- stats = await lstat8(abs);
17688
+ stats = await lstat9(abs);
17671
17689
  } catch {
17672
17690
  continue;
17673
17691
  }
@@ -17700,7 +17718,7 @@ async function collectUnexpectedTopLevel(root, problems) {
17700
17718
  const abs = path60.join(root, name);
17701
17719
  let stats;
17702
17720
  try {
17703
- stats = await lstat8(abs);
17721
+ stats = await lstat9(abs);
17704
17722
  } catch {
17705
17723
  continue;
17706
17724
  }
@@ -18195,7 +18213,7 @@ function titleSimilarity(a, b) {
18195
18213
 
18196
18214
  // src/memory/report.ts
18197
18215
  import { randomUUID as randomUUID2 } from "crypto";
18198
- import { access as access2, mkdir as mkdir10, readdir as readdir15, rename as rename4, rm as rm4, stat as stat10, writeFile as writeFile7 } from "fs/promises";
18216
+ import { access as access2, mkdir as mkdir10, readdir as readdir15, rename as rename4, rm as rm4, stat as stat11, writeFile as writeFile7 } from "fs/promises";
18199
18217
  import path65 from "path";
18200
18218
  function runtimeRoot(cwd) {
18201
18219
  return path65.join(cwd, ".metaproject", "runtime", "memory");
@@ -18440,7 +18458,7 @@ class MemoryReportStore {
18440
18458
  const staleBefore = this.clock().getTime() - STALE_STAGING_MS;
18441
18459
  for (const name of await readdir15(tempRoot)) {
18442
18460
  const candidate = path65.join(tempRoot, name);
18443
- if ((await stat10(candidate)).mtimeMs <= staleBefore)
18461
+ if ((await stat11(candidate)).mtimeMs <= staleBefore)
18444
18462
  await rm4(candidate, { recursive: true, force: true });
18445
18463
  }
18446
18464
  const staging = path65.join(tempRoot, `${runId}.${randomUUID2()}`);
@@ -19934,7 +19952,7 @@ var init_provenance = __esm(() => {
19934
19952
 
19935
19953
  // src/gdgraph/staleness.ts
19936
19954
  import { spawn as spawn2 } from "child_process";
19937
- import { stat as stat11 } from "fs/promises";
19955
+ import { stat as stat12 } from "fs/promises";
19938
19956
  import path84 from "path";
19939
19957
  function gitStatusPorcelain(cwd) {
19940
19958
  return new Promise((resolve) => {
@@ -20026,7 +20044,7 @@ async function committedChangedFiles(cwd, fromCommit, toCommit, rootPrefix) {
20026
20044
  return diff.split("\x00").filter((entry) => entry.length > 0 && !entry.startsWith(metaprojectPrefix));
20027
20045
  }
20028
20046
  async function checkGraphStaleness(cwd, statusObservation) {
20029
- const nodesStat = await stat11(nodesJsonlPath(cwd)).catch(() => null);
20047
+ const nodesStat = await stat12(nodesJsonlPath(cwd)).catch(() => null);
20030
20048
  if (!nodesStat) {
20031
20049
  return { status: "stale", reasons: ["graph has not been built yet (no nodes.jsonl)"] };
20032
20050
  }
@@ -20056,7 +20074,7 @@ async function checkGraphStaleness(cwd, statusObservation) {
20056
20074
  }
20057
20075
  } else {
20058
20076
  provenanceMissing = true;
20059
- const logsHeadStat = await stat11(path84.join(cwd, ".git", "logs", "HEAD")).catch(() => null);
20077
+ const logsHeadStat = await stat12(path84.join(cwd, ".git", "logs", "HEAD")).catch(() => null);
20060
20078
  if (logsHeadStat && logsHeadStat.mtimeMs > nodesStat.mtimeMs) {
20061
20079
  reasons.push("repo HEAD moved since the graph was built (no build provenance recorded; inferred from .git/logs/HEAD)");
20062
20080
  }
@@ -20084,7 +20102,7 @@ async function checkGraphStaleness(cwd, statusObservation) {
20084
20102
  if (projectRelative === null) {
20085
20103
  continue;
20086
20104
  }
20087
- const fileStat = await stat11(path84.join(cwd, projectRelative)).catch(() => null);
20105
+ const fileStat = await stat12(path84.join(cwd, projectRelative)).catch(() => null);
20088
20106
  if (fileStat && fileStat.mtimeMs > nodesStat.mtimeMs) {
20089
20107
  postBuildEdits.push(displayPath);
20090
20108
  }
@@ -20094,7 +20112,7 @@ async function checkGraphStaleness(cwd, statusObservation) {
20094
20112
  }
20095
20113
  }
20096
20114
  }
20097
- const configStat = await stat11(gdgraphConfigPath2(cwd)).catch(() => null);
20115
+ const configStat = await stat12(gdgraphConfigPath2(cwd)).catch(() => null);
20098
20116
  if (configStat && configStat.mtimeMs > nodesStat.mtimeMs) {
20099
20117
  reasons.push("gdgraph.config.json changed since the graph was built");
20100
20118
  }
@@ -21227,7 +21245,7 @@ var init_embedding = __esm(() => {
21227
21245
 
21228
21246
  // src/wiki/section-tombstone.ts
21229
21247
  import path87 from "path";
21230
- import { stat as stat12 } from "fs/promises";
21248
+ import { stat as stat13 } from "fs/promises";
21231
21249
  function sectionRegistryPath(cwd) {
21232
21250
  return path87.join(cwd, ".metaproject", "wiki", ".sections.json");
21233
21251
  }
@@ -21310,7 +21328,7 @@ function parseLifted(value) {
21310
21328
  async function readSectionRegistryState(cwd) {
21311
21329
  const file = sectionRegistryPath(cwd);
21312
21330
  try {
21313
- await stat12(file);
21331
+ await stat13(file);
21314
21332
  } catch (error) {
21315
21333
  if (isNotFound(error)) {
21316
21334
  return { state: "absent", path: file };
@@ -21866,7 +21884,7 @@ var init_check = __esm(() => {
21866
21884
  });
21867
21885
 
21868
21886
  // src/memory/write.ts
21869
- import { mkdir as mkdir17, open as open2, readFile as readFile44, rename as rename5, rm as rm5, writeFile as writeFile11 } from "fs/promises";
21887
+ import { mkdir as mkdir17, open as open3, readFile as readFile44, rename as rename5, rm as rm5, writeFile as writeFile11 } from "fs/promises";
21870
21888
  import path90 from "path";
21871
21889
  async function resolveCanonicalEntryPath(cwd, relativePath) {
21872
21890
  const root = path90.resolve(memoryRoot(cwd));
@@ -21973,7 +21991,7 @@ async function replaceAtomically(target, content) {
21973
21991
  const tmp = path90.join(dir, `.${path90.basename(target)}.keryx-tmp-${process.pid}-${Math.random().toString(16).slice(2)}`);
21974
21992
  try {
21975
21993
  await writeFile11(tmp, content, "utf8");
21976
- const file = await open2(tmp, "r");
21994
+ const file = await open3(tmp, "r");
21977
21995
  try {
21978
21996
  await file.sync();
21979
21997
  } finally {
@@ -21981,7 +21999,7 @@ async function replaceAtomically(target, content) {
21981
21999
  }
21982
22000
  await rename5(tmp, target);
21983
22001
  try {
21984
- const directory = await open2(dir, "r");
22002
+ const directory = await open3(dir, "r");
21985
22003
  try {
21986
22004
  await directory.sync();
21987
22005
  } finally {
@@ -23799,7 +23817,7 @@ var init_config4 = __esm(() => {
23799
23817
 
23800
23818
  // src/wiki/history.ts
23801
23819
  import { createHash as createHash17, randomBytes as randomBytes5 } from "crypto";
23802
- import { appendFile as appendFile4, mkdir as mkdir20, open as open3, readFile as readFile49, rm as rm6, stat as stat13, writeFile as writeFile14 } from "fs/promises";
23820
+ import { appendFile as appendFile4, mkdir as mkdir20, open as open4, readFile as readFile49, rm as rm6, stat as stat14, writeFile as writeFile14 } from "fs/promises";
23803
23821
  import path97 from "path";
23804
23822
  function wikiRootPath2(cwd) {
23805
23823
  return path97.join(cwd, ".metaproject", "wiki");
@@ -23983,7 +24001,7 @@ async function ensureHistoryRoot(cwd) {
23983
24001
  async function endsWithoutNewline(file) {
23984
24002
  let handle;
23985
24003
  try {
23986
- handle = await open3(file, "r");
24004
+ handle = await open4(file, "r");
23987
24005
  } catch (error) {
23988
24006
  if (isNotFound(error))
23989
24007
  return false;
@@ -24007,10 +24025,10 @@ async function appendRun(cwd, entry) {
24007
24025
  ` : "";
24008
24026
  await appendFile4(file, `${lead}${JSON.stringify(entry)}
24009
24027
  `, "utf8");
24010
- if ((await stat13(file)).size <= MAX_RUNS_BYTES)
24028
+ if ((await stat14(file)).size <= MAX_RUNS_BYTES)
24011
24029
  return;
24012
24030
  await withFileLock(path97.join(root, ".runs.lock"), async () => {
24013
- if ((await stat13(file)).size <= MAX_RUNS_BYTES)
24031
+ if ((await stat14(file)).size <= MAX_RUNS_BYTES)
24014
24032
  return;
24015
24033
  const lines = (await readFile49(file, "utf8")).split(`
24016
24034
  `).filter((line) => line.trim().length > 0);
@@ -24029,7 +24047,7 @@ async function mutatePage(ctx, absolutePath, next) {
24029
24047
  return { changed: false };
24030
24048
  }
24031
24049
  const now = (ctx.now ?? (() => new Date))().toISOString();
24032
- const liveSeenAt = live === null ? now : (await stat13(absolutePath)).mtime.toISOString();
24050
+ const liveSeenAt = live === null ? now : (await stat14(absolutePath)).mtime.toISOString();
24033
24051
  const before = await reconcile(ctx.cwd, page, live, liveSeenAt);
24034
24052
  const version = (before.rows[0]?.version ?? 0) + 1;
24035
24053
  const row = {
@@ -26426,7 +26444,7 @@ var init_service4 = __esm(() => {
26426
26444
 
26427
26445
  // src/gdgraph/wiki-layer.ts
26428
26446
  import { createHash as createHash20 } from "crypto";
26429
- import { mkdir as mkdir22, stat as stat14, writeFile as writeFile16 } from "fs/promises";
26447
+ import { mkdir as mkdir22, stat as stat15, writeFile as writeFile16 } from "fs/promises";
26430
26448
  import path100 from "path";
26431
26449
  function storageDir(projectRoot, dataDir) {
26432
26450
  return gdgraphStorageDir(projectRoot, dataDir);
@@ -26495,7 +26513,7 @@ async function enrichBuildWithWikiLayer(input) {
26495
26513
  const mtimes = new Map;
26496
26514
  for (const record of input.fileRecords) {
26497
26515
  try {
26498
- const info = await stat14(path100.join(input.projectRoot, record.path));
26516
+ const info = await stat15(path100.join(input.projectRoot, record.path));
26499
26517
  mtimes.set(record.path, info.mtimeMs);
26500
26518
  } catch {}
26501
26519
  }
@@ -26975,12 +26993,17 @@ var init_contracts = __esm(() => {
26975
26993
  import {
26976
26994
  appendFileSync,
26977
26995
  chmodSync as chmodSync2,
26996
+ closeSync,
26997
+ constants as constants3,
26998
+ fstatSync as fstatSync2,
26978
26999
  mkdirSync as mkdirSync2,
27000
+ openSync,
26979
27001
  readFileSync as readFileSync12,
26980
27002
  renameSync as renameSync3,
26981
27003
  statSync as statSync3,
26982
27004
  unlinkSync,
26983
- writeFileSync as writeFileSync2
27005
+ writeFileSync as writeFileSync3,
27006
+ writeSync
26984
27007
  } from "fs";
26985
27008
  function readBoundedFile(file, maxBytes) {
26986
27009
  let stats;
@@ -27015,28 +27038,28 @@ var init_config_dir = __esm(() => {
27015
27038
 
27016
27039
  // src/session/preservation.ts
27017
27040
  import { createHash as createHash23, randomUUID as randomUUID3 } from "crypto";
27018
- import { closeSync, fsyncSync, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync3, readFileSync as readFileSync13, renameSync as renameSync4, unlinkSync as unlinkSync2, writeFileSync as writeFileSync3 } from "fs";
27041
+ import { closeSync as closeSync2, fsyncSync, mkdirSync as mkdirSync3, openSync as openSync2, readdirSync as readdirSync3, readFileSync as readFileSync13, renameSync as renameSync4, unlinkSync as unlinkSync2, writeFileSync as writeFileSync4 } from "fs";
27019
27042
  import path130 from "path";
27020
27043
  function syncDir(dir) {
27021
27044
  if (process.platform === "win32")
27022
27045
  return;
27023
- const fd = openSync(dir, "r");
27046
+ const fd = openSync2(dir, "r");
27024
27047
  try {
27025
27048
  fsyncSync(fd);
27026
27049
  } finally {
27027
- closeSync(fd);
27050
+ closeSync2(fd);
27028
27051
  }
27029
27052
  }
27030
27053
  function writePreservationFile(file, body) {
27031
27054
  const dir = path130.dirname(file);
27032
27055
  mkdirSync3(dir, { recursive: true, mode: 448 });
27033
27056
  const tmp = `${file}.${randomUUID3()}.tmp`;
27034
- const fd = openSync(tmp, "wx", 384);
27057
+ const fd = openSync2(tmp, "wx", 384);
27035
27058
  try {
27036
- writeFileSync3(fd, body, "utf8");
27059
+ writeFileSync4(fd, body, "utf8");
27037
27060
  fsyncSync(fd);
27038
27061
  } finally {
27039
- closeSync(fd);
27062
+ closeSync2(fd);
27040
27063
  }
27041
27064
  try {
27042
27065
  renameSync4(tmp, file);
@@ -27109,7 +27132,7 @@ var init_preservation = __esm(() => {
27109
27132
  });
27110
27133
 
27111
27134
  // src/session/slate.ts
27112
- import { mkdir as mkdir33, readFile as readFile66, readdir as readdir23, stat as stat17 } from "fs/promises";
27135
+ import { mkdir as mkdir33, readFile as readFile66, readdir as readdir23, stat as stat18 } from "fs/promises";
27113
27136
  import path135 from "path";
27114
27137
  function isSlateSeedKind(value) {
27115
27138
  return typeof value === "string" && SLATE_SEED_KINDS.includes(value);
@@ -30397,8 +30420,8 @@ function decisionWriters(kind, packageArg = "<review-dir>") {
30397
30420
  }
30398
30421
 
30399
30422
  // src/review/mutate.ts
30400
- import { existsSync as existsSync7 } from "fs";
30401
- import { cp, mkdir as mkdir9, mkdtemp, readFile as readFile22, readdir as readdir11, realpath as realpath12, rm as rm3, symlink, writeFile as writeFile6 } from "fs/promises";
30423
+ import { constants as constants2, existsSync as existsSync7, writeFileSync as writeFileSync2 } from "fs";
30424
+ import { cp, lstat as lstat8, mkdir as mkdir9, mkdtemp, open as open2, readFile as readFile22, readdir as readdir11, realpath as realpath12, rm as rm3, stat as stat10, symlink, utimes as utimes2, writeFile as writeFile6 } from "fs/promises";
30402
30425
  import path50 from "path";
30403
30426
 
30404
30427
  // src/lib/git-env.ts
@@ -30438,6 +30461,12 @@ var MUTANTS_SPEC = "mutants.json";
30438
30461
  var EVIDENCE_DIR = "research-evidence";
30439
30462
  var SKIP_COPY = new Set([".git", "node_modules"]);
30440
30463
  var SCRATCH_DIR = path50.join(".metaproject", "data", "review", "mutate-scratch");
30464
+ var STALE_SCRATCH_MS = 6 * 60 * 60 * 1000;
30465
+ var STALE_HEARTBEAT_MS = 10 * 60000;
30466
+ var SCRATCH_PREFIX = "keryx-mutate-";
30467
+ var SCRATCH_NAME = new RegExp(`^${SCRATCH_PREFIX}[A-Za-z0-9]{6}$`);
30468
+ var GITMODULES_MAX_BYTES = 64 * 1024;
30469
+ var GITFILE_MAX_BYTES = 8 * 1024;
30441
30470
  var OUTPUT_KEEP_CHARS = 256 * 1024;
30442
30471
  function parseMutantSpec(raw) {
30443
30472
  const list = Array.isArray(raw) ? raw : raw?.mutants;
@@ -30625,9 +30654,10 @@ var BUNDLED_PATH_GATES = {
30625
30654
  "review-flow-graph": (f) => /(^|\/)(src\/core\/flow|src\/graph|src\/shared\/flow)\//.test(f),
30626
30655
  "review-testing-practices": (f) => TEST_FILE.test(f) || /\.msw\.ts$/.test(f),
30627
30656
  "review-frontend-conventions": (f) => FRONTEND_EXT.test(f) || /\.stories\.tsx$/.test(f) || CODE_FILE.test(f),
30628
- "review-layout": (f) => /\.(tsx|jsx|css|scss)$/.test(f)
30657
+ "review-layout": (f) => /\.(tsx|jsx|css|scss)$/.test(f),
30658
+ "review-ui-ux": (f) => /\.(tsx|jsx|vue|svelte|html|css|scss)$/.test(f)
30629
30659
  };
30630
- var RISK_PATH_GATES = Object.fromEntries(Object.entries(BUNDLED_PATH_GATES).filter(([name]) => name !== "review-testing-practices" && name !== "review-frontend-conventions"));
30660
+ var RISK_PATH_GATES = Object.fromEntries(Object.entries(BUNDLED_PATH_GATES).filter(([name]) => name !== "review-testing-practices" && name !== "review-frontend-conventions" && name !== "review-ui-ux"));
30631
30661
  async function decideRoundDepth(root, request, input) {
30632
30662
  if (request === "full")
30633
30663
  return { requested: request, depth: "full", reason: "--depth full" };
@@ -31276,6 +31306,7 @@ var ROLE_RULES = [
31276
31306
  { role: "review-frontend-conventions", why: "frontend file", path: (f) => FRONTEND_FILE.test(f) && !isTestFilePath(f) },
31277
31307
  { role: "review-layout", why: "stylesheet or theme", path: (f) => STYLE_FILE.test(f) },
31278
31308
  { role: "review-layout", why: "markup or styling in a component", path: (f) => /\.(tsx|jsx|vue|svelte)$/.test(f) && !isTestFilePath(f), content: /\b(className|style=|styled\.|css`|sx=|theme\.|padding|margin|flex|grid|z-index|width|height)\b/ },
31309
+ { role: "review-ui-ux", why: "user-facing markup or styling", path: (f) => (STYLE_FILE.test(f) || /\.(tsx|jsx|vue|svelte|html)$/.test(f)) && !isTestFilePath(f) && !/\.stories\.[jt]sx?$/.test(f) },
31279
31310
  { role: "review-style", why: "documentation", path: (f) => DOC_FILE.test(f) },
31280
31311
  { role: "review-style", why: "stylesheet or theme", path: (f) => STYLE_FILE.test(f) },
31281
31312
  { role: "review-clean-code", why: "new functions or classes", content: /^\+\s*(export\s+)?(default\s+)?(async\s+)?(function\s+\w|class\s+\w|(const|let)\s+\w+\s*=\s*(async\s*)?\([^)]*\)\s*(:\s*[^=]+)?=>)/m, codeOnly: true },
@@ -37684,7 +37715,7 @@ init_section_tombstone();
37684
37715
 
37685
37716
  // src/forgetting/journal.ts
37686
37717
  init_fs();
37687
- import { appendFile as appendFile5, mkdir as mkdir25, readFile as readFile53, stat as stat15 } from "fs/promises";
37718
+ import { appendFile as appendFile5, mkdir as mkdir25, readFile as readFile53, stat as stat16 } from "fs/promises";
37688
37719
  import path104 from "path";
37689
37720
  function forgettingDataDir(cwd) {
37690
37721
  return path104.join(cwd, ".metaproject", "data", "forgetting");
@@ -37695,7 +37726,7 @@ function deletionJournalPath(cwd) {
37695
37726
  async function readDeletionJournal(cwd) {
37696
37727
  const file = deletionJournalPath(cwd);
37697
37728
  try {
37698
- await stat15(file);
37729
+ await stat16(file);
37699
37730
  } catch (error) {
37700
37731
  if (isNotFound(error)) {
37701
37732
  return { state: "absent", path: file };
@@ -39029,7 +39060,7 @@ async function getChurn(cwd, windowDays) {
39029
39060
  }
39030
39061
 
39031
39062
  // src/health/metrics/wiki-freshness.ts
39032
- import { readFile as readFile57, stat as stat16 } from "fs/promises";
39063
+ import { readFile as readFile57, stat as stat17 } from "fs/promises";
39033
39064
  import path110 from "path";
39034
39065
  var DEFAULT_STALE_EVIDENCE_DAYS = 7;
39035
39066
  function freshnessReportPath(cwd) {
@@ -39101,7 +39132,7 @@ async function reportAgeDays(file, generatedAt, now) {
39101
39132
  return Math.floor((now.getTime() - stamped) / 86400000);
39102
39133
  }
39103
39134
  try {
39104
- const info = await stat16(file);
39135
+ const info = await stat17(file);
39105
39136
  return Math.floor((now.getTime() - info.mtimeMs) / 86400000);
39106
39137
  } catch {
39107
39138
  return null;
@@ -42618,7 +42649,7 @@ init_config_dir();
42618
42649
  init_fs();
42619
42650
  init_preservation();
42620
42651
  import { randomUUID as randomUUID8 } from "crypto";
42621
- import { lstat as lstat9, readdir as readdir26 } from "fs/promises";
42652
+ import { lstat as lstat10, readdir as readdir26 } from "fs/promises";
42622
42653
  import path143 from "path";
42623
42654
 
42624
42655
  // src/session/paths.ts
@@ -44001,7 +44032,7 @@ import {
44001
44032
  mkdirSync as mkdirSync4,
44002
44033
  readdirSync as readdirSync4,
44003
44034
  renameSync as renameSync5,
44004
- writeFileSync as writeFileSync4
44035
+ writeFileSync as writeFileSync5
44005
44036
  } from "fs";
44006
44037
  import path136 from "path";
44007
44038
  init_slate();
@@ -45629,7 +45660,7 @@ function normalizeProposalLifecycleResult(value) {
45629
45660
 
45630
45661
  // src/sac/preservation-replay.ts
45631
45662
  async function readReplayJson(file) {
45632
- if (!(await lstat9(file)).isFile())
45663
+ if (!(await lstat10(file)).isFile())
45633
45664
  throw new Error("nonregular replay record");
45634
45665
  const result = readConfigFile(file);
45635
45666
  if (!result.ok)
@@ -45814,7 +45845,7 @@ async function boundedReplay(input, scan) {
45814
45845
  // src/sac/fwk-service.ts
45815
45846
  import { createHash as createHash35, randomUUID as randomUUID9 } from "crypto";
45816
45847
  init_assembly();
45817
- import { appendFile as appendFile8, mkdir as mkdir36, open as open4, readFile as readFile74, rename as rename7, rm as rm8, stat as stat18, writeFile as writeFile24 } from "fs/promises";
45848
+ import { appendFile as appendFile8, mkdir as mkdir36, open as open5, readFile as readFile74, rename as rename7, rm as rm8, stat as stat19, writeFile as writeFile24 } from "fs/promises";
45818
45849
  import path144 from "path";
45819
45850
  init_fs();
45820
45851
 
@@ -46378,7 +46409,7 @@ var ledgerDigestChunkBytes = 64 * 1024;
46378
46409
  var isMissing = (error) => error instanceof Error && error.code === "ENOENT";
46379
46410
  var checkpointHash = (body) => createHash35("sha256").update(JSON.stringify(body), "utf8").digest("hex");
46380
46411
  async function ledgerByteLength(ledger) {
46381
- const value = await stat18(ledger, { bigint: true });
46412
+ const value = await stat19(ledger, { bigint: true });
46382
46413
  if (value.size > BigInt(Number.MAX_SAFE_INTEGER))
46383
46414
  throw new Error("invalid access receipt ledger: ledger-too-large");
46384
46415
  return Number(value.size);
@@ -46454,7 +46485,7 @@ async function writeCheckpoint(checkpointPath, body) {
46454
46485
  async function fastCheckpointState(ledger, checkpoint, ledgerBytes) {
46455
46486
  if (ledgerBytes < checkpoint.ledgerBytes)
46456
46487
  throw new Error("invalid access receipt ledger: truncated-ledger");
46457
- const handle = await open4(ledger, "r");
46488
+ const handle = await open5(ledger, "r");
46458
46489
  try {
46459
46490
  const digest = await digestLedgerPrefix(handle, checkpoint.ledgerBytes);
46460
46491
  if (!digest)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrciphersmith/keryx",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Version-controlled project context for AI coding agents: code graph, architecture wiki, project memory, relevant tests, quality signals, and task flows.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -397,7 +397,8 @@
397
397
  "src/gdskills/bundled/rules/core/storybook-guidelines.mdc",
398
398
  "src/gdskills/bundled/rules/core/subagent-context-construction.md",
399
399
  "src/gdskills/bundled/rules/core/subagent-status-protocol.md",
400
- "src/gdskills/bundled/rules/core/tdd-workflow.mdc"
400
+ "src/gdskills/bundled/rules/core/tdd-workflow.mdc",
401
+ "src/gdskills/bundled/rules/core/ui-anti-slop.mdc"
401
402
  ],
402
403
  "targets": [
403
404
  "claude",
@@ -490,10 +491,11 @@
490
491
  },
491
492
  "react-review-skills": {
492
493
  "kind": "skill",
493
- "description": "React/frontend review skills: review-frontend and review-frontend-conventions.",
494
+ "description": "React/frontend review skills: review-frontend, review-frontend-conventions, and review-ui-ux.",
494
495
  "paths": [
495
496
  "src/gdskills/bundled/skills/review/review-frontend/**",
496
- "src/gdskills/bundled/skills/review/review-frontend-conventions/**"
497
+ "src/gdskills/bundled/skills/review/review-frontend-conventions/**",
498
+ "src/gdskills/bundled/skills/review/review-ui-ux/**"
497
499
  ],
498
500
  "targets": [
499
501
  "claude",