MCPcopy Index your code
hub / github.com/callstack/agent-device / readCommandSchema

Function readCommandSchema

src/utils/command-schema.ts:40–47  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

38}
39
40function readCommandSchema(command: string): CommandSchema | undefined {
41 const schemaOnly = getSchemaOnlyCliCommandSchema(command);
42 if (schemaOnly) return schemaOnly;
43 const base = COMMAND_SCHEMA_BASES.get(command);
44 const override = getCliCommandOverride(command);
45 if (!base) return undefined;
46 return override ? { ...base, ...override } : base;
47}
48
49export function applyCommandDefaults(
50 command: string | null,

Callers 2

getCommandSchemaFunction · 0.85
getCliCommandSchemaFunction · 0.85

Calls 3

getCliCommandOverrideFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected