Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

ci: use standalone witness verifier + ts-ignore optional sona import

Reuvena8e9a05b08b8
diff --git a/.github/workflows/v3-ci.yml b/.github/workflows/v3-ci.yml
index c00518ced7..5615b260b4 100644
--- a/.github/workflows/v3-ci.yml
+++ b/.github/workflows/v3-ci.yml
@@ -278,18 +278,20 @@ jobs:
working-directory: v3
run: |
pnpm install --frozen-lockfile
- # --no-bail tolerates unrelated package failures (e.g. federation
- # TS errors). The witness `verify` command checks specific dist
- # files exist; if a marker-cited file is missing, witness-verify
- # itself fails the run with a clear message.
+ # --no-bail tolerates unrelated package failures. The standalone
+ # verify.mjs below checks specific dist files exist; if a
+ # marker-cited file is missing, witness-verify reports it.
pnpm --recursive --no-bail run build || true
- - name: Verify witness manifest
+ - name: Verify witness manifest (via standalone plugin script — no CLI dep)
run: |
- node v3/@claude-flow/cli/bin/cli.js verify \
+ # Use the project-agnostic verifier from ruflo-core plugin. This
+ # is the same script external adopters use — dogfooding ensures
+ # the plugin pathway works and avoids CI-specific cli build
+ # issues (e.g. missing @ruvector/sona, sharp native postinstall).
+ node plugins/ruflo-core/scripts/witness/verify.mjs \
--manifest verification.md.json \
--json > /tmp/witness-result.json
- # Exit non-zero if any fix regressed or signature invalid
node -e "
const r = require('/tmp/witness-result.json');
const s = r.summary;
diff --git a/v3/@claude-flow/cli/src/memory/sona-optimizer.ts b/v3/@claude-flow/cli/src/memory/sona-optimizer.ts
index c342d0f342..3d08ec0a0d 100644
--- a/v3/@claude-flow/cli/src/memory/sona-optimizer.ts
+++ b/v3/@claude-flow/cli/src/memory/sona-optimizer.ts
@@ -247,6 +247,9 @@ export class SONAOptimizer {
private async loadSonaEngine(): Promise<void> {
if (this.sonaEngine !== undefined) return; // already attempted
try {
+ // @ts-ignore — @ruvector/sona is in optionalDependencies and ships
+ // no .d.ts. Runtime is gated by try/catch; TS errors here on hosts
+ // without the module resolved (e.g. CI before postinstall).
const sona: any = await import('@ruvector/sona');
const EngineCtor = sona.SonaEngine || sona.default?.SonaEngine;
if (EngineCtor) {