@crewhaus/target-onchain-game 0.2.2 → 0.2.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 +7 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -103,10 +103,16 @@ export function emitOnchainGame(ir, opts = {}) {
103
103
  // Header is a `//` line comment using the JSON-escaped name: a raw ir.name in
104
104
  // a block comment lets a crafted spec.name containing `*/` (or a newline) break
105
105
  // out of the comment and inject top-level code — RCE on build/run (#147).
106
+ // Item 23 — surface the ignored failure_taxonomy as a generated comment
107
+ // (mirror of target-workflow's mcp_servers note); wired once the onchain
108
+ // agent loop lands (same residue as model_pool).
109
+ const taxonomyWarning = ir.failureTaxonomy !== undefined && ir.failureTaxonomy.length > 0
110
+ ? "// note: failure_taxonomy configured but target-onchain-game does not yet wire it up — it is ignored\n"
111
+ : "";
106
112
  const content = `// Generated by @crewhaus/target-onchain-game (§47 onchain-game).
107
113
  // Compiled from spec: ${name}
108
114
  // DO NOT EDIT — re-run \`crewhaus compile\` to regenerate.
109
- import { classifyBoundary } from "@crewhaus/boundary-classifier";
115
+ ${taxonomyWarning}import { classifyBoundary } from "@crewhaus/boundary-classifier";
110
116
  import { createEvmAdapter } from "@crewhaus/chain-adapter-evm";
111
117
 
112
118
  export const SPEC_NAME = ${name};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/target-onchain-game",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "description": "Codegen for the §47 `onchain-game` perceive-act-perceive loop. Emits a daemon that reads game state, asks the model for a move, broadcasts the move, awaits confirmation, and repeats.",
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.4",
19
+ "@crewhaus/infra-utils": "0.2.4",
20
+ "@crewhaus/ir": "0.2.4"
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "author": {