generated from coulomb/repo-seed
Finalize repo-scoping runtime rename
This commit is contained in:
@@ -3,7 +3,7 @@ from __future__ import annotations
|
||||
import re
|
||||
from dataclasses import dataclass, field, replace
|
||||
|
||||
from repo_registry.core.models import ContentChunk, ObservedFact, Repository, SourceReference
|
||||
from repo_scoping.core.models import ContentChunk, ObservedFact, Repository, SourceReference
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -59,18 +59,18 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
(
|
||||
"Create and update repository records",
|
||||
"api",
|
||||
["src/repo_registry/core/service.py", "src/repo_registry/web_api/app.py"],
|
||||
["src/repo_scoping/core/service.py", "src/repo_scoping/web_api/app.py"],
|
||||
),
|
||||
(
|
||||
"Resolve local or remote Git checkouts",
|
||||
"backend",
|
||||
["src/repo_registry/repo_ingestion/git.py", "tests/test_git_ingestion.py"],
|
||||
["src/repo_scoping/repo_ingestion/git.py", "tests/test_git_ingestion.py"],
|
||||
),
|
||||
(
|
||||
"Import repository metadata",
|
||||
"backend",
|
||||
[
|
||||
"src/repo_registry/repo_ingestion/metadata.py",
|
||||
"src/repo_scoping/repo_ingestion/metadata.py",
|
||||
"tests/test_repository_metadata.py",
|
||||
],
|
||||
),
|
||||
@@ -84,17 +84,17 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
(
|
||||
"Detect source languages, manifests, docs, tests, config, and interfaces",
|
||||
"backend",
|
||||
["src/repo_registry/repo_scanning/scanner.py", "tests/test_repository_scanner.py"],
|
||||
["src/repo_scoping/repo_scanning/scanner.py", "tests/test_repository_scanner.py"],
|
||||
),
|
||||
(
|
||||
"Classify source roles for facts",
|
||||
"backend",
|
||||
["src/repo_registry/repo_scanning/scanner.py", "docs/characteristic-evidence-model.md"],
|
||||
["src/repo_scoping/repo_scanning/scanner.py", "docs/characteristic-evidence-model.md"],
|
||||
),
|
||||
(
|
||||
"Preserve analysis snapshots and fact records",
|
||||
"storage",
|
||||
["src/repo_registry/storage/sqlite.py", "migrations/0001_initial.sql"],
|
||||
["src/repo_scoping/storage/sqlite.py", "migrations/0001_initial.sql"],
|
||||
),
|
||||
],
|
||||
},
|
||||
@@ -106,14 +106,14 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
(
|
||||
"Create source-linked content chunks from observed facts",
|
||||
"backend",
|
||||
["src/repo_registry/content_indexing/extractor.py", "tests/test_content_indexing.py"],
|
||||
["src/repo_scoping/content_indexing/extractor.py", "tests/test_content_indexing.py"],
|
||||
),
|
||||
(
|
||||
"Carry source-role metadata into downstream generation",
|
||||
"backend",
|
||||
[
|
||||
"src/repo_registry/content_indexing/extractor.py",
|
||||
"src/repo_registry/llm_extraction/extractor.py",
|
||||
"src/repo_scoping/content_indexing/extractor.py",
|
||||
"src/repo_scoping/llm_extraction/extractor.py",
|
||||
],
|
||||
),
|
||||
],
|
||||
@@ -127,8 +127,8 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
"Build candidate abilities, capabilities, features, and evidence",
|
||||
"backend",
|
||||
[
|
||||
"src/repo_registry/candidate_graph/generator.py",
|
||||
"src/repo_registry/candidate_graph/normalization.py",
|
||||
"src/repo_scoping/candidate_graph/generator.py",
|
||||
"src/repo_scoping/candidate_graph/normalization.py",
|
||||
"tests/test_candidate_graph.py",
|
||||
],
|
||||
),
|
||||
@@ -136,8 +136,8 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
"Optionally map structured LLM extraction into candidates",
|
||||
"integration",
|
||||
[
|
||||
"src/repo_registry/llm_extraction/extractor.py",
|
||||
"src/repo_registry/llm_extraction/mapper.py",
|
||||
"src/repo_scoping/llm_extraction/extractor.py",
|
||||
"src/repo_scoping/llm_extraction/mapper.py",
|
||||
"tests/test_llm_extraction.py",
|
||||
],
|
||||
),
|
||||
@@ -152,20 +152,20 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
"Edit, reject, merge, and relink candidate graph entries",
|
||||
"api",
|
||||
[
|
||||
"src/repo_registry/core/service.py",
|
||||
"src/repo_registry/web_api/app.py",
|
||||
"src/repo_scoping/core/service.py",
|
||||
"src/repo_scoping/web_api/app.py",
|
||||
"tests/test_registry_service.py",
|
||||
],
|
||||
),
|
||||
(
|
||||
"Publish approved characteristic maps after review",
|
||||
"storage",
|
||||
["src/repo_registry/core/service.py", "src/repo_registry/storage/sqlite.py"],
|
||||
["src/repo_scoping/core/service.py", "src/repo_scoping/storage/sqlite.py"],
|
||||
),
|
||||
(
|
||||
"Record review decisions and expectation gaps",
|
||||
"audit",
|
||||
["src/repo_registry/core/service.py", "src/repo_registry/web_api/schemas.py"],
|
||||
["src/repo_scoping/core/service.py", "src/repo_scoping/web_api/schemas.py"],
|
||||
),
|
||||
],
|
||||
},
|
||||
@@ -177,17 +177,17 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
(
|
||||
"Search approved abilities, capabilities, features, and evidence",
|
||||
"api",
|
||||
["src/repo_registry/core/service.py", "tests/test_registry_service.py"],
|
||||
["src/repo_scoping/core/service.py", "tests/test_registry_service.py"],
|
||||
),
|
||||
(
|
||||
"Compare repositories and identify capability gaps",
|
||||
"api",
|
||||
["src/repo_registry/core/service.py", "src/repo_registry/web_api/app.py"],
|
||||
["src/repo_scoping/core/service.py", "src/repo_scoping/web_api/app.py"],
|
||||
),
|
||||
(
|
||||
"Export repository profiles",
|
||||
"api",
|
||||
["src/repo_registry/web_api/app.py", "docs/api-contract.md"],
|
||||
["src/repo_scoping/web_api/app.py", "docs/api-contract.md"],
|
||||
),
|
||||
],
|
||||
},
|
||||
@@ -200,7 +200,7 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
"Render SCOPE.md from approved characteristics",
|
||||
"backend",
|
||||
[
|
||||
"src/repo_registry/scope/generator.py",
|
||||
"src/repo_scoping/scope/generator.py",
|
||||
"tests/test_scope_generator.py",
|
||||
"docs/scope-md-spec.md",
|
||||
],
|
||||
@@ -209,8 +209,8 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
"Diff, validate, and write scope files",
|
||||
"api",
|
||||
[
|
||||
"src/repo_registry/scope/validator.py",
|
||||
"src/repo_registry/web_api/app.py",
|
||||
"src/repo_scoping/scope/validator.py",
|
||||
"src/repo_scoping/web_api/app.py",
|
||||
],
|
||||
),
|
||||
],
|
||||
@@ -224,7 +224,7 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
"Model dependencies between facts, evidence, features, capabilities, abilities, and scope",
|
||||
"backend",
|
||||
[
|
||||
"src/repo_registry/core/service.py",
|
||||
"src/repo_scoping/core/service.py",
|
||||
"docs/dependency-aware-scope-propagation.md",
|
||||
"docs/dependency-visualization-exploration.md",
|
||||
],
|
||||
@@ -232,7 +232,7 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
(
|
||||
"Render dependency graph views and profiles",
|
||||
"ui",
|
||||
["src/repo_registry/web_ui/views.py", "tests/test_web_api.py"],
|
||||
["src/repo_scoping/web_ui/views.py", "tests/test_web_api.py"],
|
||||
),
|
||||
],
|
||||
},
|
||||
@@ -245,7 +245,7 @@ REPO_SCOPING_NATIVE_CAPABILITY_SEEDS = [
|
||||
"Return compact JSON scope context by repository slug",
|
||||
"api",
|
||||
[
|
||||
"src/repo_registry/web_api/app.py",
|
||||
"src/repo_scoping/web_api/app.py",
|
||||
"docs/schemas/repo-scope-context-response.json",
|
||||
"tests/test_scope_context_api.py",
|
||||
],
|
||||
@@ -661,7 +661,7 @@ class CandidateGraphGenerator:
|
||||
identity = f"{repository.name} {repository.url} {repository.description or ''}".lower()
|
||||
if "repo-scoping" in identity or "repository scoping" in identity:
|
||||
return True
|
||||
return any(fact.path.startswith("src/repo_registry/") for fact in facts)
|
||||
return any(fact.path.startswith("src/repo_scoping/") for fact in facts)
|
||||
|
||||
def _facts_for_paths(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user