mirror of
https://github.com/stablyai/orca.git
synced 2026-11-04 11:07:42 +00:00
test: remove low-value wrapper and inventory suites (#33736)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { expect, it } from 'vitest'
|
||||
import { getOpenCodeCliCapabilities, parseOpenCodeCliVersion } from './opencode-cli-version'
|
||||
import { parseOpenCodeCliVersion } from './opencode-cli-version'
|
||||
|
||||
it.each(['1.1.23', 'opencode v2.0.12', 'opencode v2.0.16', '2.0.0-beta.1+build'])(
|
||||
'parses CLI output %s',
|
||||
@@ -13,31 +13,3 @@ it.each([null, '', 'Error 2.0.16', '1.1', '2.0.16\nwarning'])(
|
||||
expect(parseOpenCodeCliVersion(output)).toBeNull()
|
||||
}
|
||||
)
|
||||
it('keeps future versions unknown instead of assuming a plugin loader or prompt policy', () => {
|
||||
expect(getOpenCodeCliCapabilities('3.0.0')).toEqual({
|
||||
version: '3.0.0',
|
||||
pluginApi: 'unknown',
|
||||
promptMode: 'unknown'
|
||||
})
|
||||
expect(getOpenCodeCliCapabilities('1.1.23')).toEqual({
|
||||
version: '1.1.23',
|
||||
pluginApi: 'v1',
|
||||
promptMode: 'submit'
|
||||
})
|
||||
expect(getOpenCodeCliCapabilities('opencode v2.0.12')).toEqual({
|
||||
version: '2.0.12',
|
||||
pluginApi: 'v2',
|
||||
promptMode: 'prefill'
|
||||
})
|
||||
expect(getOpenCodeCliCapabilities('opencode v2.0.16')).toEqual({
|
||||
version: '2.0.16',
|
||||
pluginApi: 'v2',
|
||||
promptMode: 'prefill'
|
||||
})
|
||||
})
|
||||
|
||||
it('does not opt unverified v2 builds into an extra prompt submission', () => {
|
||||
for (const version of ['2.0.13', '2.0.15', '2.0.17', '2.0.21', '2.0.12-beta', '2.0.16-beta']) {
|
||||
expect(getOpenCodeCliCapabilities(version).promptMode).toBe('unknown')
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user