Complete the core operation execution cutover

This commit is contained in:
2026-11-25 16:17:59 +00:00
parent b6a3638d70
commit 7d96c69a32
73 changed files with 891 additions and 1065 deletions

View File

@@ -227,8 +227,8 @@ type configExtractor struct{ key string }
func (extractor configExtractor) Key() string { return extractor.key }
func (configExtractor) ReferenceSlots() []contracts.ReferenceSlot { return nil }
func (configExtractor) Extract(context.Context, contracts.TypedExtractionRequest[dnd.SpellList]) (contracts.TypedExtractionResult[dnd.SpellList], error) {
return contracts.TypedExtractionResult[dnd.SpellList]{}, nil
func (configExtractor) PrepareExtraction(context.Context, contracts.ExtractionInput) (contracts.PreparedOperation[dnd.SpellList], error) {
return preparedValue(dnd.SpellList{}), nil
}
func appendSpellLists(values []dnd.SpellList) (dnd.SpellList, error) {
@@ -259,10 +259,8 @@ func (dndSpellsChunker) ReferenceSlots() []contracts.ReferenceSlot {
return nil
}
func (dndSpellsChunker) Plan(ctx context.Context, req contracts.ChunkRequest) (contracts.ChunkPlanResult, error) {
return contracts.ChunkPlanResult{
Plan: source.ChunkPlan{SourceDigest: req.Source.Digest, Ranges: []source.ChunkRange{{StartUnitID: req.Source.Units[0].ID, EndUnitID: req.Source.Units[len(req.Source.Units)-1].ID}}},
}, nil
func (dndSpellsChunker) PrepareChunk(ctx context.Context, req contracts.ChunkInput) (contracts.PreparedOperation[source.ChunkPlan], error) {
return preparedValue(source.ChunkPlan{SourceDigest: req.Source.Digest, Ranges: []source.ChunkRange{{StartUnitID: req.Source.Units[0].ID, EndUnitID: req.Source.Units[len(req.Source.Units)-1].ID}}}), nil
}
func withoutCapability(capabilities []string, capability string) []string {