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

Function localFixedExecutionLayer

apps/local/src/app.ts:53–65  ·  view source on GitHub ↗
(executor: LocalExecutor)

Source from the content-addressed store, hash-verified

51 * execution model.
52 */
53const localFixedExecutionLayer = (executor: LocalExecutor): Layer.Layer<FixedExecutionProvider> =>
54 Layer.succeed(FixedExecutionProvider)({
55 executor,
56 engine: createExecutionEngine({
57 executor,
58 codeExecutor: makeQuickJsExecutor(),
59 }),
60 // The executor IS its own plugin-extension map (`executor[pluginId]`); the
61 // fixed middleware reads `executor[id]` to satisfy each plugin's
62 // `*ExtensionService` Tag per request — identical binding to the prior
63 // `composePluginHandlers(plugins, executor)` boot-bind.
64 extensions: executor,
65 });
66
67export interface LocalApiHandler {
68 /** The unified web handler: serves the typed API (at root — the Bun shell strips `/api`) + /docs. */

Callers 1

makeLocalApiHandlerFunction · 0.85

Calls 2

createExecutionEngineFunction · 0.90
makeQuickJsExecutorFunction · 0.90

Tested by

no test coverage detected