@trillboards/edge-sdk 0.2.253 → 0.2.255

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/deploy/detector/README.md +15 -0
  2. package/deploy/detector/pyproject.toml +1 -1
  3. package/deploy/detector/tests/test_face_identity.py +448 -0
  4. package/deploy/detector/tests/test_loader.py +3 -1
  5. package/deploy/detector/trillboards_detector/_version.py +2 -2
  6. package/deploy/detector/trillboards_detector/face_contract.py +166 -0
  7. package/deploy/detector/trillboards_detector/face_identity.py +467 -0
  8. package/deploy/detector/trillboards_detector/loader.py +12 -0
  9. package/deploy/detector/trillboards_detector/registry.py +45 -1
  10. package/deploy/detector/trillboards_detector/server.py +42 -1
  11. package/deploy/detector/trillboards_detector/tasks.py +12 -1
  12. package/deploy/windows/ci/test-main-stream-gpu-decode.ps1 +119 -0
  13. package/dist/CctvLiveViewCoordinator.d.ts +34 -2
  14. package/dist/CctvLiveViewCoordinator.d.ts.map +1 -1
  15. package/dist/CctvLiveViewCoordinator.js +106 -25
  16. package/dist/CctvLiveViewCoordinator.js.map +1 -1
  17. package/dist/CloudSensingManager.d.ts +17 -0
  18. package/dist/CloudSensingManager.d.ts.map +1 -1
  19. package/dist/CloudSensingManager.js +11 -2
  20. package/dist/CloudSensingManager.js.map +1 -1
  21. package/dist/ConnectorStatusClient.d.ts +18 -1
  22. package/dist/ConnectorStatusClient.d.ts.map +1 -1
  23. package/dist/ConnectorStatusClient.js +6 -0
  24. package/dist/ConnectorStatusClient.js.map +1 -1
  25. package/dist/DetectorFields.d.ts +77 -1
  26. package/dist/DetectorFields.d.ts.map +1 -1
  27. package/dist/DetectorFields.js +34 -4
  28. package/dist/DetectorFields.js.map +1 -1
  29. package/dist/EdgeAgent.js +1 -1
  30. package/dist/FaceIdentity.d.ts +122 -0
  31. package/dist/FaceIdentity.d.ts.map +1 -0
  32. package/dist/FaceIdentity.js +256 -0
  33. package/dist/FaceIdentity.js.map +1 -0
  34. package/dist/FaceSightingUploader.d.ts +95 -0
  35. package/dist/FaceSightingUploader.d.ts.map +1 -0
  36. package/dist/FaceSightingUploader.js +214 -0
  37. package/dist/FaceSightingUploader.js.map +1 -0
  38. package/dist/FaceWatchLane.d.ts +297 -0
  39. package/dist/FaceWatchLane.d.ts.map +1 -0
  40. package/dist/FaceWatchLane.js +660 -0
  41. package/dist/FaceWatchLane.js.map +1 -0
  42. package/dist/FaceWatchPolicy.d.ts +154 -0
  43. package/dist/FaceWatchPolicy.d.ts.map +1 -0
  44. package/dist/FaceWatchPolicy.js +101 -0
  45. package/dist/FaceWatchPolicy.js.map +1 -0
  46. package/dist/LiveViewControlHttp.d.ts +11 -2
  47. package/dist/LiveViewControlHttp.d.ts.map +1 -1
  48. package/dist/LiveViewControlHttp.js +14 -5
  49. package/dist/LiveViewControlHttp.js.map +1 -1
  50. package/dist/LiveViewCpuMeter.d.ts +26 -0
  51. package/dist/LiveViewCpuMeter.d.ts.map +1 -0
  52. package/dist/LiveViewCpuMeter.js +73 -0
  53. package/dist/LiveViewCpuMeter.js.map +1 -0
  54. package/dist/LiveViewProducerSignaling.d.ts +7 -0
  55. package/dist/LiveViewProducerSignaling.d.ts.map +1 -1
  56. package/dist/LiveViewProducerSignaling.js +12 -2
  57. package/dist/LiveViewProducerSignaling.js.map +1 -1
  58. package/dist/LocalDetectorClient.d.ts +11 -0
  59. package/dist/LocalDetectorClient.d.ts.map +1 -1
  60. package/dist/LocalDetectorClient.js +44 -0
  61. package/dist/LocalDetectorClient.js.map +1 -1
  62. package/dist/MainStreamRing.d.ts +63 -1
  63. package/dist/MainStreamRing.d.ts.map +1 -1
  64. package/dist/MainStreamRing.js +101 -7
  65. package/dist/MainStreamRing.js.map +1 -1
  66. package/dist/NativeReadiness.d.ts.map +1 -1
  67. package/dist/NativeReadiness.js +7 -3
  68. package/dist/NativeReadiness.js.map +1 -1
  69. package/dist/ReviewPriority.d.ts +9 -0
  70. package/dist/ReviewPriority.d.ts.map +1 -1
  71. package/dist/ReviewPriority.js +6 -1
  72. package/dist/ReviewPriority.js.map +1 -1
  73. package/dist/ScopedVlmReview.d.ts +11 -2
  74. package/dist/ScopedVlmReview.d.ts.map +1 -1
  75. package/dist/ScopedVlmReview.js +43 -16
  76. package/dist/ScopedVlmReview.js.map +1 -1
  77. package/dist/SensingProfileClient.d.ts +14 -0
  78. package/dist/SensingProfileClient.d.ts.map +1 -1
  79. package/dist/SensingProfileClient.js +9 -0
  80. package/dist/SensingProfileClient.js.map +1 -1
  81. package/dist/UniformSceneStore.d.ts +6 -0
  82. package/dist/UniformSceneStore.d.ts.map +1 -1
  83. package/dist/UniformSceneStore.js +22 -1
  84. package/dist/UniformSceneStore.js.map +1 -1
  85. package/dist/VideoSegmentUploader.d.ts +11 -0
  86. package/dist/VideoSegmentUploader.d.ts.map +1 -1
  87. package/dist/VideoSegmentUploader.js +28 -2
  88. package/dist/VideoSegmentUploader.js.map +1 -1
  89. package/dist/VlmCandidateBuffer.d.ts +2 -0
  90. package/dist/VlmCandidateBuffer.d.ts.map +1 -1
  91. package/dist/VlmCandidateBuffer.js.map +1 -1
  92. package/dist/WatchlistClient.d.ts +55 -0
  93. package/dist/WatchlistClient.d.ts.map +1 -0
  94. package/dist/WatchlistClient.js +161 -0
  95. package/dist/WatchlistClient.js.map +1 -0
  96. package/dist/autoSense.d.ts +2 -0
  97. package/dist/autoSense.d.ts.map +1 -1
  98. package/dist/autoSense.js +23 -1
  99. package/dist/autoSense.js.map +1 -1
  100. package/dist/cli.d.ts.map +1 -1
  101. package/dist/cli.js +3 -0
  102. package/dist/cli.js.map +1 -1
  103. package/dist/connectorUpdate.d.ts +16 -0
  104. package/dist/connectorUpdate.d.ts.map +1 -1
  105. package/dist/connectorUpdate.js +30 -6
  106. package/dist/connectorUpdate.js.map +1 -1
  107. package/dist/diagnose.d.ts +1 -1
  108. package/dist/diagnose.js +1 -1
  109. package/dist/hostCpu.d.ts +56 -0
  110. package/dist/hostCpu.d.ts.map +1 -0
  111. package/dist/hostCpu.js +113 -0
  112. package/dist/hostCpu.js.map +1 -0
  113. package/dist/localSensing.d.ts +17 -0
  114. package/dist/localSensing.d.ts.map +1 -1
  115. package/dist/localSensing.js +53 -2
  116. package/dist/localSensing.js.map +1 -1
  117. package/dist/windowsLiveView.d.ts +19 -2
  118. package/dist/windowsLiveView.d.ts.map +1 -1
  119. package/dist/windowsLiveView.js +72 -5
  120. package/dist/windowsLiveView.js.map +1 -1
  121. package/package.json +2 -2
  122. package/retained/RetainedCaptureClient.cjs +2 -0
  123. package/retained/WebsiteAdmissionCaptureClient.cjs +3 -1
  124. package/retained/__tests__/website-admission-realtime.test.cjs +27 -2
