MCPcopy Create free account
hub / github.com/cli/cli / createSession

Function createSession

evals/src/review.test.ts:28–39  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

26 assert.equal(options.env?.GH_EVAL_ACTOR_TOKEN, undefined);
27 return {
28 async createSession(value) {
29 assert.ok(options.env?.TMPDIR);
30 await access(options.env.TMPDIR);
31 config = value;
32 return {
33 async sendAndWait(prompt, timeout) {
34 assert.equal(prompt, "Review this trajectory.");
35 assert.equal(timeout, 5_000);
36 return { data: { content: "The agent ignored the review.\nVerdict: FAIL" } };
37 },
38 };
39 },
40 async stop() { stopped++; return []; },
41 };
42 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected