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

test(console): type-clean the security specs

ruvc1ad5899220d
diff --git a/plugins/ruflo-console/tests/wf-security-worktrees.spec.ts b/plugins/ruflo-console/tests/wf-security-worktrees.spec.ts
index e58e2c1b75..548d6f189e 100644
--- a/plugins/ruflo-console/tests/wf-security-worktrees.spec.ts
+++ b/plugins/ruflo-console/tests/wf-security-worktrees.spec.ts
@@ -45,8 +45,8 @@ const run = async (argv: readonly string[], _ms: number, stdin?: string): Promis
let stdout = ''
let stderr = ''
- child.stdout.on('data', chunk => (stdout += chunk))
- child.stderr.on('data', chunk => (stderr += chunk))
+ child.stdout?.on('data', chunk => (stdout += chunk))
+ child.stderr?.on('data', chunk => (stderr += chunk))
child.on('close', code => void handle.close().then(() => resolve({ exitCode: code ?? -1, stdout, stderr })))
child.on('error', error => void handle.close().then(() => resolve({ exitCode: 127, stdout, stderr: String(error) })))
})
diff --git a/plugins/ruflo-console/tests/wf-security.spec.ts b/plugins/ruflo-console/tests/wf-security.spec.ts
index a442dca810..991d31cdff 100644
--- a/plugins/ruflo-console/tests/wf-security.spec.ts
+++ b/plugins/ruflo-console/tests/wf-security.spec.ts
@@ -141,8 +141,8 @@ describe('export and saved-view paths', () => {
let stdout = ''
let stderr = ''
- child.stdout.on('data', chunk => (stdout += chunk))
- child.stderr.on('data', chunk => (stderr += chunk))
+ child.stdout?.on('data', chunk => (stdout += chunk))
+ child.stderr?.on('data', chunk => (stderr += chunk))
child.on('close', code => void handle.close().then(() => resolve({ exitCode: code ?? -1, stdout, stderr })))
child.on('error', error => void handle.close().then(() => resolve({ exitCode: 127, stdout, stderr: String(error) })))
})
@@ -223,7 +223,7 @@ describe('export and saved-view paths', () => {
await writeFile(victim, 'precious')
- const state = newState()
+ const state = newState({})
state.cwd = dir
state.view = 'workflows'
@@ -253,7 +253,7 @@ describe('export and saved-view paths', () => {
})
it('writes the saved views normally when nothing is a link', async () => {
- const state = newState()
+ const state = newState({})
state.cwd = dir
state.view = 'workflows'