@@ -123,7 +123,8 @@ class TaskModelContract:
123
123
  self._validate_task()
124
124
 
125
125
  def _validate_task(self):
126
- if self.task not in {"pose_coco17", "actor_appearance", "vehicle_end_orientation"}:
126
+ if self.task not in {"pose_coco17", "actor_appearance", "vehicle_end_orientation",
127
+ "face_detection_landmarks5", "face_identity_embedding"}:
127
128
  raise ValueError("invalid non-box task kind")
128
129
 
129
130
  class ModelEntry:
@@ -610,6 +611,49 @@ class ModelRegistry:
610
611
  finally:
611
612
  self._release([state.entry.name])
612
613
 
614
+ def estimate_faces(self, jpeg: bytes, request: dict, detector_pin: dict, embedder_pin: dict) -> dict:
615
+ """The door faces task: BOTH pinned sessions acquired together through the portfolio.
616
+
617
+ All or nothing, like `detect`: a face answer without its vectors would read
618
+ as "nobody we know" to the watchlist, so a missing embedder is a 503 for the
619
+ whole request, never a detector-only 200.
620
+ """
621
+ pins = (("face_detection_landmarks5", detector_pin), ("face_identity_embedding", embedder_pin))
622
+ states = []
623
+ for task, pin in pins:
624
+ state = self._states.get(pin.get("modelId")) if isinstance(pin, dict) else None
625
+ if (state is None or not isinstance(state.entry.vocabulary, TaskModelContract)
626
+ or state.entry.vocabulary.task != task
627
+ or state.entry.vocabulary.sha256 != pin.get("sha256")):
628
+ raise ModelVerificationError("selected face task does not match its immutable contract")
629
+ states.append(state)
630
+ names = [state.entry.name for state in states]
631
+ sessions = self._acquire(names)
632
+ try:
633
+ for state, session in zip(states, sessions):
634
+ if getattr(session, "model_sha256", None) != state.entry.vocabulary.sha256:
635
+ raise ModelVerificationError("loaded face session does not match the selected artifact")
636
+ detector, embedder = sessions
637
+ try:
638
+ result = detector.estimate(jpeg, request, embedder)
639
+ for key, state in zip(("detector", "embedder"), states):
640
+ contract = state.entry.vocabulary
641
+ if not isinstance(result, dict) or result.get(key) != {
642
+ "modelId": contract.model_name, "sha256": contract.sha256,
643
+ "preprocessing": contract.preprocessing}:
644
+ raise ModelVerificationError("face output does not match its task contracts")
645
+ except Exception:
646
+ with self._lock:
647
+ for state in states:
648
+ state.detect_failures += 1
649
+ raise
650
+ with self._lock:
651
+ for state in states:
652
+ state.detect_count += 1
653
+ return result
654
+ finally:
655
+ self._release(names)
656
+
613
657
  def classify_actor_actions(self,batch):
