Migrate maintained PromptKit definitions and fixtures

This commit is contained in:
2026-11-18 19:19:24 +00:00
parent f858d57322
commit 27db6b6f47
22 changed files with 453 additions and 470 deletions

View File

@@ -107,19 +107,18 @@ func TestCollectorReceivesRealEngineTerminalEvent(t *testing.T) {
promptDir := t.TempDir()
profileDir := t.TempDir()
if err := os.WriteFile(filepath.Join(promptDir, "prompt.yaml"), []byte(`prompts:
p:
"1":
default_profile: local
messages:
- role: user
content: hi
output:
format: text
validation_mode: none
- id: p
default_profile: local
messages:
- role: user
content: hi
output:
format: text
validation_mode: none
`), 0o644); err != nil {
t.Fatal(err)
}
if err := os.WriteFile(filepath.Join(profileDir, "profile.yaml"), []byte("profiles:\n local:\n endpoint: http://127.0.0.1:1/v1\n model: local-model\n"), 0o644); err != nil {
if err := os.WriteFile(filepath.Join(profileDir, "profile.yaml"), []byte("profiles:\n - id: local\n endpoint: http://127.0.0.1:1/v1\n model: local-model\n"), 0o644); err != nil {
t.Fatal(err)
}
promptInputs, err := promptkit.DirectoryInputs(promptDir)