Skip to content

Fix deploy timeout issues #1661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 4, 2025
Merged

Fix deploy timeout issues #1661

merged 4 commits into from
Feb 4, 2025

Conversation

ericallam
Copy link
Member

@ericallam ericallam commented Feb 4, 2025

Summary by CodeRabbit

  • New Features

    • Introduced a new deployment finalization endpoint that streams real-time status updates and log messages.
    • Enhanced CLI tools to display clearer, dynamic progress messages during build and deployment.
    • Added support for server-sent events (SSE) in the API client for handling real-time updates.
  • Chores

    • Optimized the deployment process to avoid unnecessary operations for deployments that are already active.
    • Improved event handling for smoother real-time notifications during deployment procedures.

Copy link

changeset-bot bot commented Feb 4, 2025

🦋 Changeset detected

Latest commit: a412b35

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
trigger.dev Patch
@trigger.dev/core Patch
@trigger.dev/build Patch
@trigger.dev/sdk Patch
@internal/redis-worker Patch
@internal/zod-worker Patch
@trigger.dev/react-hooks Patch
@trigger.dev/rsc Patch
@trigger.dev/database Patch
@trigger.dev/otlp-importer Patch
references-nextjs-realtime Patch
@internal/testcontainers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

coderabbitai bot commented Feb 4, 2025

Warning

Rate limit exceeded

@ericallam has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 28 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between ea8187d and a412b35.

📒 Files selected for processing (1)
  • .changeset/tender-cycles-melt.md (1 hunks)

Walkthrough

This update introduces a new API endpoint for finalizing deployments with enhanced streaming, logging, and error handling. It modifies the existing deployment services by adding early exit checks and an optional log writer parameter, while the CLI now uses server-sent events and dynamic logging callbacks. Additionally, new types and classes for structured SSE handling have been added, alongside a dependency update in the core package.

Changes

File(s) Change Summary
apps/webapp/app/routes/api.v2.deployments.$deploymentId.finalize.ts
apps/webapp/app/routes/api.v3.deployments.$deploymentId.finalize.ts
Updated import path for FinalizeDeploymentV2Service in the v2 file; added a new v3 endpoint with request validation, authentication, streaming responses, and error handling.
apps/webapp/app/v3/services/finalizeDeployment.server.ts
apps/webapp/app/v3/services/finalizeDeploymentV2.server.ts
Introduced early exit logic when a deployment is already deployed; updated the V2 service to accept an optional writer parameter and modified function signatures for streaming logs.
packages/cli-v3/src/apiClient.ts
packages/cli-v3/src/commands/deploy.ts
packages/cli-v3/src/deploy/buildImage.ts
Modified the finalizeDeployment method to use SSE and accept an onLog callback; improved deploy command logging messages and added logging callbacks for build processes.
packages/core/package.json
packages/core/src/v3/apiClient/core.ts
Added the eventsource dependency; introduced new types, interfaces, and a class for handling SSE (including the zodfetchSSE function) to support structured message handling.

Sequence Diagram(s)

sequenceDiagram
    participant C as Client
    participant API as API Endpoint (v3 finalize)
    participant S as FinalizeDeploymentV2Service
    C->>API: POST /api/v3/deployments/{deploymentId}/finalize
    API->>API: Validate request & authenticate
    API->>S: Call service (with optional writer)
    S-->>API: Return result / stream logs
    API->>C: Stream events (ping, log, complete/error)
Loading
sequenceDiagram
    participant CLI as CLI Client
    participant API as API Server (finalize endpoint)
    CLI->>API: finalizeDeployment(id, payload, onLog callback)
    API->>CLI: Emit SSE events (log, complete, error)
    CLI->>CLI: Process events via onLog callback
Loading

Possibly related PRs

Poem

I'm a happy bunny, hopping through code so neat 🐰
Finalizing deployments with a streaming beat.
Logs and events dance in my sight,
As dynamic messages keep our system light.
With every change, I tap my feet—
Celebrating progress that’s simply sweet!


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (5)
apps/webapp/app/routes/api.v3.deployments.$deploymentId.finalize.ts (3)

