@crewhaus/tool-task 0.4.0 → 0.5.0

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/dist/index.js +8 -0
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -279,6 +279,14 @@ export function createTaskTool(opts = {}) {
279
279
  ? { failureTaxonomy: bridge.failureTaxonomy }
280
280
  : {}),
281
281
  ...(bridge.continuity !== undefined ? { continuity: bridge.continuity } : {}),
282
+ // Loop contract 0.4 (G11) — the parent's ask_mode + approval seam, so
283
+ // a child's headless `ask` parks against the same store instead of
284
+ // collapsing to a denial. THIS projection is the mechanism of the bug
285
+ // it fixes: `RuntimeBridge` extends `ParentRunHandle`, but the handle
286
+ // is hand-copied field by field and every seam field is optional — an
287
+ // omission type-checks perfectly and drops the capability silently.
288
+ ...(bridge.askMode !== undefined ? { askMode: bridge.askMode } : {}),
289
+ ...(bridge.approvals !== undefined ? { approvals: bridge.approvals } : {}),
282
290
  };
283
291
  // A fatal child failure (billing/auth) makes `spawnSubAgent` throw
284
292
  // `RunFailedError`; it propagates through here and through
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/tool-task",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "description": "Task(description, prompt, subagent_type?) tool — spawns a sub-agent and returns its final message (Section 13)",
6
6
  "main": "dist/index.js",
@@ -15,18 +15,18 @@
15
15
  "test": "bun test src"
16
16
  },
17
17
  "dependencies": {
18
- "@crewhaus/agent-context-isolation": "0.4.0",
19
- "@crewhaus/errors": "0.4.0",
20
- "@crewhaus/sub-agent-permission-inheritance": "0.4.0",
21
- "@crewhaus/tool-builder": "0.4.0",
22
- "@crewhaus/tool-catalog": "0.4.0",
18
+ "@crewhaus/agent-context-isolation": "0.5.0",
19
+ "@crewhaus/errors": "0.5.0",
20
+ "@crewhaus/sub-agent-permission-inheritance": "0.5.0",
21
+ "@crewhaus/tool-builder": "0.5.0",
22
+ "@crewhaus/tool-catalog": "0.5.0",
23
23
  "yaml": "^2.6.0",
24
24
  "zod": "^3.23.8"
25
25
  },
26
26
  "devDependencies": {
27
- "@crewhaus/event-log": "0.4.0",
28
- "@crewhaus/permission-engine": "0.4.0",
29
- "@crewhaus/run-context": "0.4.0"
27
+ "@crewhaus/event-log": "workspace:*",
28
+ "@crewhaus/permission-engine": "workspace:*",
29
+ "@crewhaus/run-context": "workspace:*"
30
30
  },
31
31
  "license": "Apache-2.0",
32
32
  "author": {