Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

genie brainstorm crystallize crashes with ERR_INVALID_ARG_TYPE (paths[0] undefined) #74

@automagik-genie

Description

@automagik-genie

Summary

genie brainstorm crystallize crashes immediately with a Node/Bun path resolution error.

Reproduction

  1. Open a shell on Linux (Bun installed).
  2. Run:
    cd /home/genie
    genie brainstorm crystallize

Expected

The command should crystallize the active brainstorm (write/update DESIGN artifacts and jar state) and exit successfully.

Actual

The CLI exits with status 1 and this error:

TypeError: The "paths[0]" property must be of type string, got undefined
 code: "ERR_INVALID_ARG_TYPE"

      at <anonymous> (/home/genie/.claude/plugins/cache/namastexlabs/automagik-genie/0.260213.2233/scripts/genie.cjs:165:70)

Bun v1.3.9 (Linux x64)

The bundled line shown in output includes:

... pu=require("path"),Vd={},qd=(0,pu.resolve)(Vd.dirname,"../../packages/genie-pdf/src/index.ts") ...

This looks like path.resolve is being called with an undefined directory base in the built CLI script.

Environment

  • Repo: namastexlabs/genie-cli
  • Runtime: Bun v1.3.9 (Linux x64)
  • Host shell: bash
  • Reproduced on: 2026-03-03

Extra observation

genie --version also throws the same error in this environment, suggesting this is in CLI bootstrap/load path rather than brainstorm-specific logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions