MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / makeCtx

Function makeCtx

test/task-tool.test.ts:5–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import type { ToolContext } from '../src/tools/base.js';
4
5function makeCtx(): ToolContext {
6 return {
7 cwd: process.cwd(),
8 sessionId: 'parent-session',
9 transaction: {} as any,
10 permissions: { evaluate: () => 'allow' } as any,
11 askUser: async () => 'allow',
12 emit: () => {},
13 signal: new AbortController().signal,
14 } as ToolContext;
15}
16
17describe('TaskTool', () => {
18 beforeEach(() => {

Callers 1

task-tool.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected