Skip to content

chore: 2.1.0 — Stim Host self-update, project plugins, disposable dependency folders - #6665

Merged
janicduplessis merged 1 commit into
mainfrom
chore/release-2.1.0
Nov 29, 2026
Merged

janicduplessis merged 1 commit into
mainfrom
chore/release-2.1.0

Conversation

@janicduplessis

Copy link
Copy Markdown
Collaborator

Description

Cut Stim 2.1.0 stable from main at 23a4906 (#6655 merged). It is a minor: since 2.0.0, main gained the self-updating Stim Host (#6611), the fseventsd helper (#6602), project plugin kinds with Android builds (#6610, #6631), the maintenance.cleanAutoDiscoveredDependencies setting (#6639) and the maintenance.discoverRoots -> maintenance.managedFolders rename (#6647). docs/releases/2.1.0.md is the changelog; every commit since v2.0.0 has an entry.

One thing for the reviewer: #6639 removed dependencyEdits from status --json. That field is not on the "no compatibility" list in stim guide api, so 2.0.0's "JSON payloads only gain fields" line does not cover its removal. The notes list it under Removed (breaking). The field was optional and is now never present.

Solution

The Stim Host pin is already 0.2.1 (#6629) and packages/server/host matches host-v0.2.1. PHONE_API (2) and DESKTOP_API (1) are unchanged since v2.0.0, and the FSEvents helper is unchanged.

Test plan

  • pnpm install --frozen-lockfile, pnpm run release:prep --check, node scripts/host-release-check.mjs (packages/server/host matches host-v0.2.1), pnpm run build, pnpm run format:check, and the built CLI's --help, guide agent and --version (2.1.0) pass.
  • Both pnpm-packed tarballs carry README and LICENSE. The CLI carries native/darwin/stim-fsevents and depends on cross-spawn 7.0.6 exactly, with no @stim-cli/* runtime dependency. cache-s3 depends on stim 2.1.0 with peer ^2.1.0. Neither has a workspace: range.
  • Real run of feat: a project plugin can declare an Android build that stim android runs #6631's plugin Android build with this build: a scratch home, a manifest-only plugin whose debug command is /bin/cp <signed apk> {output}. stim android --json booted an owned emulator, installed the APK and reported launched: true. That emulator is the fixture for the Android probe in test:compat.
  • Native compatibility (pnpm run test:compat): result in a comment below.

@janicduplessis janicduplessis added ci-full run the macOS, Windows, Desktop and license jobs on this pull request area: docs docs/ and root documents area: repo .github/, scripts/, test/, packaging/, patches/, root config and removed ci-full run the macOS, Windows, Desktop and license jobs on this pull request labels Nov 29, 2026
@janicduplessis

Copy link
Copy Markdown
Collaborator Author

Fresh review of the 2.1.0 version PR (at 9967009)

Result: no actionable findings.

Diff vs origin/main

  • packages/stim-cli/package.json and packages/cache-s3/package.json: 2.0.0 to 2.1.0, in lockstep. No other file needs the bump: apps/mobile/src/generated/licenses.json lists no published package version, and the lockfile records workspace links only.
  • docs/releases/unreleased.md: reset to its heading. Its four entries (two project plugin entries, cross-spawn, CRLF warm) all moved into 2.1.0.md.
  • The branch sits on origin/main (23a4906).

Release notes, checked against origin/main

  • Coverage: the 22 commits in v2.0.0..origin/main match the 22 full SHAs linked in the notes one for one. Every short SHA is a prefix of its link target.
  • Stim Host self-update: keepHostCurrent (packages/stim-cli/src/stimd/host-update.ts) runs once per stimd start, retries every 60 minutes, logs host_update_failed, and returns early when engine.autoUpdate is off. updateInstalledHostApp (packages/server/src/stim-host.ts) acts only on ~/Applications/Stim Host.app with an older version: it does not install on a Mac with no Stim Host and does not downgrade. Pinned version 0.2.1 at stim-host.ts:73. host-v0.2.1 exists and nothing under packages/server/host changed after it.
  • Helper and fseventsd: stim service install --helper advice, the kickstart command and label system/dev.stim.host.helper, and the Desktop copy ("2 GB of memory", fseventsd listed) all match the code. In stim-host-helper.c:183 the helper's memory figure is the larger of footprint and RSS, and from 9c2c3b5 it exits when its executable is replaced.
  • Project plugins: a plugin folder's validate refuses everything except android with a not-an-app problem, which stim start and the build commands raise as STIM_NO_PROJECT. stim plugin list, stim doctor and stim settings set plugins report manifest problems through plugin-refs.ts and settings-write.ts. The Android build has offload: null, refuses the cache, and targets only emulator. The machine setting plugins (absolute paths), status line project: ${name} (plugin ${package}), STIM_NO_PROJECT, the debug/release/output: "apk" shape, {root}/{output} as the only placeholders, PATH or absolute executable, .exe on Windows, and the five stim/plugin exports all match.
  • Dependency cleanup: maintenance.cleanAutoDiscoveredDependencies, default false, env STIM_MAINTENANCE_CLEAN_AUTO_DISCOVERED_DEPENDENCIES, and $STIM_HOME/rescued all match. dependencyEdits and dependency-installs no longer appear anywhere on origin/main.
  • Ignored files: gc.worktreeGraceMinutes exists. The registered and discovered activity difference and the .docusaurus/.pnpm-store rule match PRs fix: treat git-ignored files in a linked worktree as disposable #6651 and fix: skip .docusaurus and .pnpm-store when comparing a finished worktree's ignored files #6646.
  • Rename: maintenance.managedFolders with formerly: 'maintenance.discoverRoots' (compat C35). A set removes the old key at machine scope. Unset through the old name, and the report of the old key as not read in stim settings and doctor, match feat: rename maintenance.discoverRoots to maintenance.managedFolders #6647. --scope exists on settings set.
  • gc report: $STIM_HOME/gc/report-cache.json, a 15 minute budget, and the 6,617 to 2,685 git calls figure (from perf: gc reports ask git each question once #6627) all match. A first sweep answers pending, and phone machine.details reads the same entry. The swap label swap, N files in /System/Volumes/VM matches its test.
  • Lock recovery, cross-spawn pin and CRLF warm: the notes match fix: a lock left with an unrecorded child is recovered after a reboot #6635, fix: pin cross-spawn 7.0.6, whose 7.1.0 breaks npm on Windows #6660 and fix: a warmed npm worktree's Windows build is cached again #6655. The reworded CRLF entry (line 22) is accurate: the digest fold in installInputDigest does not depend on the package manager, and the file-time explanation matches fix: a warmed npm worktree's Windows build is cached again #6655. cross-spawn is pinned at 7.0.6 in stim's dependencies, so a published install picks it up.
  • Issue links: each "Fixes" link matches the PR's closing issue.
  • No em dashes in the notes.

Version

2.1.0 (minor) is correct. npm latest is 2.0.0, and next holds only a -next. build, which RELEASE.md says to ignore. The release adds settings, a plugin kind and exports. Its one break is the removal of the optional dependencyEdits field from status --json, listed under "Removed (breaking)". No app in the repository read that field. No frozen surface changed.

For the maintainer

These items are in code already merged on main, not in this diff. I am naming them here rather than adding a label.

Nits (not blocking)

  1. docs/releases/2.1.0.md:28-29: the internal and test-only lines do not link the issues their PRs close: Offload Exact builds through the internal plugin interface, with a generic plugin wire field #6649 (refactor: offload Exact builds through the iOS plugin interface #6650), Serve the built-in Exact iOS integration through an internal plugin interface #6642 (refactor: serve Exact iOS through an internal plugin interface #6648) and Exact behaviours with no test: Android refusal, build-only, doctor note, toolchain remedy, headroom default #6640 (test: cover the untested Exact behaviours #6641). Every other entry links its issue.
  2. docs/releases/2.1.0.md:21: the (stim) package tag on the cross-spawn line is redundant. RELEASE.md asks for a tag only when a line is not about the CLI.
  3. Already on main, not in this diff: the engine.autoUpdate description in packages/core/state/settings-registry.ts (shown by stim settings) does not say it also gates the Stim Host update. website/docs/settings.md does.
  4. The version commit's subject contains an em dash. It is not in the notes.

CI was still running when this review was written.

@janicduplessis janicduplessis added the review: ai-approved A fresh AI review found nothing left to fix label Nov 29, 2026
@janicduplessis

Copy link
Copy Markdown
Collaborator Author

Native compatibility (pnpm run test:compat) on 9967009: 15 files passed, 1 skipped; 44 tests passed, 1 Windows-only skip. Setup: the designated test iPhone (STIM_COMPAT_IOS_UDID), agent-device source at v0.21.31 (f3d2619ab), the installed agent-device for the daemon probes, and emulator-5554 booted and owned by this build's stim android in a scratch home on a dedicated ADB server (port 5099), with TMPDIR set to that scratch directory.

@janicduplessis
janicduplessis marked this pull request as ready for review November 29, 2026 01:05
@janicduplessis
janicduplessis enabled auto-merge (squash) November 29, 2026 01:05
@janicduplessis
janicduplessis merged commit 981bff9 into main Nov 29, 2026
128 of 137 checks passed
@janicduplessis
janicduplessis deleted the chore/release-2.1.0 branch November 29, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs docs/ and root documents area: repo .github/, scripts/, test/, packaging/, patches/, root config review: ai-approved A fresh AI review found nothing left to fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant