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

Function guardOrgWrite

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

Source from the content-addressed store, hash-verified

1953 // operational org-row writes (token refresh, tool-catalog re-sync) must
1954 // keep working for a denied member.
1955 const guardOrgWrite = (owner?: Owner): Effect.Effect<void, OrgWriteDeniedError> =>
1956 Effect.gen(function* () {
1957 const access =
1958 config.orgWrites === "request" ? yield* currentOrgWriteAccess : config.orgWrites;
1959 if (access === "denied" && (owner === undefined || owner === "org")) {
1960 return yield* new OrgWriteDeniedError();
1961 }
1962 });
1963
1964 // Built-in core-tools plugin: agent-facing static tools over the v2 surface.
1965 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