Skip to content

SDK WASM loader crash blocks CLI Node TUI + Claude agent invention #155

@mayagore

Description

@mayagore

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:2642WebAssembly.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions