@mrciphersmith/keryx 0.4.32 → 0.4.33

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.
Files changed (2) hide show
  1. package/dist/cli.js +20 -7
  2. package/package.json +1 -1
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.32",
34718
+ version: "0.4.33",
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`${boldChunk(otui, "\u25C6")}` : otui.t`${boldChunk(otui, "keryx")} ${dimChunk(otui, sbVersion.length > 0 ? `v${sbVersion}` : "")}`;
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(`${icon}${badge ?? ""}`, RAIL_CELLS)];
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: () => ({ glyph: def.icon, ...badge !== undefined ? { badge } : {} })
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" || card.order === 1 ? 0 : 1;
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: "\u25B8",
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.32",
3
+ "version": "0.4.33",
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": {