MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / fresh

Function fresh

test-hook-trust.mjs:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19function fresh() {
20 const cfg = mkdtempSync(join(tmpdir(), "orb-cfg-"))
21 const proj = mkdtempSync(join(tmpdir(), "orb-proj-"))
22 process.env.MATTERAI_CONFIG_DIR = cfg
23 delete process.env.MATTERAI_TRUST_PROJECT_HOOKS
24 process.chdir(proj)
25 return { cfg, cwd: process.cwd() }
26}
27
28function writeProjectHooks(cwd, obj) {
29 mkdirSync(join(cwd, ".orbcode"), { recursive: true })

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected