Problem
The Node TUI (objectiveai-cli/dist/cli.js) crashes on startup due to a WASM initialization bug in the SDK dist:
file:///Users/maya/Desktop/objectiveai/objectiveai-js/dist/index.js:2642
const wasm = exports$1.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
^
ReferenceError: imports is not defined
Impact
This blocks using agent: "claude" for function invention. The Node TUI is the only path to Claude Agent SDK-powered invention (the Rust binary only supports github/filesystem/mock agent remotes). Without this, we can't dogfood the product — can't invent real functions using our Claude Max subscription.
Repro
cd objectiveai-cli && node dist/cli.js
Crashes immediately. Node v24.12.0.
Root cause
objectiveai-js/dist/index.js:2642 — WebAssembly.Instance(wasmModule, imports) is called but imports is not defined in scope. Looks like the WASM loader build step isn't wiring up the imports object before instantiation.
What we're trying to do
Create real ObjectiveAI functions (starting with a tone/voice scorer) using the CLI's recursive invention with agent: "claude". Config is set (~/.objectiveai/config.json has "agent": "claude"), just need the SDK dist to not crash.
Problem
The Node TUI (
objectiveai-cli/dist/cli.js) crashes on startup due to a WASM initialization bug in the SDK dist:Impact
This blocks using
agent: "claude"for function invention. The Node TUI is the only path to Claude Agent SDK-powered invention (the Rust binary only supportsgithub/filesystem/mockagent remotes). Without this, we can't dogfood the product — can't invent real functions using our Claude Max subscription.Repro
Crashes immediately. Node v24.12.0.
Root cause
objectiveai-js/dist/index.js:2642—WebAssembly.Instance(wasmModule, imports)is called butimportsis not defined in scope. Looks like the WASM loader build step isn't wiring up the imports object before instantiation.What we're trying to do
Create real ObjectiveAI functions (starting with a tone/voice scorer) using the CLI's recursive invention with
agent: "claude". Config is set (~/.objectiveai/config.jsonhas"agent": "claude"), just need the SDK dist to not crash.