Skip to content

Release records move to SwoopKit; BushelFoundation copies deprecated - #160

Draft
leogdion wants to merge 4 commits into
mainfrom
simulator
Draft

leogdion wants to merge 4 commits into
mainfrom
simulator

Conversation

@leogdion

Copy link
Copy Markdown
Member

Brings the simulator branch, developed inside Stewed as a git subrepo, into main. Mirror issue: #158.

What's in it

  • SDKVersionRecord was added to BushelFoundation, then moved with the other release records (XcodeVersionRecord, SimulatorRuntimeRecord, RestoreImageRecord, SwiftVersionRecord, DataSourceMetadata) to the new SwoopKit package.
  • BushelFoundation keeps copies marked @available(*, deprecated), so Bushel keeps building. They have a TODO to become typealiases of SwoopKit's once BushelKit depends on SwoopKit.
  • XcodeVersionRecord carries the Xcode's own beta/RC label (brightdigit/Stewed#138).

From brightdigit/Stewed#151, brightdigit/Stewed#141 and earlier Stewed work.

Before merging

  • CI green
  • Check Bushel still builds against it (only deprecation warnings)
  • Tag (suggested 3.0.0-alpha.5)

Merging

  • Use "Create a merge commit", not squash. Stewed vendors this package with git subrepo, and its .gitrepo points at commits on simulator; a merge commit keeps them reachable from main and the tag.
  • Tag after merging; Stewed then switches from the vendored copy to this tag (brightdigit/Stewed#108, SPEC §3.4 exit rule).

🤖 Generated with Claude Code

leogdion and others added 4 commits November 24, 2026 16:01
…shelCloud rework (#67, #68, #69, #70)

- #70 SimulatorServices: delete, boot, shutdown, and erase subcommands
- #68 Kit: status derivation, Select Superseded rule, and the 14 worked examples
- #67 Main window shell on mock data: window, sidebar, toolbar, status bar, restoration
- #69 BushelCloud: rework PR #38 (SDKVersion) onto v1.0.0-alpha.3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps both notes on the alpha.2 release-data plan index line: the Debug
CloudKit read removal (#31) and #92's SimulatorRuntimeRecord.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V3TXo3yEp4bEREhHfEpuYm
XcodeVersion records gain an optional prereleaseLabel ("Beta 3", "RC 1")
from xcodereleases, so the inspector's Shipped with names the Xcode's own
beta/RC number instead of the SDK's OS seed (#93 relabelled SDKs from
Apple's seeds: Xcode 16.1 beta 3's SDK reads "Beta 6").

- BushelFoundation: XcodeVersionRecord.prereleaseLabel (optional, old
  JSON still decodes).
- BushelCloud: XcodeReleasesFetcher sets it; CloudKit mapping writes a
  STRING field; schema.ckdb gains it.
- BushelCatalog: the XcodeVersion reader maps it (missing -> nil).
- StewedKit: RuntimeReleaseInfo(match:) uses it on build matches;
  without it, the stage alone ("Beta"/"RC"), never an OS-seed number.
- Fixtures, SPEC 3.2/4.1, memories; Development schema + sync recorded.


Claude-Session: https://claude.ai/code/session_01V3TXo5Jn64FbCcEPKQoUdp

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
New package Packages/SwoopKit (Foundation only, swift-tools 6.4) holds
the release record models every CloudKit package shares:
SDKVersionRecord, XcodeVersionRecord, SimulatorRuntimeRecord (+
ReleaseLabel), RestoreImageRecord, SwiftVersionRecord,
DataSourceMetadata and both validation errors, with their 55 tests.
It's a plain folder until its upstream repo exists (git subrepo init
is the maintainer's).

BushelFoundation keeps its copies so Bushel keeps building, marked
@available(*, deprecated) (extensions too). Each file has a TODO to
become `typealias X = SwoopKit.X` once BushelKit depends on SwoopKit.

- BushelCatalog, StewedKit, StewedApp and StewedTools depend on
  ../SwoopKit instead of BushelKit and use a plain `import SwoopKit`;
  the scoped-import workaround for PrereleaseLabel/Version is gone.
  BushelCatalog has no remote dependencies left, so its
  Package.resolved is gone; StewedKit's drops BushelKit's pins.
- BushelCloud depends on both. It imports the records from SwoopKit
  and BushelFoundation's remaining symbols (FetchConfiguration,
  DataSource, DataSourceFetcher, Formatters) with scoped imports, so
  the deprecated copies stay out of scope.
- make test-upstream and CI cover SwoopKit. SPEC §3.0/§3.4,
  CLAUDE.md, README and the memories name the new home;
  planned-refactors.md records the decisions for all four refactors
  (item 1 is StewedKit -> SimulatorServices, not MisticoKit).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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