526c19fc21
- Persist chat stars in the operator-session registry (chat_star) so every browser/device shows the same Starred group; migrate old local stars once. - Add a compact pipeline graph shape to list responses and draw a lightweight list miniature; replace the cryptic id/version line with the stage count. - Surface OpenCode form questions as a chat card (chat_answer), replay a pending form to late subscribers, and notify for background questions. - Make the mobile dock's Search cell equal to every destination, keep the tab row visible with 100svh, and let Source use the full pane height. - Let a fresh sign-in auto-connect to its own origin; use a Lax session cookie with Expires so Remember me survives app/link launches. - Keep shipped starters and the skill agnostic: no repository paths, project areas or personal device commands; add Diagnose/Fix and Research starters. - Refresh the installed skill and document the new browser conventions.
32 lines
1.3 KiB
Go
32 lines
1.3 KiB
Go
package examples
|
|
|
|
import (
|
|
"embed"
|
|
"git.a-wan.net/alan/pipelines/internal/protocol"
|
|
"strings"
|
|
)
|
|
|
|
// Only checked-in Markdown examples are shipped. No runtime databases or user drafts.
|
|
//
|
|
//go:embed *.md
|
|
var sources embed.FS
|
|
|
|
var starters = []protocol.Template{
|
|
{Key: "task", Name: "Complete a task", Description: "Complete a task in your repository, then commit the change locally."},
|
|
{Key: "three-stage", Name: "Plan, implement, review", Description: "Plan a change, implement it, review and verify it, then commit it locally. Any language or file type."},
|
|
{Key: "review", Name: "Review a repository", Description: "One read-only stage to review repository content and report findings."},
|
|
{Key: "research", Name: "Research a topic", Description: "Research a question from primary sources, then write a sourced report. Requires web search support."},
|
|
{Key: "debug", Name: "Diagnose and fix a failure", Description: "Reproduce a failure, find its cause, fix it, verify the fix, then commit locally."},
|
|
}
|
|
|
|
func Catalog() []protocol.Template {
|
|
result := make([]protocol.Template, 0, len(starters))
|
|
for _, item := range starters {
|
|
data, _ := sources.ReadFile(item.Key + ".md")
|
|
item.Source = string(data)
|
|
item.Scheduled = strings.Contains(item.Source, "```schedule")
|
|
result = append(result, item)
|
|
}
|
|
return result
|
|
}
|