Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test: mark synthetic credential fixtures so the public-boundary guard exempts them
Diego Zacarias4ada45c63d89
diff --git a/desktop-app/src/__tests__/appService.renameSession.test.ts b/desktop-app/src/__tests__/appService.renameSession.test.tsindex 45a32a5ae..c2b8cefe1 100644--- a/desktop-app/src/__tests__/appService.renameSession.test.ts+++ b/desktop-app/src/__tests__/appService.renameSession.test.ts@@ -11,7 +11,7 @@ vi.mock('../chatStoreBinding.js', () => ({function renameService() {const issueRpcTokenForHostRefs = vi.fn()- .mockResolvedValue({ token: 'rpc-token', scopes: [], hostRefs: [] })+ .mockResolvedValue({ token: 'fake-rpc-token', scopes: [], hostRefs: [] })const rpcClient = { renameSession: vi.fn() }const service = new AppService() as unknown as {issueRpcTokenForHostRefs: typeof issueRpcTokenForHostRefs@@ -38,7 +38,7 @@ describe('AppService.renameSession (spec 15 Fase B)', () => {expect(issueRpcTokenForHostRefs).toHaveBeenCalledWith(['host:session:write'], ['chatllm'])expect(issueRpcTokenForHostRefs.mock.calls[0]?.[0]).not.toContain('host:wake:write')expect(rpcClient.renameSession).toHaveBeenCalledWith(- 'rpc-token',+ 'fake-rpc-token','chatllm','chatllm','chat-1',diff --git a/external-rest-api/src/releaseManifest.ts b/external-rest-api/src/releaseManifest.tsindex e30a8db19..295c18ae0 100644--- a/external-rest-api/src/releaseManifest.ts+++ b/external-rest-api/src/releaseManifest.ts@@ -9,7 +9,7 @@ export type ReleaseManifest = {export const releaseManifest: ReleaseManifest = {releaseId: 'v0.8.0',externalRestApiVersion: '0.1.81',- rpcProxyVersion: '0.1.73',+ rpcProxyVersion: '0.1.74',desktopVersion: '0.8.0',minimumDesktopVersion: '0.1.252',}diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.jsonindex eae0e8444..b2d109755 100644--- a/mcp-host/package-lock.json+++ b/mcp-host/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-mcp-host",- "version": "0.1.321",+ "version": "0.1.322","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-mcp-host",- "version": "0.1.321",+ "version": "0.1.322","license": "SEE LICENSE IN LICENSE","dependencies": {"@anthropic-ai/sdk": "^0.32.0",diff --git a/mcp-host/package.json b/mcp-host/package.jsonindex 0d423966a..a4da7d06f 100644--- a/mcp-host/package.json+++ b/mcp-host/package.json@@ -1,6 +1,6 @@{"name": "clerum-mcp-host",- "version": "0.1.321",+ "version": "0.1.322","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/__tests__/sessionTitle.test.ts b/mcp-host/src/core/conversation/__tests__/sessionTitle.test.tsindex aacc7b6c3..027136428 100644--- a/mcp-host/src/core/conversation/__tests__/sessionTitle.test.ts+++ b/mcp-host/src/core/conversation/__tests__/sessionTitle.test.ts@@ -85,7 +85,7 @@ describe('auto-title orchestration — redact BEFORE truncate (spec 15 §5)', ()}it('redacts a secret that straddles the 60-code-point cut so it never survives into the title', () => {- const secret = 'S3cretValueThatIsQuiteLongAndSpansTheBoundary1234567890'+ const secret = 'syntheticS3cretValueThatIsQuiteLongAndSpansTheBoundary1234567890'// Position the secret so it crosses index 60 of the raw input.const prefix = 'my api key is '.padEnd(40, 'z') + ' 'const input = `${prefix}${secret} and more trailing text here`diff --git a/mcp-host/src/server/__tests__/sessionRouteHandlers.test.ts b/mcp-host/src/server/__tests__/sessionRouteHandlers.test.tsindex 6e4845dad..e71a4777d 100644--- a/mcp-host/src/server/__tests__/sessionRouteHandlers.test.ts+++ b/mcp-host/src/server/__tests__/sessionRouteHandlers.test.ts@@ -145,7 +145,7 @@ describe('createSessionRouteHandlers — handleSessionsList title projection (sp// Build handlers with the REAL BasicSafety redaction primitive (T1), matching// the main.ts wiring. Simulates a title that was materialized before the// operator marked the value secret (rotation) — the read path must still scrub it.- const secret = 'S3cretRotatedInLater1234567890'+ const secret = 'syntheticS3cretRotatedInLater1234567890'const convManager = new ConversationManager()const safety = new BasicSafety(() => [{ name: 'API_KEY', value: secret }])const { handleSessionsList } = createSessionRouteHandlers({diff --git a/rpc-proxy/package-lock.json b/rpc-proxy/package-lock.jsonindex aeb8c39d7..4f42492aa 100644--- a/rpc-proxy/package-lock.json+++ b/rpc-proxy/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-rpc-proxy",- "version": "0.1.73",+ "version": "0.1.74","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-rpc-proxy",- "version": "0.1.73",+ "version": "0.1.74","dependencies": {"cors": "^2.8.5","express": "^4.21.2",diff --git a/rpc-proxy/package.json b/rpc-proxy/package.jsonindex 7a8ab6132..63c9c0741 100644--- a/rpc-proxy/package.json+++ b/rpc-proxy/package.json@@ -1,6 +1,6 @@{"name": "clerum-rpc-proxy",- "version": "0.1.73",+ "version": "0.1.74","description": "External-facing RPC proxy for tenant-scoped MCP access","main": "dist/main.js","engines": {diff --git a/rpc-proxy/src/__tests__/session-rename-passthrough.test.ts b/rpc-proxy/src/__tests__/session-rename-passthrough.test.tsindex a0d3a15ac..7cf28b42e 100644--- a/rpc-proxy/src/__tests__/session-rename-passthrough.test.ts+++ b/rpc-proxy/src/__tests__/session-rename-passthrough.test.ts@@ -206,7 +206,7 @@ describe('PATCH /rpc/hosts/:hostRef/sessions/:agent/:chatId/name — rename pass} as unknown as Response)globalThis.fetch = fetchMock as unknown as typeof fetch- const secret = 'super-secret-title-value'+ const secret = 'synthetic-secret-title-value'await request(makeApp()).patch('/rpc/hosts/chatllm/sessions/chatllm/c1/name').set('authorization', 'Bearer user-token')