@crewhaus/target-batch-worker 0.2.2 → 0.2.3

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 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -118,6 +118,18 @@ function poolField(ir, indent) {
118
118
  ? `\n${indent}modelPool: ${JSON.stringify(ir.agent.modelPool)},`
119
119
  : "";
120
120
  }
121
+ /**
122
+ * Section 55 / item 23 — render the `failureTaxonomy` runChatLoop field.
123
+ * Empty when the spec omits the block (mirror: target-cli +
124
+ * target-channel-bot render the same field; keep the pipeline/research/
125
+ * batch/browser copies in sync).
126
+ */
127
+ function taxonomyField(ir, indent) {
128
+ const taxonomy = ir.failureTaxonomy;
129
+ if (taxonomy === undefined || taxonomy.length === 0)
130
+ return "";
131
+ return `\n${indent}failureTaxonomy: ${JSON.stringify(taxonomy)},`;
132
+ }
121
133
  export function emitBatchWorker(ir, opts = {}) {
122
134
  if (ir.queue.adapter !== "in-memory") {
123
135
  // v0 only ships the in-memory adapter; the others are stubs that
@@ -230,7 +242,7 @@ async function main(): Promise<void> {
230
242
  const runContext = createRunContext();
231
243
  const reply = await runChatLoop({
232
244
  model: SPEC_MODEL,
233
- instructions: SPEC_INSTRUCTIONS,${poolField(ir, " ")}
245
+ instructions: SPEC_INSTRUCTIONS,${poolField(ir, " ")}${taxonomyField(ir, " ")}
234
246
  runContext,
235
247
  sessionName: SPEC_NAME,
236
248
  sessionTarget: "batch",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/target-batch-worker",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "Codegen for the BATCH target — emits a queue-consumer daemon (Section 23 BATCH)",
6
6
  "main": "dist/index.js",
@@ -15,9 +15,9 @@
15
15
  "test": "bun test src"
16
16
  },
17
17
  "dependencies": {
18
- "@crewhaus/errors": "0.2.2",
19
- "@crewhaus/infra-utils": "0.2.2",
20
- "@crewhaus/ir": "0.2.2"
18
+ "@crewhaus/errors": "0.2.3",
19
+ "@crewhaus/infra-utils": "0.2.3",
20
+ "@crewhaus/ir": "0.2.3"
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "author": {