Files
Agent-System/templates/embed.go
T
agent-bot 95e659a915
CI / go-vet (pull_request) Successful in 13s
CI / short-tests-report (pull_request) Failing after 36s
CI / backup-restore-drill (pull_request) Successful in 28s
CI / web (pull_request) Successful in 32s
feat(assets): embedded prompt and xlsx asset fallback (U10a slice 2)
- configs package embeds agents/ + shared/ prompt assets; templates package
  embeds xlsx/ (cdo_quote.xlsx)
- template.GetAgentInstructionFile: disk-first with embedded fallback for
  instructions and writing.md (dev behavior unchanged)
- quote.CalculateAndFill: embedded xlsx fallback when the on-disk template
  walk misses (single-binary deployments)
- presence test guards the embedded asset set
- verified: vet + template/quote/bizdev/squad/arch green
2026-09-29 07:17:32 +00:00

15 lines
377 B
Go

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
// XlsxAssets 内嵌运行 xlsx 资产(如 cdo_quote.xlsx);磁盘路径存在时优先磁盘。
//
//go:embed xlsx
var XlsxAssets embed.FS