MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / commitAutonomyQueuedPrompt

Function commitAutonomyQueuedPrompt

src/utils/autonomyRuns.ts:958–974  ·  view source on GitHub ↗
(params: {
  prepared: Awaited<ReturnType<typeof prepareAutonomyTurnPrompt>>
  rootDir?: string
  currentDir?: string
  sourceId?: string
  sourceLabel?: string
  ownerKey?: string
  workload?: string
  priority?: 'now' | 'next' | 'later'
  flow?: AutonomyRunFlowRef
})

Source from the content-addressed store, hash-verified

956}
957
958export 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
976async function commitAutonomyQueuedPromptIfNoActiveSource(params: {
977 prepared: Awaited<ReturnType<typeof prepareAutonomyTurnPrompt>>

Callers 2

Calls 1

Tested by

no test coverage detected