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

Function platformViewOf

packages/core/api/src/admin/reads.ts:43–50  ·  view source on GitHub ↗
(executor: Executor)

Source from the content-addressed store, hash-verified

41 * owner has no users").
42 */
43export const platformViewOf = (executor: Executor): Effect.Effect<ExecutorAdmin, AdminUsersError> =>
44 executor.admin
45 ? Effect.succeed(executor.admin)
46 : Effect.fail(
47 new AdminUsersError({
48 message: "Admin reads require an executor built with the platform view enabled",
49 }),
50 );
51
52// Storage faults are the only failure these reads can raise. They surface as a
53// 500 with a flat message — the cause carries the detail into the host's error

Callers 4

stubProviderFunction · 0.90
admin-users-api.tsFile · 0.85
admin-users-api.tsFile · 0.85

Calls

no outgoing calls

Tested by 1

stubProviderFunction · 0.72