@synopackageland/cli 0.44.0 → 0.46.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.46.0
4
+
5
+ - Accept direct `ipc.StartPackagePeerUnix` calls as the SDK boundary for credential-authorized package-account protocols
6
+ - Reject aliases of the new constructor and retain custom-listener audit failures
7
+ - Document the nonroot peer listener separately from approved root executor protocols
8
+
3
9
  ## 0.44.0
4
10
 
5
11
  - Allow opt-in custom lowercase identity gateway ingress paths with reserved-prefix checks and actionable validation errors.
@@ -607,7 +607,7 @@ func main() {
607
607
  }
608
608
  if module == sdkModule+"/ipc" && !direct[selector] {
609
609
  switch name {
610
- case "ServeUnix", "StartUnix", "ServePeerUnix", "StartPeerUnix", "DialUnix", "DialPeerUnix", "ReserveLoopback", "ProbeLoopback":
610
+ case "ServeUnix", "StartUnix", "ServePeerUnix", "StartPeerUnix", "StartPackagePeerUnix", "DialUnix", "DialPeerUnix", "ReserveLoopback", "ProbeLoopback":
611
611
  problem(selector.Pos(), "IPC constructor aliases cannot be audited")
612
612
  }
613
613
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/cli",
3
- "version": "0.44.0",
3
+ "version": "0.46.0",
4
4
  "description": "Syno Package Land Developer Kit CLI",
5
5
  "type": "module",
6
6
  "bin": {
package/skills/SKILL.md CHANGED
@@ -63,6 +63,17 @@ the child. `ipc.ProbeLoopback(ctx, port)` checks a specific port without
63
63
  retaining it. Check child readiness and retry bind conflicts: release-to-bind
64
64
  is inherently racy. Never replace these with custom listeners or fixed ports.
65
65
 
66
+ For nonroot cross-package control protocols, use
67
+ `ipc.StartPackagePeerUnix(ctx, path, authorize, handler)` (SDK/CLI 0.46.0).
68
+ The SDK pins a dedicated package-owned 0711 directory, binds an owned 0666
69
+ socket and reads SO_PEERCRED before invoking the caller's authorization
70
+ callback. A nil callback denies every peer. Keep bounded frame decoding and
71
+ current operation authorization in the handler; never trust a body-supplied UID.
72
+ Root servers are refused. Only a verified owned stale socket is removed;
73
+ unsafe or live paths fail closed. Use one directory per listener. The returned
74
+ PeerServer has bounded peers, StopAccepting, Close, Wait and cancellation.
75
+ See the [package peer IPC guide](https://github.com/synopackageland/syno-pkg-land-sdk/blob/main/docs/package-peer-ipc.md).
76
+
66
77
  An optional root helper is a separately approved executor payload.
67
78
  `ipc.StartPeerUnix(ctx, path, ipc.PeerPolicy{UID: uid, GID: gid}, handler)`
68
79
  synchronously returns a peer-server handle for a bounded raw JSON control