feat(scene-generator): extract business JS files for LLM analysis

Identify and push js/ directory business logic files (mca.js, sgApi.js,
etc.) to the LLM prompt. Exclude third-party libraries. Capped at 4
fragments to stay within MAX_DEEP_PROMPT_CHARS budget.

🤖 Generated with [Qoder][https://qoder.com]
This commit is contained in:
木炎
2026-04-17 18:43:04 +08:00
parent f374334f25
commit 0fcdfb1787
2 changed files with 1247 additions and 48 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -163,6 +163,7 @@ function buildDeepAnalyzePrompt(sourceDir, dirContents) {
pushFragments(parts, "Branching fragments", context.branchingFragments, 6);
pushFragments(parts, "Response/normalization fragments", context.responseFragments, 6);
pushFragments(parts, "Export fragments", context.exportFragments, 4);
pushFragments(parts, "business JS files", context.businessJsFragments, 4);
parts.push(`
Instructions: