Rebrand sexp → sx across web platform (173 files)
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 11m37s

Rename all sexp directories, files, identifiers, and references to sx.
artdag/ excluded (separate media processing DSL).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 11:06:57 +00:00
parent 17cebe07e7
commit e8bc228c7f
174 changed files with 3126 additions and 2952 deletions

View File

@@ -83,7 +83,7 @@ def register() -> Blueprint:
async def _relate():
"""Create a typed relation with registry validation and cardinality enforcement."""
from shared.services.relationships import attach_child, get_children
from shared.sexp.relations import get_relation
from shared.sx.relations import get_relation
data = await request.get_json(force=True)
rel_type = data.get("relation_type")
@@ -136,7 +136,7 @@ def register() -> Blueprint:
async def _unrelate():
"""Remove a typed relation with registry validation."""
from shared.services.relationships import detach_child
from shared.sexp.relations import get_relation
from shared.sx.relations import get_relation
data = await request.get_json(force=True)
rel_type = data.get("relation_type")
@@ -163,7 +163,7 @@ def register() -> Blueprint:
async def _can_relate():
"""Check if a relation can be created (cardinality, registry validation)."""
from shared.services.relationships import get_children
from shared.sexp.relations import get_relation
from shared.sx.relations import get_relation
data = await request.get_json(force=True)
rel_type = data.get("relation_type")

View File

@@ -25,15 +25,15 @@ def register():
async def get_fragment(fragment_type: str):
handler = _handlers.get(fragment_type)
if handler is None:
return Response("", status=200, content_type="text/sexp")
return Response("", status=200, content_type="text/sx")
src = await handler()
return Response(src, status=200, content_type="text/sexp")
return Response(src, status=200, content_type="text/sx")
# --- generic container-nav fragment ----------------------------------------
async def _container_nav_handler():
from shared.sexp.helpers import sexp_call
from shared.sexp.relations import relations_from
from shared.sx.helpers import sx_call
from shared.sx.relations import relations_from
from shared.services.relationships import get_children
from shared.infrastructure.urls import events_url, market_url
@@ -76,7 +76,7 @@ def register():
path = f"/{slug}/"
url_fn = _SERVICE_URL.get(defn.to_type)
href = url_fn(path) if url_fn else path
parts.append(sexp_call("relation-nav",
parts.append(sx_call("relation-nav",
href=href,
name=child.label or "",
icon=defn.nav_icon or "",