MCPcopy Create free account
hub / github.com/browserbase/stagehand / unknownMessage

Function unknownMessage

packages/evals/tui/commandTree.ts:371–378  ·  view source on GitHub ↗
(token: string, context: readonly string[])

Source from the content-addressed store, hash-verified

369}
370
371function unknownMessage(token: string, context: readonly string[]): string {
372 if (context.length === 0) {
373 return `Unknown command "${token}". Type "help" for the command list.`;
374 }
375 return `Unknown command "${token}" in ${pretty(
376 context,
377 )}. Type "evals ${token} …" to run from root, "help" to see subcommands here, or ".." to leave the context.`;
378}
379
380// ---------------------------------------------------------------------------
381// Tree factory — wraps existing handlers as leaf nodes.

Callers 1

dispatchFunction · 0.85

Calls 1

prettyFunction · 0.85

Tested by

no test coverage detected