mirror of
https://github.com/Comfy-Org/comfy-typescript-sdk.git
synced 2026-11-04 23:47:27 +00:00
[PR #202] fix: land the cloud@b8907cf v2 spec sync (format, regenerate, listJobs) #205
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
bug
cursor-review-pin
effort:medium
effort:small
effort:trivial
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-typescript-sdk#205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-typescript-sdk/pull/202
Author: @mattmillerai
Created: 10/9/2026
Status: 🔄 Open
Base:
main← Head:matt/land-v2-spec-sync-b8907cf📝 Commits (5)
379af55chore: sync vendored Comfy API v2 spec from cloud@b8907cfea7bad3Merge remote-tracking branch 'origin/chore/sync-v2-spec' into matt/land-v2-spec-sync-b8907cfee0b5f3fix: land the cloud@b8907cf v2 spec sync (format, regenerate, listJobs)f69f83dfix(low): take JobMetadata, JobListItem and JobListPage from the generated spec typesc1c641ddocs: mark the low jobs-list type change breaking, and match Asset.jobId to the dedup contract📊 Changes
9 files changed (+695 additions, -100 deletions)
View changed files
📝
CHANGELOG.md(+11 -0)📝
spec/openapi.yaml(+340 -29)📝
src/low/generated/index.ts(+1 -1)📝
src/low/generated/types.gen.ts(+243 -26)📝
src/low/generated/zod.gen.ts(+86 -10)📝
src/low/index.ts(+0 -2)📝
src/low/transport.ts(+6 -30)📝
src/sdk/assets.ts(+6 -1)📝
src/sdk/jobs.ts(+2 -1)📄 Description
Summary
Lands the vendored v2 spec sync from #158 (
cloud@b8907cf) together with the follow-up it needs. #158's rolling sync branch must not take commits, so the follow-up goes on this branch instead. The branch merges #158's commit unchanged and adds commits that make these changes:spec/openapi.yamlrun through oxfmt. The parsed content is unchanged; the sync wrote it unformatted, which failedpnpm format:checkbefore any test could run.src/low/generatedregenerated withpnpm generate. The sync could not do this itself.listJobs: added toOPERATION_IDSandOPERATION_METHODS. The spec now declaresGET /api/v2/jobs(listJobs), whichComfyLow.listJobs(#200) already called ahead of the spec. The old "ahead of the vendored spec" note on that method is removed.JobMetadata,JobListItemandJobList, which the hand-written copies insrc/low/transport.tswere shadowing with a drifted shape. The hand-written copies are removed so the generated ones are exported;JobListPageis now an alias ofJobList, andjobSummaryreads the undeclareddeployment_idextra narrowed to a string. Noted under CHANGELOG "Changed".Asset.jobIdTSDoc now matches the synced contract. An upload that matches an existing output by file path and bytes resolves to that output and carries its job. The CHANGELOG entry for the jobs-list types is marked Breaking for@comfyorg/sdk/lowtype consumers.Once this lands, #158 has nothing left to add. The next sync run should refresh or close it.
ELI5
The server team published a new version of the API description, and the bot copied it in. The bot couldn't finish the job: the file wasn't formatted, the generated code wasn't rebuilt, and one new endpoint (listing jobs) wasn't registered, although the SDK already supported it. This PR finishes those three steps.
Provenance
Verified:
c1c641d:pnpm lint,pnpm format:check,pnpm typecheck,pnpm check:spec-drift(both checks OK),pnpm test(785 passed, 5 skipped) andpnpm build.Deviations:
errorevent, bodiless HEAD 403/429,sso_requiredmapping, the bare-message400, the list-itemdeployment_id, therate_limitederror mapping and header-less retry, 429 retry on the asset materialization path, and 429 handling inJob.events().🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.