Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 8a5be96

Browse files
authored
Merge pull request #1 from loominal/fix/api-field-naming
fix(api): standardize work submission response field naming
2 parents 3225016 + 9d7e2ce commit 8a5be96

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

Dockerfile.weft

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ COPY weft/ ./weft/
1616

1717
# Install dependencies and build
1818
RUN pnpm install --frozen-lockfile || pnpm install
19-
RUN pnpm --filter @loom/shared build
20-
RUN pnpm --filter @loom/weft build
19+
RUN pnpm --filter @loominal/shared build
20+
RUN pnpm --filter @loominal/weft build
2121

2222
# Production image
2323
FROM node:20-alpine AS runner

shared/src/types/work-item.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ export interface WorkSubmitRequest {
151151
*/
152152
export interface WorkSubmitResponse {
153153
/** Generated work item ID */
154+
id: string;
155+
156+
/** @deprecated Use `id` instead. Provided for backward compatibility. */
154157
workItemId: string;
155158

156159
/** Resolved agent type based on routing */

weft/src/coordinator/coordinator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ export class ExtendedCoordinator extends EventEmitter {
287287
}
288288

289289
return {
290-
workItemId,
290+
id: workItemId,
291+
workItemId, // Deprecated: for backward compatibility
291292
targetAgentType,
292293
spinUpTriggered,
293294
estimatedWaitSeconds,

0 commit comments

Comments
 (0)