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

Function requireUserSubject

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

Source from the content-addressed store, hash-verified

1327 };
1328
1329 const requireUserSubject = (owner: Owner): Effect.Effect<void, StorageFailure> =>
1330 owner === "user" && subject == null
1331 ? Effect.fail(
1332 new StorageError({
1333 message: `Cannot target owner "user": executor has no subject.`,
1334 cause: undefined,
1335 }),
1336 )
1337 : Effect.void;
1338
1339 // Built-in core-tools plugin: agent-facing static tools over the v2 surface.
1340 const plugins: readonly AnyPlugin[] = config.coreTools

Callers 2

mintOAuthConnectionFunction · 0.85
policiesCreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected