mirror of
https://github.com/stablyai/orca.git
synced 2026-09-24 16:02:41 +00:00
test: align gate timeline stub and imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { mkdtemp, rm } from 'node:fs/promises'
|
||||
import { mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
@@ -14,7 +14,10 @@ import {
|
||||
AGENT_SESSION_CLAIM_KEY_RETENTION_MS,
|
||||
AgentSessionRecordStore
|
||||
} from './agent-session-record-store'
|
||||
import { agentSessionStorePath } from './agent-session-record-store-file'
|
||||
import {
|
||||
AGENT_SESSION_STORE_FILE_NAME,
|
||||
agentSessionStorePath
|
||||
} from './agent-session-record-store-file'
|
||||
import type { AgentSessionReserveRequest } from './agent-session-reservation-admission'
|
||||
|
||||
const BAD_OP_STORE = '{"schemaVersion":0,"hostId":"","records":{},"operations":{"x":0}}'
|
||||
|
||||
@@ -45,7 +45,7 @@ describe('structured mailbox pointer host', () => {
|
||||
// then delivered mid-turn, which Codex coalesces into the running turn and Claude queues behind
|
||||
// it -- either way folded into work already in flight rather than read as a new instruction.
|
||||
const items = [runningTurn(), ...transcript(500)]
|
||||
hostRef.current = { currentOwnerJournalItems: () => items }
|
||||
hostRef.current = { journalSnapshot: () => ({ items }) }
|
||||
expect(createStructuredMailboxPointerHost().readGateFacts('s1')).toEqual({
|
||||
turnRunning: true,
|
||||
awaitingHuman: false
|
||||
|
||||
Reference in New Issue
Block a user