@mrciphersmith/keryx 0.4.32 → 0.4.34
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/cli.js
CHANGED
|
@@ -34715,7 +34715,7 @@ var package_default;
|
|
|
34715
34715
|
var init_package = __esm(() => {
|
|
34716
34716
|
package_default = {
|
|
34717
34717
|
name: "@mrciphersmith/keryx",
|
|
34718
|
-
version: "0.4.
|
|
34718
|
+
version: "0.4.34",
|
|
34719
34719
|
description: "Version-controlled project context for AI coding agents: code graph, architecture wiki, project memory, relevant tests, quality signals, and task flows.",
|
|
34720
34720
|
private: false,
|
|
34721
34721
|
publishConfig: {
|
|
@@ -200119,7 +200119,7 @@ async function createShellChrome(otui, renderer, opts) {
|
|
|
200119
200119
|
const state = geometry.state();
|
|
200120
200120
|
const rail = state.mode === "rail";
|
|
200121
200121
|
sbHeader.flexDirection = rail ? "column" : "row";
|
|
200122
|
-
sbTitle.content = rail ? otui.t
|
|
200122
|
+
sbTitle.content = rail ? otui.t` ${boldChunk(otui, asciiIcons ? "k" : "\u25C6")}` : otui.t`${boldChunk(otui, "keryx")} ${dimChunk(otui, sbVersion.length > 0 ? `v${sbVersion}` : "")}`;
|
|
200123
200123
|
sbModes.flexDirection = rail ? "column" : "row";
|
|
200124
200124
|
for (const mode of SIDEBAR_MODES) {
|
|
200125
200125
|
const button = modeButtons.get(mode);
|
|
@@ -215318,6 +215318,15 @@ function signalFor(def, snapshot) {
|
|
|
215318
215318
|
return { severity: "normal" };
|
|
215319
215319
|
}
|
|
215320
215320
|
}
|
|
215321
|
+
function railBadge(badge) {
|
|
215322
|
+
if (badge === undefined || badge === "")
|
|
215323
|
+
return;
|
|
215324
|
+
if (/^[0-9]+$/.test(badge)) {
|
|
215325
|
+
const count = Number(badge);
|
|
215326
|
+
return count <= 9 ? SUPERSCRIPT_DIGITS[count] : "\u207A";
|
|
215327
|
+
}
|
|
215328
|
+
return displayWidth(badge) === 1 ? badge : "\u207A";
|
|
215329
|
+
}
|
|
215321
215330
|
function headerLine(icon, title, badge, width) {
|
|
215322
215331
|
const left = `${icon} ${title}`;
|
|
215323
215332
|
if (badge === undefined)
|
|
@@ -215361,14 +215370,17 @@ function buildCard(def, order, snapshot, ascii) {
|
|
|
215361
215370
|
tabs,
|
|
215362
215371
|
lines: (textWidth, mode) => {
|
|
215363
215372
|
if (mode === "rail") {
|
|
215364
|
-
return [fitCells(
|
|
215373
|
+
return [fitCells(` ${icon}${railBadge(badge) ?? ""}`, RAIL_CELLS)];
|
|
215365
215374
|
}
|
|
215366
215375
|
const lines = [headerLine(icon, def.title, badge, textWidth), ...valueRows(def, snapshot, textWidth)];
|
|
215367
215376
|
while (lines.length < MIN_CARD_LINES)
|
|
215368
215377
|
lines.push("");
|
|
215369
215378
|
return lines;
|
|
215370
215379
|
},
|
|
215371
|
-
rail: () =>
|
|
215380
|
+
rail: () => {
|
|
215381
|
+
const marker = railBadge(badge);
|
|
215382
|
+
return { glyph: icon, ...marker !== undefined ? { badge: marker } : {} };
|
|
215383
|
+
}
|
|
215372
215384
|
};
|
|
215373
215385
|
}
|
|
215374
215386
|
function buildSidebarCards(snapshot, options = {}) {
|
|
@@ -215434,7 +215446,7 @@ function mountSidebarCards(otui, renderer, parent, options) {
|
|
|
215434
215446
|
const slot = slots.get(card.id);
|
|
215435
215447
|
if (slot === undefined)
|
|
215436
215448
|
continue;
|
|
215437
|
-
slot.box.marginTop = mode === "rail"
|
|
215449
|
+
slot.box.marginTop = mode === "rail" ? 1 : card.order === 1 ? 0 : 1;
|
|
215438
215450
|
const lines = card.lines(width, mode);
|
|
215439
215451
|
const head = card.severity === "error" ? roleColor("error", theme) : card.severity === "attention" ? roleColor("attention", theme) : roleColor("text", theme);
|
|
215440
215452
|
for (const [index, text] of slot.texts.entries()) {
|
|
@@ -215580,7 +215592,7 @@ Enter opens ${tab.command}`,
|
|
|
215580
215592
|
const opened = handle;
|
|
215581
215593
|
return { close: () => opened.close(), activeTab: () => opened.activeTab() };
|
|
215582
215594
|
}
|
|
215583
|
-
var RAIL_CELLS = 3, MAX_VALUE_ROWS = 3, MIN_CARD_LINES = 3, NOTHING_TO_SHOW = "Nothing to show yet.", CARD_DEFS, SIDEBAR_CARD_IDS, SIDEBAR_SECTION_IDS, SIDEBAR_SECTION_CARD, SIDEBAR_CARD_FOOTER;
|
|
215595
|
+
var RAIL_CELLS = 3, SUPERSCRIPT_DIGITS, MAX_VALUE_ROWS = 3, MIN_CARD_LINES = 3, NOTHING_TO_SHOW = "Nothing to show yet.", CARD_DEFS, SIDEBAR_CARD_IDS, SIDEBAR_SECTION_IDS, SIDEBAR_SECTION_CARD, SIDEBAR_CARD_FOOTER;
|
|
215584
215596
|
var init_sidebar_cards = __esm(() => {
|
|
215585
215597
|
init_live_render();
|
|
215586
215598
|
init_call_diagnostics();
|
|
@@ -215588,6 +215600,7 @@ var init_sidebar_cards = __esm(() => {
|
|
|
215588
215600
|
init_sidebar_geometry();
|
|
215589
215601
|
init_theme();
|
|
215590
215602
|
init_theme_repaint();
|
|
215603
|
+
SUPERSCRIPT_DIGITS = ["\u2070", "\xB9", "\xB2", "\xB3", "\u2074", "\u2075", "\u2076", "\u2077", "\u2078", "\u2079"];
|
|
215591
215604
|
CARD_DEFS = [
|
|
215592
215605
|
{
|
|
215593
215606
|
id: "session",
|
|
@@ -215632,7 +215645,7 @@ var init_sidebar_cards = __esm(() => {
|
|
|
215632
215645
|
{
|
|
215633
215646
|
id: "work",
|
|
215634
215647
|
title: "Work",
|
|
215635
|
-
icon: "\
|
|
215648
|
+
icon: "\u25BA",
|
|
215636
215649
|
asciiIcon: "T",
|
|
215637
215650
|
sections: [
|
|
215638
215651
|
{ id: "status", label: "Status" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrciphersmith/keryx",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.34",
|
|
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": {
|
|
@@ -39,11 +39,11 @@ Canon applies: the Playwright documentation on locators, web-first assertions, f
|
|
|
39
39
|
| Spec mutates or deletes seeded or shared data (Rule 4) | another spec or run reads that data | `major` | data the spec created itself |
|
|
40
40
|
| Exact global count, `.first()` or `.nth(N)` on data the spec does not own (Rule 4) | the environment can hold other rows | `minor`; `major` where a parallel run is shown to change it | a list the spec created in full |
|
|
41
41
|
| Real external host reachable (Rule 5) | a spec calls it, or an unhandled request passes through | `major` | an error path mocked with `page.route` |
|
|
42
|
-
| CSS class or XPath locator where a role, label or test id exists (Rule 2) | always | `minor` | a third-party widget with none of them |
|
|
42
|
+
| CSS class or XPath locator where a role, label or test id exists (Rule 2) | always | `minor` | a third-party widget with none of them; any `getByRole` or `getByLabel` locator, whatever its accessible name (an icon's generated name included) |
|
|
43
43
|
| Deprecated string-selector API (Rule 2) | always | `minor` | — |
|
|
44
44
|
| Screenshot test on a heavy or non-deterministic surface (Rule 6) | the repo has no visual-test setup, or nothing is masked or fixed | `minor` | a stable component with masked regions |
|
|
45
45
|
| Screenshot threshold loosened inside a spec (Rule 6) | always | `info` | — |
|
|
46
46
|
| Smoke tag on a slow or unreliable flow (Rule 7) | always | `minor` | — |
|
|
47
47
|
| Real secret hard-coded in a spec (Rule 3) | the value is a real credential | rated by the real-credential row of `security-baseline.mdc` Review severities | a test-only value (`info`) |
|
|
48
|
-
| Shared test account or a non-test origin inlined in a spec instead of read from env or the setup project (Rule 3) | the value
|
|
48
|
+
| Shared test account or a non-test origin inlined in a spec instead of read from env or the setup project (Rule 3) | the spec uses the inlined value as the account or host, with no env read in front of it | `major` | a placeholder or empty fallback after an env read (`process.env.E2E_USER ?? "operator@example.com"`); a reserved-domain address (`example.com`) typed into a form to drive a failure path |
|
|
49
49
|
| Non-TypeScript spec or a vague test name (Rule 8) | always | `info` | — |
|
|
@@ -28,7 +28,7 @@ Commands: `npm run storybook`, `npm run build-storybook`.
|
|
|
28
28
|
|
|
29
29
|
| Signal | A finding when | Default | Not a finding |
|
|
30
30
|
|---|---|---|---|
|
|
31
|
-
| Missing default or empty story (Rule 2) | the component renders that state | `minor` | a component that cannot be empty |
|
|
31
|
+
| Missing default or empty story (Rule 2) | the component renders that state | `minor` | a component that cannot be empty; a thin wrapper with no state, branch or layout of its own (it renders one child or one formatted value) |
|
|
32
32
|
| Missing loading or error story (Rule 2) | the component has that state (a prop or branch) | `minor` | a component without that state |
|
|
33
33
|
| Missing stress story (Rule 2) | a list, or user text that can be long | `minor` | fixed-length content |
|
|
34
34
|
| A story calls a real API or has another side effect (Rule 3) | always | `minor`; `major` when it writes to a real backend | `fn()` |
|
|
@@ -86,8 +86,8 @@ this pass the class is unreachable for the whole round.
|
|
|
86
86
|
|
|
87
87
|
- Never edit the reviewed tree, not even to revert at once. With `run-tests`, run gates inside
|
|
88
88
|
**scope A** only through `keryx review mutate --spec <mutants.json>` (a scratch copy; the main session writes the file from your `mutant_candidates` to `research-evidence/mutants.json`); without it, run none: list `mutant_candidates` and stop, which is complete.
|
|
89
|
-
-
|
|
90
|
-
|
|
89
|
+
- A gate the diff neither added, changed nor sits downstream of is out of scope, even when its test file is in the diff: do not list it as a `mutant_candidate` or report it as unpinned.
|
|
90
|
+
- Run the **nearest** suite, not the full one. This is not a `test:mutation` sweep — those are slow, opt-in, and answer a different question.
|
|
91
91
|
- Propose, do not cap: `mutant_candidates` in your `REVIEW_RESULT` names a mutant (`id`, `file`, `anchor`, `replacement`,
|
|
92
92
|
optional `kind`: `behavior` (default) or `presentation`, for copy or styling only) for **every changed branch**, code downstream of the diff included.
|
|
93
93
|
Run what your budget allows, previous-round gates first, and say how many you did not reach:
|