Skip to content

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

TypeScript

fix(ci): keep HCC and mcp-host test files typecheckable under commonjs

Alfredo Lopezc6eeabb8dfa0
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.json
index 228cc22ad..98f09c301 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.234",
+ "version": "0.1.235",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-host-context-controller",
- "version": "0.1.234",
+ "version": "0.1.235",
"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.json
index bc1e9d0e4..7fc86e36c 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.234",
+ "version": "0.1.235",
"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/codexExecutionProjection.test.ts b/host-context-controller/src/codexExecutionProjection.test.ts
index 039201b9b..949b403de 100644
--- a/host-context-controller/src/codexExecutionProjection.test.ts
+++ b/host-context-controller/src/codexExecutionProjection.test.ts
@@ -1,7 +1,6 @@
import { describe, expect, it } from 'vitest'
import { readFileSync } from 'node:fs'
-import { dirname, join } from 'node:path'
-import { fileURLToPath } from 'node:url'
+import { join } from 'node:path'
import {
CODEX_EXECUTE_SCOPE,
type CodexCatalogSnapshot,
@@ -10,7 +9,7 @@ import {
} from './codexExecutionProjection'
const fixturePath = join(
- dirname(fileURLToPath(import.meta.url)),
+ __dirname,
'../../tests/e2e/fixtures/codex-subscription/codex-target-eligibility.json'
)
diff --git a/host-context-controller/src/networkPolicyReconciler.test.ts b/host-context-controller/src/networkPolicyReconciler.test.ts
index 36dc66ade..b66ee53b6 100644
--- a/host-context-controller/src/networkPolicyReconciler.test.ts
+++ b/host-context-controller/src/networkPolicyReconciler.test.ts
@@ -170,7 +170,7 @@ function makeReconciler(
describe('NetworkPolicyReconciler Codex boundary', () => {
it('does not derive Codex scope or proxy egress - that belongs to HostReconciler', () => {
- const source = readFileSync(new URL('./networkPolicyReconciler.ts', import.meta.url), 'utf8')
+ const source = readFileSync(join(__dirname, 'networkPolicyReconciler.ts'), 'utf8')
expect(source).not.toContain('llm:codex:execute')
expect(source).not.toContain('codex-llm-proxy')
expect(source).not.toContain('codex-proxy-egress')
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.json
index 99a4a2c9f..980716b1a 100644
--- a/mcp-host/package-lock.json
+++ b/mcp-host/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.281",
+ "version": "0.1.282",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-mcp-host",
- "version": "0.1.281",
+ "version": "0.1.282",
"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 e5afc4fcd..dc686fc87 100644
--- a/mcp-host/package.json
+++ b/mcp-host/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.281",
+ "version": "0.1.282",
"description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude",
"main": "dist/main.js",
"engines": {
diff --git a/mcp-host/src/llm/failover/__tests__/engine.test.ts b/mcp-host/src/llm/failover/__tests__/engine.test.ts
index bb72466c0..cb88b6d45 100644
--- a/mcp-host/src/llm/failover/__tests__/engine.test.ts
+++ b/mcp-host/src/llm/failover/__tests__/engine.test.ts
@@ -1,6 +1,6 @@
import { type Mock, beforeEach, describe, expect, it, vi } from 'vitest'
import { LlmError, LlmErrorCode } from '../../../core/errors'
-import { FailoverEngine } from '../engine'
+import { type ClassifiedLike, FailoverEngine } from '../engine'
import type { FailoverSwitchEvent, LlmPolicy, ModelPair } from '../types'
const PRIMARY: ModelPair = { provider: 'claude', model: 'claude-sonnet-4-6' }
@@ -349,9 +349,13 @@ describe('FailoverEngine', () => {
undefined,
'budget_denied'
)
- const classifyWithCode = (caught: unknown) => {
+ const classifyWithCode = (caught: unknown): ClassifiedLike | null => {
if (caught instanceof LlmError) {
- return { code: caught.code, retryable: caught.retryable, providerCode: caught.providerCode }
+ return {
+ code: caught.code as LlmErrorCode,
+ retryable: caught.retryable,
+ providerCode: caught.providerCode,
+ }
}
return classify(caught)
}