tsc --noEmit: 26 → 0 ✅ bun run build: 562 files ✅ bun test: 3338 pass (0 regression) 变更 (9 files, +128/-12): - udsClient.ts: 补 sendToUdsSocket, listAllLiveSessions, LiveSession 类型, PeerInfo 扩展字段 - peerAddress.ts: scheme 联合加 'tcp', 补 parseTcpTarget stub - peerSessions.ts: 补 listBridgePeers() stub - channelNotification.ts: 补 ChannelPermissionRequestNotificationSchema + channel_context - acp-link/command.ts: @stricli/core 类型断言 (as any + optional) - acp/agent.ts: 完整 AcpAgent stub (implement Agent interface) - computer-use-swift/types.ts: ScreenshotAPI 加 captureWindowTarget? - ListPeersTool: bridge peer address 映射 - disconnect-monitor.test.ts: status 字段 as any Bridge 远程控制链 (Daemon→UDS/TCP→Bridge→ACP) 类型层已完整就绪。
37 lines
897 B
TypeScript
37 lines
897 B
TypeScript
// Stub — UDS client for peer discovery. CC_Pure keeps core remote-control.
|
|
// Full UDS mesh is disabled; these stubs satisfy the typechecker.
|
|
|
|
export interface PeerInfo {
|
|
peerId: string
|
|
socketPath: string
|
|
messagingSocketPath?: string
|
|
name?: string
|
|
kind?: string
|
|
cwd?: string
|
|
pid?: number
|
|
sessionId?: string
|
|
}
|
|
|
|
export interface LiveSession {
|
|
kind: string
|
|
sessionId: string
|
|
}
|
|
|
|
/** List connected peers on the UDS mesh. */
|
|
export async function listPeers(): Promise<PeerInfo[]> {
|
|
return []
|
|
}
|
|
|
|
/** Send a message to a UDS socket. CC_Pure: not implemented. */
|
|
export async function sendToUdsSocket(
|
|
_socketPath: string,
|
|
_message: unknown,
|
|
): Promise<void> {
|
|
throw new Error('sendToUdsSocket: not available in CC_Pure')
|
|
}
|
|
|
|
/** List all live sessions via UDS. CC_Pure: not implemented. */
|
|
export async function listAllLiveSessions(): Promise<LiveSession[]> {
|
|
return []
|
|
}
|