- Add pkg/framework/core with GUI-agnostic DI/service framework (extracted from core-gui, Wails dependencies removed) - Add pkg/agentic/prompts with embedded commit instructions - Improve dev push: detect uncommitted changes, offer Claude commit - Add claudeEditCommit for cases needing Write/Edit permissions - Add i18n keys for diverged branches and uncommitted changes - Fix infinite loop when only untracked files remain after commit Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
385 B
Go
19 lines
385 B
Go
package agentic
|
|
|
|
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))
|
|
}
|