Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/dev-agent-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ async function assertWorkspacePackage(): Promise<void> {
)
}
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'
)
}
}
Expand Down
6 changes: 1 addition & 5 deletions scripts/dev-agent-record-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
return new Promise((resolveCheck, rejectCheck) => {
const socket = createConnection({ host: '127.0.0.1', port: portNumber })
Expand All @@ -51,7 +50,6 @@ function assertListening(portNumber: number, label: string): Promise<void> {
})
}

// Polls because the Temporal dev server binds a second or two after it starts.
async function waitForPort(
portNumber: number,
label: string,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -127,7 +124,6 @@ async function redisExecCommand(): Promise<string> {
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(/^(?:"([^"]*)"|'([^']*)')$/)
Expand Down
Loading