fix: resolve gateway build failures - type cast + exclude archive/
Build & Deploy / build-and-push (backend) (push) Successful in 25s
Build & Deploy / build-and-push (proxy) (push) Successful in 3m46s
Build & Deploy / build-and-push (discord-gateway) (push) Failing after 4m42s

- Cast llmResult through unknown to handle type mismatch between
  shared AnalysisResult and layer-specific local type
- Exclude src/**/archive/** from tsconfig to prevent dead code errors

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Developer
2026-07-28 15:35:43 +07:00
co-authored by Claude Opus 4.8
parent b8f358861e
commit 540a71f983
2 changed files with 2 additions and 2 deletions
@@ -230,7 +230,7 @@ async function runTwoPassPipeline(
return buildFallbackResult(message.id, "No LLM result returned");
}
const llmResult = moderationResult.results[0];
const llmResult = moderationResult.results[0] as unknown as AnalysisResult;
return mergeLayers(layer1Result, llmResult);
} catch (error) {
const errorMsg = error instanceof Error ? error.message : String(error);
+1 -1
View File
@@ -20,5 +20,5 @@
}
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts"]
"exclude": ["node_modules", "dist", "**/*.test.ts", "src/**/archive/**"]
}