Repository navigation
ios-simulator.js part 2: seven seams into create<Seam>(ctx) modules (#1447 pass V2) - #1474
Merged
Merged
Conversation
…s-simulator-journal.js Seam 1 of the createIOSSimulatorService split (#1447 pass V2). Verbatim move of readPreferences, syncParentDirectory, atomicWriteJson, writePreferences, enqueueJournalOp, writeJournal, removeJournal, readLeaseJournalRecord, quarantineJournalLocked, quarantineJournal and removeJournalStrict. The seam owns journalTail. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…imulator-devices.js Seam 2 of the createIOSSimulatorService split (#1447 pass V2). Verbatim move of selectedDeveloperDirectory, discoverRaw, discoverDevices, discoverCapabilities, validate(AndPersist)DeveloperDirectory, getCapabilities, selectDeveloperDirectory, listDevices, discoverToolchains, fingerprintToolchain and ensureHelper. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…app-bundle.js Seam 3 of the createIOSSimulatorService split (#1447 pass V2). Verbatim move of resolveExecutionRoot, validateBundleWithinRoot and prepareAppBundle, plus BUNDLE_WALK_LIMIT. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-recovery.js Seam 4 of the createIOSSimulatorService split (#1447 pass V2). Verbatim move of the helpers recover() drives: resolveRecoveryTempPath, the recorder/helper process matching and signalling, removeRecoveredTempFile, trustedRecoveryDeveloperDir, shutdownRecoveredDevice, quarantineSummary and retainJournalWithoutRecording, plus RECOVERY_SIGNAL_GRACE_MS, DEVICE_ALREADY_OFF_RE, isTrustedSimctlPath and isTrustedRecorderPrefix. recover() stays: it writes lease, recording and lastGeneration. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Seam 5 of the createIOSSimulatorService split (#1447 pass V2). Verbatim move of observeRecordingClose, clearRecordingTimers, scheduleRecordingPoll, recordedVideoSize, pollRecordingSize, killRecording, waitForRecordingClose, runRecordingFinalization and beginFinalization, plus the recorder constants, interruptRecording and recordingFinalizeFailed. finalizeRecording stays (it retires the recording slot) and calls runRecordingFinalization back through the seam's return. Also restores two blank-line separators the seam 4 cut dropped from the module constants. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…per.js Seam 6 of the createIOSSimulatorService split (#1447 pass V2). Verbatim move of currentStreamBroker, disconnectHelperSession, waitForHelperReady and helperRpcWithSession, plus the helper ready/RPC timeouts. The helper slot and its lifecycle stay; helperSessionWritable comes through ctx. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Seam 7 of the createIOSSimulatorService split (#1447 pass V2). Verbatim move of tap, swipe, typeText, pressButton, sendInput, accessibility and scrollTo, plus their limits, HARDWARE_BUTTONS, SIMULATOR_KEY_USAGE and requireCoord. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Closed
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pass V2 of #1447, the second half of the
ios-simulator.jssplit (part 1 was #1473). Following section 3 ofdocs/superpowers/specs/2026-10-05-ios-simulator-split.md, seven seams ofcreateIOSSimulatorServicemove into flatcreate<Seam>(ctx)modules, one commit each, in the plan's order.ios-simulator-input.jsios-simulator-recording.jsios-simulator-recovery.jsios-simulator-journal.jsios-simulator-app-bundle.jsios-simulator-devices.jsios-simulator-helper.jsios-simulator.js: 2,781 → 1,697 lines (3,244 before #1473).Checked
module.exportsis identical (6 keys). The objectcreateIOSSimulatorServicereturns has the same 32 keys as main.Object.assign(ctx, …),ctx.helperRpcWithSession = …,ctx.selectedDeveloperDirectory = …).ctxis on ctx at its call (checked by script).no-undefover the new modules and ios-simulator.js reports 0 errors, so no seam reads a closurelet(recording,helper, …) it can't see. No seam writes them either, so no getters or setters were needed.electron/test/ios-simulator*.test.js327/327.npm run typecheckclean.npx vite buildandnpm run test:smokepass A–E.🤖 Generated with Claude Code