@xynogen/pix-pretty 1.14.0 → 1.15.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-pretty",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "description": "Enhanced tool output rendering with syntax highlighting, file icons, tree views, diff rendering, and FFF search",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@xynogen/pix-data": "^0.4.3",
63
- "@xynogen/pix-runtime": "^0.5.3",
63
+ "@xynogen/pix-runtime": "^0.6.0",
64
64
  "chalk": "^4.1.2",
65
65
  "cli-highlight": "^2.1.11",
66
66
  "@ff-labs/fff-node": "^0.5.2",
@@ -31,6 +31,12 @@ describe("icon-catalog", () => {
31
31
  expect(getIconMode()).toBe("nerd"); // unchanged
32
32
  });
33
33
 
34
+ it("provides AFK keyboard fallbacks for every icon mode", () => {
35
+ expect(iconFor("afk", "nerd")).toBe("\u{F0310}");
36
+ expect(iconFor("afk", "unicode")).toBe("\u2328\uFE0E");
37
+ expect(iconFor("afk", "ascii")).toBe("kbd");
38
+ });
39
+
34
40
  it("every catalog key has a non-empty glyph in every mode", () => {
35
41
  for (const mode of ICON_MODES) {
36
42
  for (const key of ICON_KEYS) {
@@ -44,6 +44,7 @@ const CATALOG = {
44
44
  mcp: { nerd: "\u{F048D}", unicode: `\u25D0${VS}`, ascii: "MCP" },
45
45
  cwd: { nerd: "\u{F024B}", unicode: `\u2302${VS}`, ascii: "~" },
46
46
  folder: { nerd: "\u{F024B}", unicode: `\u2302${VS}`, ascii: "/" },
47
+ afk: { nerd: "\u{F0310}", unicode: `\u2328${VS}`, ascii: "kbd" },
47
48
 
48
49
  // ── footer indicators (git status, score) ─────────────────────────────
49
50
  "git.unstaged": { nerd: "\u2717", unicode: "\u2717", ascii: "x" },