MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / createScopedExecutor

Function createScopedExecutor

apps/host-selfhost/src/sources.test.ts:19–26  ·  view source on GitHub ↗
(
  accountId: string,
  organizationId: string,
  organizationName: string,
)

Source from the content-addressed store, hash-verified

17// leaving `SelfHostDb` as the only requirement (the production path provides the
18// same seams via `SelfHostExecutionStackLayer`).
19const createScopedExecutor = (
20 accountId: string,
21 organizationId: string,
22 organizationName: string,
23) =>
24 makeScopedExecutor<SelfHostPlugins>(accountId, organizationId, organizationName).pipe(
25 Effect.provide(SelfHostScopedExecutorSeams),
26 );
27
28const dataDir = mkdtempSync(join(tmpdir(), "eh-src-"));
29process.env.EXECUTOR_DATA_DIR = dataDir;

Callers 1

sources.test.tsFile · 0.70

Calls 1

makeScopedExecutorFunction · 0.90

Tested by

no test coverage detected