@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trim21/personal-pi-extensions",
3
- "version": "0.0.329",
3
+ "version": "0.0.330",
4
4
  "type": "module",
5
5
  "description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
6
6
  "keywords": [
@@ -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
- return toToolResult(await ghExec(args, { cwd: ctx.cwd, signal, input: params }), params);
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
 
@@ -16,7 +16,10 @@ export interface ToolPendant {
16
16
  * 面板副标题
17
17
  */
18
18
  subtitle?: string;
19
- markdown: string;
19
+ /**
20
+ * 面板正文(完整 markdown),建议以 `## ` 标题开头、末尾 trim
21
+ */
22
+ markdown?: string;
20
23
  /**
21
24
  * @default false
22
25
  */