@xynogen/pix-skills 0.8.0 → 0.8.1

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-skills",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Pi extension — agent skill loader (skill tool + skills bundle)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/index.test.ts CHANGED
@@ -156,7 +156,7 @@ describe("formatRemoteSkillSearch", () => {
156
156
  expect(output).toContain("[accent]<b>skills.sh</b>[/]");
157
157
  expect(output).toContain("installs descending");
158
158
  expect(output).toContain("[dim] 1[/] [accent]<b>frontend-design</b>[/]");
159
- expect(output).toContain("[muted]anthropics/skills[/] [dim]696.5K installs[/]");
159
+ expect(output).toContain("[dim]anthropics/skills[/] [muted]696.5K installs[/]");
160
160
  expect(output).not.toContain("Load with the selected source");
161
161
  });
162
162
  });
@@ -414,14 +414,14 @@ describe("formatSkillSummary", () => {
414
414
  expect(formatSkillSummary("", tagTheme)).toBe("[muted]No skills found.[/]");
415
415
  });
416
416
 
417
- it("renders single skill as bold-accent name + muted description", () => {
417
+ it("renders single skill as bold-accent name + dim description", () => {
418
418
  const out = formatSkillSummary(FRONTMATTER, tagTheme);
419
- expect(out).toBe("[accent]<b>commit</b>[/] [muted]Split, write, and maintain commits.[/]");
419
+ expect(out).toBe("[accent]<b>commit</b>[/] [dim]Split, write, and maintain commits.[/]");
420
420
  });
421
421
 
422
422
  it("falls back to (no description) when frontmatter has name only", () => {
423
423
  const out = formatSkillSummary("---\nname: solo\n---\n", tagTheme);
424
- expect(out).toBe("[accent]<b>solo</b>[/] [muted](no description)[/]");
424
+ expect(out).toBe("[accent]<b>solo</b>[/] [dim](no description)[/]");
425
425
  });
426
426
 
427
427
  it("renders a list of 'name: desc' lines, each colored", () => {
@@ -429,8 +429,8 @@ describe("formatSkillSummary", () => {
429
429
  const out = formatSkillSummary(list, tagTheme);
430
430
  const lines = out.split("\n");
431
431
  expect(lines).toHaveLength(2);
432
- expect(lines[0]).toBe("[accent]<b>commit</b>[/] [muted]write commits[/]");
433
- expect(lines[1]).toBe("[accent]<b>debug</b>[/] [muted]root cause analysis[/]");
432
+ expect(lines[0]).toBe("[accent]<b>commit</b>[/] [dim]write commits[/]");
433
+ expect(lines[1]).toBe("[accent]<b>debug</b>[/] [dim]root cause analysis[/]");
434
434
  });
435
435
 
436
436
  it("passes non 'name: desc' lines through as muted", () => {
package/src/index.ts CHANGED
@@ -432,8 +432,8 @@ export function formatRemoteSkillSearchSummary(
432
432
  const rows = ranked.map((result, index) => {
433
433
  const rank = theme.fg("dim", String(index + 1).padStart(2));
434
434
  const name = theme.fg("accent", theme.bold(result.name));
435
- const source = theme.fg("muted", result.source);
436
- const installs = theme.fg("dim", `${formatInstalls(result.installs)} installs`);
435
+ const source = theme.fg("dim", result.source);
436
+ const installs = theme.fg("muted", `${formatInstalls(result.installs)} installs`);
437
437
  return `${rank} ${name} ${source} ${installs}`;
438
438
  });
439
439
  return [heading, ...rows].join("\n");
@@ -467,7 +467,7 @@ export function formatSkillSummary(text: string, theme: ThemeLike): string {
467
467
  const name = extractName(trimmed);
468
468
  const desc = extractDescription(trimmed);
469
469
  if (name) {
470
- return `${theme.fg("accent", theme.bold(name))} ${theme.fg("muted", desc ?? "(no description)")}`;
470
+ return `${theme.fg("accent", theme.bold(name))} ${theme.fg("dim", desc ?? "(no description)")}`;
471
471
  }
472
472
 
473
473
  // List form: each skill is a single-token name followed by ": <desc>".
@@ -478,7 +478,7 @@ export function formatSkillSummary(text: string, theme: ThemeLike): string {
478
478
  .map((line) => {
479
479
  const match = line.match(/^(\S+):\s+(.+)$/);
480
480
  if (!match) return theme.fg("muted", line);
481
- return `${theme.fg("accent", theme.bold(match[1] ?? ""))} ${theme.fg("muted", match[2] ?? "")}`;
481
+ return `${theme.fg("accent", theme.bold(match[1] ?? ""))} ${theme.fg("dim", match[2] ?? "")}`;
482
482
  })
483
483
  .join("\n");
484
484
  }
@@ -695,7 +695,7 @@ function registerSkillLoader(pi: ExtensionAPI): void {
695
695
  return component;
696
696
  const label = formatSkillCallLabel(args as SkillCallArgs);
697
697
  component.setText(
698
- `${theme.fg("toolTitle", theme.bold("read_skills"))} ${theme.fg("muted", label)}`,
698
+ `${theme.fg("toolTitle", theme.bold("read_skills"))} ${theme.fg("dim", label)}`,
699
699
  );
700
700
  return component;
701
701
  },