Repository navigation
v0.9.68: v2 api aliases, billing checkout hardening, mcp and security fixes - #10478
Merged
Merged
Conversation
…ng and free builders posts (#10468)
…or (#10469) Enterprise is issued by the team with its own Stripe price and metadata. A self-serve upgrade naming it wrote the plan onto a pending subscription row, which the Enterprise metadata constraint rejected, and the caller got a 500. The checkout hook now refuses it with a 400 before taking the admission claim.
…on (#10470) * fix(billing): tighten self-serve checkout and Enterprise reconciliation - checkout refuses Enterprise in any casing, caller-supplied subscription metadata, and seat counts outside 1..1000; the Stripe plugin is no longer offered the Enterprise plan - Enterprise reconciliation skips subscriptions created by self-serve checkout - an organization checkout checks membership before any billing state - the usage callback answers a failed internal auth with a constant message * fix(billing): log a free payer's hosted-key refusal at info A refused hosted key is the payer's plan, not a fault, and logging it at error hid real key resolution failures among retry loops of expected refusals.
…r error logs, 409 on reused desktop requests (#10471) - auth before-hook narrows body.email to a string before lowercasing, so a non-string email reaches Better Auth's body validation (400) instead of throwing a TypeError (500); the signup MX check uses the same narrowed value - credential validators log at most 200 characters of an upstream error body, with control characters collapsed, through one helper shared by readProviderErrorSnippet and the JSON path in validators/http.ts - preparing a desktop source-connect request with an id already in use throws OrchestrationError('conflict') (409) instead of a plain Error (500); the original request is kept
#10418 renamed public v2 names with no alias, and the v2 schemas reject unknown keys and values, so clients written against the earlier names now get 400s. Restore them as deprecated aliases at the contract layer: - execute: run.source "manual" (now "draft") and run.entry.useMockPayload (now sample) are accepted and folded into the current names - PUT state, POST operations, and the workflow/workspace source applies: ?dryRun (now ?dry) is accepted, and dryRun is sent beside dry in the response; the source-apply rate bucket honours it too, so a ?dryRun request is charged as a dry run A request that sends both names with different values is refused. The OpenAPI spec marks the old names deprecated, and the CLI generates no flag for them.
* fix(mongodb): connect to exactly the validated host validateDatabaseHost now refuses anything but a single hostname or IP literal before resolving it, so a seed list, userinfo, port, path or options can no longer pass the address check while the driver connects elsewhere. The MongoDB client builds its connection string from the validated host and port only, passes credentials, authSource and TLS as driver options, sets directConnection so server-advertised members are never followed, and validates the port and database name. * fix(mongodb): measure the database name limit in bytes
…es not exist (#10474) * fix(mcp): return 400 from test-connection when the server hostname does not exist A hostname the resolver proves does not exist (ENOTFOUND) is the caller's input, so test-connection now answers 400 with the same message. Transient lookup failures (EAI_AGAIN, timeouts) keep returning 502. The classification reuses isHostNotFound, matching the credential validators' site_not_found split. * test(mcp): cover test-connection status for missing and transient DNS failures
* fix(mcp): name the reason on MCP route 400 log lines * fix(mcp): log only the slice for MCP validation failures * fix(mcp): pass a route context in the test-connection route tests
…rst (#10476) * fix(copilot): block duplicate chat deletes and leave the open chat first * fix(copilot): keep a deleting chat from auto-reopening and restore it on failure * fix(copilot): prune drafts and invalidate from mutation variables, drop failure restore
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[High impact] This PR appears safe to merge; no actionable new issues were found. SummaryThis release restores older v2 API names and tightens checkout and outbound connection checks.
No actionable new issues were found. Review was based on source inspection; tests were not run. Reviews (2) · Last reviewed commit: "fix(copilot): block duplicate chat delet..." · Reviewed by Greptile |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 61 files
This PR changes a public API contract. Ultrareviews find 2.4x more serious bugs than standard reviews. Comment @cubic-dev-ai ultrareview to run one.
Turn on auto-fix | Re-trigger cubic
Merged
6 tasks done
…n integration test (#10479) The rejected sign-in is audited with no resourceId, so the user-scoped afterEach cleanup missed it. The test now sends a unique user-agent, waits for its audit row, and deletes it in finally, matching the legacy-collision test in the same file.
…hat took its place (#10480) * fix(copilot): reopen the chat when its delete fails, unless another chat took its place The panel leaves the open chat before deleting it. A failed delete now reopens it, but only if the workflow still has no selection, so a chat opened or started in the meantime is kept. * fix(copilot): restore only when the user took no chat action since the delete An empty selection doesn't prove the panel is idle: a message sent from the empty panel has no chat id until its POST returns. Count select, new-chat and send actions instead, and reopen the chat only if none happened while the delete was pending. * fix(copilot): a chat already deleted elsewhere counts as deleted The route returns 404 only when another request deleted the chat between its lookup and its delete. Treat that like success, so the draft is pruned, the list refreshes, and the panel never reopens a chat that no longer exists. * fix(copilot): guard the delete restore on live panel state, not an action count A count of panel actions misses selections that land later (a new chat whose create returns after the delete) and sends that don't go through the panel's handlers. Restore only when the workflow still has no selection and the panel holds no transcript and no send in flight.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.