614
658
  """Acquire and prove the selected non-box action model through the shared portfolio."""
615
659
  from .actor_action_contract import ActorActionModelContract
@@ -1,4 +1,4 @@
1
- """The wire. Two routes, and a hard rule about what may go out of them.
1
+ """The wire. A handful of routes, and a hard rule about what may go out of them.
2
2
 
3
3
  THE CONTRACT IS FROZEN AND IT LIVES ON THE OTHER SIDE.
4
4
  `trillboards-edge-sdk/packages/edge-sdk/src/LocalDetectorClient.ts` is the only
@@ -41,6 +41,7 @@ from .actor_action_wire import parse_actor_action_request, validate_actor_action
41
41
  from .colors import validate_color_request, prepare_color_capabilities
42
42
  from .registry import validate_preparation_models
43
43
  from .vehicle_end import validate_vehicle_end_request
44
+ from .face_contract import check_faces_response, validate_faces_request
44
45
  from ._version import VERSION
45
46
  from .errors import DetectorNotReady, ModelVerificationError, UnknownClasses
46
47
 
@@ -442,6 +443,8 @@ class DetectorHandler(BaseHTTPRequestHandler):
442
443
  self._actor_actions()
443
444
  elif self._path() == "/vehicle-end":
444
445
  self._vehicle_end()
