@crewhaus/target-crew 0.5.2 → 0.5.4

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 +13 -2
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -697,9 +697,13 @@ function renderRoleThredz(ir) {
697
697
  const connectLines = [...servers].map(([name, r]) => {
698
698
  const id = ident(name);
699
699
  const agent = r.thredz?.agentName;
700
+ // Item 5 (G44) / #401 — per-role messaging opt-in. A crew role that owns
701
+ // its own Thredz key is exactly the case A2A messaging exists for, and
702
+ // the flag is per-role because the keys are.
703
+ const messaging = r.thredz?.messaging === true;
700
704
  return ` const __thredzCat_${id} = new ToolCatalog();
701
705
  const __thredz_${id} = await connectThredz(mcpHost, __thredzCat_${id}, {
702
- serverName: ${escapeJsonString(name)},${agent !== undefined ? `\n agentName: ${escapeJsonString(agent)},` : ""}
706
+ serverName: ${escapeJsonString(name)},${agent !== undefined ? `\n agentName: ${escapeJsonString(agent)},` : ""}${messaging ? "\n messaging: true," : ""}
703
707
  log: (line) => process.stderr.write(line),
704
708
  });`;
705
709
  });
@@ -870,7 +874,14 @@ ${controlPlaneBoot}${controlDrain}${controlStart} const crew = buildCrew();
870
874
  const input = await readAllStdin();
871
875
  const trimmed = input.trim();
872
876
  if (trimmed.length === 0) {
873
- process.stderr.write("[crew] no input on stdin\\n");
877
+ // Say what to do, not just what happened. A supervisor that spawned this
878
+ // with no stdin used to read the bare exit 2 as a crash and restart it,
879
+ // and the operator's only clue was this line in a log.
880
+ process.stderr.write(
881
+ "[crew] no input on stdin — a crew bundle reads its BRIEF there.\\n" +
882
+ "[crew] run it with \`bun daemon.ts < brief.md\`, or under supervision with\\n" +
883
+ "[crew] \`crewhaus daemon submit <harness-dir> --brief-file brief.md\`.\\n",
884
+ );
874
885
  process.exit(2);
875
886
  }${mcp.bootBlock}${roleThredz.bootBlock}${memBoot}
876
887
  const opts: Parameters<typeof crew.run>[1] = {${permField}${approvalFields}${taxonomyField}${crewCapsFields}${loopLimitsField}${budgetField}${hooksField}${spawnField}${extraToolsField}${roleThredz.roleExtraToolsField}${roleThredz.roleMemoryField}${memOptsFields}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/target-crew",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "description": "Codegen for the CRW target — emits a daemon + per-role agent files driven by crew-orchestrator (Section 22)",
6
6
  "main": "dist/index.js",
@@ -15,11 +15,11 @@
15
15
  "test": "bun test src"
16
16
  },
17
17
  "dependencies": {
18
- "@crewhaus/errors": "0.5.2",
19
- "@crewhaus/gateway-protocol": "0.5.2",
20
- "@crewhaus/infra-utils": "0.5.2",
21
- "@crewhaus/ir": "0.5.2",
22
- "@crewhaus/memory-service": "0.5.2"
18
+ "@crewhaus/errors": "0.5.4",
19
+ "@crewhaus/gateway-protocol": "0.5.4",
20
+ "@crewhaus/infra-utils": "0.5.4",
21
+ "@crewhaus/ir": "0.5.4",
22
+ "@crewhaus/memory-service": "0.5.4"
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "author": {