Combines three repositories into a single workspace: - go-agent → pkg/orchestrator (Clotho), pkg/jobrunner, pkg/loop, cmd/ - go-agentic → pkg/lifecycle (allowance, sessions, plans, dispatch) - php-devops → repos.yaml, setup.sh, scripts/, .core/ Module path: forge.lthn.ai/core/agent All packages build, all tests pass. Co-Authored-By: Virgil <virgil@lethean.io>
19 lines
387 B
Go
19 lines
387 B
Go
package lifecycle
|
|
|
|
import (
|
|
"embed"
|
|
"strings"
|
|
)
|
|
|
|
//go:embed prompts/*.md
|
|
var promptsFS embed.FS
|
|
|
|
// Prompt returns the content of an embedded prompt file.
|
|
// Name should be without the .md extension (e.g., "commit").
|
|
func Prompt(name string) string {
|
|
data, err := promptsFS.ReadFile("prompts/" + name + ".md")
|
|
if err != nil {
|
|
return ""
|
|
}
|
|
return strings.TrimSpace(string(data))
|
|
}
|