@crewhaus/target-batch-worker 0.2.4 → 0.3.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.
- package/dist/index.js +6 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -158,10 +158,15 @@ function renderAgent(ir) {
|
|
|
158
158
|
const permImport = hasRules
|
|
159
159
|
? `import { BUILTIN_DEFAULT_RULES } from "@crewhaus/permission-engine";\n`
|
|
160
160
|
: "";
|
|
161
|
+
// v0.3.0 — continuity is spec-carried on this shape but not emit-wired in
|
|
162
|
+
// 0.3.0 (only the five agent-loop shapes are). Surface it, 0.2.3-style.
|
|
163
|
+
const continuityWarning = ir.continuity !== undefined
|
|
164
|
+
? "// note: continuity configured but ignored on batch in 0.3.0\n"
|
|
165
|
+
: "";
|
|
161
166
|
return `#!/usr/bin/env bun
|
|
162
167
|
// Generated by crewhaus. DO NOT EDIT.
|
|
163
168
|
// Source spec: ${escapeJsonString(ir.name)} (target: batch, ir version: ${ir.version})
|
|
164
|
-
import { createInMemoryQueue } from "@crewhaus/queue-protocol";
|
|
169
|
+
${continuityWarning}import { createInMemoryQueue } from "@crewhaus/queue-protocol";
|
|
165
170
|
import { startConsumer } from "@crewhaus/queue-consumer";
|
|
166
171
|
import { createInMemoryIdempotencyStore } from "@crewhaus/idempotency-keys";
|
|
167
172
|
import { loadRetentionConfig } from "@crewhaus/data-retention-engine";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewhaus/target-batch-worker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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.
|
|
19
|
-
"@crewhaus/infra-utils": "0.
|
|
20
|
-
"@crewhaus/ir": "0.
|
|
18
|
+
"@crewhaus/errors": "0.3.0",
|
|
19
|
+
"@crewhaus/infra-utils": "0.3.0",
|
|
20
|
+
"@crewhaus/ir": "0.3.0"
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"author": {
|