diff --git a/Dockerfile.weft b/Dockerfile.weft index e7799ba..76ec6c7 100644 --- a/Dockerfile.weft +++ b/Dockerfile.weft @@ -16,8 +16,8 @@ COPY weft/ ./weft/ # Install dependencies and build RUN pnpm install --frozen-lockfile || pnpm install -RUN pnpm --filter @loom/shared build -RUN pnpm --filter @loom/weft build +RUN pnpm --filter @loominal/shared build +RUN pnpm --filter @loominal/weft build # Production image FROM node:20-alpine AS runner diff --git a/shared/src/types/work-item.ts b/shared/src/types/work-item.ts index e922e55..cc4b836 100644 --- a/shared/src/types/work-item.ts +++ b/shared/src/types/work-item.ts @@ -151,6 +151,9 @@ export interface WorkSubmitRequest { */ export interface WorkSubmitResponse { /** Generated work item ID */ + id: string; + + /** @deprecated Use `id` instead. Provided for backward compatibility. */ workItemId: string; /** Resolved agent type based on routing */ diff --git a/weft/src/coordinator/coordinator.ts b/weft/src/coordinator/coordinator.ts index ed4f13a..5ba6aa9 100644 --- a/weft/src/coordinator/coordinator.ts +++ b/weft/src/coordinator/coordinator.ts @@ -287,7 +287,8 @@ export class ExtendedCoordinator extends EventEmitter { } return { - workItemId, + id: workItemId, + workItemId, // Deprecated: for backward compatibility targetAgentType, spinUpTriggered, estimatedWaitSeconds,