@trim21/personal-pi-extensions 0.1.497 → 0.1.500

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.1.497",
3
+ "version": "0.1.500",
4
4
  "type": "module",
5
5
  "description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
6
6
  "keywords": [
package/src/aft/tools.ts CHANGED
@@ -407,7 +407,8 @@ function subscribeBridgeStatus(
407
407
  * Building 分支)。上游控制的 schema:只声明真正读取的字段,未声明键忽略。
408
408
  */
409
409
  const semanticIndexProgressSchema = Type.Object({
410
- status: Type.Literal("building"),
410
+ // Rust 侧两种状态值:health report 用 "building",subc 状态推送用 "loading"。
411
+ status: Type.Union([Type.Literal("building"), Type.Literal("loading")]),
411
412
  stage: Type.Optional(Type.String()),
412
413
  embedded_chunks: Type.Optional(Type.Integer()),
413
414
  total_chunks: Type.Optional(Type.Integer()),
@@ -563,6 +563,7 @@ export default function spawnAgent(pi: ExtensionAPI) {
563
563
  details: {
564
564
  ...result,
565
565
  pendant: {
566
+ subtitle: result.agent,
566
567
  markdown: formatPendantMarkdown(params.task, message),
567
568
  } satisfies ToolPendant,
568
569
  },
@@ -580,6 +581,7 @@ export default function spawnAgent(pi: ExtensionAPI) {
580
581
  details: {
581
582
  ...result,
582
583
  pendant: {
584
+ subtitle: result.agent,
583
585
  markdown: formatPendantMarkdown(params.task, text),
584
586
  } satisfies ToolPendant,
585
587
  },