MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / getWorkspaceRoot

Function getWorkspaceRoot

packages/core/src/agent.ts:1075–1075  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1073 const scaffoldsRoot = input.templatesRoot ? path.join(input.templatesRoot, 'scaffolds') : null;
1074 const brandRefsRoot = input.templatesRoot ? path.join(input.templatesRoot, 'brand-refs') : null;
1075 const getWorkspaceRoot = () => input.getWorkspaceRoot?.() ?? input.workspaceRoot ?? null;
1076 const defaultToolsByName = new Map<string, AgentTool<TSchema, unknown>>();
1077 defaultToolsByName.set('set_title', makeSetTitleTool() as unknown as AgentTool<TSchema, unknown>);
1078 defaultToolsByName.set(

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected