Move location registry modules to canonical namespace

This commit is contained in:
2026-08-05 19:13:37 +00:00
parent c006b163d5
commit e8965ebbbb
58 changed files with 172 additions and 144 deletions

View File

@@ -10,7 +10,7 @@ import (
"gitea.maximumdirect.net/eric/notarius/internal/framework/contracts"
"gitea.maximumdirect.net/eric/notarius/internal/framework/pipeline"
"gitea.maximumdirect.net/eric/notarius/internal/modules/dnd"
locationcodec "gitea.maximumdirect.net/eric/notarius/internal/modules/dnd/codec/locations"
locationcodec "gitea.maximumdirect.net/eric/notarius/internal/modules/dnd/codec/locationregistry"
"gitea.maximumdirect.net/eric/notarius/internal/modules/dnd/locations/identity"
"gitea.maximumdirect.net/eric/notarius/internal/modules/dnd/shared/diagnostics"
)

View File

@@ -1,5 +1,5 @@
// Package locations normalizes merged D&D location candidates conservatively.
package locations
// Package locationregistry normalizes merged D&D location-registry candidates conservatively.
package locationregistry
import (
"context"
@@ -21,9 +21,9 @@ import (
)
const (
Key = "dnd/locations"
PromptID = "dnd.locations.normalize"
normalizationPolicy = "dnd.locations.normalize.v1"
Key = "dnd/location-registry"
PromptID = "dnd.location_registry.normalize"
normalizationPolicy = "dnd.location_registry.normalize.v1"
semanticContextPolicy = "dnd.entity_reconcile.context.v1"
semanticContextRadius = 2
NormalizationPolicy = normalizationPolicy
@@ -339,5 +339,5 @@ func DecodeOptions(options map[string]any) (Options, error) {
return Options{}, nil
}
func normalizerErrorf(format string, args ...any) error {
return fmt.Errorf("dnd locations normalizer: "+format, args...)
return fmt.Errorf("dnd location registry normalizer: "+format, args...)
}

View File

@@ -1,4 +1,4 @@
package locations
package locationregistry
import (
"context"

View File

@@ -1,4 +1,4 @@
package locations
package locationregistry
import (
"fmt"
@@ -24,7 +24,7 @@ var promptAssetManifest = shared.PromptAssetManifest{
}
func moduleAssetFS() (fs.FS, error) {
assets, err := fs.Sub(rootassets.FS(), "dnd/locations/normalize")
assets, err := fs.Sub(rootassets.FS(), "dnd/location-registry/normalize")
if err != nil {
return nil, fmt.Errorf("scope location normalization assets: %w", err)
}

View File

@@ -1,4 +1,4 @@
package locations
package locationregistry
import (
"context"

View File

@@ -1,4 +1,4 @@
package locations
package locationregistry
import (
"fmt"

View File

@@ -1,4 +1,4 @@
package locations
package locationregistry
import (
"context"