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

Function requireUserSubject

packages/core/sdk/src/executor.ts:1554–1562  ·  view source on GitHub ↗
(owner: Owner)

Source from the content-addressed store, hash-verified

1552 };
1553
1554 const requireUserSubject = (owner: Owner): Effect.Effect<void, StorageFailure> =>
1555 owner === "user" && subject == null
1556 ? Effect.fail(
1557 new StorageError({
1558 message: `Cannot target owner "user": executor has no subject.`,
1559 cause: undefined,
1560 }),
1561 )
1562 : Effect.void;
1563
1564 // Built-in core-tools plugin: agent-facing static tools over the v2 surface.
1565 const plugins: readonly AnyPlugin[] = config.coreTools

Callers 3

mintOAuthConnectionFunction · 0.85
policiesCreateFunction · 0.85
artifactsSaveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected