Files
ruflo/v3/@claude-flow/cli/src/memory
ReuvenandRuFlo a8e9a05b08 ci: use standalone witness verifier + ts-ignore optional sona import
Two issues from the aedc7a62b run:

1. witness-verify failed on CLI startup with sharp module load error
   ('Cannot find module ../build/Release/sharp-linux-x64.node').
   pnpm v8 doesn't run native postinstall scripts by default in CI,
   so sharp's prebuild never gets fetched.

   Fix: switch the witness-verify job to invoke the standalone
   plugin script (plugins/ruflo-core/scripts/witness/verify.mjs)
   instead of the CLI subcommand. The standalone has zero dep on
   the CLI — only @noble/ed25519. Adopters use it that way; CI
   should too. Eats own dog food, sidesteps the sharp/sona issues.

2. @claude-flow/cli build failed in CI on TS2307 'Cannot find module
   @ruvector/sona' — but @ruvector/sona is in optionalDependencies
   and the import is gated by try/catch. The module ships no .d.ts
   so TS can't discover it, even though the runtime path is fine.

   Fix: @ts-ignore on the dynamic import in sona-optimizer.ts:250.
   This keeps the optional-on-failure runtime guarantee while
   letting tsc complete on hosts without postinstall artifacts.

Verified locally: cli builds clean, standalone witness verifier
returns 82/82 pass, signature valid.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-08 22:10:25 -04:00
..