mirror of
https://github.com/Comfy-Org/comfy-swift-sdk.git
synced 2026-11-04 23:47:26 +00:00
[PR #39] [MERGED] docs: add AGENTS.md with Swift build/test guidance #41
Labels
No labels
enhancement
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-swift-sdk#41
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-swift-sdk/pull/39
Author: @mattmillerai
Created: 7/10/2026
Status: ✅ Merged
Merged: 7/16/2026
Merged by: @mattmillerai
Base:
main← Head:matt/be-2803-agents-md📝 Commits (1)
4015229docs: add AGENTS.md with Swift build/test guidance📊 Changes
1 file changed (+63 additions, -0 deletions)
View changed files
➕
AGENTS.md(+63 -0)📄 Description
ELI-5
Robots that write code for this repo had no cheat-sheet telling them how to
build and test it — so they might reach for
npm/format:check(wrongecosystem) or trip over the iOS-only bits. This adds a short
AGENTS.mdat theroot that says: it's a Swift Package, verify with
swift build+swift test --no-parallel, everything runs on the Mac host, guard iOS-only APIbehind
#if os(iOS), respect the import boundary, and self-review beforeopening a PR (it's a public repo).
What & why
New root
AGENTS.md— the repo previously had no agent doc. Contents:swift build+swift test --no-parallel, from the package root. Explicitly calls out thatthere is no
package.json/ npm scripts /format:check. The--no-parallelrequirement and its rationale mirror
.github/workflows/ci.yml.run on the Mac host with no iOS simulator or device — and any iOS-only API
must be guarded behind
#if os(iOS)so the macOS build still compiles.ComfySwiftSDKtarget is limitedto
Foundation/CryptoKit/os, enforced byImportBoundaryTests, andnotes the
ComfyAuthKittarget is intentionally exempt.Verification
swift build— green (verified locally).affect compilation or the test suite. CI (
swift build+swift test --no-parallelon macos-15) is the outer gate.--no-parallelrationale againstci.yml, the import allowlist and itsSources/ComfySwiftSDK/-only scope againstImportBoundaryTests, and theplatform matrix against
Package.swift.Notes / judgment calls
has CI workflows (
ci.yml, a cursor-review workflow, and others). The docreflects reality — it says CI runs the same
swift build+swift test --no-parallel— while still emphasizing self-review, since automated reviewcoverage here is light.
which ships with the Swift 6 / Xcode 16 toolchain; the doc notes a new-enough
toolchain is needed. "No simulator" refers to not needing an iOS simulator,
not to not needing a Swift toolchain at all.
UIKit/UIApplicationrather thanASWebAuthenticationSession, since the latter is available on macOS too.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.