mirror of
https://github.com/stablyai/orca.git
synced 2026-10-07 00:02:29 +00:00
* test(native-chat): cover paired runtime launch compatibility * test(native-chat): use production prompt response fingerprints * test(native-chat): pass journal items to the paired-runtime outbox hook Main made journalItems a required outbox input; mirror production by passing the read state's items. * test(native-chat): pin paired-runtime routing and capability questions - Move the paired-runtime chat test into its own file and render the real session hook against a paired server that advertises today's capabilities while this machine advertises none, so Stop, prompt cancel, repeated Stop and question answers fail if their capability question goes to the wrong runtime. Add a local and a paired session sharing one id. - Cross-version: state that the file pins the capability strings a v1.4.219 server really advertises, use the desktop's real handshake list, and keep the current server only as the control for the refusal. - agent-launch-routing: give the released-server case a capable client so it is refused by the server gate, not the client one. * test(native-chat): route the paired launch suite and cover the outline read - Start the cross-version job when the launch route or the client list the desktop sends a paired host changes, since the paired launch suite runs them. - Check the rail's conversation outline is read from the paired server, and narrow the hook test's header to what it covers.
24 lines
1.1 KiB
JavaScript
24 lines
1.1 KiB
JavaScript
import { describe, expect, it } from 'vitest'
|
|
import { classifyPrJobs } from './pr-code-change-scope.mjs'
|
|
|
|
// cross-version-paired-structured-launch runs a current desktop's launch route against a released
|
|
// server's capabilities, so the route and the client list it sends must start that job.
|
|
describe('cross-version wire routing for the paired launch route', () => {
|
|
it.each([
|
|
'src/shared/structured-native-chat-launch-route.ts',
|
|
'src/renderer/src/lib/agent-launch-routing.ts',
|
|
'src/renderer/src/runtime/paired-host-client-capabilities.ts',
|
|
'src/shared/electron-remote-runtime-client-capabilities.ts',
|
|
'src/shared/remote-runtime-client-capabilities.ts'
|
|
])('runs the cross-version suites when %s changes', (file) => {
|
|
expect(classifyPrJobs([file])).toMatchObject({ should_run: true, 'cross-version-wire': true })
|
|
})
|
|
|
|
it('leaves them off for the route input builder, which no cross-version suite executes', () => {
|
|
expect(classifyPrJobs(['src/renderer/src/lib/agent-launch-route-input.ts'])).toMatchObject({
|
|
should_run: true,
|
|
'cross-version-wire': false
|
|
})
|
|
})
|
|
})
|