Improve workflow UI, retain stage diffs, and add portable pipeline transfers

Make OpenCode authoring responsive and expand the managed skill references. Add conflict-aware import/export, real-provider reference workflows, and tracked V2 generation for reliable budget accounting.
This commit is contained in:
2026-10-10 20:55:42 +01:00
parent a66d540125
commit c42a19f7d3
81 changed files with 5593 additions and 539 deletions
+10 -2
View File
@@ -7,11 +7,12 @@ import (
"os"
"os/exec"
"path/filepath"
"strings"
"git.a-wan.net/alan/pipelines/internal/draft"
)
//go:embed skill/SKILL.md skill/references/format.md
//go:embed skill/SKILL.md skill/references/*.md
var content embed.FS
// Command launches the normal CLI directly. Skill loading and questions belong
@@ -35,8 +36,15 @@ func Command(ctx context.Context, executable string, d draft.Draft, request, cli
func Prompt(d draft.Draft, request, command string) string {
prompt := fmt.Sprintf("@pipelines\nDraft context: %q\nCLI: %s", d.Path+".json", command)
if request != "" {
if strings.TrimSpace(request) != "" {
prompt += "\nRequest: " + request
prompt += "\nFirst response: briefly acknowledge the request, then read only the draft and relevant authoring references."
} else {
task := "What should this pipeline do?"
if !d.CreateOnly && d.BaseVersion > 0 {
task = "What would you like to change in this pipeline?"
}
prompt += "\nFirst response: ask the user " + fmt.Sprintf("%q", task) + " before reading files or running commands. Load the skill if needed; do not investigate before asking."
}
return prompt
}