Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
revert: drop prettier and version-bump collateral from the dev merge
Jose Ramirez9dc08733bada
diff --git a/control-api/test/middleware.externalGfsRateLimit.test.ts b/control-api/test/middleware.externalGfsRateLimit.test.tsindex 2efc419d7..58087ce1a 100644--- a/control-api/test/middleware.externalGfsRateLimit.test.ts+++ b/control-api/test/middleware.externalGfsRateLimit.test.ts@@ -114,8 +114,18 @@ describe('external GFS rate boundary', () => {['POST', '/token', 'token', '/external/gfs/token'],['GET', '/capabilities', 'resource', '/external/gfs/capabilities'],['POST', '/uploads', 'resource-mutation', '/external/gfs/uploads'],- ['HEAD', `/uploads/${RESOURCE_ID}`, 'resource', '/external/gfs/uploads/:id'],- ['GET', `/uploads/${RESOURCE_ID}/status`, 'resource', '/external/gfs/uploads/:id/status'],+ [+ 'HEAD',+ `/uploads/${RESOURCE_ID}`,+ 'resource',+ '/external/gfs/uploads/:id',+ ],+ [+ 'GET',+ `/uploads/${RESOURCE_ID}/status`,+ 'resource',+ '/external/gfs/uploads/:id/status',+ ],['PUT',`/uploads/${RESOURCE_ID}/parts/0`,@@ -128,7 +138,12 @@ describe('external GFS rate boundary', () => {'resource-mutation','/external/gfs/uploads/:id/:action',],- ['DELETE', `/uploads/${RESOURCE_ID}`, 'resource-mutation', '/external/gfs/uploads/:id'],+ [+ 'DELETE',+ `/uploads/${RESOURCE_ID}`,+ 'resource-mutation',+ '/external/gfs/uploads/:id',+ ],['GET', '/resolve', 'resource', '/external/gfs/resolve'],['GET', '/resources', 'resource', '/external/gfs/resources'],[diff --git a/control-ui/components/HostAdvancedTab/index.tsx b/control-ui/components/HostAdvancedTab/index.tsxindex fca1d989d..a70c79b2d 100644--- a/control-ui/components/HostAdvancedTab/index.tsx+++ b/control-ui/components/HostAdvancedTab/index.tsx@@ -33,7 +33,11 @@ export function HostAdvancedTab({<div className="cu-advanced-section">{subTab === 'approvals' ? (initialLoading ? (- <div className="cu-table-wrap" role="status" aria-label="Loading approval tools">+ <div+ className="cu-table-wrap"+ role="status"+ aria-label="Loading approval tools"+ ><table className="cu-table cu-table--header-band cu-table--static-rows"><thead><tr>diff --git a/control-ui/components/HostTable.tsx b/control-ui/components/HostTable.tsxindex 0ca83ebc7..ffbc9455e 100644--- a/control-ui/components/HostTable.tsx+++ b/control-ui/components/HostTable.tsx@@ -1,9 +1,9 @@'use client'import React, { useMemo, useState } from 'react'+import { LlmProviderIcon } from './LlmProviderIcon'import { getProviderLabel } from '../lib/llm'import type { HostItem, HostLifecycleInfo, HostRef } from './HostTable.types'-import { LlmProviderIcon } from './LlmProviderIcon'import { SectionSearchInput } from './SectionSearchInput'import { IconRobot } from './Sidebar/icons'import { SkeletonTableRows } from './SkeletonTableRows'@@ -50,11 +50,15 @@ function getHostLifecycleInfo(host: HostItem): HostLifecycleInfo {}export function collectProviderIds(spec: Record<string, unknown>): string[] {- const primary = String((spec.model as { provider?: string } | undefined)?.provider || '').trim()+ const primary = String(+ (spec.model as { provider?: string } | undefined)?.provider || ''+ ).trim()const fallbacks = Array.isArray((spec.llmPolicy as { fallbacks?: Array<{ provider?: string }> } | undefined)?.fallbacks)- ? (spec.llmPolicy as { fallbacks: Array<{ provider?: string }> }).fallbacks+ ? (+ spec.llmPolicy as { fallbacks: Array<{ provider?: string }> }+ ).fallbacks.map(f => String(f.provider || '').trim()).filter(Boolean): []diff --git a/control-ui/components/__tests__/HostTable.test.tsx b/control-ui/components/__tests__/HostTable.test.tsxindex ed9c2e7d2..0deaea959 100644--- a/control-ui/components/__tests__/HostTable.test.tsx+++ b/control-ui/components/__tests__/HostTable.test.tsx@@ -1,6 +1,6 @@import { describe, expect, it, vi } from 'vitest'import { fireEvent, render, screen, within } from '@testing-library/react'-import { HostTable, collectProviderIds } from '../HostTable'+import { collectProviderIds, HostTable } from '../HostTable'import type { HostItem } from '../HostTable.types'function makeHost(overrides: {@@ -153,9 +153,9 @@ describe('collectProviderIds (HostTable provider extraction)', () => {// assertions bind the cell's DOM contract to the helper's output.describe('HostTable providers column rendering', () => {function chipTitles(cell: HTMLElement): string[] {- return Array.from(cell.querySelectorAll<HTMLElement>('.cu-host-providers__chip')).map(- chip => chip.getAttribute('title') || ''- )+ return Array.from(+ cell.querySelectorAll<HTMLElement>('.cu-host-providers__chip')+ ).map(chip => chip.getAttribute('title') || '')}function providersCell(row: HTMLElement): HTMLElement {@@ -179,10 +179,11 @@ describe('HostTable providers column rendering', () => {it('renders one icon per unique provider in primary-then-fallback order', () => {renderHostTable([- hostWithModel('chatllm', { provider: 'openai' }, [- { provider: 'claude' },- { provider: 'zai' },- ]),+ hostWithModel(+ 'chatllm',+ { provider: 'openai' },+ [{ provider: 'claude' }, { provider: 'zai' }]+ ),])const row = screen.getByLabelText('Open agent chatllm')@@ -197,10 +198,11 @@ describe('HostTable providers column rendering', () => {it('renders a single icon when a fallback duplicates the primary', () => {renderHostTable([- hostWithModel('chatllm', { provider: 'openai' }, [+ hostWithModel(+ 'chatllm',{ provider: 'openai' },- { provider: 'zai' },- ]),+ [{ provider: 'openai' }, { provider: 'zai' }]+ ),])const row = screen.getByLabelText('Open agent chatllm')diff --git a/control-ui/components/__tests__/HostWizard.test.tsx b/control-ui/components/__tests__/HostWizard.test.tsxindex 3c63bbb79..8bcdc74a3 100644--- a/control-ui/components/__tests__/HostWizard.test.tsx+++ b/control-ui/components/__tests__/HostWizard.test.tsx@@ -656,7 +656,9 @@ describe('HostWizard — create-only seam + compensation (R5-C1/R5-B1, V-1, V-7)expect(api.apiSend).toHaveBeenCalledWith('DELETE', '/api/v1/admin/secrets/coll-agent-llm')// The Host was never POSTed (the seam aborted before the boundary).expect(- vi.mocked(api.apiSend).mock.calls.some(c => c[0] === 'POST' && c[1] === '/api/v1/admin/hosts')+ vi+ .mocked(api.apiSend)+ .mock.calls.some(c => c[0] === 'POST' && c[1] === '/api/v1/admin/hosts')).toBe(false)})@@ -707,7 +709,9 @@ describe('HostWizard — create-only seam + compensation (R5-C1/R5-B1, V-1, V-7)})// The host WAS created...expect(- vi.mocked(api.apiSend).mock.calls.some(c => c[0] === 'POST' && c[1] === '/api/v1/admin/hosts')+ vi+ .mocked(api.apiSend)+ .mock.calls.some(c => c[0] === 'POST' && c[1] === '/api/v1/admin/hosts')).toBe(true)// ...so NO compensation DELETE runs.expect(vi.mocked(api.apiSend).mock.calls.some(c => c[0] === 'DELETE')).toBe(false)diff --git a/control-ui/next.config.js b/control-ui/next.config.jsindex 8be20d4e7..6baa3f99a 100644--- a/control-ui/next.config.js+++ b/control-ui/next.config.js@@ -117,11 +117,7 @@ const nextConfig = {// parent so bookmarks, shared links, and the approval-tools E2E// (which navigates to /hosts/<name>/approvals) still reach the// section they used to.- {- source: '/agents/:name/member-access',- destination: '/agents/:name/access',- permanent: true,- },+ { source: '/agents/:name/member-access', destination: '/agents/:name/access', permanent: true },{ source: '/agents/:name/team-access', destination: '/agents/:name/access', permanent: true },{ source: '/agents/:name/approvals', destination: '/agents/:name/advanced', permanent: true },{ source: '/agents/:name/env-vars', destination: '/agents/:name/advanced', permanent: true },diff --git a/desktop-app/ui/src/hooks/domain/__tests__/useAgentChatController.test.tsx b/desktop-app/ui/src/hooks/domain/__tests__/useAgentChatController.test.tsxindex 387503f4c..080b3c4e8 100644--- a/desktop-app/ui/src/hooks/domain/__tests__/useAgentChatController.test.tsx+++ b/desktop-app/ui/src/hooks/domain/__tests__/useAgentChatController.test.tsx@@ -421,8 +421,7 @@ describe('useAgentChatController — characterization (D.0)', () => {expect(spies.pushToast).toHaveBeenCalledWith('Message to agent-x failed: LLM down', 'error')const appended = clerum.chat.appendMessages.mock.calls.at(-1)?.[2] as- | Array<{ isError?: boolean; errorCode?: string }>- | undefined+ Array<{ isError?: boolean; errorCode?: string }> | undefinedexpect(appended?.[0]?.isError).toBe(true)expect(appended?.[0]?.errorCode).toBe('provider_error')})@@ -560,8 +559,7 @@ describe('useAgentChatController — characterization (D.0)', () => {await sendPromiseconst appended = clerum.chat.appendMessages.mock.calls.at(-1)?.[2] as- | Array<{ isError?: boolean; content?: string }>- | undefined+ Array<{ isError?: boolean; content?: string }> | undefinedexpect(appended?.[0]?.isError).toBe(true)expect(appended?.[0]?.content).toContain('Failed to retrieve task result')expect(spies.pushToast).toHaveBeenCalledWith(@@ -939,13 +937,11 @@ describe('useAgentChatController — characterization (D.0)', () => {// once its message is the error bubble.await waitFor(() => {const last = clerum.chat.appendMessages.mock.calls.at(-1)?.[2]?.[0] as- | { isError?: boolean }- | undefined+ { isError?: boolean } | undefinedexpect(last?.isError).toBe(true)})const appended = clerum.chat.appendMessages.mock.calls.at(-1)?.[2] as- | Array<{ isError?: boolean; errorCode?: string; content?: string }>- | undefined+ Array<{ isError?: boolean; errorCode?: string; content?: string }> | undefinedexpect(appended?.[0]?.isError).toBe(true)expect(appended?.[0]?.errorCode).toBe('BUDGET_EXCEEDED')expect(appended?.[0]?.content).toContain('Token budget exceeded')@@ -1001,13 +997,11 @@ describe('useAgentChatController — characterization (D.0)', () => {// first; the recovery's reply lands after the `getTaskResult` await).await waitFor(() => {const last = clerum.chat.appendMessages.mock.calls.at(-1)?.[2]?.[0] as- | { role?: string }- | undefined+ { role?: string } | undefinedexpect(last?.role).toBe('assistant')})const appended = clerum.chat.appendMessages.mock.calls.at(-1)?.[2] as- | Array<{ role?: string; content?: string; isError?: boolean }>- | undefined+ Array<{ role?: string; content?: string; isError?: boolean }> | undefinedexpect(appended?.[0]?.role).toBe('assistant')expect(appended?.[0]?.content).toBe('here is your report')expect(appended?.[0]?.isError).toBeUndefined()diff --git a/desktop-app/ui/src/hooks/domain/useAgentChatController.ts b/desktop-app/ui/src/hooks/domain/useAgentChatController.tsindex a817dac4e..e476db2b6 100644--- a/desktop-app/ui/src/hooks/domain/useAgentChatController.ts+++ b/desktop-app/ui/src/hooks/domain/useAgentChatController.ts@@ -2567,8 +2567,7 @@ export function useAgentChatController({if (!taskId) {// Synchronous (non-async) response — a direct reply or a structured error.const errorRecord = responseRecord.error as- | { message?: string; code?: string; provider?: string }- | undefined+ { message?: string; code?: string; provider?: string } | undefinedconst content =typeof errorRecord?.message === 'string'? errorRecord.messagediff --git a/external-rest-api/test/routes.gfs.test.ts b/external-rest-api/test/routes.gfs.test.tsindex 6befe274e..9b812bf20 100644--- a/external-rest-api/test/routes.gfs.test.ts+++ b/external-rest-api/test/routes.gfs.test.ts@@ -12,7 +12,10 @@ const { ControlApiError, clientMock } = vi.hoisted(() => {headers: Record<string, string> | Headers = {}) {super(message)- this.headers = headers instanceof Headers ? Object.fromEntries(headers.entries()) : headers+ this.headers =+ headers instanceof Headers+ ? Object.fromEntries(headers.entries())+ : headers}public headers: Record<string, string>}diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.jsonindex e9b28c157..770f7c707 100644--- a/host-context-controller/package-lock.json+++ b/host-context-controller/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-host-context-controller",- "version": "0.1.170",+ "version": "0.1.169","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-host-context-controller",- "version": "0.1.170",+ "version": "0.1.169","license": "SEE LICENSE IN LICENSE","dependencies": {"@clerum/image-policy": "file:../packages/image-policy",diff --git a/host-context-controller/package.json b/host-context-controller/package.jsonindex 17c98b81a..04b826ebf 100644--- a/host-context-controller/package.json+++ b/host-context-controller/package.json@@ -1,6 +1,6 @@{"name": "clerum-host-context-controller",- "version": "0.1.170",+ "version": "0.1.169","description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API","main": "dist/main.js","engines": {diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.jsonindex 8519e148d..a62cdc464 100644--- a/mcp-host/package-lock.json+++ b/mcp-host/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-mcp-host",- "version": "0.1.239",+ "version": "0.1.238","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-mcp-host",- "version": "0.1.239",+ "version": "0.1.238","license": "SEE LICENSE IN LICENSE","dependencies": {"@anthropic-ai/sdk": "^0.32.0",diff --git a/mcp-host/package.json b/mcp-host/package.jsonindex 2dcb39dec..2b209bb31 100644--- a/mcp-host/package.json+++ b/mcp-host/package.json@@ -1,6 +1,6 @@{"name": "clerum-mcp-host",- "version": "0.1.239",+ "version": "0.1.238","description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude","main": "dist/main.js","engines": {