MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / mappedToolNames

Function mappedToolNames

src/server/cli-commands.ts:251–259  ·  view source on GitHub ↗
(exportKey: string)

Source from the content-addressed store, hash-verified

249
250/** Every internal tool name ONE export references — for invoke gating + anti-rot tests. */
251export function mappedToolNames(exportKey: string): Set<string> {
252 const names = new Set<string>()
253 const exp = CLI_EXPORTS[exportKey]
254 if (!exp) return names
255 for (const verbs of Object.values(exp.commands)) {
256 for (const toolName of Object.values(verbs)) names.add(toolName)
257 }
258 return names
259}
260
261/** Resolve an (export, group, verb) triple to its underlying tool name, or null. */
262export function resolveCommand(exportKey: string, group: string, verb: string): string | null {

Callers 2

registerCliRoutesFunction · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected