2026-07-28 04:18:09 +00:00
|
|
|
package promptdef
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
2026-09-30 04:18:27 +00:00
|
|
|
"errors"
|
2026-07-28 04:18:09 +00:00
|
|
|
|
2026-11-02 14:38:00 +00:00
|
|
|
"go.maximumdirect.net/promptkit/internal/domain"
|
2026-11-05 19:55:10 +00:00
|
|
|
"go.maximumdirect.net/promptkit/internal/prompt"
|
2026-07-28 04:18:09 +00:00
|
|
|
)
|
|
|
|
|
|
2026-09-30 04:18:27 +00:00
|
|
|
// ErrPromptDefinitionNotFound identifies an absent captured prompt definition.
|
|
|
|
|
var ErrPromptDefinitionNotFound = errors.New("prompt definition not found")
|
|
|
|
|
|
|
|
|
|
// Repository selects prompt definitions from a captured index.
|
2026-07-28 04:18:09 +00:00
|
|
|
type Repository interface {
|
2026-11-05 19:55:10 +00:00
|
|
|
GetPromptSnapshot(ctx context.Context, id string) (*domain.PromptDefinition, string, error)
|
2026-11-06 15:18:57 +00:00
|
|
|
// GetPromptInspection supplies lightweight requirement-selection metadata.
|
2026-11-05 19:55:10 +00:00
|
|
|
GetPromptInspection(ctx context.Context, id string) (*domain.PromptInspection, error)
|
|
|
|
|
GetRequirementSnapshot(id string) (prompt.RequirementSnapshot, bool)
|
2026-07-28 04:18:09 +00:00
|
|
|
}
|