Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(hcc): type Service no-op fixtures for CI tsc --noEmit
Alfredo Lopezd03c8bb86b4f
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.jsonindex c7d20368b..19e383902 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.241",+ "version": "0.1.242","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-host-context-controller",- "version": "0.1.241",+ "version": "0.1.242","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 6209f2f48..c3fc2c878 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.241",+ "version": "0.1.242","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/__tests__/channelReaderServiceNoopGate.test.ts b/host-context-controller/src/__tests__/channelReaderServiceNoopGate.test.tsindex d4ddeee42..c918ae37f 100644--- a/host-context-controller/src/__tests__/channelReaderServiceNoopGate.test.ts+++ b/host-context-controller/src/__tests__/channelReaderServiceNoopGate.test.ts@@ -59,7 +59,7 @@ function asApiserverService(desired: k8s.V1Service, drift?: { port?: number }):metadata: {resourceVersion: '1783416',uid: '22222222-3333-4444-5555-666666666666',- creationTimestamp: '2026-04-01T00:00:00.000Z',+ creationTimestamp: new Date('2026-04-01T00:00:00.000Z'),generation: 1,managedFields: [{ manager: 'kube-apiserver', operation: 'Update' }],selfLink: '/api/v1/namespaces/channels/services/channel-reader-chatllm',@@ -73,8 +73,8 @@ function asApiserverService(desired: k8s.V1Service, drift?: { port?: number }):function updatedServiceLogs(log: ReturnType<typeof vi.spyOn>, needle: string): string[] {return log.mock.calls- .map(call => String(call[0]))- .filter(line => line.includes('Updated') && line.includes(needle))+ .map((call: unknown[]) => String(call[0]))+ .filter((line: string) => line.includes('Updated') && line.includes(needle))}describe('channel-reader Service no-op gate', () => {diff --git a/host-context-controller/src/__tests__/hostServiceNoopGate.test.ts b/host-context-controller/src/__tests__/hostServiceNoopGate.test.tsindex f27265950..add65fdac 100644--- a/host-context-controller/src/__tests__/hostServiceNoopGate.test.ts+++ b/host-context-controller/src/__tests__/hostServiceNoopGate.test.ts@@ -59,7 +59,7 @@ function asApiserverService(desired: k8s.V1Service, drift?: { port?: number }):metadata: {resourceVersion: '1776125',uid: '11111111-2222-3333-4444-555555555555',- creationTimestamp: '2026-04-01T00:00:00.000Z',+ creationTimestamp: new Date('2026-04-01T00:00:00.000Z'),generation: 1,managedFields: [{ manager: 'kube-apiserver', operation: 'Update' }],selfLink: '/api/v1/namespaces/mcp-host/services/chatllm',@@ -73,8 +73,8 @@ function asApiserverService(desired: k8s.V1Service, drift?: { port?: number }):function updatedServiceLogs(log: ReturnType<typeof vi.spyOn>, needle: string): string[] {return log.mock.calls- .map(call => String(call[0]))- .filter(line => line.includes('Updated') && line.includes(needle))+ .map((call: unknown[]) => String(call[0]))+ .filter((line: string) => line.includes('Updated') && line.includes(needle))}describe('Host ensureService no-op gate', () => {diff --git a/host-context-controller/src/__tests__/llmHookServiceNoopGate.test.ts b/host-context-controller/src/__tests__/llmHookServiceNoopGate.test.tsindex 5f792e9e1..8f6f7e8d3 100644--- a/host-context-controller/src/__tests__/llmHookServiceNoopGate.test.ts+++ b/host-context-controller/src/__tests__/llmHookServiceNoopGate.test.ts@@ -55,7 +55,7 @@ function asApiserverService(desired: k8s.V1Service, drift?: { port?: number }):metadata: {resourceVersion: '4',uid: '44444444-5555-6666-7777-888888888888',- creationTimestamp: '2026-04-01T00:00:00.000Z',+ creationTimestamp: new Date('2026-04-01T00:00:00.000Z'),generation: 1,managedFields: [{ manager: 'kube-apiserver', operation: 'Update' }],name: desired.metadata?.name,@@ -68,8 +68,8 @@ function asApiserverService(desired: k8s.V1Service, drift?: { port?: number }):function updatedServiceLogs(log: ReturnType<typeof vi.spyOn>, needle: string): string[] {return log.mock.calls- .map(call => String(call[0]))- .filter(line => line.includes('Updated') && line.includes(needle))+ .map((call: unknown[]) => String(call[0]))+ .filter((line: string) => line.includes('Updated') && line.includes(needle))}describe('LlmHook ensureService no-op gate', () => {diff --git a/host-context-controller/src/__tests__/mcpServerServiceNoopGate.test.ts b/host-context-controller/src/__tests__/mcpServerServiceNoopGate.test.tsindex 8152891f2..2836445c9 100644--- a/host-context-controller/src/__tests__/mcpServerServiceNoopGate.test.ts+++ b/host-context-controller/src/__tests__/mcpServerServiceNoopGate.test.ts@@ -50,7 +50,7 @@ function asApiserverService(desired: k8s.V1Service, drift?: { port?: number }):metadata: {resourceVersion: '12',uid: '33333333-4444-5555-6666-777777777777',- creationTimestamp: '2026-04-01T00:00:00.000Z',+ creationTimestamp: new Date('2026-04-01T00:00:00.000Z'),generation: 1,managedFields: [{ manager: 'kube-apiserver', operation: 'Update' }],name: desired.metadata?.name,@@ -64,8 +64,8 @@ function asApiserverService(desired: k8s.V1Service, drift?: { port?: number }):function updatedServiceLogs(log: ReturnType<typeof vi.spyOn>, needle: string): string[] {return log.mock.calls- .map(call => String(call[0]))- .filter(line => line.includes('Updated') && line.includes(needle))+ .map((call: unknown[]) => String(call[0]))+ .filter((line: string) => line.includes('Updated') && line.includes(needle))}describe('McpServer ensureService no-op gate', () => {diff --git a/host-context-controller/src/__tests__/serviceMatchesDesired.test.ts b/host-context-controller/src/__tests__/serviceMatchesDesired.test.tsindex 1be555f07..e3021efae 100644--- a/host-context-controller/src/__tests__/serviceMatchesDesired.test.ts+++ b/host-context-controller/src/__tests__/serviceMatchesDesired.test.ts@@ -46,7 +46,7 @@ describe('serviceMatchesDesired', () => {metadata: {resourceVersion: '1776125',uid: '11111111-2222-3333-4444-555555555555',- creationTimestamp: '2026-04-01T00:00:00.000Z',+ creationTimestamp: new Date('2026-04-01T00:00:00.000Z'),generation: 1,managedFields: [{ manager: 'kube-apiserver', operation: 'Update' }],selfLink: '/api/v1/namespaces/ns/services/svc',