mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 06:00:33 +02:00
Merge main into devices: MCP, analytics, Mac view alongside several headsets
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
7d6ff7f919
84 files changed
+33966
-59
No files matched your search
+6
-2
@@ -56,7 +56,7 @@ def cache_dir(*parts):
|
||||
return base.joinpath(*parts)
|
||||
|
||||
|
||||
def control_path(tag="x"):
|
||||
def control_path(tag="x", *, private=None):
|
||||
"""ssh ControlPath for the shared connection, or None where it isn't supported.
|
||||
|
||||
`tag` names the headset: ssh's %C hashes only the address, user and port, so two
|
||||
@@ -64,7 +64,11 @@ def control_path(tag="x"):
|
||||
connection, and one's commands would run on the other.
|
||||
/tmp, not $TMPDIR: macOS's per-user temp path overflows the unix socket path limit.
|
||||
"""
|
||||
return f"/tmp/frame-ui-{os.getuid()}-{tag}-%C" if MUX else None
|
||||
# A private server (the MCP adapter's) keeps its own masters: FRAME_PRIVATE_SSH=1.
|
||||
if private is None:
|
||||
private = os.environ.get("FRAME_PRIVATE_SSH") == "1"
|
||||
suffix = f"-{os.getpid()}" if private else ""
|
||||
return f"/tmp/frame-ui-{os.getuid()}{suffix}-{tag}-%C" if MUX else None
|
||||
|
||||
|
||||
def which(name, *extra):
|
||||
|
||||
Reference in new issue
Block a user