Why: Generated files kept Word's default theme, US Letter pages, hand-typed bullets and empty sections. Recipes only showed library calls, the prompt had no craft standard, and seeded skills could not be upgraded once written. Evidence: go test ./... passed. The house-style suite covers three themes across docx, pptx and xlsx, and rejects a document that repeats the diagnosed layout failures. lint on the sample minutes exits 1. Impact: Every run gets a resident quality standard. Office files use house-style (switchable themes, templates, imitation) and must pass lint. Skill seeding upgrades untouched builtins and keeps user edits. Uploads land in inputs/, and the default style is a setting. Refs: feature/agent-professional-deliverables Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
785 B
Go
26 lines
785 B
Go
package settings
|
|
|
|
import "testing"
|
|
|
|
func TestDeliverableSettingsPresent(t *testing.T) {
|
|
defaults := SystemDefaults()
|
|
block, ok := defaults["deliverables"].(map[string]any)
|
|
if !ok || block["style"] != "modern" || block["accentColor"] != "" || block["templateArtifactId"] != "" {
|
|
t.Fatalf("defaults = %#v", defaults["deliverables"])
|
|
}
|
|
var style, accent, template bool
|
|
for _, desc := range Schema() {
|
|
switch desc.Key {
|
|
case "deliverables.style":
|
|
style = len(desc.Options) == 3 && desc.Options[0] == "modern"
|
|
case "deliverables.accentColor":
|
|
accent = true
|
|
case "deliverables.templateArtifactId":
|
|
template = true
|
|
}
|
|
}
|
|
if !style || !accent || !template {
|
|
t.Fatalf("schema missing deliverable keys: style=%v accent=%v template=%v", style, accent, template)
|
|
}
|
|
}
|