15-16: Ensure consistent response format for invalid request methods.

Here, the response is returned as a plain object rather than using your framework’s standard JSON response helper. Consider using a unified approach across all error responses for better consistency.

-    return { status: 405, body: "Method Not Allowed" };
+    return json({ error: "Method Not Allowed" }, { status: 405 });

19-23: Improve error clarity for invalid parameters.

The current response only returns a generic error message. Include more context or pass along Zod error details for debugging, similar to how your body validation error is handled.


61-63: Evaluate the keep-alive ping interval.

A 10-second interval might add overhead, especially for many concurrent connections. Consider a slightly longer interval (e.g., 30 seconds) or an on-demand ping to keep the connection alive without excessive network traffic.

packages/cli-v3/src/apiClient.ts (2)

250-254: Consider more typed or contextualized log callbacks.

The onLog?: (message: string) => void callback is flexible but might become unwieldy if logs need additional metadata (levels, timestamps, etc.). Consider an interface or object parameter for structured logs.


259-309: Harden SSE lifecycle handling.

While you stop the SSE source after awaiting the promise, consider additional event handling (e.g., an open event or a fallback timer) to handle cases where the server never sends a completion event.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7fa45ad and ae7f5b4.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (9)
  • apps/webapp/app/routes/api.v2.deployments.$deploymentId.finalize.ts (1 hunks)
  • apps/webapp/app/routes/api.v3.deployments.$deploymentId.finalize.ts (1 hunks)
  • apps/webapp/app/v3/services/finalizeDeployment.server.ts (1 hunks)
  • apps/webapp/app/v3/services/finalizeDeploymentV2.server.ts (5 hunks)
  • packages/cli-v3/src/apiClient.ts (2 hunks)
  • packages/cli-v3/src/commands/deploy.ts (4 hunks)
  • packages/cli-v3/src/deploy/buildImage.ts (8 hunks)
  • packages/core/package.json (1 hunks)
  • packages/core/src/v3/apiClient/core.ts (3 hunks)
✅ Files skipped from review due to trivial changes (1)
  • apps/webapp/app/routes/api.v2.deployments.$deploymentId.finalize.ts
⏰ Context from checks skipped due to timeout of 90000ms (7)
  • GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - pnpm)
  • GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - npm)
  • GitHub Check: e2e / 🧪 CLI v3 tests (ubuntu-latest - pnpm)
  • GitHub Check: units / 🧪 Unit Tests
  • GitHub Check: e2e / 🧪 CLI v3 tests (ubuntu-latest - npm)
  • GitHub Check: typecheck / typecheck
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (18)
apps/webapp/app/routes/api.v3.deployments.$deploymentId.finalize.ts (2)

44-50: Handle abrupt client disconnections to prevent write errors.

When the client terminates the connection abruptly, attempting to write to the stream may fail, causing unhandled promise rejections. Consider adding a controller or event listener to handle disconnections gracefully.


93-102: Avoid logging full error messages if they could contain sensitive data.

When logging errors, some messages might include internal details. Use caution or masking to ensure sensitive information isn't exposed in logs.

packages/cli-v3/src/apiClient.ts (1)

24-24: Good addition of zodfetchSSE.

This import nicely integrates SSE handling with Zod validation, ensuring all events are typed and validated.

apps/webapp/app/v3/services/finalizeDeployment.server.ts (1)

46-50: Confirm no re-deployment logic is needed.

Returning early when the status is "DEPLOYED" is fine if you never need to re-run finalization. Otherwise, consider explicitly failing or allowing re-deployment with a specialized parameter or workflow.

apps/webapp/app/v3/services/finalizeDeploymentV2.server.ts (3)

16-17: LGTM! The writer parameter is properly typed.

The optional writer parameter is correctly typed as WritableStreamDefaultWriter, which is appropriate for streaming logs.


87-107: LGTM! The writer parameter is correctly passed to executePushToRegistry.

The function call correctly includes all required parameters and passes the optional writer parameter.


155-158: LGTM! The writer parameter is properly added to the function signature.

