@xynogen/pix-find 0.1.15 → 0.1.16

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/package.json +3 -3
  2. package/src/find.ts +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-find",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Pi tool — glob file search",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -34,8 +34,8 @@
34
34
  "access": "public"
35
35
  },
36
36
  "dependencies": {
37
- "@xynogen/pix-pretty": "^1.7.20",
38
- "@xynogen/pix-data": "^0.3.0"
37
+ "@xynogen/pix-pretty": "^1.7.22",
38
+ "@xynogen/pix-data": "^0.3.4"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@earendil-works/pi-coding-agent": "*"
package/src/find.ts CHANGED
@@ -4,6 +4,7 @@ import type {
4
4
  ToolRenderResultOptions,
5
5
  } from "@earendil-works/pi-coding-agent";
6
6
  import { type CollapseState, tickCollapse } from "@xynogen/pix-data/collapse";
7
+ import { resolveBaseBackground } from "@xynogen/pix-pretty/ansi";
7
8
  import type { ToolContext } from "@xynogen/pix-pretty/context";
8
9
  import type {
9
10
  FindParams,
@@ -108,6 +109,7 @@ export function registerFindTool(
108
109
  },
109
110
 
110
111
  renderCall(args: FindParams, theme: ThemeLike, renderCtx: RenderContextLike) {
112
+ resolveBaseBackground(theme);
111
113
  const pattern = args.pattern ?? "";
112
114
  const path = args.path ? ` ${theme.fg("muted", `in ${sp(args.path)}`)}` : "";
113
115
  const text = renderCtx.lastComponent ?? new TextComponent("", 0, 0);
@@ -131,6 +133,7 @@ export function registerFindTool(
131
133
  theme: ThemeLike,
132
134
  renderCtx: RenderContextLike,
133
135
  ) {
136
+ resolveBaseBackground(theme);
134
137
  const text = renderCtx.lastComponent ?? new TextComponent("", 0, 0);
135
138
  const d = result.details;
136
139
  const isPartial = _opt?.isPartial === true;