(params: {
prepared: Awaited<ReturnType<typeof prepareAutonomyTurnPrompt>>
rootDir?: string
currentDir?: string
sourceId?: string
sourceLabel?: string
ownerKey?: string
workload?: string
priority?: 'now' | 'next' | 'later'
flow?: AutonomyRunFlowRef
})
| 956 | } |
| 957 | |
| 958 | export async function commitAutonomyQueuedPrompt(params: { |
| 959 | prepared: Awaited<ReturnType<typeof prepareAutonomyTurnPrompt>> |
| 960 | rootDir?: string |
| 961 | currentDir?: string |
| 962 | sourceId?: string |
| 963 | sourceLabel?: string |
| 964 | ownerKey?: string |
| 965 | workload?: string |
| 966 | priority?: 'now' | 'next' | 'later' |
| 967 | flow?: AutonomyRunFlowRef |
| 968 | }): Promise<QueuedCommand> { |
| 969 | const command = await commitAutonomyQueuedPromptInternal(params, false) |
| 970 | if (!command) { |
| 971 | throw new Error('Autonomy queued prompt was unexpectedly skipped.') |
| 972 | } |
| 973 | return command |
| 974 | } |
| 975 | |
| 976 | async function commitAutonomyQueuedPromptIfNoActiveSource(params: { |
| 977 | prepared: Awaited<ReturnType<typeof prepareAutonomyTurnPrompt>> |
no test coverage detected