MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / cfgOf

Function cfgOf

ts/workflow-cli/cli/deploy/write.test.ts:53–55  ·  view source on GitHub ↗
(outputDir: string, p: Partial<DeployConfig> = {})

Source from the content-addressed store, hash-verified

51}
52function cfgOf(outputDir: string, p: Partial<DeployConfig> = {}): DeployConfig {
53 return { llmKeys: {}, outputDir, force: false, logLevel: "info", hardware: {}, mqtt: {}, llmModels: {}, mlModels: {}, cameras: {}, ...p };
54}
55
56const tmp = () => fs.mkdtemp(path.join(os.tmpdir(), "fhwrite-"));
57const names = async (dir: string) => (await fs.readdir(dir)).sort();
58const mode = async (file: string) => (await fs.stat(file)).mode & 0o777;

Callers 1

write.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected