solutions: Solutions Guide engine (catalog, rules, wizard state, native config, knowledge index, CLI)
New nested module yetano.dev/yetano/core/solutions: loads the catalog in assets/solutions on top of the Big Picture, evaluates questions and conditions, resolves packages/modules/capabilities, generates native configuration from typed fragments with per-value origins, and builds architecture graph, plan, lock file and handbook. Knowledge index with yetano: references, search and lint (incl. manual sections). CLI with yet's conventions (solution, task, knowledge, open), standalone as yetano-solutions. No execution, no network. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
586e76889c
commit
2481a0dd27
48 files changed
+10304
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package engine
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestZZDump(t *testing.T) {
|
||||
if os.Getenv("DUMP") == "" {
|
||||
t.Skip()
|
||||
}
|
||||
c := assetsCatalog(t)
|
||||
e := New(c)
|
||||
x := c.Examples[os.Getenv("DUMP")]
|
||||
in := NewInstance(x.Meta.ID, c.Lookup(x.Spec.Solution), x.Spec.Mode)
|
||||
in.Spec.Parameters = x.Spec.Parameters
|
||||
st, _ := e.Evaluate(in, nil)
|
||||
for _, f := range st.Files {
|
||||
t.Logf("=== %s\n%s", f.Path, f.Content)
|
||||
}
|
||||
for _, s := range st.Steps {
|
||||
t.Logf("step %s [%s] %s", s.Phase, s.Run, s.Title)
|
||||
}
|
||||
for _, p := range st.Packages {
|
||||
t.Logf("pkg %s %s %v", p.ID, p.Status, p.Reasons)
|
||||
}
|
||||
t.Log(GraphText(st.Graph))
|
||||
}
|
||||
Reference in new issue
Block a user