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

Function readPublicCommands

scripts/integration-progress-model.ts:502–512  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

500}
501
502function readPublicCommands() {
503 const metadataNames = new Set(listCommandMetadata().map((metadata) => metadata.name));
504 return Object.values(PUBLIC_COMMANDS)
505 .map((name) => {
506 if (!metadataNames.has(name)) {
507 throw new Error(`Missing command metadata for public command: ${name}`);
508 }
509 return name;
510 })
511 .sort();
512}
513
514function readClientCommandMethods(commandContractFiles) {
515 const commands = new Map();

Callers 1

Calls 2

listCommandMetadataFunction · 0.90
valuesMethod · 0.80

Tested by

no test coverage detected