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
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:
co-authored by
Claude Opus 4.8
parent
b8f358861e
commit
540a71f983
@@ -230,7 +230,7 @@ async function runTwoPassPipeline(
|
|||||||
return buildFallbackResult(message.id, "No LLM result returned");
|
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);
|
return mergeLayers(layer1Result, llmResult);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorMsg = error instanceof Error ? error.message : String(error);
|
const errorMsg = error instanceof Error ? error.message : String(error);
|
||||||
|
|||||||
@@ -20,5 +20,5 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["src/**/*"],
|
"include": ["src/**/*"],
|
||||||
"exclude": ["node_modules", "dist", "**/*.test.ts"]
|
"exclude": ["node_modules", "dist", "**/*.test.ts", "src/**/archive/**"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user