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

Function makeRunner

test-hook-env.mjs:9–19  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

7const ok = (name) => { console.log(` ok - ${name}`); passed++ }
8
9function makeRunner(config) {
10 const systemMessages = []
11 const runner = new HookRunner({
12 cwd: process.cwd(),
13 sessionId: "test-session",
14 transcriptPath: "/tmp/test-session.json",
15 config,
16 onSystemMessage: (message, isError) => systemMessages.push({ message, isError }),
17 })
18 return { runner, systemMessages }
19}
20
21// Set up credential-like env vars that must NEVER reach a hook.
22process.env.MATTERAI_TOKEN = "secret-orbcode-token"

Callers 1

test-hook-env.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected