mirror of
https://github.com/Comfy-Org/comfy-typescript-sdk.git
synced 2026-11-04 23:47:27 +00:00
[PR #51] [MERGED] docs: cover getWorkflow, asset deletion, and jobId; drop stale JSDoc #62
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#62
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/51
Author: @wei-hai
Created: 8/13/2026
Status: ✅ Merged
Merged: 8/13/2026
Merged by: @wei-hai
Base:
main← Head:wei/readme-v2-surface📝 Commits (2)
73e2729docs: cover getWorkflow, asset deletion, and jobId; drop stale JSDoc3461a19docs: note the no-recorded-workflow 404 case📊 Changes
2 files changed (+37 additions, -8 deletions)
View changed files
📝
README.md(+36 -1)📝
src/sdk/jobs.ts(+1 -7)📄 Description
@comfyorg/sdk0.1.7 shipped capabilities the README never mentions, and the source carries two doc comments that stopped being true.README
getWorkflow(), the{ workflow, format }shape, and that callers must branch onformat. Submissions from this SDK always get"api"today, since v2 has no version-pinning fields yet.client.jobs.get(id)— undocumented anywhere, despite being the whole reasongetWorkflow()matters: a rehydrated job has no record of what it ran. Folded into the same section rather than given its own.asset.delete()(throws on an uncommitted handle) andclient.assets.delete(id), with the caveat that it needs a proxy new enough to serveDELETE /api/v2/assets/{id}; older ones return405.jobId/expiresAton assets, andjobIdon outputs.Stale JSDoc, which is worse than a stale README
getWorkflow()carried:Every clause of that is now false: the endpoint shipped, the spec vendors it,
OPERATION_IDScovers it, and two tests exercise it. Unlike a README, this text reaches users as an editor tooltip at the call site, so it actively tells them a working method is broken. Removed.Also added the missing
cancelingstate to thestatusdoc — the code elsewhere is explicit thatcancelingis deliberately not terminal, so omitting it from the list a caller reads is a trap.How it was checked
Every claim was read against the source behind it. The three new snippets were executed against the real client and the project's stub server — submit → poll →
getWorkflow, asset commit → delete, andoutput.jobId— rather than only typechecked.The rest of the README audited clean: all existing examples, the 12 typed error classes (1:1 with
exceptions.ts), the "one method per API operation" claim (11 operations, 11 methods, parity test passing), Node/TypeScript requirements, the auth table, and the hashing claims.lint, format, typecheck, spec-drift, hygiene, build all clean; 169/169 tests pass.
Noted, not changed
Workflow.fromJson/fromStringexist but onlyfromFileappears in the README. Pre-existing and out of scope here.🤖 Generated with Claude Code
Summary by CodeRabbit
canceling.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.