The optional writer parameter is correctly added to the executePushToRegistry function signature.

packages/cli-v3/src/commands/deploy.ts (5)

225-226: LGTM! The build spinner messages are more descriptive.

The messages have been updated to be more specific about what is being built ("trigger code" instead of "project").

Also applies to: 228-229


331-334: LGTM! The deployment spinner messages are consistent.

The messages are consistent between the links-supported and non-links-supported cases.


362-368: LGTM! The build progress is properly logged.

The onLog callback correctly updates the spinner message with build progress, maintaining consistency between links-supported and non-links-supported cases.


436-440: LGTM! The deployment spinner messages are clear.

The messages clearly indicate the deployment phase of the process.


442-455: LGTM! The deployment progress is properly logged.

The onLog callback correctly updates the spinner message with deployment progress, maintaining consistency between links-supported and non-links-supported cases.

packages/cli-v3/src/deploy/buildImage.ts (3)

39-39: LGTM! The onLog callback is consistently defined across interfaces.

The optional onLog callback is properly typed and consistently added to all relevant interfaces.

Also applies to: 145-145, 290-290


233-236: LGTM! The onLog callback is properly invoked in depotBuildImage.

The callback is correctly invoked for each log line, allowing real-time streaming of build logs.


349-349: LGTM! The onLog callback is properly invoked in selfHostedBuildImage.

The callback is correctly invoked for each log line, ensuring consistent log streaming behavior across build methods.

packages/core/src/v3/apiClient/core.ts (2)

620-622: LGTM! The SSE types are well-defined and flexible.

The type definitions provide a robust foundation for type-safe SSE handling:

  • ZodFetchSSEMessageValueSchema allows both first-party schemas and discriminated unions
  • ZodFetchSSEMessageCatalogSchema enables a flexible message catalog
  • ZodFetchSSEMessageHandlers ensures type-safe message handlers
  • ZodFetchSSEOptions provides a clean configuration interface

Also applies to: 624-626, 628-631, 633-638


686-690: LGTM! The zodfetchSSE function provides a clean API.

The function provides a simple way to create SSE connections with type-safe message handling.

packages/core/package.json (1)

200-200: New Dependency for SSE Streaming Added

The addition of "eventsource": "^3.0.5" supports enhanced SSE functionality—critical for the new API endpoint managing deployment finalization with real-time log streaming. Please ensure that:

  • This version constraint aligns with other SSE-related libraries in the ecosystem (e.g., "eventsource-parser": "^3.0.0").
  • The dependency is tested in environments where SSE streaming is critical to avoid any potential timing or compatibility issues.

