Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(host): mark password label test values as fixtures
Alfredo Lopez6ba29017c6d9
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.jsonindex 92694a93a..0d8680d47 100644--- a/mcp-host/package-lock.json+++ b/mcp-host/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-mcp-host",- "version": "0.1.499",+ "version": "0.1.500","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-mcp-host",- "version": "0.1.499",+ "version": "0.1.500","license": "SEE LICENSE IN LICENSE","dependencies": {"@anthropic-ai/sdk": "^0.32.0",diff --git a/mcp-host/package.json b/mcp-host/package.jsonindex 6c77eba38..07d66f086 100644--- a/mcp-host/package.json+++ b/mcp-host/package.json@@ -1,6 +1,6 @@{"name": "clerum-mcp-host",- "version": "0.1.499",+ "version": "0.1.500","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/safety/__tests__/safety.test.ts b/mcp-host/src/core/safety/__tests__/safety.test.tsindex a86ca6bd6..a49b50cd0 100644--- a/mcp-host/src/core/safety/__tests__/safety.test.ts+++ b/mcp-host/src/core/safety/__tests__/safety.test.ts@@ -576,8 +576,8 @@ describe('BasicSafety', () => {})it.each([- ['a lowercase label', 'password=abc=pwd=defghijk tail'],- ['an uppercase label', 'PASSWORD=abc=PWD=defghijk tail'],+ ['a lowercase label', 'password=abc=pwd=fixturevalue tail'],+ ['an uppercase label', 'PASSWORD=abc=PWD=fixturevalue tail'],])('redacts the whole value when the part before %s is short', (_label, text) => {const result = safety.sanitizeOutput('shell_exec', text)expect(result.content).toBe('[REDACTED] tail')