@vibelord/lanes 1.7.2 → 1.7.3
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.
package/package.json
CHANGED
package/payload/lanes/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.7.
|
|
1
|
+
1.7.3
|
|
@@ -1144,6 +1144,8 @@ class Sidebar:
|
|
|
1144
1144
|
break
|
|
1145
1145
|
if stamp[1] != self.stamp[1] or force:
|
|
1146
1146
|
status = read_json(self.status_path) or {}
|
|
1147
|
+
if self.status_path == self.projection_path:
|
|
1148
|
+
status = self.with_canonical_fleet(status) # 1.7.3: the fleet block reads the canonical facts
|
|
1147
1149
|
self.status = status.get('lanes', {})
|
|
1148
1150
|
self.unregistered = (status.get('unregistered') or {}).get(self.workspace, [])
|
|
1149
1151
|
self.zmx = (status.get('zmx') or {}).get(self.workspace, [])
|
|
@@ -1825,6 +1827,23 @@ class Sidebar:
|
|
|
1825
1827
|
return lead_painted + sep_painted.join(painted), lead + sep_plain.join(plain)
|
|
1826
1828
|
|
|
1827
1829
|
# ---------------------------------------------------------- the fleet block (W11, spec 2026-10-11 §3)
|
|
1830
|
+
def with_canonical_fleet(self, status):
|
|
1831
|
+
"""The per-board projection (1.7.2, `sidebar-status/<board>.json`) is written inside statusd's cycle BEFORE a
|
|
1832
|
+
site hook adopts a federated guest's pulse into status.json (rd-control, 2026-10-29: the fleet block vanished
|
|
1833
|
+
with 1.7.2 — the projection carried no `throttle`, status.json did). The block's two objects therefore come
|
|
1834
|
+
from the canonical status.json whenever the projection lacks one or carries an older sample (`at`): one extra
|
|
1835
|
+
read of status.json per projection change, never per idle tick. A missing status.json changes nothing."""
|
|
1836
|
+
if not isinstance(status, dict):
|
|
1837
|
+
return status
|
|
1838
|
+
canonical = read_json(os.path.join(STATE, 'status.json')) or {}
|
|
1839
|
+
for key in ('fleet', 'throttle'):
|
|
1840
|
+
theirs, ours = canonical.get(key), status.get(key)
|
|
1841
|
+
if not isinstance(theirs, dict):
|
|
1842
|
+
continue
|
|
1843
|
+
if not isinstance(ours, dict) or (finite(theirs.get('at')) or 0) > (finite(ours.get('at')) or 0):
|
|
1844
|
+
status[key] = theirs
|
|
1845
|
+
return status
|
|
1846
|
+
|
|
1828
1847
|
def take_fleet(self, status):
|
|
1829
1848
|
"""reload()'s status.json read: its `fleet` and `throttle` objects (fleet_doc) and, once per new pulse sample
|
|
1830
1849
|
(`throttle.at` moved), the pools' summed `upstream_429_total` for `429 +N` (surge). Fresh values only."""
|
package/payload/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibelord/lanes",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"commit": "
|
|
5
|
-
"digest": "sha256:
|
|
3
|
+
"version": "1.7.3",
|
|
4
|
+
"commit": "34aa7b11da0788bac2b780e0f5906c178e6a085c",
|
|
5
|
+
"digest": "sha256:e49343f97567090ba8290b98443345239cc8a04993e87cc72361c72acf31d8a4",
|
|
6
6
|
"executables": [
|
|
7
7
|
"bin/lanes",
|
|
8
8
|
"client/ghostty/lanes-themed-window",
|