Files
orca/src/main/ipc/freebuff-detection.test.ts
T
400e4e7957 feat(agents): add Freebuff launch and sidebar status support (#23567)
Add Freebuff launch support and execution-host status reporting for the sidebar, including running, question, blocked, and settled states. Validate against captured CLI transcripts and real rendered sidebar evidence.

Cross-referenced community implementations #17065, #20839, and the Freebuff portion of #18790. Preserve their agent/catalog/mobile/documentation coverage and add canonical status publication and regression tests.

Co-authored-by: Harkaran Brar <18134082+harkaranbrar7@users.noreply.github.com>
Co-authored-by: Prarambha369 <98906077+Prarambha369@users.noreply.github.com>
Co-authored-by: Lesley Murfin <260182349+LesleyMurfin@users.noreply.github.com>
2026-09-28 02:32:41 -07:00

39 lines
1.1 KiB
TypeScript

import { describe, expect, it } from 'vitest'
import {
getTuiAgentDetectionProbeCommands,
KNOWN_TUI_AGENT_DETECTION_COMMANDS,
resolveDetectedTuiAgentIds
} from './tui-agent-detection-commands'
describe('Freebuff detection', () => {
it.each(['darwin', 'linux', 'win32', 'wsl'] as const)(
'detects Freebuff independently of Codebuff on %s',
(runtime) => {
expect(
getTuiAgentDetectionProbeCommands(KNOWN_TUI_AGENT_DETECTION_COMMANDS, runtime)
).toContain('freebuff')
expect(
resolveDetectedTuiAgentIds(
KNOWN_TUI_AGENT_DETECTION_COMMANDS,
new Set(['freebuff']),
runtime
)
).toEqual(['freebuff'])
expect(
resolveDetectedTuiAgentIds(
KNOWN_TUI_AGENT_DETECTION_COMMANDS,
new Set(['codebuff']),
runtime
)
).toEqual(['codebuff'])
expect(
resolveDetectedTuiAgentIds(
KNOWN_TUI_AGENT_DETECTION_COMMANDS,
new Set(['freebuff', 'codebuff']),
runtime
)
).toEqual(expect.arrayContaining(['freebuff', 'codebuff']))
}
)
})