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

Function requireUserSubject

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

Source from the content-addressed store, hash-verified

1305 };
1306
1307 const requireUserSubject = (owner: Owner): Effect.Effect<void, StorageFailure> =>
1308 owner === "user" && subject == null
1309 ? Effect.fail(
1310 new StorageError({
1311 message: `Cannot target owner "user": executor has no subject.`,
1312 cause: undefined,
1313 }),
1314 )
1315 : Effect.void;
1316
1317 // Built-in core-tools plugin: agent-facing static tools over the v2 surface.
1318 const plugins: readonly AnyPlugin[] = config.coreTools

Callers 2

mintOAuthConnectionFunction · 0.85
policiesCreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected