Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(desktop): restore dev's formatting after the dev merge (CI: version bumps)

M78a6a0e8bfcc
diff --git a/control-api/package-lock.json b/control-api/package-lock.json
index 78d615f2c..d6ceb0eae 100644
--- a/control-api/package-lock.json
+++ b/control-api/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-api",
- "version": "0.1.815",
+ "version": "0.1.816",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-api",
- "version": "0.1.815",
+ "version": "0.1.816",
"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.json
index bf305cb3a..05de184ba 100644
--- a/control-api/package.json
+++ b/control-api/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-api",
- "version": "0.1.815",
+ "version": "0.1.816",
"description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets",
"main": "dist/main.js",
"engines": {
diff --git a/control-api/src/routes/admin/registry.ts b/control-api/src/routes/admin/registry.ts
index 3fb72180c..5de7af708 100644
--- a/control-api/src/routes/admin/registry.ts
+++ b/control-api/src/routes/admin/registry.ts
@@ -498,8 +498,7 @@ export function registryErrorLogFields(err: unknown): SafeRegistryErrorLogFields
}
type CredentialPayloadValidation =
- | { ok: true; secretData: Record<string, string> }
- | { ok: false; body: Record<string, unknown> }
+ { ok: true; secretData: Record<string, string> } | { ok: false; body: Record<string, unknown> }
function looksLikeCredentialPlaceholder(value: string): boolean {
const normalized = value.trim().toLowerCase()
@@ -1236,11 +1235,7 @@ async function readSecretMutationOutcome(
}
export type CreatedSecretAfterDeleteFailure =
- | 'gone'
- | 'replaced'
- | 'modified-original'
- | 'unchanged-original'
- | 'identity-unavailable'
+ 'gone' | 'replaced' | 'modified-original' | 'unchanged-original' | 'identity-unavailable'
/** Classify what remains under a Secret name after an identity-bound delete failed. */
export function classifyCreatedSecretAfterDeleteFailure(
@@ -1307,11 +1302,7 @@ async function waitForSecretDeletionOrReplacement(
}
type CreatedResourceAfterDeleteFailure =
- | 'gone'
- | 'replaced'
- | 'modified-original'
- | 'unchanged-original'
- | 'identity-unavailable'
+ 'gone' | 'replaced' | 'modified-original' | 'unchanged-original' | 'identity-unavailable'
function normalizeRegistryResourceSnapshot(
raw: unknown,
@@ -2111,9 +2102,7 @@ export function createAdminRegistryRouter(
}
const transport = (entry.transport ?? 'streamableHttp') as
- | 'streamableHttp'
- | 'sse'
- | 'stdio'
+ 'streamableHttp' | 'sse' | 'stdio'
const port = (meta?.port as number | undefined) ?? 3000
const secretName = `${serverName}-credentials`
@@ -5233,9 +5222,7 @@ export function createAdminRegistryRouter(
const limit = toPageNum(req.query.limit)
const offset = toPageNum(req.query.offset)
const raw = (await listOrgEntries(ctx.orgName, { limit, offset })) as
- | { data?: unknown[]; entries?: unknown[]; meta?: unknown }
- | null
- | undefined
+ { data?: unknown[]; entries?: unknown[]; meta?: unknown } | null | undefined
const data = raw?.data ?? raw?.entries ?? []
res.status(200).json(raw?.meta !== undefined ? { data, meta: raw.meta } : { data })
} catch (err) {
diff --git a/control-api/src/services/auth/passwordAdmissionError.ts b/control-api/src/services/auth/passwordAdmissionError.ts
index 8760b6c50..504655b17 100644
--- a/control-api/src/services/auth/passwordAdmissionError.ts
+++ b/control-api/src/services/auth/passwordAdmissionError.ts
@@ -6,9 +6,9 @@ export class PasswordAdmissionError extends Error {
readonly retryAfterSeconds: number,
readonly reason: PasswordAdmissionDenialReason,
readonly publicError:
- | 'rate_limited'
- | 'authority_unavailable'
- | 'recovery_outcome_unknown' = status === 429 ? 'rate_limited' : 'authority_unavailable'
+ 'rate_limited' | 'authority_unavailable' | 'recovery_outcome_unknown' = status === 429
+ ? 'rate_limited'
+ : 'authority_unavailable'
) {
super(status === 429 ? 'rate_limited' : 'authority_unavailable')
}
@@ -27,12 +27,7 @@ export class PasswordMutationInternalError extends Error {
}
export type PasswordMutationCauseKind =
- | 'type_error'
- | 'reference_error'
- | 'range_error'
- | 'syntax_error'
- | 'error'
- | 'non_error'
+ 'type_error' | 'reference_error' | 'range_error' | 'syntax_error' | 'error' | 'non_error'
export function passwordMutationCauseKind(cause: unknown): PasswordMutationCauseKind {
try {
diff --git a/control-api/test/routes.registryInstall.test.ts b/control-api/test/routes.registryInstall.test.ts
index a5fc333dd..9f1c02f6e 100644
--- a/control-api/test/routes.registryInstall.test.ts
+++ b/control-api/test/routes.registryInstall.test.ts
@@ -5703,8 +5703,7 @@ describe('authHeaders template on remote installs', () => {
// 3. The actual secret values landed in the K8s Secret only.
const secretCall = secretSpy.mock.calls[0]?.[0] as
- | { name?: string; stringData?: Record<string, string> }
- | undefined
+ { name?: string; stringData?: Record<string, string> } | undefined
expect(secretCall?.name).toBe('sentry-separation-credentials')
expect(secretCall?.stringData).toEqual({
SENTRY_AUTH_TOKEN: 'super-secret-token-value',
diff --git a/control-ui/lib/api.ts b/control-ui/lib/api.ts
index 85edb56c1..f8ba5ee93 100644
--- a/control-ui/lib/api.ts
+++ b/control-ui/lib/api.ts
@@ -669,18 +669,13 @@ export type GfsOperatorSubjectInput = { type: 'operator' }
export type GfsContextSubjectInput = { type: 'context'; id: string }
export type GfsBulkGrantSubjectInput =
- | GfsUserSubjectInput
- | GfsTeamSubjectInput
- | GfsHostSubjectInput
+ GfsUserSubjectInput | GfsTeamSubjectInput | GfsHostSubjectInput
export type GfsBulkShareSubjectInput = GfsUserSubjectInput | GfsTeamSubjectInput
export type GfsSubjectInput =
- | GfsBulkGrantSubjectInput
- | GfsOperatorSubjectInput
- | GfsContextSubjectInput
+ GfsBulkGrantSubjectInput | GfsOperatorSubjectInput | GfsContextSubjectInput
type GfsSubjectMutationInput<TBulkSubject extends GfsSubjectInput> =
- | { subject: GfsSubjectInput; subjects?: never }
- | { subject?: never; subjects: TBulkSubject[] }
+ { subject: GfsSubjectInput; subjects?: never } | { subject?: never; subjects: TBulkSubject[] }
type GfsMutationRequestBody = {
drive?: string
@@ -1832,11 +1827,7 @@ export async function createMcpServer(payload: {
/** Cleanup stages control-api reports as `pending` when an mcp-server uninstall stops. */
export type McpServerUninstallStage =
- | 'contexts'
- | 'dynamic_client'
- | 'oauth_grants'
- | 'secrets'
- | 'mcp_server'
+ 'contexts' | 'dynamic_client' | 'oauth_grants' | 'secrets' | 'mcp_server'
const MCP_SERVER_UNINSTALL_STAGE_LABELS: Record<McpServerUninstallStage, string> = {
contexts: 'agent access',
@@ -2006,9 +1997,7 @@ export async function updateMcpSecret(name: string, data: Record<string, string>
}
export type RecipeSecretOwnership =
- | { kind: 'shared' }
- | { kind: 'owner-recipe'; recipeName: string }
- | { kind: 'unlabeled' }
+ { kind: 'shared' } | { kind: 'owner-recipe'; recipeName: string } | { kind: 'unlabeled' }
export type RecipeSecretItem = {
name: string
@@ -3015,13 +3004,7 @@ export type WorkflowRecipePhase =
| 'rollback-failed'
export type WorkflowExecutionPhase =
- | 'pending'
- | 'initializing'
- | 'running'
- | 'completed'
- | 'failed'
- | 'cancelled'
- | 'recovering'
+ 'pending' | 'initializing' | 'running' | 'completed' | 'failed' | 'cancelled' | 'recovering'
export type WorkflowRecipeStatus = {
phase?: WorkflowRecipePhase
@@ -3839,10 +3822,7 @@ export async function installRecipeFromRegistry(
// capability ceiling, and the may_deny ⇒ fail-closed rule; error bodies arrive as
// { error, reason? } (surfaced via the thrown Error's `.body`/`.code`).
export type HookCapability =
- | 'may_deny'
- | 'may_rewrite'
- | 'may_substitute_result'
- | 'may_add_context'
+ 'may_deny' | 'may_rewrite' | 'may_substitute_result' | 'may_add_context'
export type InstallHookFromRegistryRequest = {
hostRef: string
@@ -4041,8 +4021,7 @@ export async function listOrgGrants(pluginName?: string): Promise<{ grants: OrgG
export async function createOrgGrant(input: CreateOrgGrantInput): Promise<OrgGrant> {
const raw = (await registryCodedRequest('POST', '/api/v1/admin/registry/grants', input)) as
- | RawOrgGrant
- | undefined
+ RawOrgGrant | undefined
return normalizeOrgGrant(raw ?? {})
}
@@ -4360,12 +4339,7 @@ export type PluginWorkloadSdkQuotaCounter = {
}
export type PluginWorkloadSdkInvocationStatus =
- | 'in_progress'
- | 'complete'
- | 'failed'
- | 'provider_unavailable'
- | 'accepted'
- | 'delivered'
+ 'in_progress' | 'complete' | 'failed' | 'provider_unavailable' | 'accepted' | 'delivered'
export type PluginWorkloadSdkInvocation = {
id: string
@@ -4586,12 +4560,7 @@ export async function listOrgImages(): Promise<{ org: string; images: OrgImage[]
// registry_signing_material_unavailable.
export type RegistryConnectionState =
- | 'disconnected'
- | 'pending'
- | 'connecting'
- | 'approved'
- | 'rejected'
- | 'connected'
+ 'disconnected' | 'pending' | 'connecting' | 'approved' | 'rejected' | 'connected'
export type RegistryRecoveryError =
| 'already_claimed'
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 0a9d88d39..8fea81289 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.744",
+ "version": "0.1.745",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.744",
+ "version": "0.1.745",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/frontend-components": "file:../packages/frontend-components",
diff --git a/control-ui/package.json b/control-ui/package.json
index 3437fedb6..bc2c54b6a 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.744",
+ "version": "0.1.745",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",
diff --git a/desktop-app/src/appService.ts b/desktop-app/src/appService.ts
index 78089d7ba..a3b95fb14 100644
--- a/desktop-app/src/appService.ts
+++ b/desktop-app/src/appService.ts
@@ -2349,8 +2349,7 @@ export class AppService {
return ++this.sessionGeneration
})
let setupRequest:
- | ReturnType<MemberRegistrationServiceClient['completeDesktopSetup']>
- | undefined
+ ReturnType<MemberRegistrationServiceClient['completeDesktopSetup']> | undefined
await this.withNativeAuthEnvironmentCommit(async () => {
this.assertSessionGeneration(setupGeneration)
setupRequest = this.memberRegistrationServiceClient.completeDesktopSetup(
diff --git a/desktop-app/src/gfs/uriHandler.ts b/desktop-app/src/gfs/uriHandler.ts
index cc8572252..9a5ff1ea9 100644
--- a/desktop-app/src/gfs/uriHandler.ts
+++ b/desktop-app/src/gfs/uriHandler.ts
@@ -76,8 +76,7 @@ export interface ResolvedGfsResource {
}
type GfsEnvelope<T> =
- | { ok: true; data: T }
- | { ok: false; error: { code: string; message: string } }
+ { ok: true; data: T } | { ok: false; error: { code: string; message: string } }
/** Inject the API transport so the client is testable without a real backend. */
export interface GfsTransport {
diff --git a/desktop-app/test/e2e-playwright/chat-open-ab.spec.ts b/desktop-app/test/e2e-playwright/chat-open-ab.spec.ts
index 669ab9e2a..974624aef 100644
--- a/desktop-app/test/e2e-playwright/chat-open-ab.spec.ts
+++ b/desktop-app/test/e2e-playwright/chat-open-ab.spec.ts
@@ -260,8 +260,7 @@ async function relaunchPaint(
}>
>((resolve, reject) => {
const navigation = performance.getEntriesByType('navigation')[0] as
- | PerformanceNavigationTiming
- | undefined
+ PerformanceNavigationTiming | undefined
if (!navigation) throw new Error('Window navigation timing is unavailable.')
const installed = performance.now()
const observed = new Map<string, { at: number; initial: boolean; beforeClick: boolean }>()
diff --git a/desktop-app/ui/src/components/agents/__tests__/ComposerPanel.test.tsx b/desktop-app/ui/src/components/agents/__tests__/ComposerPanel.test.tsx
index 4a305b018..79db8e7bd 100644
--- a/desktop-app/ui/src/components/agents/__tests__/ComposerPanel.test.tsx
+++ b/desktop-app/ui/src/components/agents/__tests__/ComposerPanel.test.tsx
@@ -375,12 +375,10 @@ describe('ComposerPanel reference submenu portaling', () => {
it('keeps the menu mounted through a mousedown on a portaled submenu item so its click fires', async () => {
// A clickable plugin so the submenu holds a real menuitem, not an empty state.
- window.clerum.workflows.list = vi.fn(
- async (): Promise<WorkflowRecipeListResult> => ({
- items: [{ metadata: { namespace: 'ns', name: 'plug-a' } }],
- count: 1,
- })
- )
+ window.clerum.workflows.list = vi.fn(async (): Promise<WorkflowRecipeListResult> => ({
+ items: [{ metadata: { namespace: 'ns', name: 'plug-a' } }],
+ count: 1,
+ }))
render(<ComposerPanel inline={false} />)
fireEvent.click(screen.getByRole('button', { name: 'Add context' }))
diff --git a/desktop-app/ui/src/hooks/domain/useAgentChatController.ts b/desktop-app/ui/src/hooks/domain/useAgentChatController.ts
index 143fe7ce7..e7d93ef56 100644
--- a/desktop-app/ui/src/hooks/domain/useAgentChatController.ts
+++ b/desktop-app/ui/src/hooks/domain/useAgentChatController.ts
@@ -3752,8 +3752,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 } | undefined
// Issue #654: a synchronous failure can arrive as `{error: …}` OR as
// `{success: false}` without an error object. Both are failures — HTTP
// 200 or a missing `success` boolean never imply success.
diff --git a/desktop-app/ui/src/uiTypes.ts b/desktop-app/ui/src/uiTypes.ts
index b9a3b4ca4..6ca202a8d 100644
--- a/desktop-app/ui/src/uiTypes.ts
+++ b/desktop-app/ui/src/uiTypes.ts
@@ -23,9 +23,7 @@ export type ThemeMode = 'dark' | 'light'
export type AgentWorkspaceRoute = AgentWorkspaceRouteValue
export type AgentChatRole = 'user' | 'assistant' | 'system'
export type ChatNotificationPreference =
- | 'always'
- | 'when_app_focused_away_from_chat'
- | 'when_app_unfocused'
+ 'always' | 'when_app_focused_away_from_chat' | 'when_app_unfocused'
export type DesktopNotificationPermission = NotificationPermission | 'unsupported'
export type NotificationSettings = {
@@ -86,12 +84,7 @@ export type AgentChatMessage = {
}
export type AgentActivityStateTone =
- | 'waiting'
- | 'streaming'
- | 'reconnecting'
- | 'completed'
- | 'error'
- | 'no_activity'
+ 'waiting' | 'streaming' | 'reconnecting' | 'completed' | 'error' | 'no_activity'
export type AgentMessageActivity = {
status: AgentActivityStateTone
@@ -116,10 +109,7 @@ export type ToastMessageAction = {
}
export type AppNotificationKind =
- | 'assistant_reply'
- | 'approval_required'
- | 'workflow_completed'
- | 'sdk_notification'
+ 'assistant_reply' | 'approval_required' | 'workflow_completed' | 'sdk_notification'
export type SdkNotificationTarget = {
deliveryId: string
@@ -318,8 +308,7 @@ export type ReadyComposerFileAttachment = Extract<ComposerFileAttachment, { stat
/** The outcome of reading a picked document: ready to send, or the reason it cannot be. */
export type ComposerFileReadResult =
- | ReadyComposerFileAttachment
- | (ComposerFileAttachmentBase & { status: 'failed'; error: string })
+ ReadyComposerFileAttachment | (ComposerFileAttachmentBase & { status: 'failed'; error: string })
/**
* Why a picked document was not attached (#678). Shown as a notice until the
diff --git a/external-rest-api/package-lock.json b/external-rest-api/package-lock.json
index 01e66f3e1..b761f7c38 100644
--- a/external-rest-api/package-lock.json
+++ b/external-rest-api/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-external-rest-api",
- "version": "0.1.136",
+ "version": "0.1.137",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-external-rest-api",
- "version": "0.1.136",
+ "version": "0.1.137",
"dependencies": {
"@clerum/jwt-key-policy": "file:../packages/jwt-key-policy",
"cors": "^2.8.5",
diff --git a/external-rest-api/package.json b/external-rest-api/package.json
index 43a2d4544..8089ef1e4 100644
--- a/external-rest-api/package.json
+++ b/external-rest-api/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-external-rest-api",
- "version": "0.1.136",
+ "version": "0.1.137",
"description": "External REST API for profile, team management, and RPC token brokerage",
"main": "dist/main.js",
"engines": {
diff --git a/external-rest-api/src/releaseManifest.ts b/external-rest-api/src/releaseManifest.ts
index 4b6d9a401..2bb5b6496 100644
--- a/external-rest-api/src/releaseManifest.ts
+++ b/external-rest-api/src/releaseManifest.ts
@@ -8,7 +8,7 @@ export type ReleaseManifest = {
export const releaseManifest: ReleaseManifest = {
releaseId: 'v0.11.0',
- externalRestApiVersion: '0.1.136',
+ externalRestApiVersion: '0.1.137',
rpcProxyVersion: '0.1.127',
desktopVersion: '0.11.0',
minimumDesktopVersion: '0.1.252',
diff --git a/external-rest-api/src/services/invitationPasswordService.ts b/external-rest-api/src/services/invitationPasswordService.ts
index 717c1a003..73987faf9 100644
--- a/external-rest-api/src/services/invitationPasswordService.ts
+++ b/external-rest-api/src/services/invitationPasswordService.ts
@@ -13,12 +13,7 @@ type AuthContext = {
}
type ResetPasswordDomainError =
- | 'not_found'
- | 'forbidden'
- | 'not_pending'
- | 'expired'
- | 'invalid_invitation'
- | 'invalid_password'
+ 'not_found' | 'forbidden' | 'not_pending' | 'expired' | 'invalid_invitation' | 'invalid_password'
function invitationPasswordDomainError(
error: ControlApiError
@@ -82,12 +77,7 @@ export async function setupInvitationPassword(
password: string
): Promise<{
error?:
- | 'not_found'
- | 'forbidden'
- | 'not_accepted'
- | 'not_pending'
- | 'expired'
- | 'invalid_password'
+ 'not_found' | 'forbidden' | 'not_accepted' | 'not_pending' | 'expired' | 'invalid_password'
data?: InvitationPreview & { passwordUpdated: boolean }
}> {
try {
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.json
index ce305b997..c36707a19 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.404",
+ "version": "0.1.405",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-host-context-controller",
- "version": "0.1.404",
+ "version": "0.1.405",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@clerum/codex-catalog-projection": "file:../packages/codex-catalog-projection",
diff --git a/host-context-controller/package.json b/host-context-controller/package.json
index bdfe1b9f0..7aa824d76 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.404",
+ "version": "0.1.405",
"description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API",
"main": "dist/main.js",
"engines": {
diff --git a/host-context-controller/src/config.ts b/host-context-controller/src/config.ts
index 696678ac4..16812ebfd 100644
--- a/host-context-controller/src/config.ts
+++ b/host-context-controller/src/config.ts
@@ -693,18 +693,11 @@ export const config: Config = {
'us-central1-docker.pkg.dev/your-gcp-project/clerum/mcp-host:0.6.0'
)!,
hostImagePullPolicy: getEnv('CONTEXT_MAPPER_HOST_IMAGE_PULL_POLICY', 'Always') as
- | 'Always'
- | 'IfNotPresent'
- | 'Never',
+ 'Always' | 'IfNotPresent' | 'Never',
statelessImagePullPolicy: getEnv('CONTEXT_MAPPER_STATELESS_IMAGE_PULL_POLICY', '') as
- | ''
- | 'Always'
- | 'IfNotPresent'
- | 'Never',
+ '' | 'Always' | 'IfNotPresent' | 'Never',
mcpServerImagePullPolicy: getEnv('CONTEXT_MAPPER_MCPSERVER_IMAGE_PULL_POLICY', 'IfNotPresent') as
- | 'Always'
- | 'IfNotPresent'
- | 'Never',
+ 'Always' | 'IfNotPresent' | 'Never',
hostImagePullSecretName: getEnv('CONTEXT_MAPPER_HOST_IMAGE_PULL_SECRET', 'clerum')!,
hostPort: getEnvInt('CONTEXT_MAPPER_HOST_PORT', 8080),
hostConfigMapName: getEnv('CONTEXT_MAPPER_HOST_CONFIGMAP_NAME', 'mcp-host-config')!,
@@ -749,9 +742,7 @@ export const config: Config = {
'us-central1-docker.pkg.dev/your-gcp-project/clerum/workspace-files-controller:0.1.0'
)!,
wfcImagePullPolicy: getEnv('CONTEXT_MAPPER_WFC_IMAGE_PULL_POLICY', 'IfNotPresent') as
- | 'Always'
- | 'IfNotPresent'
- | 'Never',
+ 'Always' | 'IfNotPresent' | 'Never',
wfcImagePullSecretName: getEnv('CONTEXT_MAPPER_WFC_IMAGE_PULL_SECRET', 'clerum')!,
wfcPort: getEnvInt('CONTEXT_MAPPER_WFC_PORT', 8086),
wfcInitImage: getEnv('CONTEXT_MAPPER_WFC_INIT_IMAGE', 'busybox:1.36')!,
diff --git a/host-context-controller/src/types.ts b/host-context-controller/src/types.ts
index 41d37fc5d..21457efff 100644
--- a/host-context-controller/src/types.ts
+++ b/host-context-controller/src/types.ts
@@ -258,11 +258,7 @@ export interface SharedFileSystemSpec {
}
export type SharedFileSystemPhase =
- | 'Provisioning'
- | 'Initializing'
- | 'Ready'
- | 'Degraded'
- | 'Failed'
+ 'Provisioning' | 'Initializing' | 'Ready' | 'Degraded' | 'Failed'
export interface SharedFileSystemCondition {
type: string
@@ -330,11 +326,7 @@ export interface GlobalFileSystemSpec {
}
export type GlobalFileSystemPhase =
- | 'Provisioning'
- | 'Initializing'
- | 'Ready'
- | 'Degraded'
- | 'Failed'
+ 'Provisioning' | 'Initializing' | 'Ready' | 'Degraded' | 'Failed'
export interface GlobalFileSystemCondition {
type: string
@@ -748,10 +740,7 @@ export interface LlmHookTarget {
export type LlmHookLifecyclePoint = 'preCall' | 'moderate' | 'postCallSuccess' | 'onError'
export type LlmHookCapability =
- | 'may_deny'
- | 'may_rewrite'
- | 'may_substitute_result'
- | 'may_add_context'
+ 'may_deny' | 'may_rewrite' | 'may_substitute_result' | 'may_add_context'
export interface LlmHookSpec {
target: LlmHookTarget
diff --git a/host-context-controller/test/hostReconciler.lifecycle.test.ts b/host-context-controller/test/hostReconciler.lifecycle.test.ts
index 18917b62e..80b150000 100644
--- a/host-context-controller/test/hostReconciler.lifecycle.test.ts
+++ b/host-context-controller/test/hostReconciler.lifecycle.test.ts
@@ -381,8 +381,7 @@ async function mintedRuntimeCredentialRecord(
coreApi.readNamespacedSecret.mockRejectedValue({ code: 404 })
await (producer as any).ensureMcpHostRuntimeTokenSecret(host)
const created = coreApi.createNamespacedSecret.mock.calls.at(-1)?.[0].body as
- | k8s.V1Secret
- | undefined
+ k8s.V1Secret | undefined
if (!created?.stringData) throw new Error('producer pass wrote no runtime credential Secret')
let record: k8s.V1Secret = {
...created,
@@ -407,8 +406,7 @@ async function mintedRuntimeCredentialRecord(
coreApi.readNamespacedSecret.mockResolvedValue(record)
await (producer as any).ensureMcpHostRuntimeTokenSecret(host)
const consumed = coreApi.replaceNamespacedSecret.mock.calls.at(-1)?.[0].body as
- | k8s.V1Secret
- | undefined
+ k8s.V1Secret | undefined
if (
consumed?.metadata?.annotations?.['clerum.io/runtime-token-bootstrap-state'] !== 'consumed'
) {
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.json
index 638f1d36f..133b81da7 100644
--- a/mcp-host/package-lock.json
+++ b/mcp-host/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.596",
+ "version": "0.1.597",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-mcp-host",
- "version": "0.1.596",
+ "version": "0.1.597",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@anthropic-ai/sdk": "^0.32.0",
diff --git a/mcp-host/package.json b/mcp-host/package.json
index 692890288..3d3e7a9c8 100644
--- a/mcp-host/package.json
+++ b/mcp-host/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.596",
+ "version": "0.1.597",
"description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude",
"main": "dist/main.js",
"engines": {
diff --git a/mcp-host/src/core/conversation/persistence/__tests__/persistQueue.test.ts b/mcp-host/src/core/conversation/persistence/__tests__/persistQueue.test.ts
index fe5ccc0c3..c2cc8d641 100644
--- a/mcp-host/src/core/conversation/persistence/__tests__/persistQueue.test.ts
+++ b/mcp-host/src/core/conversation/persistence/__tests__/persistQueue.test.ts
@@ -837,7 +837,10 @@ describe('PersistQueue progress bound: slow vs wedged, in service and at close()
const closing = q.close()
await vi.waitFor(() => expect(worker.sent.map(m => m.op.kind)).toContain('shutdown'))
await sleep(90)
- ack(worker, worker.sent.find(m => m.op.kind === 'shutdown')!)
+ ack(
+ worker,
+ worker.sent.find(m => m.op.kind === 'shutdown')!
+ )
// Liveness witness: close() resolves after the late shutdown ACK.
await expect(closing).resolves.toBeUndefined()
expect(failures).toHaveLength(0)
diff --git a/mcp-host/src/db/worker/dispatcher.ts b/mcp-host/src/db/worker/dispatcher.ts
index d870380bb..a19d4680a 100644
--- a/mcp-host/src/db/worker/dispatcher.ts
+++ b/mcp-host/src/db/worker/dispatcher.ts
@@ -428,8 +428,7 @@ export async function dispatch(op: WorkerOp, deps: DispatcherDeps): Promise<unkn
// fire-and-forget lie this change removes.
const tx = db.transaction((): ModelSelectionWriteOutcome => {
const row = s.selectSessionModelSelectionRevision.get({ id: op.sessionId }) as
- | { model_selection_revision: number; model_selections: string | null }
- | undefined
+ { model_selection_revision: number; model_selections: string | null } | undefined
if (!row) {
const err: Error & { code?: string } = new Error(
`update_session_model_selections: no session row for id=${op.sessionId}`
@@ -718,8 +717,7 @@ export async function dispatch(op: WorkerOp, deps: DispatcherDeps): Promise<unkn
}
| undefined
const pendingRow = s.selectPendingApprovalBySession.get(sessionRow.id) as
- | PendingApprovalRow
- | undefined
+ PendingApprovalRow | undefined
return {
session: sessionRow,
messages: messageRows as PersistedSessionMessagePage['messages'],
diff --git a/mcp-host/src/guardrailHookResolver.ts b/mcp-host/src/guardrailHookResolver.ts
index 9c7705214..968087ba3 100644
--- a/mcp-host/src/guardrailHookResolver.ts
+++ b/mcp-host/src/guardrailHookResolver.ts
@@ -147,8 +147,7 @@ function endpointFor(cr: LlmHookCR, ns: string): ResolvedEndpoint | null {
function isDuplicatePathLoser(cr: LlmHookCR): boolean {
const conditions = (
cr.status as
- | { conditions?: Array<{ type?: string; status?: string; reason?: string }> }
- | undefined
+ { conditions?: Array<{ type?: string; status?: string; reason?: string }> } | undefined
)?.conditions
return (
Array.isArray(conditions) &&