diff --git a/scripts/dev-agent-integration.ts b/scripts/dev-agent-integration.ts index 5fee2dfd92e..8672e0edd4d 100644 --- a/scripts/dev-agent-integration.ts +++ b/scripts/dev-agent-integration.ts @@ -39,8 +39,8 @@ async function assertWorkspacePackage(): Promise { ) } if (!dependency.startsWith('workspace:')) { - console.warn( - '[dev-agent-integration] @comfyorg/comfy-multi-player is the published package; edits to it will not hot-reload until it is an in-workspace dependency' + throw new Error( + '@comfyorg/comfy-multi-player must use a workspace: dependency' ) } } diff --git a/scripts/dev-agent-record-mode.ts b/scripts/dev-agent-record-mode.ts index 7509befe036..09381d8ca38 100644 --- a/scripts/dev-agent-record-mode.ts +++ b/scripts/dev-agent-record-mode.ts @@ -29,7 +29,6 @@ const TEMPORAL_INSTALL = const RECORD_USER_ID = 'rec-local-user' const RECORD_WORKSPACE_ID = 'w-1f2e3d4c-5b6a-4798-8899-aabbccddeeff' -// Neither Postgres nor Redis speaks HTTP, so a TCP connect is the whole check. function assertListening(portNumber: number, label: string): Promise { return new Promise((resolveCheck, rejectCheck) => { const socket = createConnection({ host: '127.0.0.1', port: portNumber }) @@ -51,7 +50,6 @@ function assertListening(portNumber: number, label: string): Promise { }) } -// Polls because the Temporal dev server binds a second or two after it starts. async function waitForPort( portNumber: number, label: string, @@ -87,13 +85,12 @@ export function containerNamesPublishing( .map((line) => line.split(' ')) .filter( ([, imageName, ...ports]) => - imageName.includes(image) && + imageName.replace(/@.+$/, '').replace(/:[^/]+$/, '') === image && ports.join(' ').includes(`:${portNumber}->`) ) .map(([name]) => name) } -// Neither psql nor redis-cli is on PATH here, so each service is reached through its container. async function containerFor( portNumber: number, service: string, @@ -127,7 +124,6 @@ async function redisExecCommand(): Promise { return `docker exec -i ${name} redis-cli` } -// Every value is a module constant, so the statement carries no caller input. export function parseExecCommand(command: string): string[] { const parts = command.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g)?.map((part) => { const quoted = part.match(/^(?:"([^"]*)"|'([^']*)')$/)