pi-subagentura 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/subagent.ts +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-subagentura",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Public Pi package that adds in-process sub-agents via the SDK",
5
5
  "main": "subagent.ts",
6
6
  "type": "module",
package/subagent.ts CHANGED
@@ -902,8 +902,7 @@ export default function (pi: ExtensionAPI) {
902
902
  pi.registerTool({
903
903
  name: "get_subagent_status",
904
904
  label: "Get Subagent Status",
905
- description:
906
- "Poll an async subagent job by jobId. Returns live preview of the subagent's current turn, active tool, and output.",
905
+ description: "Poll an async subagent job by jobId. Returns live preview of the subagent's current turn, active tool, and output.",
907
906
  parameters: StatusParams,
908
907
 
909
908
  async execute(_toolCallId, params, _signal, _onUpdate, _ctx) {
@@ -917,7 +916,7 @@ export default function (pi: ExtensionAPI) {
917
916
  text: `Job ${params.jobId} not found. It may have been cancelled.`,
918
917
  },
919
918
  ],
920
- details: { jobId: params.jobId },
919
+ details: { jobId: params.jobId, status: "not_found" },
921
920
  isError: true,
922
921
  };
923
922
  }