MCPcopy Create free account
hub / github.com/Noumena-Network/code / serializeCommand

Function serializeCommand

scripts/probe_runtime_dynamic_surface.ts:40–54  ·  view source on GitHub ↗
(cmd: any)

Source from the content-addressed store, hash-verified

38}
39
40function serializeCommand(cmd: any) {
41 return {
42 name: cmd.name ?? '',
43 type: cmd.type ?? '',
44 source: cmd.source ?? '',
45 loadedFrom: cmd.loadedFrom ?? '',
46 aliases: Array.isArray(cmd.aliases) ? cmd.aliases : [],
47 availability: Array.isArray(cmd.availability) ? cmd.availability : [],
48 hidden: readHidden(cmd),
49 enabledNow: readEnabled(cmd),
50 disableModelInvocation: String(Boolean(cmd.disableModelInvocation)),
51 userInvocable:
52 cmd.userInvocable === undefined ? '' : String(Boolean(cmd.userInvocable)),
53 }
54}
55
56async function readChromeAutoEnableProbe() {
57 try {

Callers

nothing calls this directly

Calls 2

readHiddenFunction · 0.85
readEnabledFunction · 0.85

Tested by

no test coverage detected