pairling 0.2.9 → 0.2.10
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pairling",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "Pair your iPhone with the AI coding agents running on your Mac. CLI and local runtime installer for the Pairling iOS app.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pairling",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"url": "https://github.com/mergimg0/pairling-helper"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@pairling/runtime-darwin-arm64": "0.2.
|
|
44
|
-
"@pairling/runtime-darwin-x64": "0.2.
|
|
43
|
+
"@pairling/runtime-darwin-arm64": "0.2.10",
|
|
44
|
+
"@pairling/runtime-darwin-x64": "0.2.10"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
0d3be68
|
package/payload/mac/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.10
|
|
@@ -2400,6 +2400,23 @@ def _pairling_connect_health() -> dict:
|
|
|
2400
2400
|
return _cached_probe("pairling_connect_health", _HEALTH_PROBE_CACHE_SECONDS, probe)
|
|
2401
2401
|
|
|
2402
2402
|
|
|
2403
|
+
def _coordinator_from_pairling_connect(connect: dict) -> dict:
|
|
2404
|
+
ready = bool(connect.get("ready"))
|
|
2405
|
+
return {
|
|
2406
|
+
"role": "primary_coordinator",
|
|
2407
|
+
"host": DEFAULT_COORDINATOR_HOST,
|
|
2408
|
+
"posture": "ready" if ready else "unknown",
|
|
2409
|
+
"severity": "ok" if ready else "unknown",
|
|
2410
|
+
"summary": (
|
|
2411
|
+
"Pairling Connect route is ready."
|
|
2412
|
+
if ready
|
|
2413
|
+
else "Pairling Connect route is not ready."
|
|
2414
|
+
),
|
|
2415
|
+
"stale": False,
|
|
2416
|
+
"tailnet_axis": "pairling_connect",
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
|
|
2403
2420
|
# Guardian checks whose failure is fully compensated by a ready Pairling
|
|
2404
2421
|
# Connect route: both only measure the standalone-Tailscale axis.
|
|
2405
2422
|
_TAILNET_AXIS_CHECK_IDS = {"tailscale_ip", "daemon_reachable"}
|
|
@@ -2555,11 +2572,9 @@ def _routez_payload(auth_result=None) -> dict:
|
|
|
2555
2572
|
|
|
2556
2573
|
|
|
2557
2574
|
def _health_payload(full_power: bool = False, authenticated: bool = False, auth_result=None) -> dict:
|
|
2558
|
-
state, path, age, error = _read_guardian_state()
|
|
2559
|
-
power_state = _normalize_guardian_state(state)
|
|
2560
|
-
coordinator = _coordinator_from_guardian(power_state, age, error)
|
|
2561
2575
|
connect = _pairling_connect_health()
|
|
2562
|
-
|
|
2576
|
+
power_state = None
|
|
2577
|
+
coordinator = _coordinator_from_pairling_connect(connect)
|
|
2563
2578
|
if connect.get("summary") is not None:
|
|
2564
2579
|
coordinator = dict(coordinator)
|
|
2565
2580
|
coordinator["pairling_connect"] = connect["summary"]
|
|
@@ -2599,11 +2614,6 @@ def _health_payload(full_power: bool = False, authenticated: bool = False, auth_
|
|
|
2599
2614
|
"high_risk_count": 0,
|
|
2600
2615
|
"updated_at": _time.time(),
|
|
2601
2616
|
}
|
|
2602
|
-
if full_power:
|
|
2603
|
-
payload["guardian_path"] = path
|
|
2604
|
-
payload["guardian_error"] = error
|
|
2605
|
-
payload["guardian_sample_age_seconds"] = age
|
|
2606
|
-
payload["power_state"] = power_state
|
|
2607
2617
|
return payload
|
|
2608
2618
|
|
|
2609
2619
|
|
|
@@ -2623,11 +2633,11 @@ def _cached_health_payload(full_power: bool = False, authenticated: bool = False
|
|
|
2623
2633
|
|
|
2624
2634
|
|
|
2625
2635
|
def _mac_health_alert_snapshot() -> dict:
|
|
2626
|
-
|
|
2627
|
-
coordinator =
|
|
2628
|
-
|
|
2629
|
-
coordinator
|
|
2630
|
-
|
|
2636
|
+
connect = _pairling_connect_health()
|
|
2637
|
+
coordinator = _coordinator_from_pairling_connect(connect)
|
|
2638
|
+
if connect.get("summary") is not None:
|
|
2639
|
+
coordinator = dict(coordinator)
|
|
2640
|
+
coordinator["pairling_connect"] = connect["summary"]
|
|
2631
2641
|
return {
|
|
2632
2642
|
"ok": coordinator.get("posture") in ("ready", "warning"),
|
|
2633
2643
|
"schema_version": 1,
|
|
@@ -2659,7 +2669,7 @@ def _health_diff_digest(payload: dict) -> str:
|
|
|
2659
2669
|
def _orchestration_preflight_from_health(health: dict) -> tuple[dict, dict]:
|
|
2660
2670
|
power_state = health.get("power_state") if isinstance(health.get("power_state"), dict) else None
|
|
2661
2671
|
if power_state is None:
|
|
2662
|
-
power_state =
|
|
2672
|
+
power_state = {}
|
|
2663
2673
|
coordinator = health.get("coordinator") or {}
|
|
2664
2674
|
route = (health.get("routes") or [{}])[0]
|
|
2665
2675
|
runtime_info = health.get("runtime") if isinstance(health.get("runtime"), dict) else {}
|
package/payload-manifest.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"connectd": {
|
|
3
3
|
"darwin-arm64": {
|
|
4
|
-
"sha256": "
|
|
4
|
+
"sha256": "9b2ed8873ae42e33426590c19b6bbae9ab6e42c9a103f2978a9f4b3486f95986",
|
|
5
5
|
"team_id": "965AVD34A3"
|
|
6
6
|
},
|
|
7
7
|
"darwin-x64": {
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "affe30386b854c5449b6a985ac678203945d756c3a4c418f62fea62d41b310db",
|
|
9
9
|
"team_id": "965AVD34A3"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"path": "payload/mac/SOURCE_REVISION",
|
|
23
|
-
"sha256": "
|
|
23
|
+
"sha256": "6d11e38b8ce99a27fd026588dec66a7bed33016085d28076bacd7c597e6611e9"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"path": "payload/mac/VERSION",
|
|
27
|
-
"sha256": "
|
|
27
|
+
"sha256": "011cfdb24c667a75861adfffaabe68e66358d982f437b47270ef09d86c6c6cd7"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"path": "payload/mac/companiond/app_attest_lan.py",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"path": "payload/mac/companiond/pairlingd.py",
|
|
99
|
-
"sha256": "
|
|
99
|
+
"sha256": "297d1558ecd6bb4cdbadfe073e396564af723173e0cb7b4085ecc852fd889def"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"path": "payload/mac/companiond/providers/__init__.py",
|
|
@@ -296,8 +296,8 @@
|
|
|
296
296
|
}
|
|
297
297
|
],
|
|
298
298
|
"package": "pairling",
|
|
299
|
-
"package_version": "0.2.
|
|
299
|
+
"package_version": "0.2.10",
|
|
300
300
|
"schema_version": 1,
|
|
301
301
|
"source_dirty": false,
|
|
302
|
-
"source_revision": "
|
|
302
|
+
"source_revision": "0d3be68"
|
|
303
303
|
}
|