MCPcopy Create free account
hub / github.com/cortexkit/magic-context / setHarness

Function setHarness

packages/plugin/src/shared/harness.ts:36–44  ·  view source on GitHub ↗
(value: HarnessId)

Source from the content-addressed store, hash-verified

34 * defensively).
35 */
36export function setHarness(value: HarnessId): void {
37 if (harnessLocked && currentHarness !== value) {
38 throw new Error(
39 `Magic Context: harness already locked to "${currentHarness}"; cannot change to "${value}"`,
40 );
41 }
42 currentHarness = value;
43 harnessLocked = true;
44}
45
46/**
47 * Get the current harness identifier. Used by storage modules when

Callers 5

createTestDbFunction · 0.90
index.tsFile · 0.90

Calls

no outgoing calls

Tested by 1

createTestDbFunction · 0.72