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

Function guardOrgWrite

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

Source from the content-addressed store, hash-verified

1920 // operational org-row writes (token refresh, tool-catalog re-sync) must
1921 // keep working for a denied member.
1922 const guardOrgWrite = (owner?: Owner): Effect.Effect<void, OrgWriteDeniedError> =>
1923 Effect.gen(function* () {
1924 const access =
1925 config.orgWrites === "request" ? yield* currentOrgWriteAccess : config.orgWrites;
1926 if (access === "denied" && (owner === undefined || owner === "org")) {
1927 return yield* new OrgWriteDeniedError();
1928 }
1929 });
1930
1931 // Built-in core-tools plugin: agent-facing static tools over the v2 surface.
1932 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