fix(template): embed official doc templates for container cwd

App images have no templates/ checkout, so GetDocTemplate fell back to a two-section stub and prelim_design lost its real contract.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
weichen
2026-09-13 19:09:48 +00:00
co-authored by Cursor
parent 2a58674299
commit e04829ee8e
4 changed files with 48 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
package templates
import "embed"
// DocTemplates holds official workflow markdown so containers without a
// checkout of templates/docs still serve the real contract, not a stub.
//
//go:embed docs/*.md
var DocTemplates embed.FS