bashkit 0.5.0 → 0.5.1

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/dist/index.js CHANGED
@@ -2743,7 +2743,13 @@ function createTaskTool(config) {
2743
2743
  popParent();
2744
2744
  debugError(debugId, "task", errorMessage);
2745
2745
  }
2746
- return { error: errorMessage };
2746
+ const durationMs = Math.round(performance.now() - startTime);
2747
+ return {
2748
+ error: errorMessage,
2749
+ subagent: subagent_type,
2750
+ description,
2751
+ duration_ms: durationMs
2752
+ };
2747
2753
  }
2748
2754
  }
2749
2755
  });
@@ -13,6 +13,9 @@ export interface TaskOutput {
13
13
  }
14
14
  export interface TaskError {
15
15
  error: string;
16
+ subagent?: string;
17
+ description?: string;
18
+ duration_ms?: number;
16
19
  }
17
20
  declare const taskInputSchema: z.ZodObject<{
18
21
  description: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bashkit",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Agentic coding tools for the Vercel AI SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",