Comment on lines +198 to +203
// Now we can write strings directly
if (writer) {
for (const line of lines) {
await writer.write(`event: log\ndata: ${JSON.stringify({ message: line })}\n\n`);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Consider error handling for stream writes.

The code writes to the stream without handling potential write errors. Stream writes can fail, especially in case of network issues or if the client disconnects.

Apply this diff to add error handling:

 if (writer) {
   for (const line of lines) {
-    await writer.write(`event: log\ndata: ${JSON.stringify({ message: line })}\n\n`);
+    try {
+      await writer.write(`event: log\ndata: ${JSON.stringify({ message: line })}\n\n`);
+    } catch (error) {
+      logger.error("Failed to write to stream", { error });
+      break;
+    }
   }
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// Now we can write strings directly
if (writer) {
for (const line of lines) {
await writer.write(`event: log\ndata: ${JSON.stringify({ message: line })}\n\n`);
}
}
// Now we can write strings directly
if (writer) {
for (const line of lines) {
try {
await writer.write(`event: log\ndata: ${JSON.stringify({ message: line })}\n\n`);
} catch (error) {
logger.error("Failed to write to stream", { error });
break;
}
}
}

Comment on lines 640 to 684
export class ZodFetchSSEResult<TMessageCatalog extends ZodFetchSSEMessageCatalogSchema> {
private _eventSource: EventSource;

constructor(private options: ZodFetchSSEOptions<TMessageCatalog>) {
this._eventSource = new EventSource(options.url, {
fetch: (input, init) => {
return fetch(input, {
...init,
...options.request,
headers: {
...options.request?.headers,
Accept: "text/event-stream",
},
});
},
});
}

public onMessage<T extends keyof TMessageCatalog>(
type: T,
handler: ZodFetchSSEMessageHandlers<TMessageCatalog>[T]
) {
this._eventSource.addEventListener(type as string, (event) => {
const payload = safeJsonParse(event.data);

if (!payload) {
return;
}

const schema = this.options.messages[type];

const result = schema.safeParse(payload);

if (result.success) {
handler?.(result.data);
} else {
console.error(result.error);
}
});
}

public stop() {
this._eventSource.close();
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Consider adding error event handling.

The ZodFetchSSEResult class handles message events but doesn't handle SSE connection errors. This could lead to silent failures.

Add error event handling:

 constructor(private options: ZodFetchSSEOptions<TMessageCatalog>) {
   this._eventSource = new EventSource(options.url, {
     fetch: (input, init) => {
       return fetch(input, {
         ...init,
         ...options.request,
         headers: {
           ...options.request?.headers,
           Accept: "text/event-stream",
         },
       });
     },
   });
+
+  this._eventSource.onerror = (event) => {
+    console.error("SSE connection error:", event);
+    // Optionally, attempt to reconnect or notify the user
+  };
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export class ZodFetchSSEResult<TMessageCatalog extends ZodFetchSSEMessageCatalogSchema> {
private _eventSource: EventSource;
constructor(private options: ZodFetchSSEOptions<TMessageCatalog>) {
this._eventSource = new EventSource(options.url, {
fetch: (input, init) => {
return fetch(input, {
...init,
...options.request,
headers: {
...options.request?.headers,
Accept: "text/event-stream",
},
});
},
});
}
public onMessage<T extends keyof TMessageCatalog>(
type: T,
handler: ZodFetchSSEMessageHandlers<TMessageCatalog>[T]
) {
this._eventSource.addEventListener(type as string, (event) => {
const payload = safeJsonParse(event.data);
if (!payload) {
return;
}
const schema = this.options.messages[type];
const result = schema.safeParse(payload);
if (result.success) {
handler?.(result.data);
} else {
console.error(result.error);
}
});
}
public stop() {
this._eventSource.close();
}
}
export class ZodFetchSSEResult<TMessageCatalog extends ZodFetchSSEMessageCatalogSchema> {
private _eventSource: EventSource;
constructor(private options: ZodFetchSSEOptions<TMessageCatalog>) {
this._eventSource = new EventSource(options.url, {
fetch: (input, init) => {
return fetch(input, {
...init,
...options.request,
headers: {
...options.request?.headers,
Accept: "text/event-stream",
},
});
},
});
this._eventSource.onerror = (event) => {
console.error("SSE connection error:", event);
// Optionally, attempt to reconnect or notify the user
};
}
public onMessage<T extends keyof TMessageCatalog>(
type: T,
handler: ZodFetchSSEMessageHandlers<TMessageCatalog>[T]
) {
this._eventSource.addEventListener(type as string, (event) => {
const payload = safeJsonParse(event.data);
if (!payload) {
return;
}
const schema = this.options.messages[type];
const result = schema.safeParse(payload);
if (result.success) {
handler?.(result.data);
} else {
console.error(result.error);
}
});
}
public stop() {
this._eventSource.close();
}
}

Copy link

pkg-pr-new bot commented Feb 4, 2025

@trigger.dev/build

npm i https://pkg.pr.new/triggerdotdev/trigger.dev/@trigger.dev/build@1661

trigger.dev

npm i https://pkg.pr.new/triggerdotdev/trigger.dev@1661

@trigger.dev/react-hooks

npm i https://pkg.pr.new/triggerdotdev/trigger.dev/@trigger.dev/react-hooks@1661

@trigger.dev/rsc

npm i https://pkg.pr.new/triggerdotdev/trigger.dev/@trigger.dev/rsc@1661

@trigger.dev/core

npm i https://pkg.pr.new/triggerdotdev/trigger.dev/@trigger.dev/core@1661

@trigger.dev/sdk

npm i https://pkg.pr.new/triggerdotdev/trigger.dev/@trigger.dev/sdk@1661

commit: a412b35

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
packages/cli-v3/src/apiClient.ts (1)

250-316: LGTM! Consider adding Promise rejection handling.

The SSE implementation is well-structured with proper event handling for completion, errors, and logging. The cleanup is handled correctly by stopping the SSE connection.

Consider adding a try-catch block around the Promise to ensure proper error handling:

   async finalizeDeployment(
     id: string,
     body: FinalizeDeploymentRequestBody,
     onLog?: (message: string) => void
   ): Promise<ApiResult<FailDeploymentResponseBody>> {
     if (!this.accessToken) {
       throw new Error("finalizeDeployment: No access token");
     }

+    try {
       let resolvePromise: (value: ApiResult<FailDeploymentResponseBody>) => void;
       let rejectPromise: (reason: any) => void;

       const promise = new Promise<ApiResult<FailDeploymentResponseBody>>((resolve, reject) => {
         resolvePromise = resolve;
         rejectPromise = reject;
       });

       const source = zodfetchSSE({
         url: `${this.apiURL}/api/v3/deployments/${id}/finalize`,
         request: {
           method: "POST",
           headers: {
             Authorization: `Bearer ${this.accessToken}`,
             "Content-Type": "application/json",
           },
           body: JSON.stringify(body),
         },
         messages: {
           error: z.object({ error: z.string() }),
           log: z.object({ message: z.string() }),
           complete: FailDeploymentResponseBody,
         },
       });

       source.onConnectionError((error) => {
         rejectPromise({
           success: false,
           error,
         });
       });

       source.onMessage("complete", (message) => {
         resolvePromise({
           success: true,
           data: message,
         });
       });

       source.onMessage("error", ({ error }) => {
         rejectPromise({
           success: false,
           error,
         });
       });

       if (onLog) {
         source.onMessage("log", ({ message }) => {
           onLog(message);
         });
       }

       const result = await promise;

       source.stop();

       return result;
+    } catch (error) {
+      return {
+        success: false,
+        error: error instanceof Error ? error.message : String(error),
+      };
+    }
   }
packages/core/src/v3/apiClient/core.ts (1)

640-694: LGTM! Consider enhancing error logging.

The SSE implementation is robust with proper lifecycle management, error handling, and type safety.

Consider enhancing error logging in the onMessage handler:

   public onMessage<T extends keyof TMessageCatalog>(
     type: T,
     handler: ZodFetchSSEMessageHandlers<TMessageCatalog>[T]
   ) {
     this._eventSource.addEventListener(type as string, (event) => {
       const payload = safeJsonParse(event.data);

       if (!payload) {
+        console.error(`Failed to parse SSE message of type '${type}':`, event.data);
         return;
       }

       const schema = this.options.messages[type];

       const result = schema.safeParse(payload);

       if (result.success) {
         handler?.(result.data);
       } else {
-        console.error(result.error);
+        console.error(`Invalid SSE message of type '${type}':`, {
+          error: result.error,
+          payload,
+        });
       }
     });
   }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ae7f5b4 and ea8187d.

📒 Files selected for processing (2)
  • packages/cli-v3/src/apiClient.ts (2 hunks)
  • packages/core/src/v3/apiClient/core.ts (3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - pnpm)
  • GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - npm)
  • GitHub Check: units / 🧪 Unit Tests
  • GitHub Check: typecheck / typecheck
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (2)
packages/cli-v3/src/apiClient.ts (1)

24-24: LGTM!

The import of zodfetchSSE is correctly added to support the new SSE functionality.

packages/core/src/v3/apiClient/core.ts (1)

620-638: LGTM! Well-structured type definitions.

The type definitions are well-designed with proper handling of discriminated unions and flexible message catalogs.

@ericallam ericallam merged commit 53e6d47 into main Feb 4, 2025
13 checks passed
@ericallam ericallam deleted the deploy-v2-streaming branch February 4, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant