Complete independent projection runtime
This commit is contained in:
parent
1134c2d375
commit
f1fabaf0ca
38 changed files with 4907 additions and 87 deletions
|
|
@ -20,6 +20,7 @@ from .project import (
|
|||
project_root_fingerprint,
|
||||
validate_descriptor_binding,
|
||||
)
|
||||
from .projection_policy import compose_projection_policy
|
||||
|
||||
MAX_CLIENT_CONFIG_BYTES = 1_000_000
|
||||
MAX_CLIENT_SERVERS = 256
|
||||
|
|
@ -614,6 +615,9 @@ def _parse_binding(arguments: list[str]) -> dict[str, object]:
|
|||
"--proposal-writer",
|
||||
"--canonical-applier",
|
||||
"--capability-mode",
|
||||
"--manual-render-policy",
|
||||
"--portable-graph-policy",
|
||||
"--live-viewer-policy",
|
||||
}
|
||||
flag_options = {"--no-ast", "--diagnostics"}
|
||||
position = 0
|
||||
|
|
@ -662,6 +666,9 @@ def _parse_binding(arguments: list[str]) -> dict[str, object]:
|
|||
"capability_mode_implicit": implicit,
|
||||
"no_ast": "--no-ast" in flags,
|
||||
"diagnostics": "--diagnostics" in flags,
|
||||
"manual_render_policy": values.get("--manual-render-policy"),
|
||||
"portable_graph_policy": values.get("--portable-graph-policy"),
|
||||
"live_viewer_policy": values.get("--live-viewer-policy"),
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -749,6 +756,16 @@ def _runtime_policy_check(
|
|||
canonical_applier is not None and selected_mode in {"application", "operator"}
|
||||
),
|
||||
)
|
||||
compose_projection_policy(
|
||||
manual=cast(str | None, binding["manual_render_policy"]),
|
||||
portable_graph=cast(str | None, binding["portable_graph_policy"]),
|
||||
live_viewer=cast(str | None, binding["live_viewer_policy"]),
|
||||
manual_configured=project.descriptor.render is not None,
|
||||
portable_graph_configured=project.descriptor.graph_render is not None,
|
||||
application_enabled=(
|
||||
canonical_applier is not None and selected_mode in {"application", "operator"}
|
||||
),
|
||||
)
|
||||
if cast(bool, binding["capability_mode_implicit"]):
|
||||
return (
|
||||
"warning",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue