@trim21/personal-pi-extensions 0.0.329 → 0.0.330
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 +1 -1
- package/src/gh-readonly.ts +9 -1
- package/src/lib/pendant.ts +4 -1
package/package.json
CHANGED
package/src/gh-readonly.ts
CHANGED
|
@@ -38,6 +38,7 @@ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
|
38
38
|
import { Type } from "typebox";
|
|
39
39
|
import { Value } from "typebox/value";
|
|
40
40
|
|
|
41
|
+
import { type ToolPendant } from "./lib/pendant.js";
|
|
41
42
|
import { createSeqState } from "./lib/seq-state.js";
|
|
42
43
|
|
|
43
44
|
interface GhResult {
|
|
@@ -1531,7 +1532,14 @@ export default function ghReadonlyTools(pi: ExtensionAPI) {
|
|
|
1531
1532
|
const { repo, limit } = params;
|
|
1532
1533
|
const args = ["release", "list", ...repoArgs(repo)];
|
|
1533
1534
|
if (limit) args.push("--limit", String(limit));
|
|
1534
|
-
|
|
1535
|
+
const result = toToolResult(
|
|
1536
|
+
await ghExec(args, { cwd: ctx.cwd, signal, input: params }),
|
|
1537
|
+
params,
|
|
1538
|
+
);
|
|
1539
|
+
result.details.pendant = {
|
|
1540
|
+
subtitle: `repo=${params.repo}`,
|
|
1541
|
+
} satisfies ToolPendant;
|
|
1542
|
+
return result;
|
|
1535
1543
|
},
|
|
1536
1544
|
});
|
|
1537
1545
|
|