Improve daemon RPC resiliency and diff handling

This commit is contained in:
Mohamed Boudra
2026-02-04 10:21:36 +07:00
parent 10a2ef34a3
commit 79aec0069c
26 changed files with 467 additions and 109 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import type { Command } from 'commander'
import { connectToDaemon, getDaemonHost } from '../../utils/client.js'
import type {
DaemonClientV2,
DaemonClient,
AgentStreamMessage,
AgentStreamSnapshotMessage,
AgentStreamEventPayload,
@@ -107,7 +107,7 @@ export async function runAttachCommand(
process.exit(1)
}
let client: DaemonClientV2
let client: DaemonClient
try {
client = await connectToDaemon({ host: options.host as string | undefined })
} catch (err) {
+3 -3
View File
@@ -2,7 +2,7 @@ import type { Command } from 'commander'
import { connectToDaemon, getDaemonHost } from '../../utils/client.js'
import type { CommandOptions } from '../../output/index.js'
import type {
DaemonClientV2,
DaemonClient,
AgentStreamMessage,
AgentStreamSnapshotMessage,
AgentTimelineItem,
@@ -80,7 +80,7 @@ export async function runLogsCommand(
process.exit(1)
}
let client: DaemonClientV2
let client: DaemonClient
try {
client = await connectToDaemon({ host: options.host as string | undefined })
} catch (err) {
@@ -172,7 +172,7 @@ export async function runLogsCommand(
* Follow mode: stream logs in real-time until interrupted
*/
async function runFollowMode(
client: DaemonClientV2,
client: DaemonClient,
agentId: string,
options: AgentLogsOptions
): Promise<void> {