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

Function makeSubmitState

src/session/replSubmitBookkeepingDispatch.test.ts:7–24  ·  view source on GitHub ↗
(
  overrides: Partial<ReplSubmitState> = {},
)

Source from the content-addressed store, hash-verified

5import type { ReplSubmitState } from './replSubmitState.js'
6
7function makeSubmitState(
8 overrides: Partial<ReplSubmitState> = {},
9): ReplSubmitState {
10 return {
11 isSlashCommand: false,
12 submitsNow: true,
13 shouldAddToHistory: true,
14 shouldRestoreStashImmediately: false,
15 shouldProvideDeferredStashRestore: false,
16 shouldClearInputValue: true,
17 shouldClearPastedContents: true,
18 shouldResetInputMode: true,
19 shouldIncrementSubmitCount: true,
20 shouldClearBuffer: true,
21 shouldShowProcessingPlaceholder: true,
22 ...overrides,
23 }
24}
25
26function makePlan(
27 overrides: Partial<ReplSubmitBookkeepingPlan> = {},

Calls

no outgoing calls

Tested by

no test coverage detected