mirror of
https://github.com/stablyai/orca.git
synced 2026-10-01 16:02:03 +00:00
feat(agents): add OpenCode 2 beta support (#21418)
* feat(agents): add OpenCode 2 beta support Co-authored-by: Xiro The Dev <lethanhtrung.trungle@gmail.com> * fix(opencode2): support current plugin lifecycle and session storage * fix(opencode2): preserve lifecycle ordering and full session capture * test(opencode2): cover setup event bridge * test(opencode2): cover setup event bridge * test(browser): satisfy anti-slop naming check * test(opencode2): cover live form lifecycle * fix(relay): preserve OMP config directory selection * test(opencode2): avoid assertions in bridge fixture * fix(rebase): retain OMP resume and fresh launch behavior * test: align upstream OMP resume expectations * test(opencode2): verify rejected form closes waiting state --------- Co-authored-by: Xiro The Dev <lethanhtrung.trungle@gmail.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { isOpenCode2LaunchCommand } from './opencode-launch-command'
|
||||
|
||||
describe('isOpenCode2LaunchCommand', () => {
|
||||
it.each(['opencode2', '/usr/local/bin/opencode2', 'opencode2.exe', 'opencode2.cmd'])(
|
||||
'recognizes %s',
|
||||
(command) => {
|
||||
expect(isOpenCode2LaunchCommand(command)).toBe(true)
|
||||
}
|
||||
)
|
||||
|
||||
it.each(['opencode', 'echo opencode2', 'opencode2-helper'])('rejects %s', (command) => {
|
||||
expect(isOpenCode2LaunchCommand(command)).toBe(false)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user