@smilintux/skcapstone 0.5.6 → 0.5.7

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": "@smilintux/skcapstone",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "SKCapstone - The sovereign agent framework. CapAuth identity, Cloud 9 trust, SKMemory persistence.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1507,6 +1507,28 @@ def run_onboard(home: Optional[str] = None) -> None:
1507
1507
 
1508
1508
  fingerprint, identity_status = _step_identity(home_path, name, email or None)
1509
1509
 
1510
+ # --- Offer CapAuth Syncthing sync (non-blocking) ---
1511
+ try:
1512
+ from capauth.sync import is_syncthing_available, is_sync_configured, setup_syncthing_sync
1513
+
1514
+ if is_syncthing_available() and not is_sync_configured():
1515
+ console.print()
1516
+ if Confirm.ask(
1517
+ " Sync identity across cluster via Syncthing?",
1518
+ default=True,
1519
+ ):
1520
+ ok = setup_syncthing_sync()
1521
+ if ok:
1522
+ _ok("CapAuth identity will replicate to all mesh nodes")
1523
+ else:
1524
+ _warn("Could not configure sync — set up manually: capauth sync")
1525
+ elif is_sync_configured():
1526
+ _ok("CapAuth Syncthing sync already configured")
1527
+ except ImportError:
1528
+ pass # capauth.sync not available yet
1529
+ except Exception as exc:
1530
+ _warn(f"Sync setup skipped: {exc}")
1531
+
1510
1532
  # -----------------------------------------------------------------------
1511
1533
  # Step 4: Ollama Models
1512
1534
  # -----------------------------------------------------------------------