@crewhaus/target-onchain 0.2.1 → 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 +7 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -148,10 +148,16 @@ export function emitOnchain(ir, opts = {}) {
148
148
  // Header is a `//` line comment using the JSON-escaped name: a raw ir.name in
149
149
  // a block comment lets a crafted spec.name containing `*/` (or a newline) break
150
150
  // out of the comment and inject top-level code — RCE on build/run (#147).
151
+ // Item 23 — surface the ignored failure_taxonomy as a generated comment
152
+ // (mirror of target-workflow's mcp_servers note); wired once the onchain
153
+ // agent loop lands (same residue as model_pool).
154
+ const taxonomyWarning = ir.failureTaxonomy !== undefined && ir.failureTaxonomy.length > 0
155
+ ? "// note: failure_taxonomy configured but target-onchain does not yet wire it up — it is ignored\n"
156
+ : "";
151
157
  const content = `// Generated by @crewhaus/target-onchain (§47 onchain daemon).
152
158
  // Compiled from spec: ${name}
153
159
  // DO NOT EDIT — re-run \`crewhaus compile\` to regenerate.
154
- import { classifyBoundary } from "@crewhaus/boundary-classifier";
160
+ ${taxonomyWarning}import { classifyBoundary } from "@crewhaus/boundary-classifier";
155
161
  import { createEvmAdapter } from "@crewhaus/chain-adapter-evm";
156
162
 
157
163
  export const SPEC_NAME = ${name};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/target-onchain",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "Codegen for the §47 `onchain` event-driven daemon. Emits a self-contained agent.ts that subscribes to chain triggers, classifies inbound events, dedupes by tx-hash + log-index, and runs one agent turn per event.",
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.1",
19
- "@crewhaus/infra-utils": "0.2.1",
20
- "@crewhaus/ir": "0.2.1"
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": {