Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs(control-api): note that profileScopeViolation can return an empty scope
Diego Zacarias25284bcd8cdf
diff --git a/control-api/package-lock.json b/control-api/package-lock.jsonindex bca53fc35..9a218b1c4 100644--- a/control-api/package-lock.json+++ b/control-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-api",- "version": "0.1.792",+ "version": "0.1.793","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-api",- "version": "0.1.792",+ "version": "0.1.793","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/grok-provider-attempt-contract": "file:../packages/grok-provider-attempt-contract",diff --git a/control-api/package.json b/control-api/package.jsonindex 2a702e5bc..130c9f9db 100644--- a/control-api/package.json+++ b/control-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-api",- "version": "0.1.792",+ "version": "0.1.793","description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets","main": "dist/main.js","engines": {diff --git a/control-api/src/oauth/asProfiles.ts b/control-api/src/oauth/asProfiles.tsindex 23e2a4e63..3234ffb12 100644--- a/control-api/src/oauth/asProfiles.ts+++ b/control-api/src/oauth/asProfiles.ts@@ -150,7 +150,11 @@ function isRejected(kind: ScopeClass): boolean {return kind === 'invalid' || kind === 'blocked-guid' || kind === 'foreign'}-/** The first scope that breaks the profile's audience rule, or null. `null` too without a profile. */+/**+ * The first scope that breaks the profile's audience rule, or null. `null` too without a+ * profile. An empty scope is itself a violation and comes back as `''`, so callers must+ * test `!== null`, never truthiness.+ */export function profileScopeViolation(id: AsProfileId | undefined,mcpBaseUrl: string,