@xynogen/pix-pretty 1.3.2 → 1.3.3

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.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Enhanced tool output rendering with syntax highlighting, file icons, tree views, FFF search, and paste chip formatting",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/tools/ls.ts CHANGED
@@ -3,7 +3,8 @@ import type {
3
3
  ExtensionContext,
4
4
  LsToolInput,
5
5
  } from "@earendil-works/pi-coding-agent";
6
-
6
+ import { FG_DIM, RST } from "../ansi.js";
7
+ import { renderTree } from "../renderers.js";
7
8
  import type {
8
9
  LsParams,
9
10
  PiPrettyApi,
@@ -12,8 +13,6 @@ import type {
12
13
  ToolFactory,
13
14
  ToolResultLike,
14
15
  } from "../types.js";
15
- import { FG_DIM, RST } from "../ansi.js";
16
- import { renderTree } from "../renderers.js";
17
16
  import {
18
17
  fillToolBackground,
19
18
  getTextContent,
package/src/utils.ts CHANGED
@@ -6,9 +6,9 @@ import {
6
6
  BG_BASE,
7
7
  BG_ERROR,
8
8
  BOLD,
9
+ FG_GREEN,
9
10
  FG_LNUM,
10
11
  FG_RULE,
11
- FG_YELLOW,
12
12
  RST,
13
13
  } from "./ansi.js";
14
14
  import { MAX_PREVIEW_LINES } from "./config.js";
@@ -62,7 +62,7 @@ export function pluralize(
62
62
  export type DimPreviewOptions = {
63
63
  maxLines?: number;
64
64
  header?: string;
65
- /** Pattern whose matches are highlighted (yellow bold) inside dim lines. */
65
+ /** Pattern whose matches are highlighted (green bold) inside dim lines. */
66
66
  highlight?: string;
67
67
  };
68
68
 
@@ -84,7 +84,7 @@ function dimLineWithHighlight(
84
84
  return line
85
85
  .split(re)
86
86
  .map((part, i) =>
87
- i % 2 ? `${FG_YELLOW}${BOLD}${part}${RST}` : theme.fg("dim", part),
87
+ i % 2 ? `${FG_GREEN}${BOLD}${part}${RST}` : theme.fg("dim", part),
88
88
  )
89
89
  .join("");
90
90
  }