MCPcopy Index your code
hub / github.com/anomalyco/opencode / isNewCommand

Function isNewCommand

packages/opencode/src/cli/cmd/run/prompt.shared.ts:51–53  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

49}
50
51export function isNewCommand(input: string): boolean {
52 return input.trim().toLowerCase() === "/new"
53}
54
55export function createPromptHistory(items?: RunPrompt[]): PromptHistoryState {
56 const list = (items ?? []).filter((item) => item.text.trim().length > 0).map(promptCopy)

Callers 4

submitPromptFunction · 0.90
drainFunction · 0.90
submitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected