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

Function guardOrgWrite

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

Source from the content-addressed store, hash-verified

1939 // operational org-row writes (token refresh, tool-catalog re-sync) must
1940 // keep working for a denied member.
1941 const guardOrgWrite = (owner?: Owner): Effect.Effect<void, OrgWriteDeniedError> =>
1942 Effect.gen(function* () {
1943 const access =
1944 config.orgWrites === "request" ? yield* currentOrgWriteAccess : config.orgWrites;
1945 if (access === "denied" && (owner === undefined || owner === "org")) {
1946 return yield* new OrgWriteDeniedError();
1947 }
1948 });
1949
1950 // Built-in core-tools plugin: agent-facing static tools over the v2 surface.
1951 const plugins: readonly AnyPlugin[] = config.coreTools

Callers 12

integrationsRegisterFunction · 0.85
integrationsUpdateFunction · 0.85
integrationsRemoveFunction · 0.85
connectionsCreateFunction · 0.85
connectionsUpdateFunction · 0.85
connectionsRemoveFunction · 0.85
connectionsRefreshFunction · 0.85
policiesCreateFunction · 0.85
policiesUpdateFunction · 0.85
policiesRemoveFunction · 0.85
createExecutorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected