fix(burst): recognize native pressure units and separate isolation impact
Generic Container CI/CD / test-build-publish (push) Successful in 4m37s
Server CI/CD v2 / build-test-publish-and-deploy (push) Successful in 4m37s

This commit is contained in:
2026-11-14 23:45:25 +08:00
parent b45c5c6f46
commit 11eb09fe8f
12 changed files with 87 additions and 11 deletions
+9
View File
@@ -862,9 +862,18 @@ class TaskHighlightFeatures(StrictModel):
class TaskLocateFeatures(StrictModel):
action: Literal["locate_features"]
event_kind: Literal["burst", "pollution"] | None = Field(default=None,
description="定位事件语义:爆管候选传 burst,污染源传 pollution;普通资产定位省略")
layer: TaskMapLayer
feature_ids: Annotated[list[TaskFeatureId], Field(min_length=1, max_length=100)]
@model_serializer(mode="wrap")
def serialize_optional_kind(self, handler):
value = handler(self)
if self.event_kind is None:
value.pop("event_kind", None)
return value
class TaskZoomToMap(StrictModel):
action: Literal["zoom_to_map"]