Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
Merge branch 'dev' into fix/wrc-delete-on-transition
Alfredo Lopez72a3c49d908c
diff --cc control-api/src/routes/admin/index.tsindex 445e10caa,7e2748667..400960fc7--- a/control-api/src/routes/admin/index.ts+++ b/control-api/src/routes/admin/index.ts@@@ -10,6 -10,8 +10,8 @@@ import { createAdminHostEnvRouter } froimport { createAdminHostsOverviewRouter } from './hostsOverview.js'import { createAdminLlmModelsRouter } from './llmModels.js'import { createAdminLlmPricesRouter } from './llmPrices.js'-import { createAdminOauthProvidersRouter } from './oauthProviders.js'+ import { createAdminMcpServerOauthRouter } from './mcpServerOauth.js'++import { createAdminOauthProvidersRouter } from './oauthProviders.js'import { createAdminOutputsRouter } from './outputs.js'import { createAdminPersonalizationRouter } from './personalization.js'import { createAdminPluginWorkloadSdkRouter } from './pluginWorkloadSdk.js'diff --cc host-context-controller/package-lock.jsonindex cf00311fa,cf00311fa..961897acb--- a/host-context-controller/package-lock.json+++ b/host-context-controller/package-lock.json@@@ -1,12 -1,12 +1,12 @@@{"name": "clerum-host-context-controller",-- "version": "0.1.351",++ "version": "0.1.352","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-host-context-controller",-- "version": "0.1.351",++ "version": "0.1.352","license": "SEE LICENSE IN LICENSE","dependencies": {"@clerum/codex-catalog-projection": "file:../packages/codex-catalog-projection",diff --cc host-context-controller/package.jsonindex 73798aa7e,73798aa7e..e0a845ff6--- a/host-context-controller/package.json+++ b/host-context-controller/package.json@@@ -1,6 -1,6 +1,6 @@@{"name": "clerum-host-context-controller",-- "version": "0.1.351",++ "version": "0.1.352","description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API","main": "dist/main.js","engines": {diff --cc mcp-host/src/contextMapperClient.test.tsindex e0e27a23f,df65caf98..a92445243--- a/mcp-host/src/contextMapperClient.test.ts+++ b/mcp-host/src/contextMapperClient.test.ts@@@ -308,6 -308,126 +308,124 @@@ describe('ContextMapperClient Host-scop)})+ it('projects a remote=true policy flag from the v2 inventory (mini-spec 19 §D-6)', async () => {+ vi.stubGlobal(+ 'fetch',+ vi+ .fn()+ .mockResolvedValue(+ new Response(+ JSON.stringify(inventory([authorizedServer({ authKind: 'oauth-user', remote: true })])),+ { status: 200 }+ )+ )+ )+ const client = new ContextMapperClient('http://context-mapper.test', {+ authentication: authentication(),+ })++ const result = await client.pollServers()+ expect(result.servers[0].remote).toBe(true)+ })++ it('fail-safes an absent remote flag to local (undefined, not false)', async () => {+ vi.stubGlobal(+ 'fetch',+ vi.fn().mockResolvedValue(+ new Response(JSON.stringify(inventory([authorizedServer({ authKind: 'oauth-user' })])), {+ status: 200,+ })+ )+ )+ const client = new ContextMapperClient('http://context-mapper.test', {+ authentication: authentication(),+ })++ const result = await client.pollServers()+ // HCC omits `remote` when false, so an absent flag must decode to undefined+ // (treated as local everywhere downstream), never a spurious `false` object key.+ expect(result.servers[0].remote).toBeUndefined()+ })++ it('rejects a present-but-non-boolean remote flag (decoder strictness)', async () => {+ vi.stubGlobal(+ 'fetch',- vi- .fn()- .mockResolvedValue(- new Response(JSON.stringify(inventory([authorizedServer({ remote: 'yes' })])), {- status: 200,- })- )++ vi.fn().mockResolvedValue(++ new Response(JSON.stringify(inventory([authorizedServer({ remote: 'yes' })])), {++ status: 200,++ })++ )+ )+ const client = new ContextMapperClient('http://context-mapper.test', {+ authentication: authentication(),+ })++ await expect(client.pollServers()).rejects.toThrow(+ 'HCC inventory response contains an invalid remote flag'+ )+ })++ it('projects a bearerInBody=true transport quirk from the v2 inventory (mini-spec 19 §D-8)', async () => {+ vi.stubGlobal(+ 'fetch',+ vi+ .fn()+ .mockResolvedValue(+ new Response(+ JSON.stringify(+ inventory([+ authorizedServer({ authKind: 'oauth-user', remote: true, bearerInBody: true }),+ ])+ ),+ { status: 200 }+ )+ )+ )+ const client = new ContextMapperClient('http://context-mapper.test', {+ authentication: authentication(),+ })++ const result = await client.pollServers()+ expect(result.servers[0].bearerInBody).toBe(true)+ })++ it('fail-safes an absent bearerInBody flag to header (undefined, not false)', async () => {+ vi.stubGlobal(+ 'fetch',+ vi.fn().mockResolvedValue(+ new Response(JSON.stringify(inventory([authorizedServer({ authKind: 'oauth-user' })])), {+ status: 200,+ })+ )+ )+ const client = new ContextMapperClient('http://context-mapper.test', {+ authentication: authentication(),+ })++ const result = await client.pollServers()+ // HCC omits `bearerInBody` when false, so an absent flag must decode to+ // undefined (treated as header everywhere downstream), never a spurious key.+ expect(result.servers[0].bearerInBody).toBeUndefined()+ })++ it('rejects a present-but-non-boolean bearerInBody flag (decoder strictness)', async () => {+ vi.stubGlobal(+ 'fetch',+ vi.fn().mockResolvedValue(+ new Response(JSON.stringify(inventory([authorizedServer({ bearerInBody: 1 })])), {+ status: 200,+ })+ )+ )+ const client = new ContextMapperClient('http://context-mapper.test', {+ authentication: authentication(),+ })++ await expect(client.pollServers()).rejects.toThrow(+ 'HCC inventory response contains an invalid bearerInBody flag'+ )+ })+it('still rejects forbidden metadata even when a valid authKind is present (guard intact, I1)', async () => {vi.stubGlobal('fetch',diff --cc profile-ui/package-lock.jsonindex 33e4c55cd,33e4c55cd..07a1caded--- a/profile-ui/package-lock.json+++ b/profile-ui/package-lock.json@@@ -1,12 -1,12 +1,12 @@@{"name": "clerum-profile-ui",-- "version": "0.1.143",++ "version": "0.1.144","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-profile-ui",-- "version": "0.1.143",++ "version": "0.1.144","dependencies": {"@clerum/desktop-app-links": "file:../packages/desktop-app-links","@clerum/frontend-components": "file:../packages/frontend-components",diff --cc profile-ui/package.jsonindex ded59f1aa,ded59f1aa..02f14aceb--- a/profile-ui/package.json+++ b/profile-ui/package.json@@@ -1,6 -1,6 +1,6 @@@{"name": "clerum-profile-ui",-- "version": "0.1.143",++ "version": "0.1.144","private": true,"scripts": {"dev": "next dev",