MCPcopy Create free account
hub / github.com/agent-tower/core / makeTempRoot

Function makeTempRoot

packages/server/src/utils/error-log.test.ts:10–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8const longAuthorizationPadding = 'x'.repeat(4200);
9
10function makeTempRoot(): string {
11 const root = path.join(os.tmpdir(), `agent-tower-error-log-${Date.now()}-${Math.random().toString(16).slice(2)}`);
12 tempRoots.push(root);
13 return root;
14}
15
16afterEach(() => {
17 for (const root of tempRoots.splice(0)) {

Callers 1

error-log.test.tsFile · 0.70

Calls 2

joinMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected