@mutmutco/hub 4.4.7 → 4.4.8

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/index.cjs +4 -3
  2. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -216,9 +216,10 @@ function createFace({ product, color = false, columns }) {
216
216
  const content = Math.min(width - 6, Math.max(...body.map(visibleWidth)));
217
217
  const rule = paint(identity.accent, GLYPH.rule.repeat(content + 4));
218
218
  const frame = (left, right) => `${paint(identity.accent, left)}${rule}${paint(identity.accent, right)}`;
219
+ const bodyRow = (line) => line.startsWith(GLYPH.check) ? `${paint(PALETTE.green, GLYPH.check)}${line.slice(1)}` : line;
219
220
  return [
220
221
  frame(GLYPH.boxTop, GLYPH.boxTopEnd),
221
- ...body.map((line) => `${paint(identity.accent, GLYPH.bar)} ${line}${" ".repeat(Math.max(0, content - visibleWidth(line)))} ${paint(identity.accent, GLYPH.bar)}`),
222
+ ...body.map((line) => `${paint(identity.accent, GLYPH.bar)} ${bodyRow(line)}${" ".repeat(Math.max(0, content - visibleWidth(line)))} ${paint(identity.accent, GLYPH.bar)}`),
222
223
  frame(GLYPH.boxBottom, GLYPH.boxBottomEnd)
223
224
  ];
224
225
  };
@@ -251,8 +252,8 @@ function renderRows(face, rows) {
251
252
  const body = `${clip(subject, column).padEnd(column)} ${row.mark ? `${markGlyph(face, row.mark)} ` : ""}${tail2}`;
252
253
  lines.push(...face.relay(body).split("\n"));
253
254
  if (row.note) {
254
- for (const part of wrapWords(row.note, Math.max(16, face.width - column - 10))) {
255
- lines.push(...face.relay(`${" ".repeat(column)} ${part}`).split("\n"));
255
+ for (const part of wrapWords(row.note, Math.max(16, face.width - TITLE_COLUMN))) {
256
+ lines.push(...face.relay(part).split("\n"));
256
257
  }
257
258
  }
258
259
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/hub",
3
- "version": "4.4.7",
3
+ "version": "4.4.8",
4
4
  "description": "Install and maintain the MMI CLI and every present host surface from one release-gated Hub command.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -26,7 +26,7 @@
26
26
  "typecheck": "tsc --noEmit"
27
27
  },
28
28
  "dependencies": {
29
- "@mutmutco/installer-face": "^0.2.0"
29
+ "@mutmutco/installer-face": "^0.2.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.0.0",