@jaggerxtrm/pi-extensions 0.9.4 → 0.9.5

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xtrm/pi-xtprompt",
3
3
  "version": "0.1.0",
4
- "description": "xtrm Pi extension: context-aware prompt improver (mercury-smith)",
4
+ "description": "xtrm Pi extension: generic context-aware prompt improver (xtprompt)",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./index.ts"
@@ -26,9 +26,9 @@ function findMarkdownFiles(dir: string, basePath: string = ""): string[] {
26
26
  }
27
27
 
28
28
  function resolveUsingXtrmSkillPath(cwd: string): string | null {
29
+ // Batch G+: only ~/.claude/skills is supported. Legacy ~/.agents/skills and
30
+ // ~/.pi/agent/skills fallbacks removed.
29
31
  const candidates = [
30
- path.join(homedir(), ".agents", "skills", "using-xtrm", "SKILL.md"),
31
- path.join(homedir(), ".pi", "agent", "skills", "using-xtrm", "SKILL.md"),
32
32
  path.join(cwd, ".pi", "skills", "using-xtrm", "SKILL.md"),
33
33
  ];
34
34
 
@@ -23,7 +23,7 @@ function shortenHome(path: string): string {
23
23
  return path;
24
24
  }
25
25
 
26
- export function shortenPath(path: string, max = 56): string {
26
+ export function shortenPath(path: string, max = 120): string {
27
27
  const normalized = shortenHome(path);
28
28
  if (normalized.length <= max) return normalized;
29
29
  const parts = normalized.split("/").filter(Boolean);
@@ -270,16 +270,14 @@ export function renderToolSummary(
270
270
  subject?: string,
271
271
  meta?: string,
272
272
  ): string {
273
- const color =
273
+ const statusColor =
274
274
  status === "pending" ? "accent"
275
275
  : status === "error" ? "error"
276
276
  : status === "success" ? "success"
277
277
  : "muted";
278
- const compactSubject = subject ? shortenCommand(subject, TOOL_SUMMARY_SUBJECT_MAX) : undefined;
279
- const compactMeta = meta ? shortenCommand(meta, TOOL_SUMMARY_META_MAX) : undefined;
280
- let text = `${theme.fg(color, TOOL_ROW_MARKER)} ${theme.fg("toolTitle", theme.bold(label))}`;
281
- if (compactSubject) text += ` ${theme.fg("accent", compactSubject)}`;
282
- if (compactMeta) text += theme.fg("muted", ` · ${compactMeta}`);
278
+ let text = `${theme.fg(statusColor, TOOL_ROW_MARKER)} ${theme.fg(statusColor, theme.bold(label))}`;
279
+ if (subject) text += ` ${theme.fg(statusColor, subject)}`;
280
+ if (meta) text += theme.fg("dim", ` · ${meta}`);
283
281
  return text;
284
282
  }
285
283