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

Function dispatchReplQueuedInput

src/session/replQueuedInputDispatch.ts:51–96  ·  view source on GitHub ↗
({
  queuedCommands,
  queryGuard,
  commands,
  setToolJSX,
  getToolUseContext,
  messages,
  mainLoopModel,
  ideSelection,
  setUserInputOnProcessing,
  setAbortController,
  onQuery,
  setAppState,
  querySource,
  onBeforeQuery,
  canUseTool,
  addNotification,
  setMessages,
}: ReplQueuedInputDispatchDeps)

Source from the content-addressed store, hash-verified

49}
50
51export async function dispatchReplQueuedInput({
52 queuedCommands,
53 queryGuard,
54 commands,
55 setToolJSX,
56 getToolUseContext,
57 messages,
58 mainLoopModel,
59 ideSelection,
60 setUserInputOnProcessing,
61 setAbortController,
62 onQuery,
63 setAppState,
64 querySource,
65 onBeforeQuery,
66 canUseTool,
67 addNotification,
68 setMessages,
69}: ReplQueuedInputDispatchDeps): Promise<void> {
70 await handlePromptSubmit({
71 helpers: {
72 setCursorOffset: () => {},
73 clearBuffer: () => {},
74 resetHistory: () => {},
75 },
76 queryGuard,
77 commands,
78 onInputChange: () => {},
79 setPastedContents: () => {},
80 setToolJSX,
81 getToolUseContext,
82 messages,
83 mainLoopModel,
84 ideSelection,
85 setUserInputOnProcessing,
86 setAbortController,
87 onQuery,
88 setAppState,
89 querySource,
90 onBeforeQuery,
91 canUseTool,
92 addNotification,
93 setMessages,
94 queuedCommands,
95 })
96}

Callers 2

REPLFunction · 0.85

Calls 1

handlePromptSubmitFunction · 0.85

Tested by

no test coverage detected