@jaggerxtrm/pi-extensions 0.9.3 → 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.
- package/extensions/beads/index.ts +40 -3
- package/extensions/custom-footer/index.ts +99 -65
- package/extensions/xtprompt/index.test.ts +496 -0
- package/extensions/xtprompt/index.ts +421 -238
- package/extensions/xtprompt/package.json +1 -1
- package/extensions/xtrm-loader/index.ts +2 -2
- package/extensions/xtrm-ui/format.ts +6 -8
- package/extensions/xtrm-ui/index.ts +376 -833
- package/extensions/xtrm-ui/package.json +2 -2
- package/package.json +1 -1
- package/src/registry.ts +14 -8
- package/{extensions/xtrm-ui/themes/pidex-dark-flattools.json → themes/xtrm-ui/xtrm-dark-flattools.json} +1 -1
- package/{extensions/xtrm-ui/themes/pidex-dark.json → themes/xtrm-ui/xtrm-dark.json} +1 -1
- package/themes/xtrm-ui/{pidex-light-flattools.json → xtrm-light-flattools.json} +1 -1
- package/themes/xtrm-ui/{pidex-light.json → xtrm-light.json} +1 -1
- package/extensions/xtrm-ui/themes/pidex-light-flattools.json +0 -79
- package/extensions/xtrm-ui/themes/pidex-light.json +0 -85
- package/themes/xtrm-ui/pidex-dark-flattools.json +0 -79
- package/themes/xtrm-ui/pidex-dark.json +0 -85
|
@@ -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 (
|
|
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
|
|
|
@@ -17,13 +17,13 @@ interface HunkCursor {
|
|
|
17
17
|
newLine: number;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
function shortenHome(path: string): string {
|
|
21
21
|
const home = process.env.HOME;
|
|
22
22
|
if (home && path.startsWith(home)) return `~${path.slice(home.length)}`;
|
|
23
23
|
return path;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export function shortenPath(path: string, max =
|
|
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
|
|
273
|
+
const statusColor =
|
|
274
274
|
status === "pending" ? "accent"
|
|
275
275
|
: status === "error" ? "error"
|
|
276
276
|
: status === "success" ? "success"
|
|
277
277
|
: "muted";
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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
|
|