446
+ elif self._path() == "/v1/faces":
447
+ self._faces()
445
448
  elif self._path() == "/ready":
446
449
  self._ready()
447
450
  elif self._path() == "/backend":
@@ -770,6 +773,44 @@ class DetectorHandler(BaseHTTPRequestHandler):
770
773
  self._json(500, {"error": "refused malformed vehicle-end output"}); return
771
774
  self._json(200, result)
772
775
 
776
+ def _faces(self):
777
+ """Door faces (face_contract.py): YuNet + ArcFace alignment + EdgeFace-XS on one original JPEG.
778
+
779
+ The answer is re-checked field by field before it leaves (the `_assert_wire_safe`
780
+ rule): a face whose gate does not follow from its own measures, a vector it did
781
+ not earn, a box off the frame, an artifact that is not the one selected — each
782
+ is a 500 here rather than a plausible 200 the connector would turn into a
783
+ sighting or a watchlist match.
784
+ """
785
+ try:
786
+ raw = self._read_body()
787
+ try:
788
+ jpeg, detector, embedder, bars = validate_faces_request(json.loads(raw.decode("utf-8")))
789
+ except (ValueError, UnicodeDecodeError) as error:
790
+ raise WireError(400, str(error)) from None
791
+ except WireError as error:
792
+ self._json(error.status, {"error": error.message}); return
793
+ estimate = getattr(self.server.loader, "estimate_faces", None)
794
+ if not callable(estimate):
795
+ self._json(503, {"error": "face task is unavailable in this detector build"}); return
796
+ try:
797
+ result = estimate(jpeg, bars, detector, embedder)
798
+ except ModelVerificationError as error:
799
+ self._json(409, {"error": str(error)}); return
800
+ except DetectorNotReady as error:
801
+ self._json(503, {"error": str(error)}); return
802
+ except ValueError as error:
803
+ self._json(400, {"error": str(error)}); return
804
+ except Exception as error:
805
+ self._log(f"[detector] face inference failed: {type(error).__name__}: {error}")
806
+ self._json(500, {"error": "face inference failed"}); return
807
+ try:
808
+ check_faces_response(result, jpeg, detector, embedder, bars)
809
+ except ValueError as error:
810
+ self._log(f"[detector] REFUSING malformed face output: {error}")
811
+ self._json(500, {"error": f"refused malformed face output: {error}"}); return
812
+ self._json(200, result)
813
+
773
814
  # ── plumbing ─────────────────────────────────────────────────────────────
774
815
 
775
816
  def _read_body(self) -> bytes:
@@ -3,6 +3,8 @@ from .registry import TaskModelContract
3
3
  from .actor_identity import MODEL_ID as APPEARANCE_MODEL_ID, MODEL_SHA256 as APPEARANCE_SHA256, PREPROCESSING as APPEARANCE_PREPROCESSING
4
4
  from .actor_action_contract import ActorActionModelContract,ActorActionOutput,ActorActionWindowContract,CONTACT_PREPROCESSING
5
5
  from .vehicle_end import MODEL_ID as VEHICLE_END_MODEL_ID, MODEL_SHA256 as VEHICLE_END_SHA256, PREPROCESSING as VEHICLE_END_PREPROCESSING
6
+ from .face_contract import (FACE_DETECTOR_MODEL_ID, FACE_DETECTOR_SHA256, FACE_DETECT_PREPROCESSING, FACE_DETECT_TASK,
7
+ FACE_EMBEDDER_MODEL_ID, FACE_EMBEDDER_SHA256, FACE_EMBED_PREPROCESSING, FACE_EMBED_TASK)
6
8
 
7
9
  RTMPOSE_MODEL_ID = "rtmpose_m_body7"
8
10
  RTMPOSE_SHA256 = "5c0a4bf67953e6d2ac43ce15e77dc9d5d354ae18430a47d2c5963a7bc5683e3c"
