Commit Graph

8 Commits

Author SHA1 Message Date
木炎
0fcdfb1787 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]
2026-04-17 18:43:04 +08:00
木炎
f374334f25 feat(llm-client): add mandatory field constraints to DEEP_SYSTEM_PROMPT
Explicitly require LLM to fill contentType, responsePath, and
requestTemplate with detected values or defaults. Reduces empty-field
rate from ~60% to target ~10%.

🤖 Generated with [Qoder][https://qoder.com]
2026-04-17 18:41:03 +08:00
木炎
e6bab40e5b feat(llm-client): auto-wrap single-mode scenes into modes array
When the LLM returns an empty modes array but has apiEndpoints,
automatically create a default mode with the first endpoint,
requestTemplate, responsePath, and normalizeRules. This ensures all
scenes compile through the multi-mode path.

🤖 Generated with [Qoder][https://qoder.com]
2026-04-17 18:38:51 +08:00
木炎
a325add167 fix(llm): add defaults for multi-mode fields in analyzeSceneDeep
🤖 Generated with [Qoder][https://qoder.com]
2026-04-17 13:07:10 +08:00
木炎
d95b8aaf26 feat(llm): enhance DEEP_SYSTEM_PROMPT for multi-mode detection
🤖 Generated with [Qoder][https://qoder.com]
2026-04-17 13:02:36 +08:00
木炎
74c42af717 fix: handle apiEndpoints/columnDefs objects in preview, add string type checks 2026-04-17 10:55:58 +08:00
木炎
517ac6bf39 feat(llm-client): add deep extraction with apiEndpoints, staticParams, columnDefs
Add analyzeSceneDeep() function that extracts complete SceneInfo from
index.html content including API endpoints, static parameters, column
definitions, and business logic. Also adds http module import to support
non-HTTPS LLM endpoints.

🤖 Generated with [Qoder][https://qoder.com]
2026-04-17 10:13:29 +08:00
木炎
294426ced9 feat: add llm-client.js with prompt builder and JSON extractor
🤖 Generated with [Qoder][https://qoder.com]
2026-04-16 22:13:11 +08:00