Remove redundant prepared input APIs
All checks were successful
ci/woodpecker/push/verify Pipeline was successful
ci/woodpecker/tag/release Pipeline was successful

This commit is contained in:
2026-08-29 16:19:22 +00:00
parent abfbe42d61
commit 5cec84a4a7
2 changed files with 1 additions and 18 deletions

View File

@@ -53,7 +53,6 @@ type Source struct {
// ScriptoriumInputSourceDescriptor describes one validated Scriptorium input source.
type ScriptoriumInputSourceDescriptor struct {
Source Source
PreparedInput *PreparedInputSourceDescriptor
PreviousSession *PreviousSessionSourceDescriptor
}
@@ -170,8 +169,7 @@ func DescribeScriptoriumInputSource(source string) (ScriptoriumInputSourceDescri
}
if prepared, ok := DescribePreparedInputSource(trimmed); ok {
return ScriptoriumInputSourceDescriptor{
Source: Source{ID: prepared.SourceID, Kind: SourceKindStableInput},
PreparedInput: &prepared,
Source: Source{ID: prepared.SourceID, Kind: SourceKindStableInput},
}, nil
}
if strings.HasPrefix(trimmed, "narratio.previous_session.artifact") {
@@ -196,13 +194,6 @@ func DescribeScriptoriumInputSource(source string) (ScriptoriumInputSourceDescri
return ScriptoriumInputSourceDescriptor{Source: classified}, nil
}
// IsStableInputSource reports whether source is a prepared stable input source
// available only to Scriptorium input resolution.
func IsStableInputSource(source string) bool {
_, ok := DescribePreparedInputSource(source)
return ok
}
var preparedInputSources = map[string]PreparedInputSourceDescriptor{
SourceInputPlayers: {
SourceID: SourceInputPlayers,