MCPcopy Create free account
hub / github.com/Noumena-Network/code / dispatchLeaderSubmit

Function dispatchLeaderSubmit

src/session/leaderSubmitDispatch.ts:18–30  ·  view source on GitHub ↗
(
  {
    awaitPendingHooks,
    handlePromptSubmitParams,
    restoreDeferredStash,
  }: DispatchLeaderSubmitOptions,
  deps?: DispatchLeaderSubmitDeps,
)

Source from the content-addressed store, hash-verified

16}
17
18export async function dispatchLeaderSubmit(
19 {
20 awaitPendingHooks,
21 handlePromptSubmitParams,
22 restoreDeferredStash,
23 }: DispatchLeaderSubmitOptions,
24 deps?: DispatchLeaderSubmitDeps,
25): Promise<void> {
26 await awaitPendingHooks()
27 const handlePromptSubmitImpl = deps?.handlePromptSubmitImpl ?? handlePromptSubmit
28 await handlePromptSubmitImpl(handlePromptSubmitParams)
29 restoreDeferredStash?.()
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected