.agents/memory/2026-02-27-signetai-npm-installation-compatibility.md

926 B

2026-02-26 Session Notes

Signetai NPM Installation Compatibility

Started implementing a plan to enable npm installation of signetai via npm install -g signetai or npx signetai. The main issue was the postinstall script using ESM, which can be flaky in some npm environments.

The plan involved three key changes:

  1. Convert packages/signetai/bin/postinstall.js from ESM to CommonJS (rename to .cjs)
  2. Update the postinstall reference in package.json from .js to .cjs
  3. Improve postinstall messaging to clarify that CLI commands work with just Node.js, but daemon startup requires Bun
  4. Update README requirements section for clarity

Begun by reading the current postinstall.js file, which uses import { execSync } and includes terminal color codes. The script checks for Bun availability and displays installation instructions.

No implementation completed in this session — work was just initiated.