feat: initial commit

This commit is contained in:
2026-06-15 13:39:41 +07:00
commit 0afbecbe83
32 changed files with 6620 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
import type { ClaimedSocket, ProcessInfo, RelayPlatform } from './types'
const NOT_SUPPORTED = new Error('Platform not supported')
/**
* Placeholder for platforms without a real implementation yet.
*/
export class UnsupportedPlatform implements RelayPlatform {
readonly isSupported = false
fakeSocketPath(): string {
throw NOT_SUPPORTED
}
removeFakeSocket(): void {
throw NOT_SUPPORTED
}
finalizeFakeSocket(): void {
throw NOT_SUPPORTED
}
fakeSocketExists(): boolean {
throw NOT_SUPPORTED
}
async recoverLeftoverSockets(): Promise<void> {
throw NOT_SUPPORTED
}
discoverAndClaim(): ClaimedSocket[] {
throw NOT_SUPPORTED
}
discoverNewSocket(): ClaimedSocket | null {
throw NOT_SUPPORTED
}
restoreSocket(): void {
throw NOT_SUPPORTED
}
getInstanceProcess(): ProcessInfo | null {
return null
}
getPeerProcess(): ProcessInfo | null {
return null
}
}