@@ -32,7 +34,16 @@ PERSON_APPEARANCE = TaskModelContract(
32
34
  # the connector's vehicle gate turns two looks into reverse_parked_vehicle_detected.
33
35
  VEHICLE_END = TaskModelContract(
34
36
  VEHICLE_END_MODEL_ID, "vehicle_end_orientation", VEHICLE_END_SHA256, 1600 * 1024**2, VEHICLE_END_PREPROCESSING)
35
- BUILTIN_TASK_MODELS = (RTMPOSE_BODY7, PERSON_APPEARANCE, VEHICLE_END)
37
+ # The door camera's faces (face_identity.py, /v1/faces). Resident cost MEASURED on the devbox
38
+ # (proc-statm, fresh process, after a probe and the largest frame served): YuNet 29.8 MB after
39
+ # its probe, 63.2 MB at 800x448, 109.8 MB at 1280x720 and 204.4 MB at the 1920 px cap;
40
+ # EdgeFace-XS 53.1 MB after 20 vectors. Each reservation is that peak plus headroom. Neither owns a
41
+ # field: the connector's face lane turns their answers into sightings and watchlist matches.
42
+ FACE_DETECTOR = TaskModelContract(
43
+ FACE_DETECTOR_MODEL_ID, FACE_DETECT_TASK, FACE_DETECTOR_SHA256, 256 * 1024**2, FACE_DETECT_PREPROCESSING)
44
+ FACE_EMBEDDER = TaskModelContract(
45
+ FACE_EMBEDDER_MODEL_ID, FACE_EMBED_TASK, FACE_EMBEDDER_SHA256, 96 * 1024**2, FACE_EMBED_PREPROCESSING)
46
+ BUILTIN_TASK_MODELS = (RTMPOSE_BODY7, PERSON_APPEARANCE, VEHICLE_END, FACE_DETECTOR, FACE_EMBEDDER)
36
47
 
37
48
  COCO17 = ("nose", "left_eye", "right_eye", "left_ear", "right_ear",
38
49
  "left_shoulder", "right_shoulder", "left_elbow", "right_elbow",
@@ -0,0 +1,119 @@
1
+ <#
2
+ test-main-stream-gpu-decode.ps1 - on this Windows host, does a camera's
3
+ main-stream session decode on the GPU only where the d3d11va probe decoded
4
+ the main stream's codec, and does a GPU decode that fails fall back to
5
+ software without dropping the main recording? (plan v7 T1, on plan v7 W8's
6
+ probe)
7
+
8
+ Runs scripts/main-stream-gpu-decode-proof.mjs: THIS build's MainStreamSession
9
+ with the pinned static ffmpeg the installer ships, against a live RTSP main
10
+ stream shaped like Texas camera 1's (MediaMTX re-serving a 2880x1616 HEVC
11
+ pattern at 20 fps with a 1-s GOP), carrying the ring output (a stream copy)
12
+ and the face zone (a decode). It records W8's probe answer on this host, runs
13
+ the session as shipped, and, where the probe did not decode HEVC here, tells
14
+ the session it did so ffmpeg really gets -hwaccel d3d11va and fails over.
15
+ Then it restarts the session mid-way through a 10-s ring segment, as the
16
+ GPU switch does, and checks ffmpeg quit on `q` and the ring kept that
17
+ segment. PASS (proof.json) is the script's verdict. Execute only on a fresh
18
+ GitHub-hosted Windows runner.
19
+ #>
20
+ [CmdletBinding()]
21
+ param(
22
+ [ValidateRange(20, 180)][int]$Seconds = 40
23
+ )
24
+ $ErrorActionPreference = 'Stop'
25
+ Set-StrictMode -Version Latest
26
+ if ($env:GITHUB_ACTIONS -ne 'true' -or $env:RUNNER_OS -ne 'Windows' -or
27
+ $env:RUNNER_ENVIRONMENT -ne 'github-hosted' -or $PSVersionTable.PSVersion.Major -lt 7) {
28
+ throw 'The main-stream GPU decode proof requires a fresh GitHub-hosted Windows runner and PowerShell 7'
29
+ }
30
+
31
+ $Here = Split-Path -Parent $MyInvocation.MyCommand.Path # deploy\windows\ci
32
+ $PkgRoot = (Resolve-Path (Join-Path $Here '..\..\..')).Path # packages\edge-sdk
33
+ $DeployWindows = Join-Path $PkgRoot 'deploy\windows'
34
+ if (-not (Test-Path -LiteralPath (Join-Path $PkgRoot '..\edge-platform-rtsp\dist\MainStreamSession.js'))) {
35
+ throw 'Build the workspace first (npm run build): edge-platform-rtsp dist\MainStreamSession.js is missing'
36
+ }
37
+ $root = [IO.Path]::GetFullPath((Join-Path $env:RUNNER_TEMP ('tb-main-gpu-' + [Guid]::NewGuid().ToString('N'))))
38
+ New-Item -ItemType Directory -Path $root | Out-Null
39
+ if ($env:GITHUB_OUTPUT) { ('artifact_path=' + $root) | Out-File -LiteralPath $env:GITHUB_OUTPUT -Append -Encoding utf8 }
40
+ $timeline = Join-Path $root 'timeline.log'
41
+
42
+ function Note([string]$Message) {
43
+ $line = [DateTimeOffset]::UtcNow.ToString('HH:mm:ss') + ' ' + $Message
44
+ Write-Host $line
45
+ Add-Content -LiteralPath $timeline -Value $line -Encoding utf8
46
+ }
47
+
48
+ $owned = New-Object System.Collections.Generic.List[System.Diagnostics.Process]
49
+ try {
50
+ # The pinned static ffmpeg the installer ships, checksum-verified.
51
+ $pin = (& pwsh -NoProfile -File (Join-Path $DeployWindows 'build-windows.ps1') -PrintFfmpegPin | Select-Object -Last 1).ToString().Trim().Split(' ')
52
+ $ffmpeg = Join-Path $root 'ffmpeg.exe'
53
+ Invoke-WebRequest -Uri $pin[0] -OutFile $ffmpeg -UseBasicParsing
54
+ if ((Get-FileHash -LiteralPath $ffmpeg -Algorithm SHA256).Hash.ToLowerInvariant() -ne $pin[1].ToLowerInvariant()) { throw 'Pinned ffmpeg checksum mismatch' }
55
+ Note ('ffmpeg pinned at ' + $pin[0])
56
+
57
+ $rig = Join-Path $root 'rig'
58
+ New-Item -ItemType Directory -Path $rig | Out-Null
59
+ # Official MediaMTX v1.21.2 checksum, the same pin as test-detector-looks-field.ps1.
60
+ $archive = Join-Path $rig 'mediamtx.zip'
61
+ Invoke-WebRequest -Uri 'https://github.com/bluenviron/mediamtx/releases/download/v1.21.2/mediamtx_v1.21.2_windows_amd64.zip' -OutFile $archive -UseBasicParsing
62
+ if ((Get-FileHash -LiteralPath $archive -Algorithm SHA256).Hash.ToLowerInvariant() -ne 'a84224f5a490855684e62ba6fb71e80ea2a5e16aed61883bb58380290e93e467') { throw 'MediaMTX checksum mismatch' }
63
+ Expand-Archive -LiteralPath $archive -DestinationPath $rig
64
+ $rtspPort = 8654; $apiPort = 9897
65
+ @"
66
+ logLevel: warn
67
+ rtspAddress: 127.0.0.1:$rtspPort
68
+ rtspTransports: [tcp]
69
+ rtmp: no
70
+ hls: no
71
+ webrtc: no
72
+ srt: no
73
+ metrics: no
74
+ pprof: no
75
+ playback: no
76
+ moq: no
77
+ api: yes
78
+ apiAddress: 127.0.0.1:$apiPort
79
+ authInternalUsers:
80
+ - user: any
81
+ pass: ""
82
+ ips: [127.0.0.1]
83
+ permissions:
84
+ - action: publish
85
+ - action: read
86
+ - action: api
87
+ paths:
88
+ main:
89
+ "@ | Set-Content -LiteralPath (Join-Path $rig 'mediamtx.yml') -Encoding utf8
90
+ $owned.Add((Start-Process -FilePath (Join-Path $rig 'mediamtx.exe') -ArgumentList ('"' + (Join-Path $rig 'mediamtx.yml') + '"') -WorkingDirectory $rig -PassThru -WindowStyle Hidden -RedirectStandardOutput (Join-Path $root 'mediamtx.log') -RedirectStandardError (Join-Path $root 'mediamtx.err.log')))
91
+ Start-Sleep -Seconds 2
92
+
93
+ # Texas camera 1's main stream, as its recorder sends it: 2880x1616 HEVC at 20 fps, a keyframe a second. Encoded
94
+ # once (10 s), re-served on a loop by a copy of the bundled ffmpeg so the camera never looks like the session.
95
+ $clip = Join-Path $rig 'main.mp4'
96
+ & $ffmpeg -hide_banner -loglevel error -f lavfi -i 'testsrc2=size=2880x1616:rate=20' -t 10 -c:v libx265 -preset ultrafast `
97
+ -x265-params 'log-level=error:keyint=20:min-keyint=20' -pix_fmt yuv420p -an -y $clip
98
+ if ($LASTEXITCODE -ne 0 -or -not (Test-Path -LiteralPath $clip)) { throw 'Could not encode the HEVC main stream' }
99
+ $cameraFfmpeg = Join-Path $rig 'camera-ffmpeg.exe'
100
+ Copy-Item -LiteralPath $ffmpeg -Destination $cameraFfmpeg
101
+ $publishArgs = '-hide_banner -loglevel error -re -stream_loop -1 -i "' + $clip + '" -c copy -f rtsp -rtsp_transport tcp rtsp://127.0.0.1:' + $rtspPort + '/main'
102
+ $owned.Add((Start-Process -FilePath $cameraFfmpeg -ArgumentList $publishArgs -PassThru -WindowStyle Hidden -RedirectStandardOutput (Join-Path $root 'camera.log') -RedirectStandardError (Join-Path $root 'camera.err.log')))
103
+ $deadline = [DateTime]::UtcNow.AddSeconds(45)
104
+ $ready = $false
105
+ do {
106
+ Start-Sleep -Seconds 1
107
+ try { $ready = @((Invoke-RestMethod -Uri ('http://127.0.0.1:' + $apiPort + '/v3/paths/list') -TimeoutSec 3).items | Where-Object { $_.name -eq 'main' -and $_.ready }).Count -gt 0 } catch { $ready = $false }
108
+ } while (-not $ready -and [DateTime]::UtcNow -lt $deadline)
109
+ if (-not $ready) { throw 'The HEVC main stream never became readable' }
110
+ Note ('HEVC main stream live at rtsp://127.0.0.1:' + $rtspPort + '/main')
111
+
112
+ $node = (Get-Command node.exe -ErrorAction Stop).Source
113
+ & $node (Join-Path $PkgRoot 'scripts\main-stream-gpu-decode-proof.mjs') --ffmpeg $ffmpeg --rtsp ('rtsp://127.0.0.1:' + $rtspPort + '/main') --out $root --seconds $Seconds --gop-ms 1000
114
+ $proofExit = $LASTEXITCODE
115
+ Note ('proof exited ' + $proofExit)
116
+ if ($proofExit -ne 0) { throw ('Main-stream GPU decode proof failed (exit ' + $proofExit + '): see proof.json') }
117
+ } finally {
118
+ foreach ($p in $owned) { try { if (-not $p.HasExited) { $p.Kill($true) } } catch { } }
119
+ }
@@ -51,6 +51,25 @@ export interface LiveViewOwnedScope {
51
51
  setDeadline(deadlineMs: number, clockGeneration: string, requestStartMs: number): void;
52
52
  }
53
53
  export type LiveViewMonitoringState = 'available' | 'busy' | 'unknown';
54
+ /** The rule that ended a view on this computer. Reporting only: no rule changes because it is reported. */
55
+ export type LiveViewStopRule = 'server_stop' | 'grant_expired' | 'control_failed' | 'monitoring_busy' | 'monitoring_unknown' | 'binding_changed' | 'clock' | 'renewal_refused' | 'start_failed' | 'worker_fault' | 'superseded' | 'closed';
56
+ /** Which rule fired and the values that decided it, sent once with the exact stop receipt. */
57
+ export interface LiveViewStopReason {
58
+ rule: LiveViewStopRule;
59
+ /** Short bounded text: the clock, binding, worker or control detail. */
60
+ detail?: string;
61
+ /** Monitoring rules: the feed that decided it, its newest frame's age and the feeds down at that instant. */
62
+ screenId?: string;
63
+ frameAgeMs?: number;
64
+ downFeeds?: number;
65
+ }
66
+ /** The capture values behind the most recent monitoringState() answer. */
67
+ export interface LiveViewMonitoringEvidence {
68
+ screenId?: string | null;
69
+ frameAgeMs?: number | null;
70
+ downFeeds?: number | null;
71
+ detail?: string | null;
72
+ }
54
73
  export interface LiveViewControlRequest {
55
74
  protocolVersion: 1;
56
75
  producerInstanceId: string;
@@ -60,6 +79,8 @@ export interface LiveViewControlRequest {
60
79
  monitoringState: LiveViewMonitoringState;
61
80
  activeSessionId: string | null;
62
81
  stoppedSessionId: string | null;
82
+ /** Present only beside stoppedSessionId, for a stop whose rule this process recorded. */
83
+ stop?: LiveViewStopReason;
63
84
  }
64
85
  export interface LiveViewControlContext {
65
86
  startedAt: LiveViewClockSample | null;
@@ -71,10 +92,15 @@ export interface CctvLiveViewCoordinatorOptions {
71
92
  binding(): LiveViewBinding | null;
72
93
  /** Current independently observed monitoring health/capacity, not static feed qualification. */
73
94
  monitoringState(): LiveViewMonitoringState;
95
+ /**
96
+ * Reporting only: the capture values behind the monitoringState() answer just given. Read
97
+ * only when a monitoring rule ends a view, never to decide one.
98
+ */
99
+ monitoringEvidence?(): LiveViewMonitoringEvidence | null;
74
100
  /** Bound the HTTP request independently. The request's producer identity can rotate. */
75
101
  control(request: LiveViewControlRequest, context: LiveViewControlContext): Promise<unknown>;
76
102
  /** leaseAllowed permits owned setup traffic; packetAllowed additionally requires completed startup. */
77
- createScope(owner: LiveViewOwnership, packetAllowed: () => boolean, leaseAllowed: () => boolean, terminalFault: () => void): LiveViewOwnedScope;
103
+ createScope(owner: LiveViewOwnership, packetAllowed: () => boolean, leaseAllowed: () => boolean, terminalFault: (detail?: string) => void): LiveViewOwnedScope;
78
104
  setTimer?: (callback: () => void, delayMs: number) => unknown;
79
105
  clearTimer?: (handle: unknown) => void;
80
106
  /**
@@ -93,6 +119,7 @@ export declare class CctvLiveViewCoordinator {
93
119
  private requestAbort;
94
120
  private current;
95
121
  private stoppedSessionId;
122
+ private stopReason;
96
123
  private lastClock;
97
124
  private clockHealthy;
98
125
  private monitoring;
@@ -112,8 +139,13 @@ export declare class CctvLiveViewCoordinator {
112
139
  private ready;
113
140
  private finishRetirement;
114
141
  pollNow(): Promise<void>;
115
- close(): Promise<void>;
142
+ close(detail?: string): Promise<void>;
116
143
  parentLost(): Promise<void>;
144
+ /**
145
+ * Nothing owned, nothing to acknowledge and no identity rotation pending: the only
146
+ * state in which the next control poll may be held on the API until a request.
147
+ */
148
+ idle(): boolean;
117
149
  status(): {
118
150
  ready: boolean;
119
151
  activeSessionId: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"CctvLiveViewCoordinator.d.ts","sourceRoot":"","sources":["../src/CctvLiveViewCoordinator.ts"],"names":[],"mappings":"AAEA,6FAA6F;AAC7F,MAAM,WAAW,mBAAmB;IAAG,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE;AAChG,MAAM,WAAW,eAAe;IAAG,QAAQ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