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

Function writeWebSubchannels

src/core/config.ts:1091–1095  ·  view source on GitHub ↗
(channels: WebChannel[])

Source from the content-addressed store, hash-verified

1089
1090/** Write web sub-channel definitions to disk. */
1091export async function writeWebSubchannels(channels: WebChannel[]): Promise<void> {
1092 const validated = webSubchannelsSchema.parse(channels)
1093 await mkdir(CONFIG_DIR, { recursive: true })
1094 await writeFile(resolve(CONFIG_DIR, 'web-subchannels.json'), JSON.stringify(validated, null, 2) + '\n')
1095}

Callers 1

createChannelsRoutesFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected