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

Function emit

ts/workflow-cli/cli/deploy/write.ts:49–54  ·  view source on GitHub ↗
(name: string, content: string, secret = false)

Source from the content-addressed store, hash-verified

47 await fs.rm(dir, { recursive: true, force: true });
48 await fs.mkdir(dir, { recursive: true });
49 }
50 } else {
51 await fs.mkdir(dir, { recursive: true });
52 }
53
54 const written: string[] = [];
55 // secret=true -> mode 0o600. The secret-bearing files: engine.env carries the
56 // provider keys + web-search key, a custom component's <name>.env may carry its
57 // own, and <name>-secrets.json is the resource-credential doc. The

Callers 2

writeOutputFunction · 0.70
executeFunctionToolsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected